• 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/CreditBalanceTransactionListParams.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 CreditBalanceTransactionListParams extends ApiRequestParams {
14
  /** The credit grant for which to fetch credit balance transactions. */
15
  @SerializedName("credit_grant")
16
  String creditGrant;
17

18
  /** <strong>Required.</strong> The customer for which to fetch credit balance transactions. */
19
  @SerializedName("customer")
20
  String customer;
21

22
  /**
23
   * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
24
   * in the list. For instance, if you make a list request and receive 100 objects, starting with
25
   * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to
26
   * fetch the previous page of the list.
27
   */
28
  @SerializedName("ending_before")
29
  String endingBefore;
30

31
  /** Specifies which fields in the response should be expanded. */
32
  @SerializedName("expand")
33
  List<String> expand;
34

35
  /**
36
   * Map of extra parameters for custom features not available in this client library. The content
37
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
38
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
39
   * param object. Effectively, this map is flattened to its parent instance.
40
   */
41
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
42
  Map<String, Object> extraParams;
43

44
  /**
45
   * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
46
   * default is 10.
47
   */
48
  @SerializedName("limit")
49
  Long limit;
50

51
  /**
52
   * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place
53
   * in the list. For instance, if you make a list request and receive 100 objects, ending with
54
   * {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in order to
55
   * fetch the next page of the list.
56
   */
57
  @SerializedName("starting_after")
58
  String startingAfter;
59

60
  private CreditBalanceTransactionListParams(
61
      String creditGrant,
62
      String customer,
63
      String endingBefore,
64
      List<String> expand,
65
      Map<String, Object> extraParams,
66
      Long limit,
NEW
67
      String startingAfter) {
×
NEW
68
    this.creditGrant = creditGrant;
×
NEW
69
    this.customer = customer;
×
NEW
70
    this.endingBefore = endingBefore;
×
NEW
71
    this.expand = expand;
×
NEW
72
    this.extraParams = extraParams;
×
NEW
73
    this.limit = limit;
×
NEW
74
    this.startingAfter = startingAfter;
×
NEW
75
  }
×
76

77
  public static Builder builder() {
NEW
78
    return new Builder();
×
79
  }
80

NEW
81
  public static class Builder {
×
82
    private String creditGrant;
83

84
    private String customer;
85

86
    private String endingBefore;
87

88
    private List<String> expand;
89

90
    private Map<String, Object> extraParams;
91

92
    private Long limit;
93

94
    private String startingAfter;
95

96
    /** Finalize and obtain parameter instance from this builder. */
97
    public CreditBalanceTransactionListParams build() {
NEW
98
      return new CreditBalanceTransactionListParams(
×
99
          this.creditGrant,
100
          this.customer,
101
          this.endingBefore,
102
          this.expand,
103
          this.extraParams,
104
          this.limit,
105
          this.startingAfter);
106
    }
107

108
    /** The credit grant for which to fetch credit balance transactions. */
109
    public Builder setCreditGrant(String creditGrant) {
NEW
110
      this.creditGrant = creditGrant;
×
NEW
111
      return this;
×
112
    }
113

114
    /** <strong>Required.</strong> The customer for which to fetch credit balance transactions. */
115
    public Builder setCustomer(String customer) {
NEW
116
      this.customer = customer;
×
NEW
117
      return this;
×
118
    }
119

120
    /**
121
     * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
122
     * in the list. For instance, if you make a list request and receive 100 objects, starting with
123
     * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to
124
     * fetch the previous page of the list.
125
     */
126
    public Builder setEndingBefore(String endingBefore) {
NEW
127
      this.endingBefore = endingBefore;
×
NEW
128
      return this;
×
129
    }
130

131
    /**
132
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
133
     * subsequent calls adds additional elements to the original list. See {@link
134
     * CreditBalanceTransactionListParams#expand} for the field documentation.
135
     */
136
    public Builder addExpand(String element) {
NEW
137
      if (this.expand == null) {
×
NEW
138
        this.expand = new ArrayList<>();
×
139
      }
NEW
140
      this.expand.add(element);
×
NEW
141
      return this;
×
142
    }
143

144
    /**
145
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
146
     * subsequent calls adds additional elements to the original list. See {@link
147
     * CreditBalanceTransactionListParams#expand} for the field documentation.
148
     */
149
    public Builder addAllExpand(List<String> elements) {
NEW
150
      if (this.expand == null) {
×
NEW
151
        this.expand = new ArrayList<>();
×
152
      }
NEW
153
      this.expand.addAll(elements);
×
NEW
154
      return this;
×
155
    }
156

157
    /**
158
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
159
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
160
     * CreditBalanceTransactionListParams#extraParams} for the field documentation.
161
     */
162
    public Builder putExtraParam(String key, Object value) {
NEW
163
      if (this.extraParams == null) {
×
NEW
164
        this.extraParams = new HashMap<>();
×
165
      }
NEW
166
      this.extraParams.put(key, value);
×
NEW
167
      return this;
×
168
    }
169

170
    /**
171
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
172
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
173
     * See {@link CreditBalanceTransactionListParams#extraParams} for the field documentation.
174
     */
175
    public Builder putAllExtraParam(Map<String, Object> map) {
NEW
176
      if (this.extraParams == null) {
×
NEW
177
        this.extraParams = new HashMap<>();
×
178
      }
NEW
179
      this.extraParams.putAll(map);
×
NEW
180
      return this;
×
181
    }
182

183
    /**
184
     * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
185
     * default is 10.
186
     */
187
    public Builder setLimit(Long limit) {
NEW
188
      this.limit = limit;
×
NEW
189
      return this;
×
190
    }
191

192
    /**
193
     * A cursor for use in pagination. {@code starting_after} is an object ID that defines your
194
     * place in the list. For instance, if you make a list request and receive 100 objects, ending
195
     * with {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in
196
     * order to fetch the next page of the list.
197
     */
198
    public Builder setStartingAfter(String startingAfter) {
NEW
199
      this.startingAfter = startingAfter;
×
NEW
200
      return this;
×
201
    }
202
  }
203
}
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