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

stripe / stripe-java / #16644

14 Nov 2024 11:58PM UTC coverage: 12.414% (-0.005%) from 12.419%
#16644

push

github

web-flow
Update generated code for beta (#1922)

* Update generated code for v1334

* Update generated code for v1335

* Update generated code for v1337

* Update generated code for v1339

* Update generated code for v1340

* Update generated code for v1343

* Update generated code for v1345

* Update generated code for v1346

* Update generated code for v1347

* Update generated code for v1348

* Update generated code for v1349

* Update generated code for v1350

* Update generated code for v1352

* Update generated code for v1353

* Update generated code for v1356

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

2 of 79 new or added lines in 17 files covered. (2.53%)

1 existing line in 1 file now uncovered.

18857 of 151907 relevant lines covered (12.41%)

0.12 hits per line

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

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

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

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

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

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

47
  /**
48
   * Filter queries by the file purpose. If you don't provide a purpose, the queries return
49
   * unfiltered files.
50
   */
51
  @SerializedName("purpose")
52
  Purpose purpose;
53

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

63
  private FileListParams(
64
      Object created,
65
      String endingBefore,
66
      List<String> expand,
67
      Map<String, Object> extraParams,
68
      Long limit,
69
      Purpose purpose,
70
      String startingAfter) {
1✔
71
    this.created = created;
1✔
72
    this.endingBefore = endingBefore;
1✔
73
    this.expand = expand;
1✔
74
    this.extraParams = extraParams;
1✔
75
    this.limit = limit;
1✔
76
    this.purpose = purpose;
1✔
77
    this.startingAfter = startingAfter;
1✔
78
  }
1✔
79

80
  public static Builder builder() {
81
    return new Builder();
1✔
82
  }
83

84
  public static class Builder {
1✔
85
    private Object created;
86

87
    private String endingBefore;
88

89
    private List<String> expand;
90

91
    private Map<String, Object> extraParams;
92

93
    private Long limit;
94

95
    private Purpose purpose;
96

97
    private String startingAfter;
98

99
    /** Finalize and obtain parameter instance from this builder. */
100
    public FileListParams build() {
101
      return new FileListParams(
1✔
102
          this.created,
103
          this.endingBefore,
104
          this.expand,
105
          this.extraParams,
106
          this.limit,
107
          this.purpose,
108
          this.startingAfter);
109
    }
110

111
    /** Only return files that were created during the given date interval. */
112
    public Builder setCreated(FileListParams.Created created) {
113
      this.created = created;
×
114
      return this;
×
115
    }
116

117
    /** Only return files that were created during the given date interval. */
118
    public Builder setCreated(Long created) {
119
      this.created = created;
×
120
      return this;
×
121
    }
122

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

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

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

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

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

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

195
    /**
196
     * Filter queries by the file purpose. If you don't provide a purpose, the queries return
197
     * unfiltered files.
198
     */
199
    public Builder setPurpose(FileListParams.Purpose purpose) {
200
      this.purpose = purpose;
×
201
      return this;
×
202
    }
203

204
    /**
205
     * A cursor for use in pagination. {@code starting_after} is an object ID that defines your
206
     * place in the list. For instance, if you make a list request and receive 100 objects, ending
207
     * with {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in
208
     * order to fetch the next page of the list.
209
     */
210
    public Builder setStartingAfter(String startingAfter) {
211
      this.startingAfter = startingAfter;
×
212
      return this;
×
213
    }
214
  }
215

216
  @Getter
217
  public static class Created {
218
    /**
219
     * Map of extra parameters for custom features not available in this client library. The content
220
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
221
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
222
     * param object. Effectively, this map is flattened to its parent instance.
223
     */
224
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
225
    Map<String, Object> extraParams;
226

227
    /** Minimum value to filter by (exclusive). */
228
    @SerializedName("gt")
229
    Long gt;
230

231
    /** Minimum value to filter by (inclusive). */
232
    @SerializedName("gte")
233
    Long gte;
234

235
    /** Maximum value to filter by (exclusive). */
236
    @SerializedName("lt")
237
    Long lt;
238

239
    /** Maximum value to filter by (inclusive). */
240
    @SerializedName("lte")
241
    Long lte;
242

243
    private Created(Map<String, Object> extraParams, Long gt, Long gte, Long lt, Long lte) {
×
244
      this.extraParams = extraParams;
×
245
      this.gt = gt;
×
246
      this.gte = gte;
×
247
      this.lt = lt;
×
248
      this.lte = lte;
×
249
    }
×
250

251
    public static Builder builder() {
252
      return new Builder();
×
253
    }
254

255
    public static class Builder {
×
256
      private Map<String, Object> extraParams;
257

258
      private Long gt;
259

260
      private Long gte;
261

262
      private Long lt;
263

264
      private Long lte;
265

266
      /** Finalize and obtain parameter instance from this builder. */
267
      public FileListParams.Created build() {
268
        return new FileListParams.Created(this.extraParams, this.gt, this.gte, this.lt, this.lte);
×
269
      }
270

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

284
      /**
285
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
286
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
287
       * See {@link FileListParams.Created#extraParams} for the field documentation.
288
       */
289
      public Builder putAllExtraParam(Map<String, Object> map) {
290
        if (this.extraParams == null) {
×
291
          this.extraParams = new HashMap<>();
×
292
        }
293
        this.extraParams.putAll(map);
×
294
        return this;
×
295
      }
296

297
      /** Minimum value to filter by (exclusive). */
298
      public Builder setGt(Long gt) {
299
        this.gt = gt;
×
300
        return this;
×
301
      }
302

303
      /** Minimum value to filter by (inclusive). */
304
      public Builder setGte(Long gte) {
305
        this.gte = gte;
×
306
        return this;
×
307
      }
308

309
      /** Maximum value to filter by (exclusive). */
310
      public Builder setLt(Long lt) {
311
        this.lt = lt;
×
312
        return this;
×
313
      }
314

315
      /** Maximum value to filter by (inclusive). */
316
      public Builder setLte(Long lte) {
317
        this.lte = lte;
×
318
        return this;
×
319
      }
320
    }
321
  }
322

323
  public enum Purpose implements ApiRequestParams.EnumParam {
×
324
    @SerializedName("account_requirement")
×
325
    ACCOUNT_REQUIREMENT("account_requirement"),
326

327
    @SerializedName("additional_verification")
×
328
    ADDITIONAL_VERIFICATION("additional_verification"),
329

330
    @SerializedName("business_icon")
×
331
    BUSINESS_ICON("business_icon"),
332

333
    @SerializedName("business_logo")
×
334
    BUSINESS_LOGO("business_logo"),
335

336
    @SerializedName("customer_signature")
×
337
    CUSTOMER_SIGNATURE("customer_signature"),
338

339
    @SerializedName("dispute_evidence")
×
340
    DISPUTE_EVIDENCE("dispute_evidence"),
341

342
    @SerializedName("document_provider_identity_document")
×
343
    DOCUMENT_PROVIDER_IDENTITY_DOCUMENT("document_provider_identity_document"),
344

345
    @SerializedName("finance_report_run")
×
346
    FINANCE_REPORT_RUN("finance_report_run"),
347

NEW
348
    @SerializedName("financial_account_statement")
×
349
    FINANCIAL_ACCOUNT_STATEMENT("financial_account_statement"),
350

UNCOV
351
    @SerializedName("identity_document")
×
352
    IDENTITY_DOCUMENT("identity_document"),
353

354
    @SerializedName("identity_document_downloadable")
×
355
    IDENTITY_DOCUMENT_DOWNLOADABLE("identity_document_downloadable"),
356

357
    @SerializedName("issuing_regulatory_reporting")
×
358
    ISSUING_REGULATORY_REPORTING("issuing_regulatory_reporting"),
359

360
    @SerializedName("pci_document")
×
361
    PCI_DOCUMENT("pci_document"),
362

363
    @SerializedName("selfie")
×
364
    SELFIE("selfie"),
365

366
    @SerializedName("sigma_scheduled_query")
×
367
    SIGMA_SCHEDULED_QUERY("sigma_scheduled_query"),
368

369
    @SerializedName("tax_document_user_upload")
×
370
    TAX_DOCUMENT_USER_UPLOAD("tax_document_user_upload"),
371

372
    @SerializedName("terminal_reader_splashscreen")
×
373
    TERMINAL_READER_SPLASHSCREEN("terminal_reader_splashscreen");
374

375
    @Getter(onMethod_ = {@Override})
376
    private final String value;
377

378
    Purpose(String value) {
×
379
      this.value = value;
×
380
    }
×
381
  }
382
}
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