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

stripe / stripe-java / #16731

10 Jan 2025 10:03PM UTC coverage: 12.334% (-0.006%) from 12.34%
#16731

Pull #1935

github

web-flow
Merge a48a408cc into fc96887fe
Pull Request #1935: Update generated code for beta

1 of 85 new or added lines in 4 files covered. (1.18%)

5882 existing lines in 7 files now uncovered.

18907 of 153294 relevant lines covered (12.33%)

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/model/AccountSession.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.exception.StripeException;
6
import com.stripe.net.ApiRequest;
7
import com.stripe.net.ApiRequestParams;
8
import com.stripe.net.ApiResource;
9
import com.stripe.net.BaseAddress;
10
import com.stripe.net.RequestOptions;
11
import com.stripe.net.StripeResponseGetter;
12
import com.stripe.param.AccountSessionCreateParams;
13
import java.util.Map;
14
import lombok.EqualsAndHashCode;
15
import lombok.Getter;
16
import lombok.Setter;
17

18
/**
19
 * An AccountSession allows a Connect platform to grant access to a connected account in Connect
20
 * embedded components.
21
 *
22
 * <p>We recommend that you create an AccountSession each time you need to display an embedded
23
 * component to your user. Do not save AccountSessions to your database as they expire relatively
24
 * quickly, and cannot be used more than once.
25
 *
26
 * <p>Related guide: <a
27
 * href="https://stripe.com/docs/connect/get-started-connect-embedded-components">Connect embedded
28
 * components</a>
29
 */
