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

stripe / stripe-java / #16727

09 Jan 2025 09:36PM UTC coverage: 12.34% (-0.04%) from 12.384%
#16727

push

github

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

* Update generated code for v1407

* Update generated code for v1408

* Update generated code for v1409

* Update generated code for v1410

* Update generated code for v1411

* Update generated code for v1413

* Update generated code for v1414

* Update generated code for v1415

* Update generated code for v1416

* Update generated code (#1931)

* Update generated code for v1399

* Update generated code for v1402

* Update generated code for v1409

* Update generated code for v1412

---------

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

* Bump version to 28.2.0

* Added pull request template (#1933)

* Update generated code for v1423

* Update generated code for v1429

* Update generated code for v1430

* Update generated code for v1431

* Update generated code for v1432

* Update generated code for v1433

* Update generated code for v1435

* Update generated code for v1436

---------

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

30 of 1359 new or added lines in 26 files covered. (2.21%)

45 existing lines in 12 files now uncovered.

18906 of 153209 relevant lines covered (12.34%)

0.12 hits per line

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

41.51
/src/main/java/com/stripe/model/treasury/FinancialAccount.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model.treasury;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.exception.StripeException;
6
import com.stripe.model.HasId;
7
import com.stripe.model.MetadataStore;
8
import com.stripe.model.StripeObject;
9
import com.stripe.net.ApiRequest;
10
import com.stripe.net.ApiRequestParams;
11
import com.stripe.net.ApiResource;
12
import com.stripe.net.BaseAddress;
13
import com.stripe.net.RequestOptions;
14
import com.stripe.net.StripeResponseGetter;
15
import com.stripe.param.treasury.FinancialAccountCloseParams;
16
import com.stripe.param.treasury.FinancialAccountCreateParams;
17
import com.stripe.param.treasury.FinancialAccountListParams;
18
import com.stripe.param.treasury.FinancialAccountRetrieveFeaturesParams;
19
import com.stripe.param.treasury.FinancialAccountRetrieveParams;
20
import com.stripe.param.treasury.FinancialAccountUpdateFeaturesParams;
21
import com.stripe.param.treasury.FinancialAccountUpdateParams;
22
import java.util.List;
23
import java.util.Map;
24
import lombok.EqualsAndHashCode;
25
import lombok.Getter;
26
import lombok.Setter;
27

28
/**
29
 * Stripe Treasury provides users with a container for money called a FinancialAccount that is
30
 * separate from their Payments balance. FinancialAccounts serve as the source and destination of
31
 * Treasury’s money movement APIs.
32
 */
33
@Getter
34
@Setter
35
@EqualsAndHashCode(callSuper = false)
36
public class FinancialAccount extends ApiResource
1✔
37
    implements HasId, MetadataStore<FinancialAccount> {
38
  /** The array of paths to active Features in the Features hash. */
39
  @SerializedName("active_features")
40
  List<String> activeFeatures;
41

42
  /** Balance information for the FinancialAccount. */
43
  @SerializedName("balance")
44
  Balance balance;
45

46
  /**
47
   * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1
48
   * alpha-2</a>).
49
   */
50
  @SerializedName("country")
51
  String country;
52

53
  /** Time at which the object was created. Measured in seconds since the Unix epoch. */
54
  @SerializedName("created")
55
  Long created;
56

57
  /**
58
   * The display name for the FinancialAccount. Use this field to customize the names of the
59
   * FinancialAccounts for your connected accounts. Unlike the {@code nickname} field, {@code
60
   * display_name} is not internal metadata and will be exposed to connected accounts.
61
   */
62
  @SerializedName("display_name")
63
  String displayName;
64

65
  /**
66
   * Encodes whether a FinancialAccount has access to a particular Feature, with a {@code status}
67
   * enum and associated {@code status_details}. Stripe or the platform can control Features via the
68
   * requested field.
69
   */
70
  @SerializedName("features")
71
  FinancialAccountFeatures features;
72

73
  /** The set of credentials that resolve to a FinancialAccount. */
74
  @SerializedName("financial_addresses")
75
  List<FinancialAccount.FinancialAddress> financialAddresses;
76

77
  /** Unique identifier for the object. */
78
  @Getter(onMethod_ = {@Override})
79
  @SerializedName("id")
80
  String id;
81

82
  @SerializedName("is_default")
83
  Boolean isDefault;
84

85
  /**
86
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
87
   * object exists in test mode.
88
   */
89
  @SerializedName("livemode")
90
  Boolean livemode;
91

92
  /**
93
   * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
94
   * to an object. This can be useful for storing additional information about the object in a
95
   * structured format.
96
   */
97
  @Getter(onMethod_ = {@Override})
98
  @SerializedName("metadata")
99
  Map<String, String> metadata;
100

101
  /** The nickname for the FinancialAccount. */
102
  @SerializedName("nickname")
103
  String nickname;
104

105
  /**
106
   * String representing the object's type. Objects of the same type share the same value.
107
   *
108
   * <p>Equal to {@code treasury.financial_account}.
109
   */
110
  @SerializedName("object")
111
  String object;
112

113
  /** The array of paths to pending Features in the Features hash. */
114
  @SerializedName("pending_features")
115
  List<String> pendingFeatures;
116

117
  /** The set of functionalities that the platform can restrict on the FinancialAccount. */
118
  @SerializedName("platform_restrictions")
119
  PlatformRestrictions platformRestrictions;
120

121
  /** The array of paths to restricted Features in the Features hash. */
122
  @SerializedName("restricted_features")
123
  List<String> restrictedFeatures;
124

125
  /**
126
   * Status of this FinancialAccount.
127
   *
128
   * <p>One of {@code closed}, or {@code open}.
129
   */
130
  @SerializedName("status")
131
  String status;
132

133
  @SerializedName("status_details")
134
  StatusDetails statusDetails;
135

136
  /**
137
   * The currencies the FinancialAccount can hold a balance in. Three-letter <a
138
   * href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase.
139
   */
140
  @SerializedName("supported_currencies")
141
  List<String> supportedCurrencies;
142

143
  /**
144
   * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has
145
   * no pending InboundTransfers, and has canceled all attached Issuing cards.
146
   */
147
  public FinancialAccount close() throws StripeException {
NEW
148
    return close((Map<String, Object>) null, (RequestOptions) null);
×
149
  }
150

151
  /**
152
   * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has
153
   * no pending InboundTransfers, and has canceled all attached Issuing cards.
154
   */
155
  public FinancialAccount close(RequestOptions options) throws StripeException {
NEW
156
    return close((Map<String, Object>) null, options);
×
157
  }
158

159
  /**
160
   * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has
161
   * no pending InboundTransfers, and has canceled all attached Issuing cards.
162
   */
163
  public FinancialAccount close(Map<String, Object> params) throws StripeException {
NEW
164
    return close(params, (RequestOptions) null);
×
165
  }
166

167
  /**
168
   * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has
169
   * no pending InboundTransfers, and has canceled all attached Issuing cards.
170
   */
171
  public FinancialAccount close(Map<String, Object> params, RequestOptions options)
172
      throws StripeException {
NEW
173
    String path =
×
NEW
174
        String.format(
×
NEW
175
            "/v1/treasury/financial_accounts/%s/close", ApiResource.urlEncodeId(this.getId()));
×
NEW
176
    ApiRequest request =
×
177
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
NEW
178
    return getResponseGetter().request(request, FinancialAccount.class);
×
179
  }
180

181
  /**
182
   * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has
183
   * no pending InboundTransfers, and has canceled all attached Issuing cards.
184
   */
185
  public FinancialAccount close(FinancialAccountCloseParams params) throws StripeException {
NEW
186
    return close(params, (RequestOptions) null);
×
187
  }
188

189
  /**
190
   * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has
191
   * no pending InboundTransfers, and has canceled all attached Issuing cards.
192
   */
193
  public FinancialAccount close(FinancialAccountCloseParams params, RequestOptions options)
194
      throws StripeException {
NEW
195
    String path =
×
NEW
196
        String.format(
×
NEW
197
            "/v1/treasury/financial_accounts/%s/close", ApiResource.urlEncodeId(this.getId()));
×
NEW
198
    ApiResource.checkNullTypedParams(path, params);
×
NEW
199
    ApiRequest request =
×
200
        new ApiRequest(
201
            BaseAddress.API,
202
            ApiResource.RequestMethod.POST,
203
            path,
NEW
204
            ApiRequestParams.paramsToMap(params),
×
205
            options);
NEW
206
    return getResponseGetter().request(request, FinancialAccount.class);
×
207
  }
208

209
  /**
210
   * Creates a new FinancialAccount. For now, each connected account can only have one
211
   * FinancialAccount.
212
   */
213
  public static FinancialAccount create(Map<String, Object> params) throws StripeException {
214
    return create(params, (RequestOptions) null);
×
215
  }
216

217
  /**
218
   * Creates a new FinancialAccount. For now, each connected account can only have one
219
   * FinancialAccount.
220
   */
221
  public static FinancialAccount create(Map<String, Object> params, RequestOptions options)
222
      throws StripeException {
223
    String path = "/v1/treasury/financial_accounts";
×
224
    ApiRequest request =
×
225
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
226
    return getGlobalResponseGetter().request(request, FinancialAccount.class);
×
227
  }
228

229
  /**
230
   * Creates a new FinancialAccount. For now, each connected account can only have one
231
   * FinancialAccount.
232
   */
233
  public static FinancialAccount create(FinancialAccountCreateParams params)
234
      throws StripeException {
235
    return create(params, (RequestOptions) null);
1✔
236
  }
237

238
  /**
239
   * Creates a new FinancialAccount. For now, each connected account can only have one
240
   * FinancialAccount.
241
   */
242
  public static FinancialAccount create(FinancialAccountCreateParams params, RequestOptions options)
243
      throws StripeException {
244
    String path = "/v1/treasury/financial_accounts";
1✔
245
    ApiResource.checkNullTypedParams(path, params);
1✔
246
    ApiRequest request =
1✔
247
        new ApiRequest(
248
            BaseAddress.API,
249
            ApiResource.RequestMethod.POST,
250
            path,
251
            ApiRequestParams.paramsToMap(params),
1✔
252
            options);
253
    return getGlobalResponseGetter().request(request, FinancialAccount.class);
1✔
254
  }
255

256
  /** Returns a list of FinancialAccounts. */
257
  public static FinancialAccountCollection list(Map<String, Object> params) throws StripeException {
258
    return list(params, (RequestOptions) null);
×
259
  }
260

261
  /** Returns a list of FinancialAccounts. */
262
  public static FinancialAccountCollection list(Map<String, Object> params, RequestOptions options)
263
      throws StripeException {
264
    String path = "/v1/treasury/financial_accounts";
×
265
    ApiRequest request =
×
266
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
267
    return getGlobalResponseGetter().request(request, FinancialAccountCollection.class);
×
268
  }
269

270
  /** Returns a list of FinancialAccounts. */
271
  public static FinancialAccountCollection list(FinancialAccountListParams params)
272
      throws StripeException {
273
    return list(params, (RequestOptions) null);
1✔
274
  }
275

276
  /** Returns a list of FinancialAccounts. */
277
  public static FinancialAccountCollection list(
278
      FinancialAccountListParams params, RequestOptions options) throws StripeException {
279
    String path = "/v1/treasury/financial_accounts";
1✔
280
    ApiResource.checkNullTypedParams(path, params);
1✔
281
    ApiRequest request =
1✔
282
        new ApiRequest(
283
            BaseAddress.API,
284
            ApiResource.RequestMethod.GET,
285
            path,
286
            ApiRequestParams.paramsToMap(params),
1✔
287
            options);
288
    return getGlobalResponseGetter().request(request, FinancialAccountCollection.class);
1✔
289
  }
290

291
  /** Retrieves the details of a FinancialAccount. */
292
  public static FinancialAccount retrieve(String financialAccount) throws StripeException {
293
    return retrieve(financialAccount, (Map<String, Object>) null, (RequestOptions) null);
1✔
294
  }
295

296
  /** Retrieves the details of a FinancialAccount. */
297
  public static FinancialAccount retrieve(String financialAccount, RequestOptions options)
298
      throws StripeException {
299
    return retrieve(financialAccount, (Map<String, Object>) null, options);
×
300
  }
301

302
  /** Retrieves the details of a FinancialAccount. */
303
  public static FinancialAccount retrieve(
304
      String financialAccount, Map<String, Object> params, RequestOptions options)
305
      throws StripeException {
306
    String path =
1✔
307
        String.format(
1✔
308
            "/v1/treasury/financial_accounts/%s", ApiResource.urlEncodeId(financialAccount));
1✔
309
    ApiRequest request =
1✔
310
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
311
    return getGlobalResponseGetter().request(request, FinancialAccount.class);
1✔
312
  }
313

314
  /** Retrieves the details of a FinancialAccount. */
315
  public static FinancialAccount retrieve(
316
      String financialAccount, FinancialAccountRetrieveParams params, RequestOptions options)
317
      throws StripeException {
318
    String path =
×
319
        String.format(
×
320
            "/v1/treasury/financial_accounts/%s", ApiResource.urlEncodeId(financialAccount));
×
321
    ApiResource.checkNullTypedParams(path, params);
×
322
    ApiRequest request =
×
323
        new ApiRequest(
324
            BaseAddress.API,
325
            ApiResource.RequestMethod.GET,
326
            path,
327
            ApiRequestParams.paramsToMap(params),
×
328
            options);
329
    return getGlobalResponseGetter().request(request, FinancialAccount.class);
×
330
  }
331

332
  /** Retrieves Features information associated with the FinancialAccount. */
333
  public FinancialAccountFeatures retrieveFeatures() throws StripeException {
334
    return retrieveFeatures((Map<String, Object>) null, (RequestOptions) null);
×
335
  }
336

337
  /** Retrieves Features information associated with the FinancialAccount. */
338
  public FinancialAccountFeatures retrieveFeatures(Map<String, Object> params)
339
      throws StripeException {
340
    return retrieveFeatures(params, (RequestOptions) null);
×
341
  }
342

343
  /** Retrieves Features information associated with the FinancialAccount. */
344
  public FinancialAccountFeatures retrieveFeatures(
345
      Map<String, Object> params, RequestOptions options) throws StripeException {
346
    String path =
×
347
        String.format(
×
348
            "/v1/treasury/financial_accounts/%s/features", ApiResource.urlEncodeId(this.getId()));
×
349
    ApiRequest request =
×
350
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
351
    return getResponseGetter().request(request, FinancialAccountFeatures.class);
×
352
  }
353

354
  /** Retrieves Features information associated with the FinancialAccount. */
355
  public FinancialAccountFeatures retrieveFeatures(FinancialAccountRetrieveFeaturesParams params)
356
      throws StripeException {
357
    return retrieveFeatures(params, (RequestOptions) null);
1✔
358
  }
359

360
  /** Retrieves Features information associated with the FinancialAccount. */
361
  public FinancialAccountFeatures retrieveFeatures(
362
      FinancialAccountRetrieveFeaturesParams params, RequestOptions options)
363
      throws StripeException {
364
    String path =
1✔
365
        String.format(
1✔
366
            "/v1/treasury/financial_accounts/%s/features", ApiResource.urlEncodeId(this.getId()));
1✔
367
    ApiResource.checkNullTypedParams(path, params);
1✔
368
    ApiRequest request =
1✔
369
        new ApiRequest(
370
            BaseAddress.API,
371
            ApiResource.RequestMethod.GET,
372
            path,
373
            ApiRequestParams.paramsToMap(params),
1✔
374
            options);
375
    return getResponseGetter().request(request, FinancialAccountFeatures.class);
1✔
376
  }
377

378
  /** Updates the details of a FinancialAccount. */
379
  @Override
380
  public FinancialAccount update(Map<String, Object> params) throws StripeException {
381
    return update(params, (RequestOptions) null);
×
382
  }
383

384
  /** Updates the details of a FinancialAccount. */
385
  @Override
386
  public FinancialAccount update(Map<String, Object> params, RequestOptions options)
387
      throws StripeException {
388
    String path =
×
389
        String.format("/v1/treasury/financial_accounts/%s", ApiResource.urlEncodeId(this.getId()));
×
390
    ApiRequest request =
×
391
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
392
    return getResponseGetter().request(request, FinancialAccount.class);
×
393
  }
394

395
  /** Updates the details of a FinancialAccount. */
396
  public FinancialAccount update(FinancialAccountUpdateParams params) throws StripeException {
397
    return update(params, (RequestOptions) null);
1✔
398
  }
399

400
  /** Updates the details of a FinancialAccount. */
401
  public FinancialAccount update(FinancialAccountUpdateParams params, RequestOptions options)
402
      throws StripeException {
403
    String path =
1✔
404
        String.format("/v1/treasury/financial_accounts/%s", ApiResource.urlEncodeId(this.getId()));
1✔
405
    ApiResource.checkNullTypedParams(path, params);
1✔
406
    ApiRequest request =
1✔
407
        new ApiRequest(
408
            BaseAddress.API,
409
            ApiResource.RequestMethod.POST,
410
            path,
411
            ApiRequestParams.paramsToMap(params),
1✔
412
            options);
413
    return getResponseGetter().request(request, FinancialAccount.class);
1✔
414
  }
415

416
  /** Updates the Features associated with a FinancialAccount. */
417
  public FinancialAccountFeatures updateFeatures() throws StripeException {
418
    return updateFeatures((Map<String, Object>) null, (RequestOptions) null);
×
419
  }
420

421
  /** Updates the Features associated with a FinancialAccount. */
422
  public FinancialAccountFeatures updateFeatures(RequestOptions options) throws StripeException {
423
    return updateFeatures((Map<String, Object>) null, options);
×
424
  }
425

426
  /** Updates the Features associated with a FinancialAccount. */
427
  public FinancialAccountFeatures updateFeatures(Map<String, Object> params)
428
      throws StripeException {
429
    return updateFeatures(params, (RequestOptions) null);
×
430
  }
431

432
  /** Updates the Features associated with a FinancialAccount. */
433
  public FinancialAccountFeatures updateFeatures(Map<String, Object> params, RequestOptions options)
434
      throws StripeException {
435
    String path =
×
436
        String.format(
×
437
            "/v1/treasury/financial_accounts/%s/features", ApiResource.urlEncodeId(this.getId()));
×
438
    ApiRequest request =
×
439
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
440
    return getResponseGetter().request(request, FinancialAccountFeatures.class);
×
441
  }
442

443
  /** Updates the Features associated with a FinancialAccount. */
444
  public FinancialAccountFeatures updateFeatures(FinancialAccountUpdateFeaturesParams params)
445
      throws StripeException {
446
    return updateFeatures(params, (RequestOptions) null);
×
447
  }
448

449
  /** Updates the Features associated with a FinancialAccount. */
450
  public FinancialAccountFeatures updateFeatures(
451
      FinancialAccountUpdateFeaturesParams params, RequestOptions options) throws StripeException {
452
    String path =
×
453
        String.format(
×
454
            "/v1/treasury/financial_accounts/%s/features", ApiResource.urlEncodeId(this.getId()));
×
455
    ApiResource.checkNullTypedParams(path, params);
×
456
    ApiRequest request =
×
457
        new ApiRequest(
458
            BaseAddress.API,
459
            ApiResource.RequestMethod.POST,
460
            path,
461
            ApiRequestParams.paramsToMap(params),
×
462
            options);
463
    return getResponseGetter().request(request, FinancialAccountFeatures.class);
×
464
  }
465

466
  /** Balance information for the FinancialAccount. */
467
  @Getter
468
  @Setter
469
  @EqualsAndHashCode(callSuper = false)
470
  public static class Balance extends StripeObject {
1✔
471
    /** Funds the user can spend right now. */
472
    @SerializedName("cash")
473
    Map<String, Long> cash;
474

475
    /** Funds not spendable yet, but will become available at a later time. */
476
    @SerializedName("inbound_pending")
477
    Map<String, Long> inboundPending;
478

479
    /**
480
     * Funds in the account, but not spendable because they are being held for pending outbound
481
     * flows.
482
     */
483
    @SerializedName("outbound_pending")
484
    Map<String, Long> outboundPending;
485
  }
486

487
  /** FinancialAddresses contain identifying information that resolves to a FinancialAccount. */
488
  @Getter
489
  @Setter
490
  @EqualsAndHashCode(callSuper = false)
491
  public static class FinancialAddress extends StripeObject {
1✔
492
    /** ABA Records contain U.S. bank account details per the ABA format. */
493
    @SerializedName("aba")
494
    Aba aba;
495

496
    /** The list of networks that the address supports. */
497
    @SerializedName("supported_networks")
498
    List<String> supportedNetworks;
499

500
    /**
501
     * The type of financial address
502
     *
503
     * <p>Equal to {@code aba}.
504
     */
505
    @SerializedName("type")
506
    String type;
507

508
    /** ABA Records contain U.S. bank account details per the ABA format. */
509
    @Getter
510
    @Setter
511
    @EqualsAndHashCode(callSuper = false)
512
    public static class Aba extends StripeObject {
1✔
513
      /** The name of the person or business that owns the bank account. */
514
      @SerializedName("account_holder_name")
515
      String accountHolderName;
516

517
      /** The account number. */
518
      @SerializedName("account_number")
519
      String accountNumber;
520

521
      /** The last four characters of the account number. */
522
      @SerializedName("account_number_last4")
523
      String accountNumberLast4;
524

525
      /** Name of the bank. */
526
      @SerializedName("bank_name")
527
      String bankName;
528

529
      /** Routing number for the account. */
530
      @SerializedName("routing_number")
531
      String routingNumber;
532
    }
533
  }
534

535
  /** Restrictions that a Connect Platform has placed on this FinancialAccount. */
536
  @Getter
537
  @Setter
538
  @EqualsAndHashCode(callSuper = false)
539
  public static class PlatformRestrictions extends StripeObject {
×
540
    /**
541
     * Restricts all inbound money movement.
542
     *
543
     * <p>One of {@code restricted}, or {@code unrestricted}.
544
     */
545
    @SerializedName("inbound_flows")
546
    String inboundFlows;
547

548
    /**
549
     * Restricts all outbound money movement.
550
     *
551
     * <p>One of {@code restricted}, or {@code unrestricted}.
552
     */
553
    @SerializedName("outbound_flows")
554
    String outboundFlows;
555
  }
556

557
  /**
558
   * For more details about StatusDetails, please refer to the <a
559
   * href="https://docs.stripe.com/api">API Reference.</a>
560
   */
561
  @Getter
562
  @Setter
563
  @EqualsAndHashCode(callSuper = false)
564
  public static class StatusDetails extends StripeObject {
1✔
565
    /** Details related to the closure of this FinancialAccount. */
566
    @SerializedName("closed")
567
    Closed closed;
568

569
    /**
570
     * For more details about Closed, please refer to the <a href="https://docs.stripe.com/api">API
571
     * Reference.</a>
572
     */
573
    @Getter
574
    @Setter
575
    @EqualsAndHashCode(callSuper = false)
576
    public static class Closed extends StripeObject {
×
577
      /** The array that contains reasons for a FinancialAccount closure. */
578
      @SerializedName("reasons")
579
      List<String> reasons;
580
    }
581
  }
582

583
  @Override
584
  public void setResponseGetter(StripeResponseGetter responseGetter) {
585
    super.setResponseGetter(responseGetter);
1✔
586
    trySetResponseGetter(balance, responseGetter);
1✔
587
    trySetResponseGetter(features, responseGetter);
1✔
588
    trySetResponseGetter(platformRestrictions, responseGetter);
1✔
589
    trySetResponseGetter(statusDetails, responseGetter);
1✔
590
  }
1✔
591
}
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