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

stripe / stripe-java / #16624

07 Nov 2024 10:04PM UTC coverage: 12.419% (-0.1%) from 12.519%
#16624

push

github

web-flow
Merge pull request #1917 from stripe/latest-codegen-beta

Update generated code for beta

17 of 1341 new or added lines in 57 files covered. (1.27%)

33 existing lines in 29 files now uncovered.

18855 of 151828 relevant lines covered (12.42%)

0.12 hits per line

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

0.0
/src/main/java/com/stripe/param/issuing/FraudLiabilityDebitListParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.issuing;
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 FraudLiabilityDebitListParams extends ApiRequestParams {
14
  /**
15
   * Only return Issuing Fraud Liability Debits that were created during the given date interval.
16
   */
17
  @SerializedName("created")
18
  Object created;
19

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

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

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

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

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

58
  private FraudLiabilityDebitListParams(
59
      Object created,
60
      String endingBefore,
61
      List<String> expand,
62
      Map<String, Object> extraParams,
63
      Long limit,
NEW
64
      String startingAfter) {
×
NEW
65
    this.created = created;
×
NEW
66
    this.endingBefore = endingBefore;
×
NEW
67
    this.expand = expand;
×
NEW
68
    this.extraParams = extraParams;
×
NEW
69
    this.limit = limit;
×
NEW
70
    this.startingAfter = startingAfter;
×
NEW
71
  }
×
72

73
  public static Builder builder() {
NEW
74
    return new Builder();
×
75
  }
76

NEW
77
  public static class Builder {
×
78
    private Object created;
79

80
    private String endingBefore;
81

82
    private List<String> expand;
83

84
    private Map<String, Object> extraParams;
85

86
    private Long limit;
87

88
    private String startingAfter;
89

90
    /** Finalize and obtain parameter instance from this builder. */
91
    public FraudLiabilityDebitListParams build() {
NEW
92
      return new FraudLiabilityDebitListParams(
×
93
          this.created,
94
          this.endingBefore,
95
          this.expand,
96
          this.extraParams,
97
          this.limit,
98
          this.startingAfter);
99
    }
100

101
    /**
102
     * Only return Issuing Fraud Liability Debits that were created during the given date interval.
103
     */
104
    public Builder setCreated(FraudLiabilityDebitListParams.Created created) {
NEW
105
      this.created = created;
×
NEW
106
      return this;
×
107
    }
108

109
    /**
110
     * Only return Issuing Fraud Liability Debits that were created during the given date interval.
111
     */
112
    public Builder setCreated(Long created) {
NEW
113
      this.created = created;
×
NEW
114
      return this;
×
115
    }
116

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

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

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

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

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

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

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

201
  @Getter
202
  public static class Created {
203
    /**
204
     * Map of extra parameters for custom features not available in this client library. The content
205
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
206
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
207
     * param object. Effectively, this map is flattened to its parent instance.
208
     */
209
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
210
    Map<String, Object> extraParams;
211

212
    /** Minimum value to filter by (exclusive). */
213
    @SerializedName("gt")
214
    Long gt;
215

216
    /** Minimum value to filter by (inclusive). */
217
    @SerializedName("gte")
218
    Long gte;
219

220
    /** Maximum value to filter by (exclusive). */
221
    @SerializedName("lt")
222
    Long lt;
223

224
    /** Maximum value to filter by (inclusive). */
225
    @SerializedName("lte")
226
    Long lte;
227

NEW
228
    private Created(Map<String, Object> extraParams, Long gt, Long gte, Long lt, Long lte) {
×
NEW
229
      this.extraParams = extraParams;
×
NEW
230
      this.gt = gt;
×
NEW
231
      this.gte = gte;
×
NEW
232
      this.lt = lt;
×
NEW
233
      this.lte = lte;
×
NEW
234
    }
×
235

236
    public static Builder builder() {
NEW
237
      return new Builder();
×
238
    }
239

NEW
240
    public static class Builder {
×
241
      private Map<String, Object> extraParams;
242

243
      private Long gt;
244

245
      private Long gte;
246

247
      private Long lt;
248

249
      private Long lte;
250

251
      /** Finalize and obtain parameter instance from this builder. */
252
      public FraudLiabilityDebitListParams.Created build() {
NEW
253
        return new FraudLiabilityDebitListParams.Created(
×
254
            this.extraParams, this.gt, this.gte, this.lt, this.lte);
255
      }
256

257
      /**
258
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
259
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
260
       * FraudLiabilityDebitListParams.Created#extraParams} for the field documentation.
261
       */
262
      public Builder putExtraParam(String key, Object value) {
NEW
263
        if (this.extraParams == null) {
×
NEW
264
          this.extraParams = new HashMap<>();
×
265
        }
NEW
266
        this.extraParams.put(key, value);
×
NEW
267
        return this;
×
268
      }
269

270
      /**
271
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
272
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
273
       * See {@link FraudLiabilityDebitListParams.Created#extraParams} for the field documentation.
274
       */
275
      public Builder putAllExtraParam(Map<String, Object> map) {
NEW
276
        if (this.extraParams == null) {
×
NEW
277
          this.extraParams = new HashMap<>();
×
278
        }
NEW
279
        this.extraParams.putAll(map);
×
NEW
280
        return this;
×
281
      }
282

283
      /** Minimum value to filter by (exclusive). */
284
      public Builder setGt(Long gt) {
NEW
285
        this.gt = gt;
×
NEW
286
        return this;
×
287
      }
288

289
      /** Minimum value to filter by (inclusive). */
290
      public Builder setGte(Long gte) {
NEW
291
        this.gte = gte;
×
NEW
292
        return this;
×
293
      }
294

295
      /** Maximum value to filter by (exclusive). */
296
      public Builder setLt(Long lt) {
NEW
297
        this.lt = lt;
×
NEW
298
        return this;
×
299
      }
300

301
      /** Maximum value to filter by (inclusive). */
302
      public Builder setLte(Long lte) {
NEW
303
        this.lte = lte;
×
NEW
304
        return this;
×
305
      }
306
    }
307
  }
308
}
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