30
@Getter
31
@Setter
32
@EqualsAndHashCode(callSuper = false)
33
public class AccountSession extends ApiResource {
×
34
  /** The ID of the account the AccountSession was created for. */
35
  @SerializedName("account")
36
  String account;
37

38
  /**
39
   * The client secret of this AccountSession. Used on the client to set up secure access to the
40
   * given {@code account}.
41
   *
42
   * <p>The client secret can be used to provide access to {@code account} from your frontend. It
43
   * should not be stored, logged, or exposed to anyone other than the connected account. Make sure
44
   * that you have TLS enabled on any page that includes the client secret.
45
   *
46
   * <p>Refer to our docs to <a
47
   * href="https://stripe.com/docs/connect/get-started-connect-embedded-components">setup Connect
48
   * embedded components</a> and learn about how {@code client_secret} should be handled.
49
   */
50
  @SerializedName("client_secret")
51
  String clientSecret;
52

53
  @SerializedName("components")
54
  Components components;
55

56
  /** The timestamp at which this AccountSession will expire. */
57
  @SerializedName("expires_at")
58
  Long expiresAt;
59

60
  /**
61
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
62
   * object exists in test mode.
63
   */
64
  @SerializedName("livemode")
65
  Boolean livemode;
66

67
  /**
68
   * String representing the object's type. Objects of the same type share the same value.
69
   *
70
   * <p>Equal to {@code account_session}.
71
   */
72
  @SerializedName("object")
73
  String object;
74

75
  /**
76
   * Creates a AccountSession object that includes a single-use token that the platform can use on
77
   * their front-end to grant client-side API access.
78
   */
79
  public static AccountSession create(Map<String, Object> params) throws StripeException {
80
    return create(params, (RequestOptions) null);
×
81
  }
82

83
  /**
84
   * Creates a AccountSession object that includes a single-use token that the platform can use on
85
   * their front-end to grant client-side API access.
86
   */
87
  public static AccountSession create(Map<String, Object> params, RequestOptions options)
88
      throws StripeException {
89
    String path = "/v1/account_sessions";
×
90
    ApiRequest request =
×
91
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
92
    return getGlobalResponseGetter().request(request, AccountSession.class);
×
93
  }
94

95
  /**
96
   * Creates a AccountSession object that includes a single-use token that the platform can use on
97
   * their front-end to grant client-side API access.
98
   */
99
  public static AccountSession create(AccountSessionCreateParams params) throws StripeException {
100
    return create(params, (RequestOptions) null);
×
101
  }
102

103
  /**
104
   * Creates a AccountSession object that includes a single-use token that the platform can use on
105
   * their front-end to grant client-side API access.
106
   */
107
  public static AccountSession create(AccountSessionCreateParams params, RequestOptions options)
108
      throws StripeException {
109
    String path = "/v1/account_sessions";
×
110
    ApiResource.checkNullTypedParams(path, params);
×
111
    ApiRequest request =
×
112
        new ApiRequest(
113
            BaseAddress.API,
114
            ApiResource.RequestMethod.POST,
115
            path,
116
            ApiRequestParams.paramsToMap(params),
×
117
            options);
118
    return getGlobalResponseGetter().request(request, AccountSession.class);
×
119
  }
120

121
  /**
122
   * For more details about Components, please refer to the <a
123
   * href="https://docs.stripe.com/api">API Reference.</a>
124
   */
125
  @Getter
126
  @Setter
127
  @EqualsAndHashCode(callSuper = false)
128
  public static class Components extends StripeObject {
×
129
    @SerializedName("account_management")
130
    AccountManagement accountManagement;
131

132
    @SerializedName("account_onboarding")
133
    AccountOnboarding accountOnboarding;
134

135
    @SerializedName("balances")
136
    Balances balances;
137

138
    @SerializedName("capital_financing")
139
    CapitalFinancing capitalFinancing;
140

141
    @SerializedName("capital_financing_application")
142
    CapitalFinancingApplication capitalFinancingApplication;
143

144
    @SerializedName("capital_financing_promotion")
145
    CapitalFinancingPromotion capitalFinancingPromotion;
146

147
    @SerializedName("documents")
148
    Documents documents;
149

150
    @SerializedName("financial_account")
151
    FinancialAccount financialAccount;
152

153
    @SerializedName("financial_account_transactions")
154
    FinancialAccountTransactions financialAccountTransactions;
155

156
    @SerializedName("issuing_card")
157
    IssuingCard issuingCard;
158

159
    @SerializedName("issuing_cards_list")
160
    IssuingCardsList issuingCardsList;
161

162
    @SerializedName("notification_banner")
163
    NotificationBanner notificationBanner;
164

165
    @SerializedName("payment_details")
166
    PaymentDetails paymentDetails;
167

168
    @SerializedName("payments")
169
    Payments payments;
170

171
    @SerializedName("payouts")
172
    Payouts payouts;
173

174
    @SerializedName("payouts_list")
175
    PayoutsList payoutsList;
176

177
    @SerializedName("tax_registrations")
178
    TaxRegistrations taxRegistrations;
179

180
    @SerializedName("tax_settings")
181
    TaxSettings taxSettings;
182

183
    /**
184
     * For more details about AccountManagement, please refer to the <a
185
     * href="https://docs.stripe.com/api">API Reference.</a>
186
     */
187
    @Getter
188
    @Setter
189
    @EqualsAndHashCode(callSuper = false)
190
    public static class AccountManagement extends StripeObject {
×
191
      /** Whether the embedded component is enabled. */
192
      @SerializedName("enabled")
193
      Boolean enabled;
194

195
      @SerializedName("features")
196
      Features features;
197

198
      /**
199
       * For more details about Features, please refer to the <a
200
       * href="https://docs.stripe.com/api">API Reference.</a>
201
       */
202
      @Getter
203
      @Setter
204
      @EqualsAndHashCode(callSuper = false)
205
      public static class Features extends StripeObject {
×
206
        /**
207
         * Disables Stripe user authentication for this embedded component. This value can only be
208
         * true for accounts where {@code controller.requirement_collection} is {@code application}.
209
         * The default value is the opposite of the {@code external_account_collection} value. For
210
         * example, if you don’t set {@code external_account_collection}, it defaults to true and
211
         * {@code disable_stripe_user_authentication} defaults to false.
212
         */
213
        @SerializedName("disable_stripe_user_authentication")
214
        Boolean disableStripeUserAuthentication;
215

216
        /**
217
         * Whether to allow platforms to control bank account collection for their connected
218
         * accounts. This feature can only be false for accounts where you’re responsible for
219
         * collecting updated information when requirements are due or change, like custom accounts.
220
         * Otherwise, bank account collection is determined by compliance requirements. The default
221
         * value for this feature is {@code true}.
222
         */
223
        @SerializedName("external_account_collection")
224
        Boolean externalAccountCollection;
225
      }
226
    }
227

228
    /**
229
     * For more details about AccountOnboarding, please refer to the <a
230
     * href="https://docs.stripe.com/api">API Reference.</a>
231
     */
232
    @Getter
233
    @Setter
234
    @EqualsAndHashCode(callSuper = false)
235
    public static class AccountOnboarding extends StripeObject {
×
236
      /** Whether the embedded component is enabled. */
237
      @SerializedName("enabled")
238
      Boolean enabled;
239

240
      @SerializedName("features")
241
      Features features;
242

243
      /**
244
       * For more details about Features, please refer to the <a
245
       * href="https://docs.stripe.com/api">API Reference.</a>
246
       */
247
      @Getter
248
      @Setter
249
      @EqualsAndHashCode(callSuper = false)
250
      public static class Features extends StripeObject {
×
251
        /**
252
         * Disables Stripe user authentication for this embedded component. This value can only be
253
         * true for accounts where {@code controller.requirement_collection} is {@code application}.
254
         * The default value is the opposite of the {@code external_account_collection} value. For
255
         * example, if you don’t set {@code external_account_collection}, it defaults to true and
256
         * {@code disable_stripe_user_authentication} defaults to false.
257
         */
258
        @SerializedName("disable_stripe_user_authentication")
259
        Boolean disableStripeUserAuthentication;
260

261
        /**
262
         * Whether to allow platforms to control bank account collection for their connected
263
         * accounts. This feature can only be false for accounts where you’re responsible for
264
         * collecting updated information when requirements are due or change, like custom accounts.
265
         * Otherwise, bank account collection is determined by compliance requirements. The default
266
         * value for this feature is {@code true}.
267
         */
268
        @SerializedName("external_account_collection")
269
        Boolean externalAccountCollection;
270
      }
271
    }
272

273
    /**
274
     * For more details about Balances, please refer to the <a
275
     * href="https://docs.stripe.com/api">API Reference.</a>
276
     */
277
    @Getter
278
    @Setter
279
    @EqualsAndHashCode(callSuper = false)
280
    public static class Balances extends StripeObject {
×
281
      /** Whether the embedded component is enabled. */
282
      @SerializedName("enabled")
283
      Boolean enabled;
284

285
      @SerializedName("features")
286
      Features features;
287

288
      /**
289
       * For more details about Features, please refer to the <a
290
       * href="https://docs.stripe.com/api">API Reference.</a>
291
       */
292
      @Getter
293
      @Setter
294
      @EqualsAndHashCode(callSuper = false)
295
      public static class Features extends StripeObject {
×
296
        /**
297
         * Disables Stripe user authentication for this embedded component. This value can only be
298
         * true for accounts where {@code controller.requirement_collection} is {@code application}.
299
         * The default value is the opposite of the {@code external_account_collection} value. For
300
         * example, if you don’t set {@code external_account_collection}, it defaults to true and
301
         * {@code disable_stripe_user_authentication} defaults to false.
302
         */
303
        @SerializedName("disable_stripe_user_authentication")
304
        Boolean disableStripeUserAuthentication;
305

306
        /**
307
         * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns
308
         * Loss Liability, default {@code false} otherwise.
309
         */
310
        @SerializedName("edit_payout_schedule")
311
        Boolean editPayoutSchedule;
312

313
        /**
314
         * Whether to allow platforms to control bank account collection for their connected
315
         * accounts. This feature can only be false for accounts where you’re responsible for
316
         * collecting updated information when requirements are due or change, like custom accounts.
317
         * Otherwise, bank account collection is determined by compliance requirements. The default
318
         * value for this feature is {@code true}.
319
         */
320
        @SerializedName("external_account_collection")
321
        Boolean externalAccountCollection;
322

323
        /**
324
         * Whether to allow creation of instant payouts. Default {@code true} when Stripe owns Loss
325
         * Liability, default {@code false} otherwise.
326
         */
327
        @SerializedName("instant_payouts")
328
        Boolean instantPayouts;
329

330
        /**
331
         * Whether to allow creation of standard payouts. Default {@code true} when Stripe owns Loss
332
         * Liability, default {@code false} otherwise.
333
         */
334
        @SerializedName("standard_payouts")
335
        Boolean standardPayouts;
336
      }
337
    }
338

339
    /**
340
     * For more details about CapitalFinancing, please refer to the <a
341
     * href="https://docs.stripe.com/api">API Reference.</a>
342
     */
343
    @Getter
344
    @Setter
345
    @EqualsAndHashCode(callSuper = false)
346
    public static class CapitalFinancing extends StripeObject {
×
347
      /** Whether the embedded component is enabled. */
348
      @SerializedName("enabled")
349
      Boolean enabled;
350

351
      @SerializedName("features")
352
      Features features;
353

354
      /**
355
       * For more details about Features, please refer to the <a
356
       * href="https://docs.stripe.com/api">API Reference.</a>
357
       */
358
      @Getter
359
      @Setter
360
      @EqualsAndHashCode(callSuper = false)
361
      public static class Features extends StripeObject {}
×
362
    }
363

364
    /**
365
     * For more details about CapitalFinancingApplication, please refer to the <a
366
     * href="https://docs.stripe.com/api">API Reference.</a>
367
     */
368
    @Getter
369
    @Setter
370
    @EqualsAndHashCode(callSuper = false)
371
    public static class CapitalFinancingApplication extends StripeObject {
×
372
      /** Whether the embedded component is enabled. */
373
      @SerializedName("enabled")
374
      Boolean enabled;
375

376
      @SerializedName("features")
377
      Features features;
378

379
      /**
380
       * For more details about Features, please refer to the <a
381
       * href="https://docs.stripe.com/api">API Reference.</a>
382
       */
383
      @Getter
384
      @Setter
385
      @EqualsAndHashCode(callSuper = false)
386
      public static class Features extends StripeObject {}
×
387
    }
388

389
    /**
390
     * For more details about CapitalFinancingPromotion, please refer to the <a
391
     * href="https://docs.stripe.com/api">API Reference.</a>
392
     */
393
    @Getter
394
    @Setter
395
    @EqualsAndHashCode(callSuper = false)
396
    public static class CapitalFinancingPromotion extends StripeObject {
×
397
      /** Whether the embedded component is enabled. */
398
      @SerializedName("enabled")
399
      Boolean enabled;
400

401
      @SerializedName("features")
402
      Features features;
403

404
      /**
405
       * For more details about Features, please refer to the <a
406
       * href="https://docs.stripe.com/api">API Reference.</a>
407
       */
408
      @Getter
409
      @Setter
410
      @EqualsAndHashCode(callSuper = false)
411
      public static class Features extends StripeObject {}
×
412
    }
413

414
    /**
415
     * For more details about Documents, please refer to the <a
416
     * href="https://docs.stripe.com/api">API Reference.</a>
417
     */
418
    @Getter
419
    @Setter
420
    @EqualsAndHashCode(callSuper = false)
421
    public static class Documents extends StripeObject {
×
422
      /** Whether the embedded component is enabled. */
423
      @SerializedName("enabled")
424
      Boolean enabled;
425

426
      @SerializedName("features")
427
      Features features;
428

429
      /**
430
       * For more details about Features, please refer to the <a
431
       * href="https://docs.stripe.com/api">API Reference.</a>
432
       */
433
      @Getter
434
      @Setter
435
      @EqualsAndHashCode(callSuper = false)
436
      public static class Features extends StripeObject {}
×
437
    }
438

439
    /**
440
     * For more details about FinancialAccount, please refer to the <a
441
     * href="https://docs.stripe.com/api">API Reference.</a>
442
     */
443
    @Getter
444
    @Setter
445
    @EqualsAndHashCode(callSuper = false)
NEW
446
    public static class FinancialAccount extends StripeObject {
×
447
      /** Whether the embedded component is enabled. */
448
      @SerializedName("enabled")
449
      Boolean enabled;
450

451
      @SerializedName("features")
452
      Features features;
453

454
      /**
455
       * For more details about Features, please refer to the <a
456
       * href="https://docs.stripe.com/api">API Reference.</a>
457
       */
458
      @Getter
459
      @Setter
460
      @EqualsAndHashCode(callSuper = false)
NEW
461
      public static class Features extends StripeObject {
×
462
        /**
463
         * Disables Stripe user authentication for this embedded component. This value can only be
464
         * true for accounts where {@code controller.requirement_collection} is {@code application}.
465
         * The default value is the opposite of the {@code external_account_collection} value. For
466
         * example, if you don’t set {@code external_account_collection}, it defaults to true and
467
         * {@code disable_stripe_user_authentication} defaults to false.
468
         */
469
        @SerializedName("disable_stripe_user_authentication")
470
        Boolean disableStripeUserAuthentication;
471

472
        /** Whether to allow external accounts to be linked for money transfer. */
473
        @SerializedName("external_account_collection")
474
        Boolean externalAccountCollection;
475

476
        /** Whether to allow sending money. */
477
        @SerializedName("send_money")
478
        Boolean sendMoney;
479

480
        /** Whether to allow transferring balance. */
481
        @SerializedName("transfer_balance")
482
        Boolean transferBalance;
483
      }
484
    }
485

486
    /**
487
     * For more details about FinancialAccountTransactions, please refer to the <a
488
     * href="https://docs.stripe.com/api">API Reference.</a>
489
     */
490
    @Getter
491
    @Setter
492
    @EqualsAndHashCode(callSuper = false)
NEW
493
    public static class FinancialAccountTransactions extends StripeObject {
×
494
      /** Whether the embedded component is enabled. */
495
      @SerializedName("enabled")
496
      Boolean enabled;
497

498
      @SerializedName("features")
499
      Features features;
500

501
      /**
502
       * For more details about Features, please refer to the <a
503
       * href="https://docs.stripe.com/api">API Reference.</a>
504
       */
505
      @Getter
506
      @Setter
507
      @EqualsAndHashCode(callSuper = false)
NEW
508
      public static class Features extends StripeObject {
×
509
        /** Whether to allow card spend dispute management features. */
510
        @SerializedName("card_spend_dispute_management")
511
        Boolean cardSpendDisputeManagement;
512
      }
513
    }
514

515
    /**
516
     * For more details about IssuingCard, please refer to the <a
517
     * href="https://docs.stripe.com/api">API Reference.</a>
518
     */
519
    @Getter
520
    @Setter
521
    @EqualsAndHashCode(callSuper = false)
NEW
522
    public static class IssuingCard extends StripeObject {
×
523
      /** Whether the embedded component is enabled. */
524
      @SerializedName("enabled")
525
      Boolean enabled;
526

527
      @SerializedName("features")
528
      Features features;
529

530
      /**
531
       * For more details about Features, please refer to the <a
532
       * href="https://docs.stripe.com/api">API Reference.</a>
533
       */
534
      @Getter
535
      @Setter
536
      @EqualsAndHashCode(callSuper = false)
NEW
537
      public static class Features extends StripeObject {
×
538
        /** Whether to allow card management features. */
539
        @SerializedName("card_management")
540
        Boolean cardManagement;
541

542
        /** Whether to allow card spend dispute management features. */
543
        @SerializedName("card_spend_dispute_management")
544
        Boolean cardSpendDisputeManagement;
545

546
        /** Whether to allow cardholder management features. */
547
        @SerializedName("cardholder_management")
548
        Boolean cardholderManagement;
549

550
        /** Whether to allow spend control management features. */
551
        @SerializedName("spend_control_management")
552
        Boolean spendControlManagement;
553
      }
554
    }
555

556
    /**
557
     * For more details about IssuingCardsList, please refer to the <a
558
     * href="https://docs.stripe.com/api">API Reference.</a>
559
     */
560
    @Getter
561
    @Setter
562
    @EqualsAndHashCode(callSuper = false)
NEW
563
    public static class IssuingCardsList extends StripeObject {
×
564
      /** Whether the embedded component is enabled. */
565
      @SerializedName("enabled")
566
      Boolean enabled;
567

568
      @SerializedName("features")
569
      Features features;
570

571
      /**
572
       * For more details about Features, please refer to the <a
573
       * href="https://docs.stripe.com/api">API Reference.</a>
574
       */
575
      @Getter
576
      @Setter
577
      @EqualsAndHashCode(callSuper = false)
NEW
578
      public static class Features extends StripeObject {
×
579
        /** Whether to allow card management features. */
580
        @SerializedName("card_management")
581
        Boolean cardManagement;
582

583
        /** Whether to allow card spend dispute management features. */
584
        @SerializedName("card_spend_dispute_management")
585
        Boolean cardSpendDisputeManagement;
586

587
        /** Whether to allow cardholder management features. */
588
        @SerializedName("cardholder_management")
589
        Boolean cardholderManagement;
590

591
        /**
592
         * Disables Stripe user authentication for this embedded component. This feature can only be
593
         * false for accounts where you’re responsible for collecting updated information when
594
         * requirements are due or change, like custom accounts.
595
         */
596
        @SerializedName("disable_stripe_user_authentication")
597
        Boolean disableStripeUserAuthentication;
598

599
        /** Whether to allow spend control management features. */
600
        @SerializedName("spend_control_management")
601
        Boolean spendControlManagement;
602
      }
603
    }
604

605
    /**
606
     * For more details about NotificationBanner, please refer to the <a
607
     * href="https://docs.stripe.com/api">API Reference.</a>
608
     */
609
    @Getter
610
    @Setter
611
    @EqualsAndHashCode(callSuper = false)
612
    public static class NotificationBanner extends StripeObject {
×
613
      /** Whether the embedded component is enabled. */
614
      @SerializedName("enabled")
615
      Boolean enabled;
616

617
      @SerializedName("features")
618
      Features features;
619

620
      /**
621
       * For more details about Features, please refer to the <a
622
       * href="https://docs.stripe.com/api">API Reference.</a>
623
       */
624
      @Getter
625
      @Setter
626
      @EqualsAndHashCode(callSuper = false)
627
      public static class Features extends StripeObject {
×
628
        /**
629
         * Disables Stripe user authentication for this embedded component. This value can only be
630
         * true for accounts where {@code controller.requirement_collection} is {@code application}.
631
         * The default value is the opposite of the {@code external_account_collection} value. For
632
         * example, if you don’t set {@code external_account_collection}, it defaults to true and
633
         * {@code disable_stripe_user_authentication} defaults to false.
634
         */
635
        @SerializedName("disable_stripe_user_authentication")
636
        Boolean disableStripeUserAuthentication;
637

638
        /**
639
         * Whether to allow platforms to control bank account collection for their connected
640
         * accounts. This feature can only be false for accounts where you’re responsible for
641
         * collecting updated information when requirements are due or change, like custom accounts.
642
         * Otherwise, bank account collection is determined by compliance requirements. The default
643
         * value for this feature is {@code true}.
644
         */
645
        @SerializedName("external_account_collection")
646
        Boolean externalAccountCollection;
647
      }
648
    }
649

650
    /**
651
     * For more details about PaymentDetails, please refer to the <a
652
     * href="https://docs.stripe.com/api">API Reference.</a>
653
     */
654
    @Getter
655
    @Setter
656
    @EqualsAndHashCode(callSuper = false)
657
    public static class PaymentDetails extends StripeObject {
×
658
      /** Whether the embedded component is enabled. */
659
      @SerializedName("enabled")
660
      Boolean enabled;
661

662
      @SerializedName("features")
663
      Features features;
664

665
      /**
666
       * For more details about Features, please refer to the <a
667
       * href="https://docs.stripe.com/api">API Reference.</a>
668
       */
669
      @Getter
670
      @Setter
671
      @EqualsAndHashCode(callSuper = false)
672
      public static class Features extends StripeObject {
×
673
        /**
674
         * Whether to allow capturing and cancelling payment intents. This is {@code true} by
675
         * default.
676
         */
677
        @SerializedName("capture_payments")
678
        Boolean capturePayments;
679

680
        /**
681
         * Whether to allow connected accounts to manage destination charges that are created on
682
         * behalf of them. This is {@code false} by default.
683
         */
684
        @SerializedName("destination_on_behalf_of_charge_management")
685
        Boolean destinationOnBehalfOfChargeManagement;
686

687
        /**
688
         * Whether to allow responding to disputes, including submitting evidence and accepting
689
         * disputes. This is {@code true} by default.
690
         */
691
        @SerializedName("dispute_management")
692
        Boolean disputeManagement;
693

694
        /** Whether to allow sending refunds. This is {@code true} by default. */
695
        @SerializedName("refund_management")
696
        Boolean refundManagement;
697
      }
698
    }
699

700
    /**
701
     * For more details about Payments, please refer to the <a
702
     * href="https://docs.stripe.com/api">API Reference.</a>
703
     */
704
    @Getter
705
    @Setter
706
    @EqualsAndHashCode(callSuper = false)
707
    public static class Payments extends StripeObject {
×
708
      /** Whether the embedded component is enabled. */
709
      @SerializedName("enabled")
710
      Boolean enabled;
711

712
      @SerializedName("features")
713
      Features features;
714

715
      /**
716
       * For more details about Features, please refer to the <a
717
       * href="https://docs.stripe.com/api">API Reference.</a>
718
       */
719
      @Getter
720
      @Setter
721
      @EqualsAndHashCode(callSuper = false)
722
      public static class Features extends StripeObject {
×
723
        /**
724
         * Whether to allow capturing and cancelling payment intents. This is {@code true} by
725
         * default.
726
         */
727
        @SerializedName("capture_payments")
728
        Boolean capturePayments;
729

730
        /**
731
         * Whether to allow connected accounts to manage destination charges that are created on
732
         * behalf of them. This is {@code false} by default.
733
         */
734
        @SerializedName("destination_on_behalf_of_charge_management")
735
        Boolean destinationOnBehalfOfChargeManagement;
736

737
        /**
738
         * Whether to allow responding to disputes, including submitting evidence and accepting
739
         * disputes. This is {@code true} by default.
740
         */
741
        @SerializedName("dispute_management")
742
        Boolean disputeManagement;
743

744
        /** Whether to allow sending refunds. This is {@code true} by default. */
745
        @SerializedName("refund_management")
746
        Boolean refundManagement;
747
      }
748
    }
749

750
    /**
751
     * For more details about Payouts, please refer to the <a href="https://docs.stripe.com/api">API
752
     * Reference.</a>
753
     */
754
    @Getter
755
    @Setter
756
    @EqualsAndHashCode(callSuper = false)
757
    public static class Payouts extends StripeObject {
×
758
      /** Whether the embedded component is enabled. */
759
      @SerializedName("enabled")
760
      Boolean enabled;
761

762
      @SerializedName("features")
763
      Features features;
764

765
      /**
766
       * For more details about Features, please refer to the <a
767
       * href="https://docs.stripe.com/api">API Reference.</a>
768
       */
769
      @Getter
770
      @Setter
771
      @EqualsAndHashCode(callSuper = false)
772
      public static class Features extends StripeObject {
×
773
        /**
774
         * Disables Stripe user authentication for this embedded component. This value can only be
775
         * true for accounts where {@code controller.requirement_collection} is {@code application}.
776
         * The default value is the opposite of the {@code external_account_collection} value. For
777
         * example, if you don’t set {@code external_account_collection}, it defaults to true and
778
         * {@code disable_stripe_user_authentication} defaults to false.
779
         */
780
        @SerializedName("disable_stripe_user_authentication")
781
        Boolean disableStripeUserAuthentication;
782

783
        /**
784
         * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns
785
         * Loss Liability, default {@code false} otherwise.
786
         */
787
        @SerializedName("edit_payout_schedule")
788
        Boolean editPayoutSchedule;
789

790
        /**
791
         * Whether to allow platforms to control bank account collection for their connected
792
         * accounts. This feature can only be false for accounts where you’re responsible for
793
         * collecting updated information when requirements are due or change, like custom accounts.
794
         * Otherwise, bank account collection is determined by compliance requirements. The default
795
         * value for this feature is {@code true}.
796
         */
797
        @SerializedName("external_account_collection")
798
        Boolean externalAccountCollection;
799

800
        /**
801
         * Whether to allow creation of instant payouts. Default {@code true} when Stripe owns Loss
802
         * Liability, default {@code false} otherwise.
803
         */
804
        @SerializedName("instant_payouts")
805
        Boolean instantPayouts;
806

807
        /**
808
         * Whether to allow creation of standard payouts. Default {@code true} when Stripe owns Loss
809
         * Liability, default {@code false} otherwise.
810
         */
811
        @SerializedName("standard_payouts")
812
        Boolean standardPayouts;
813
      }
814
    }
815

816
    /**
817
     * For more details about PayoutsList, please refer to the <a
818
     * href="https://docs.stripe.com/api">API Reference.</a>
819
     */
820
    @Getter
821
    @Setter
822
    @EqualsAndHashCode(callSuper = false)
823
    public static class PayoutsList extends StripeObject {
×
824
      /** Whether the embedded component is enabled. */
825
      @SerializedName("enabled")
826
      Boolean enabled;
827

828
      @SerializedName("features")
829
      Features features;
830

831
      /**
832
       * For more details about Features, please refer to the <a
833
       * href="https://docs.stripe.com/api">API Reference.</a>
834
       */
835
      @Getter
836
      @Setter
837
      @EqualsAndHashCode(callSuper = false)
838
      public static class Features extends StripeObject {}
×
839
    }
840

841
    /**
842
     * For more details about TaxRegistrations, please refer to the <a
843
     * href="https://docs.stripe.com/api">API Reference.</a>
844
     */
845
    @Getter
846
    @Setter
847
    @EqualsAndHashCode(callSuper = false)
848
    public static class TaxRegistrations extends StripeObject {
×
849
      /** Whether the embedded component is enabled. */
850
      @SerializedName("enabled")
851
      Boolean enabled;
852

853
      @SerializedName("features")
854
      Features features;
855

856
      /**
857
       * For more details about Features, please refer to the <a
858
       * href="https://docs.stripe.com/api">API Reference.</a>
859
       */
860
      @Getter
861
      @Setter
862
      @EqualsAndHashCode(callSuper = false)
863
      public static class Features extends StripeObject {}
×
864
    }
865

866
    /**
867
     * For more details about TaxSettings, please refer to the <a
868
     * href="https://docs.stripe.com/api">API Reference.</a>
869
     */
870
    @Getter
871
    @Setter
872
    @EqualsAndHashCode(callSuper = false)
873
    public static class TaxSettings extends StripeObject {
×
874
      /** Whether the embedded component is enabled. */
875
      @SerializedName("enabled")
876
      Boolean enabled;
877

878
      @SerializedName("features")
879
      Features features;
880

881
      /**
882
       * For more details about Features, please refer to the <a
883
       * href="https://docs.stripe.com/api">API Reference.</a>
884
       */
885
      @Getter
886
      @Setter
887
      @EqualsAndHashCode(callSuper = false)
888
      public static class Features extends StripeObject {}
×
889
    }
890
  }
891

892
  @Override
893
  public void setResponseGetter(StripeResponseGetter responseGetter) {
894
    super.setResponseGetter(responseGetter);
×
895
    trySetResponseGetter(components, responseGetter);
×
896
  }
×
897
}
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