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

stripe / stripe-java / #16493

03 Oct 2024 07:15PM UTC coverage: 12.942% (+0.08%) from 12.864%
#16493

push

github

web-flow
Merge Stripe-java v27.0.0 to beta branch (#1888)

409 of 1651 new or added lines in 88 files covered. (24.77%)

31 existing lines in 7 files now uncovered.

18773 of 145050 relevant lines covered (12.94%)

0.13 hits per line

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

0.0
/src/main/java/com/stripe/param/billing/CreditBalanceTransactionRetrieveParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.billing;
3

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

12
@Getter
13
public class CreditBalanceTransactionRetrieveParams extends ApiRequestParams {
14
  /** Specifies which fields in the response should be expanded. */
15
  @SerializedName("expand")
16
  List<String> expand;
17

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

27
  private CreditBalanceTransactionRetrieveParams(
NEW
28
      List<String> expand, Map<String, Object> extraParams) {
×
NEW
29
    this.expand = expand;
×
NEW
30
    this.extraParams = extraParams;
×
NEW
31
  }
×
32

33
  public static Builder builder() {
NEW
34
    return new Builder();
×
35
  }
36

NEW
37
  public static class Builder {
×
38
    private List<String> expand;
39

40
    private Map<String, Object> extraParams;
41

42
    /** Finalize and obtain parameter instance from this builder. */
43
    public CreditBalanceTransactionRetrieveParams build() {
NEW
44
      return new CreditBalanceTransactionRetrieveParams(this.expand, this.extraParams);
×
45
    }
46

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

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

73
    /**
74
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
75
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
76
     * CreditBalanceTransactionRetrieveParams#extraParams} for the field documentation.
77
     */
78
    public Builder putExtraParam(String key, Object value) {
NEW
79
      if (this.extraParams == null) {
×
NEW
80
        this.extraParams = new HashMap<>();
×
81
      }
NEW
82
      this.extraParams.put(key, value);
×
NEW
83
      return this;
×
84
    }
85

86
    /**
87
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
88
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
89
     * See {@link CreditBalanceTransactionRetrieveParams#extraParams} for the field documentation.
90
     */
91
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
92
      if (this.extraParams == null) {
×
NEW
93
        this.extraParams = new HashMap<>();
×
94
      }
NEW
95
      this.extraParams.putAll(map);
×
NEW
96
      return this;
×
97
    }
98
  }
99
}
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

© 2026 Coveralls, Inc