• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-java / 4459

pending completion
4459

Pull #778

travis-ci

web-flow
gen with spotless
Pull Request #778: [WIP] Prettier CodeGen no checkstyle

2515 of 20721 relevant lines covered (12.14%)

23.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/stripe/param/RecipientRetrieveParams.java
1
package com.stripe.param;
2

3
import com.google.gson.annotations.SerializedName;
4
import com.stripe.net.ApiRequestParams;
5
import java.util.ArrayList;
6
import java.util.HashMap;
7
import java.util.List;
8
import java.util.Map;
9

10
public class RecipientRetrieveParams extends ApiRequestParams {
×
11

12
  /** Specifies which fields in the response should be expanded. */
13
  @SerializedName("expand")
14
  List<String> expand;
15

16
  /**
17
   * Map of extra parameters for custom features not available in this client library. The content
18
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
19
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
20
   * param object. Effectively, this map is flattened to its parent instance.
21
   */
22
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
23
  Map<String, Object> extraParams;
24

25
  private RecipientRetrieveParams(List<String> expand, Map<String, Object> extraParams) {
26

27
    this.expand = expand;
28
    this.extraParams = extraParams;
29
  }
30

31
  public static RecipientRetrieveParams.Builder builder() {
32
    return new RecipientRetrieveParams.Builder();
×
33
  }
34

35
  public static class Builder {
36
    private List<String> expand;
37
    private Map<String, Object> extraParams;
38

39
    public RecipientRetrieveParams build() {
40
      return new RecipientRetrieveParams(this.expand, this.extraParams);
×
41
    }
42

43
    /**
44
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
45
     * subsequent calls adds additional elements to the original list. See {@link
46
     * RecipientRetrieveParams#expand} for the field documentation.
47
     */
48
    public RecipientRetrieveParams.Builder addExpand(String element) {
49
      if (this.expand == null) {
×
50
        this.expand = new ArrayList<>();
×
51
      }
52
      this.expand.add(element);
×
53
      return this;
×
54
    }
55

56
    /**
57
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
58
     * subsequent calls adds additional elements to the original list. See {@link
59
     * RecipientRetrieveParams#expand} for the field documentation.
60
     */
61
    public RecipientRetrieveParams.Builder addAllExpand(List<String> list) {
62
      if (this.expand == null) {
×
63
        this.expand = new ArrayList<>();
×
64
      }
65
      this.expand.addAll(list);
×
66
      return this;
×
67
    }
68

69
    /**
70
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
71
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
72
     * RecipientRetrieveParams#extraParams} for the field documentation.
73
     */
74
    public RecipientRetrieveParams.Builder putExtraParam(String key, Object value) {
75

76
      if (this.extraParams == null) {
×
77
        this.extraParams = new HashMap<>();
×
78
      }
79
      this.extraParams.put(key, value);
×
80
      return this;
×
81
    }
82

83
    /**
84
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
85
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
86
     * See {@link RecipientRetrieveParams#extraParams} for the field documentation.
87
     */
88
    public RecipientRetrieveParams.Builder putAllExtraParam(Map<String, Object> map) {
89

90
      if (this.extraParams == null) {
×
91
        this.extraParams = new HashMap<>();
×
92
      }
93
      this.extraParams.putAll(map);
×
94
      return this;
×
95
    }
96
  }
97
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc