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

stripe / stripe-java / #16599

29 Oct 2024 11:04PM UTC coverage: 12.519% (-0.1%) from 12.62%
#16599

push

github

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

Update generated code for beta

40 of 1580 new or added lines in 51 files covered. (2.53%)

19 existing lines in 15 files now uncovered.

18843 of 150513 relevant lines covered (12.52%)

0.13 hits per line

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

67.2
/src/main/java/com/stripe/model/PaymentMethodConfiguration.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.PaymentMethodConfigurationCreateParams;
13
import com.stripe.param.PaymentMethodConfigurationListParams;
14
import com.stripe.param.PaymentMethodConfigurationRetrieveParams;
15
import com.stripe.param.PaymentMethodConfigurationUpdateParams;
16
import java.util.Map;
17
import lombok.EqualsAndHashCode;
18
import lombok.Getter;
19
import lombok.Setter;
20

21
/**
22
 * PaymentMethodConfigurations control which payment methods are displayed to your customers when
23
 * you don't explicitly specify payment method types. You can have multiple configurations with
24
 * different sets of payment methods for different scenarios.
25
 *
26
 * <p>There are two types of PaymentMethodConfigurations. Which is used depends on the <a
27
 * href="https://stripe.com/docs/connect/charges">charge type</a>:
28
 *
29
 * <p><strong>Direct</strong> configurations apply to payments created on your account, including
30
 * Connect destination charges, Connect separate charges and transfers, and payments not involving
31
 * Connect.
32
 *
33
 * <p><strong>Child</strong> configurations apply to payments created on your connected accounts
34
 * using direct charges, and charges with the on_behalf_of parameter.
35
 *
36
 * <p>Child configurations have a {@code parent} that sets default values and controls which
37
 * settings connected accounts may override. You can specify a parent ID at payment time, and Stripe
38
 * will automatically resolve the connected account’s associated child configuration. Parent
39
 * configurations are <a
40
 * href="https://dashboard.stripe.com/settings/payment_methods/connected_accounts">managed in the
41
 * dashboard</a> and are not available in this API.
42
 *
43
 * <p>Related guides: - <a
44
 * href="https://stripe.com/docs/connect/payment-method-configurations">Payment Method
45
 * Configurations API</a> - <a
46
 * href="https://stripe.com/docs/payments/multiple-payment-method-configs">Multiple configurations
47
 * on dynamic payment methods</a> - <a
48
 * href="https://stripe.com/docs/connect/multiple-payment-method-configurations">Multiple
49
 * configurations for your Connect accounts</a>
50
 */
51
@Getter
52
@Setter
53
@EqualsAndHashCode(callSuper = false)
54
public class PaymentMethodConfiguration extends ApiResource implements HasId {
1✔
55
  @SerializedName("acss_debit")
56
  AcssDebit acssDebit;
57

58
  /** Whether the configuration can be used for new payments. */
59
  @SerializedName("active")
60
  Boolean active;
61

62
  @SerializedName("affirm")
63
  Affirm affirm;
64

65
  @SerializedName("afterpay_clearpay")
66
  AfterpayClearpay afterpayClearpay;
67

68
  @SerializedName("alipay")
69
  Alipay alipay;
70

71
  @SerializedName("alma")
72
  Alma alma;
73

74
  @SerializedName("amazon_pay")
75
  AmazonPay amazonPay;
76

77
  @SerializedName("apple_pay")
78
  ApplePay applePay;
79

80
  /** For child configs, the Connect application associated with the configuration. */
81
  @SerializedName("application")
82
  String application;
83

84
  @SerializedName("au_becs_debit")
85
  AuBecsDebit auBecsDebit;
86

87
  @SerializedName("bacs_debit")
88
  BacsDebit bacsDebit;
89

90
  @SerializedName("bancontact")
91
  Bancontact bancontact;
92

93
  @SerializedName("blik")
94
  Blik blik;
95

96
  @SerializedName("boleto")
97
  Boleto boleto;
98

99
  @SerializedName("card")
100
  Card card;
101

102
  @SerializedName("cartes_bancaires")
103
  CartesBancaires cartesBancaires;
104

105
  @SerializedName("cashapp")
106
  Cashapp cashapp;
107

108
  @SerializedName("customer_balance")
109
  CustomerBalance customerBalance;
110

111
  @SerializedName("eps")
112
  Eps eps;
113

114
  @SerializedName("fpx")
115
  Fpx fpx;
116

117
  @SerializedName("giropay")
118
  Giropay giropay;
119

120
  @SerializedName("google_pay")
121
  GooglePay googlePay;
122

123
  @SerializedName("gopay")
124
  Gopay gopay;
125

126
  @SerializedName("grabpay")
127
  Grabpay grabpay;
128

129
  /** Unique identifier for the object. */
130
  @Getter(onMethod_ = {@Override})
131
  @SerializedName("id")
132
  String id;
133

134
  @SerializedName("id_bank_transfer")
135
  IdBankTransfer idBankTransfer;
136

137
  @SerializedName("ideal")
138
  Ideal ideal;
139

140
  /** The default configuration is used whenever a payment method configuration is not specified. */
141
  @SerializedName("is_default")
142
  Boolean isDefault;
143

144
  @SerializedName("jcb")
145
  Jcb jcb;
146

147
  @SerializedName("klarna")
148
  Klarna klarna;
149

150
  @SerializedName("konbini")
151
  Konbini konbini;
152

153
  @SerializedName("link")
154
  Link link;
155

156
  /**
157
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
158
   * object exists in test mode.
159
   */
160
  @SerializedName("livemode")
161
  Boolean livemode;
162

163
  @SerializedName("mobilepay")
164
  Mobilepay mobilepay;
165

166
  @SerializedName("multibanco")
167
  Multibanco multibanco;
168

169
  /** The configuration's name. */
170
  @SerializedName("name")
171
  String name;
172

173
  /**
174
   * String representing the object's type. Objects of the same type share the same value.
175
   *
176
   * <p>Equal to {@code payment_method_configuration}.
177
   */
178
  @SerializedName("object")
179
  String object;
180

181
  @SerializedName("oxxo")
182
  Oxxo oxxo;
183

184
  @SerializedName("p24")
185
  P24 p24;
186

187
  /** For child configs, the configuration's parent configuration. */
188
  @SerializedName("parent")
189
  String parent;
190

191
  @SerializedName("paynow")
192
  Paynow paynow;
193

194
  @SerializedName("paypal")
195
  Paypal paypal;
196

197
  @SerializedName("payto")
198
  Payto payto;
199

200
  @SerializedName("promptpay")
201
  Promptpay promptpay;
202

203
  @SerializedName("qris")
204
  Qris qris;
205

206
  @SerializedName("revolut_pay")
207
  RevolutPay revolutPay;
208

209
  @SerializedName("sepa_debit")
210
  SepaDebit sepaDebit;
211

212
  @SerializedName("shopeepay")
213
  Shopeepay shopeepay;
214

215
  @SerializedName("sofort")
216
  Sofort sofort;
217

218
  @SerializedName("swish")
219
  Swish swish;
220

221
  @SerializedName("twint")
222
  Twint twint;
223

224
  @SerializedName("us_bank_account")
225
  UsBankAccount usBankAccount;
226

227
  @SerializedName("wechat_pay")
228
  WechatPay wechatPay;
229

230
  @SerializedName("zip")
231
  Zip zip;
232

233
  /** Creates a payment method configuration. */
234
  public static PaymentMethodConfiguration create(Map<String, Object> params)
235
      throws StripeException {
236
    return create(params, (RequestOptions) null);
×
237
  }
238

239
  /** Creates a payment method configuration. */
240
  public static PaymentMethodConfiguration create(
241
      Map<String, Object> params, RequestOptions options) throws StripeException {
242
    String path = "/v1/payment_method_configurations";
×
243
    ApiRequest request =
×
244
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
245
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
×
246
  }
247

248
  /** Creates a payment method configuration. */
249
  public static PaymentMethodConfiguration create(PaymentMethodConfigurationCreateParams params)
250
      throws StripeException {
251
    return create(params, (RequestOptions) null);
1✔
252
  }
253

254
  /** Creates a payment method configuration. */
255
  public static PaymentMethodConfiguration create(
256
      PaymentMethodConfigurationCreateParams params, RequestOptions options)
257
      throws StripeException {
258
    String path = "/v1/payment_method_configurations";
1✔
259
    ApiResource.checkNullTypedParams(path, params);
1✔
260
    ApiRequest request =
1✔
261
        new ApiRequest(
262
            BaseAddress.API,
263
            ApiResource.RequestMethod.POST,
264
            path,
265
            ApiRequestParams.paramsToMap(params),
1✔
266
            options);
267
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
1✔
268
  }
269

270
  /** List payment method configurations. */
271
  public static PaymentMethodConfigurationCollection list(Map<String, Object> params)
272
      throws StripeException {
273
    return list(params, (RequestOptions) null);
×
274
  }
275

276
  /** List payment method configurations. */
277
  public static PaymentMethodConfigurationCollection list(
278
      Map<String, Object> params, RequestOptions options) throws StripeException {
279
    String path = "/v1/payment_method_configurations";
×
280
    ApiRequest request =
×
281
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
282
    return getGlobalResponseGetter().request(request, PaymentMethodConfigurationCollection.class);
×
283
  }
284

285
  /** List payment method configurations. */
286
  public static PaymentMethodConfigurationCollection list(
287
      PaymentMethodConfigurationListParams params) throws StripeException {
288
    return list(params, (RequestOptions) null);
1✔
289
  }
290

291
  /** List payment method configurations. */
292
  public static PaymentMethodConfigurationCollection list(
293
      PaymentMethodConfigurationListParams params, RequestOptions options) throws StripeException {
294
    String path = "/v1/payment_method_configurations";
1✔
295
    ApiResource.checkNullTypedParams(path, params);
1✔
296
    ApiRequest request =
1✔
297
        new ApiRequest(
298
            BaseAddress.API,
299
            ApiResource.RequestMethod.GET,
300
            path,
301
            ApiRequestParams.paramsToMap(params),
1✔
302
            options);
303
    return getGlobalResponseGetter().request(request, PaymentMethodConfigurationCollection.class);
1✔
304
  }
305

306
  /** Retrieve payment method configuration. */
307
  public static PaymentMethodConfiguration retrieve(String configuration) throws StripeException {
308
    return retrieve(configuration, (Map<String, Object>) null, (RequestOptions) null);
1✔
309
  }
310

311
  /** Retrieve payment method configuration. */
312
  public static PaymentMethodConfiguration retrieve(String configuration, RequestOptions options)
313
      throws StripeException {
314
    return retrieve(configuration, (Map<String, Object>) null, options);
×
315
  }
316

317
  /** Retrieve payment method configuration. */
318
  public static PaymentMethodConfiguration retrieve(
319
      String configuration, Map<String, Object> params, RequestOptions options)
320
      throws StripeException {
321
    String path =
1✔
322
        String.format(
1✔
323
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(configuration));
1✔
324
    ApiRequest request =
1✔
325
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
326
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
1✔
327
  }
328

329
  /** Retrieve payment method configuration. */
330
  public static PaymentMethodConfiguration retrieve(
331
      String configuration, PaymentMethodConfigurationRetrieveParams params, RequestOptions options)
332
      throws StripeException {
333
    String path =
×
334
        String.format(
×
335
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(configuration));
×
336
    ApiResource.checkNullTypedParams(path, params);
×
337
    ApiRequest request =
×
338
        new ApiRequest(
339
            BaseAddress.API,
340
            ApiResource.RequestMethod.GET,
341
            path,
342
            ApiRequestParams.paramsToMap(params),
×
343
            options);
344
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
×
345
  }
346

347
  /** Update payment method configuration. */
348
  public PaymentMethodConfiguration update(Map<String, Object> params) throws StripeException {
349
    return update(params, (RequestOptions) null);
×
350
  }
351

352
  /** Update payment method configuration. */
353
  public PaymentMethodConfiguration update(Map<String, Object> params, RequestOptions options)
354
      throws StripeException {
355
    String path =
×
356
        String.format(
×
357
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(this.getId()));
×
358
    ApiRequest request =
×
359
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
360
    return getResponseGetter().request(request, PaymentMethodConfiguration.class);
×
361
  }
362

363
  /** Update payment method configuration. */
364
  public PaymentMethodConfiguration update(PaymentMethodConfigurationUpdateParams params)
365
      throws StripeException {
366
    return update(params, (RequestOptions) null);
1✔
367
  }
368

369
  /** Update payment method configuration. */
370
  public PaymentMethodConfiguration update(
371
      PaymentMethodConfigurationUpdateParams params, RequestOptions options)
372
      throws StripeException {
373
    String path =
1✔
374
        String.format(
1✔
375
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(this.getId()));
1✔
376
    ApiResource.checkNullTypedParams(path, params);
1✔
377
    ApiRequest request =
1✔
378
        new ApiRequest(
379
            BaseAddress.API,
380
            ApiResource.RequestMethod.POST,
381
            path,
382
            ApiRequestParams.paramsToMap(params),
1✔
383
            options);
384
    return getResponseGetter().request(request, PaymentMethodConfiguration.class);
1✔
385
  }
386

387
  /**
388
   * For more details about AcssDebit, please refer to the <a href="https://docs.stripe.com/api">API
389
   * Reference.</a>
390
   */
391
  @Getter
392
  @Setter
393
  @EqualsAndHashCode(callSuper = false)
394
  public static class AcssDebit extends StripeObject {
1✔
395
    /**
396
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
397
     * {@code on} and the payment method's capability is active.
398
     */
399
    @SerializedName("available")
400
    Boolean available;
401

402
    @SerializedName("display_preference")
403
    DisplayPreference displayPreference;
404

405
    /**
406
     * For more details about DisplayPreference, please refer to the <a
407
     * href="https://docs.stripe.com/api">API Reference.</a>
408
     */
409
    @Getter
410
    @Setter
411
    @EqualsAndHashCode(callSuper = false)
412
    public static class DisplayPreference extends StripeObject {
1✔
413
      /**
414
       * For child configs, whether or not the account's preference will be observed. If {@code
415
       * false}, the parent configuration's default is used.
416
       */
417
      @SerializedName("overridable")
418
      Boolean overridable;
419

420
      /**
421
       * The account's display preference.
422
       *
423
       * <p>One of {@code none}, {@code off}, or {@code on}.
424
       */
425
      @SerializedName("preference")
426
      String preference;
427

428
      /**
429
       * The effective display preference value.
430
       *
431
       * <p>One of {@code off}, or {@code on}.
432
       */
433
      @SerializedName("value")
434
      String value;
435
    }
436
  }
437

438
  /**
439
   * For more details about Affirm, please refer to the <a href="https://docs.stripe.com/api">API
440
   * Reference.</a>
441
   */
442
  @Getter
443
  @Setter
444
  @EqualsAndHashCode(callSuper = false)
445
  public static class Affirm extends StripeObject {
1✔
446
    /**
447
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
448
     * {@code on} and the payment method's capability is active.
449
     */
450
    @SerializedName("available")
451
    Boolean available;
452

453
    @SerializedName("display_preference")
454
    DisplayPreference displayPreference;
455

456
    /**
457
     * For more details about DisplayPreference, please refer to the <a
458
     * href="https://docs.stripe.com/api">API Reference.</a>
459
     */
460
    @Getter
461
    @Setter
462
    @EqualsAndHashCode(callSuper = false)
463
    public static class DisplayPreference extends StripeObject {
1✔
464
      /**
465
       * For child configs, whether or not the account's preference will be observed. If {@code
466
       * false}, the parent configuration's default is used.
467
       */
468
      @SerializedName("overridable")
469
      Boolean overridable;
470

471
      /**
472
       * The account's display preference.
473
       *
474
       * <p>One of {@code none}, {@code off}, or {@code on}.
475
       */
476
      @SerializedName("preference")
477
      String preference;
478

479
      /**
480
       * The effective display preference value.
481
       *
482
       * <p>One of {@code off}, or {@code on}.
483
       */
484
      @SerializedName("value")
485
      String value;
486
    }
487
  }
488

489
  /**
490
   * For more details about AfterpayClearpay, please refer to the <a
491
   * href="https://docs.stripe.com/api">API Reference.</a>
492
   */
493
  @Getter
494
  @Setter
495
  @EqualsAndHashCode(callSuper = false)
496
  public static class AfterpayClearpay extends StripeObject {
1✔
497
    /**
498
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
499
     * {@code on} and the payment method's capability is active.
500
     */
501
    @SerializedName("available")
502
    Boolean available;
503

504
    @SerializedName("display_preference")
505
    DisplayPreference displayPreference;
506

507
    /**
508
     * For more details about DisplayPreference, please refer to the <a
509
     * href="https://docs.stripe.com/api">API Reference.</a>
510
     */
511
    @Getter
512
    @Setter
513
    @EqualsAndHashCode(callSuper = false)
514
    public static class DisplayPreference extends StripeObject {
1✔
515
      /**
516
       * For child configs, whether or not the account's preference will be observed. If {@code
517
       * false}, the parent configuration's default is used.
518
       */
519
      @SerializedName("overridable")
520
      Boolean overridable;
521

522
      /**
523
       * The account's display preference.
524
       *
525
       * <p>One of {@code none}, {@code off}, or {@code on}.
526
       */
527
      @SerializedName("preference")
528
      String preference;
529

530
      /**
531
       * The effective display preference value.
532
       *
533
       * <p>One of {@code off}, or {@code on}.
534
       */
535
      @SerializedName("value")
536
      String value;
537
    }
538
  }
539

540
  /**
541
   * For more details about Alipay, please refer to the <a href="https://docs.stripe.com/api">API
542
   * Reference.</a>
543
   */
544
  @Getter
545
  @Setter
546
  @EqualsAndHashCode(callSuper = false)
547
  public static class Alipay extends StripeObject {
1✔
548
    /**
549
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
550
     * {@code on} and the payment method's capability is active.
551
     */
552
    @SerializedName("available")
553
    Boolean available;
554

555
    @SerializedName("display_preference")
556
    DisplayPreference displayPreference;
557

558
    /**
559
     * For more details about DisplayPreference, please refer to the <a
560
     * href="https://docs.stripe.com/api">API Reference.</a>
561
     */
562
    @Getter
563
    @Setter
564
    @EqualsAndHashCode(callSuper = false)
565
    public static class DisplayPreference extends StripeObject {
1✔
566
      /**
567
       * For child configs, whether or not the account's preference will be observed. If {@code
568
       * false}, the parent configuration's default is used.
569
       */
570
      @SerializedName("overridable")
571
      Boolean overridable;
572

573
      /**
574
       * The account's display preference.
575
       *
576
       * <p>One of {@code none}, {@code off}, or {@code on}.
577
       */
578
      @SerializedName("preference")
579
      String preference;
580

581
      /**
582
       * The effective display preference value.
583
       *
584
       * <p>One of {@code off}, or {@code on}.
585
       */
586
      @SerializedName("value")
587
      String value;
588
    }
589
  }
590

591
  /**
592
   * For more details about Alma, please refer to the <a href="https://docs.stripe.com/api">API
593
   * Reference.</a>
594
   */
595
  @Getter
596
  @Setter
597
  @EqualsAndHashCode(callSuper = false)
598
  public static class Alma extends StripeObject {
×
599
    /**
600
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
601
     * {@code on} and the payment method's capability is active.
602
     */
603
    @SerializedName("available")
604
    Boolean available;
605

606
    @SerializedName("display_preference")
607
    DisplayPreference displayPreference;
608

609
    /**
610
     * For more details about DisplayPreference, please refer to the <a
611
     * href="https://docs.stripe.com/api">API Reference.</a>
612
     */
613
    @Getter
614
    @Setter
615
    @EqualsAndHashCode(callSuper = false)
616
    public static class DisplayPreference extends StripeObject {
×
617
      /**
618
       * For child configs, whether or not the account's preference will be observed. If {@code
619
       * false}, the parent configuration's default is used.
620
       */
621
      @SerializedName("overridable")
622
      Boolean overridable;
623

624
      /**
625
       * The account's display preference.
626
       *
627
       * <p>One of {@code none}, {@code off}, or {@code on}.
628
       */
629
      @SerializedName("preference")
630
      String preference;
631

632
      /**
633
       * The effective display preference value.
634
       *
635
       * <p>One of {@code off}, or {@code on}.
636
       */
637
      @SerializedName("value")
638
      String value;
639
    }
640
  }
641

642
  /**
643
   * For more details about AmazonPay, please refer to the <a href="https://docs.stripe.com/api">API
644
   * Reference.</a>
645
   */
646
  @Getter
647
  @Setter
648
  @EqualsAndHashCode(callSuper = false)
649
  public static class AmazonPay extends StripeObject {
1✔
650
    /**
651
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
652
     * {@code on} and the payment method's capability is active.
653
     */
654
    @SerializedName("available")
655
    Boolean available;
656

657
    @SerializedName("display_preference")
658
    DisplayPreference displayPreference;
659

660
    /**
661
     * For more details about DisplayPreference, please refer to the <a
662
     * href="https://docs.stripe.com/api">API Reference.</a>
663
     */
664
    @Getter
665
    @Setter
666
    @EqualsAndHashCode(callSuper = false)
667
    public static class DisplayPreference extends StripeObject {
1✔
668
      /**
669
       * For child configs, whether or not the account's preference will be observed. If {@code
670
       * false}, the parent configuration's default is used.
671
       */
672
      @SerializedName("overridable")
673
      Boolean overridable;
674

675
      /**
676
       * The account's display preference.
677
       *
678
       * <p>One of {@code none}, {@code off}, or {@code on}.
679
       */
680
      @SerializedName("preference")
681
      String preference;
682

683
      /**
684
       * The effective display preference value.
685
       *
686
       * <p>One of {@code off}, or {@code on}.
687
       */
688
      @SerializedName("value")
689
      String value;
690
    }
691
  }
692

693
  /**
694
   * For more details about ApplePay, please refer to the <a href="https://docs.stripe.com/api">API
695
   * Reference.</a>
696
   */
697
  @Getter
698
  @Setter
699
  @EqualsAndHashCode(callSuper = false)
700
  public static class ApplePay extends StripeObject {
1✔
701
    /**
702
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
703
     * {@code on} and the payment method's capability is active.
704
     */
705
    @SerializedName("available")
706
    Boolean available;
707

708
    @SerializedName("display_preference")
709
    DisplayPreference displayPreference;
710

711
    /**
712
     * For more details about DisplayPreference, please refer to the <a
713
     * href="https://docs.stripe.com/api">API Reference.</a>
714
     */
715
    @Getter
716
    @Setter
717
    @EqualsAndHashCode(callSuper = false)
718
    public static class DisplayPreference extends StripeObject {
1✔
719
      /**
720
       * For child configs, whether or not the account's preference will be observed. If {@code
721
       * false}, the parent configuration's default is used.
722
       */
723
      @SerializedName("overridable")
724
      Boolean overridable;
725

726
      /**
727
       * The account's display preference.
728
       *
729
       * <p>One of {@code none}, {@code off}, or {@code on}.
730
       */
731
      @SerializedName("preference")
732
      String preference;
733

734
      /**
735
       * The effective display preference value.
736
       *
737
       * <p>One of {@code off}, or {@code on}.
738
       */
739
      @SerializedName("value")
740
      String value;
741
    }
742
  }
743

744
  /**
745
   * For more details about AuBecsDebit, please refer to the <a
746
   * href="https://docs.stripe.com/api">API Reference.</a>
747
   */
748
  @Getter
749
  @Setter
750
  @EqualsAndHashCode(callSuper = false)
751
  public static class AuBecsDebit extends StripeObject {
×
752
    /**
753
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
754
     * {@code on} and the payment method's capability is active.
755
     */
756
    @SerializedName("available")
757
    Boolean available;
758

759
    @SerializedName("display_preference")
760
    DisplayPreference displayPreference;
761

762
    /**
763
     * For more details about DisplayPreference, please refer to the <a
764
     * href="https://docs.stripe.com/api">API Reference.</a>
765
     */
766
    @Getter
767
    @Setter
768
    @EqualsAndHashCode(callSuper = false)
769
    public static class DisplayPreference extends StripeObject {
×
770
      /**
771
       * For child configs, whether or not the account's preference will be observed. If {@code
772
       * false}, the parent configuration's default is used.
773
       */
774
      @SerializedName("overridable")
775
      Boolean overridable;
776

777
      /**
778
       * The account's display preference.
779
       *
780
       * <p>One of {@code none}, {@code off}, or {@code on}.
781
       */
782
      @SerializedName("preference")
783
      String preference;
784

785
      /**
786
       * The effective display preference value.
787
       *
788
       * <p>One of {@code off}, or {@code on}.
789
       */
790
      @SerializedName("value")
791
      String value;
792
    }
793
  }
794

795
  /**
796
   * For more details about BacsDebit, please refer to the <a href="https://docs.stripe.com/api">API
797
   * Reference.</a>
798
   */
799
  @Getter
800
  @Setter
801
  @EqualsAndHashCode(callSuper = false)
802
  public static class BacsDebit extends StripeObject {
1✔
803
    /**
804
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
805
     * {@code on} and the payment method's capability is active.
806
     */
807
    @SerializedName("available")
808
    Boolean available;
809

810
    @SerializedName("display_preference")
811
    DisplayPreference displayPreference;
812

813
    /**
814
     * For more details about DisplayPreference, please refer to the <a
815
     * href="https://docs.stripe.com/api">API Reference.</a>
816
     */
817
    @Getter
818
    @Setter
819
    @EqualsAndHashCode(callSuper = false)
820
    public static class DisplayPreference extends StripeObject {
1✔
821
      /**
822
       * For child configs, whether or not the account's preference will be observed. If {@code
823
       * false}, the parent configuration's default is used.
824
       */
825
      @SerializedName("overridable")
826
      Boolean overridable;
827

828
      /**
829
       * The account's display preference.
830
       *
831
       * <p>One of {@code none}, {@code off}, or {@code on}.
832
       */
833
      @SerializedName("preference")
834
      String preference;
835

836
      /**
837
       * The effective display preference value.
838
       *
839
       * <p>One of {@code off}, or {@code on}.
840
       */
841
      @SerializedName("value")
842
      String value;
843
    }
844
  }
845

846
  /**
847
   * For more details about Bancontact, please refer to the <a
848
   * href="https://docs.stripe.com/api">API Reference.</a>
849
   */
850
  @Getter
851
  @Setter
852
  @EqualsAndHashCode(callSuper = false)
853
  public static class Bancontact extends StripeObject {
1✔
854
    /**
855
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
856
     * {@code on} and the payment method's capability is active.
857
     */
858
    @SerializedName("available")
859
    Boolean available;
860

861
    @SerializedName("display_preference")
862
    DisplayPreference displayPreference;
863

864
    /**
865
     * For more details about DisplayPreference, please refer to the <a
866
     * href="https://docs.stripe.com/api">API Reference.</a>
867
     */
868
    @Getter
869
    @Setter
870
    @EqualsAndHashCode(callSuper = false)
871
    public static class DisplayPreference extends StripeObject {
1✔
872
      /**
873
       * For child configs, whether or not the account's preference will be observed. If {@code
874
       * false}, the parent configuration's default is used.
875
       */
876
      @SerializedName("overridable")
877
      Boolean overridable;
878

879
      /**
880
       * The account's display preference.
881
       *
882
       * <p>One of {@code none}, {@code off}, or {@code on}.
883
       */
884
      @SerializedName("preference")
885
      String preference;
886

887
      /**
888
       * The effective display preference value.
889
       *
890
       * <p>One of {@code off}, or {@code on}.
891
       */
892
      @SerializedName("value")
893
      String value;
894
    }
895
  }
896

897
  /**
898
   * For more details about Blik, please refer to the <a href="https://docs.stripe.com/api">API
899
   * Reference.</a>
900
   */
901
  @Getter
902
  @Setter
903
  @EqualsAndHashCode(callSuper = false)
904
  public static class Blik extends StripeObject {
1✔
905
    /**
906
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
907
     * {@code on} and the payment method's capability is active.
908
     */
909
    @SerializedName("available")
910
    Boolean available;
911

912
    @SerializedName("display_preference")
913
    DisplayPreference displayPreference;
914

915
    /**
916
     * For more details about DisplayPreference, please refer to the <a
917
     * href="https://docs.stripe.com/api">API Reference.</a>
918
     */
919
    @Getter
920
    @Setter
921
    @EqualsAndHashCode(callSuper = false)
922
    public static class DisplayPreference extends StripeObject {
1✔
923
      /**
924
       * For child configs, whether or not the account's preference will be observed. If {@code
925
       * false}, the parent configuration's default is used.
926
       */
927
      @SerializedName("overridable")
928
      Boolean overridable;
929

930
      /**
931
       * The account's display preference.
932
       *
933
       * <p>One of {@code none}, {@code off}, or {@code on}.
934
       */
935
      @SerializedName("preference")
936
      String preference;
937

938
      /**
939
       * The effective display preference value.
940
       *
941
       * <p>One of {@code off}, or {@code on}.
942
       */
943
      @SerializedName("value")
944
      String value;
945
    }
946
  }
947

948
  /**
949
   * For more details about Boleto, please refer to the <a href="https://docs.stripe.com/api">API
950
   * Reference.</a>
951
   */
952
  @Getter
953
  @Setter
954
  @EqualsAndHashCode(callSuper = false)
955
  public static class Boleto extends StripeObject {
×
956
    /**
957
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
958
     * {@code on} and the payment method's capability is active.
959
     */
960
    @SerializedName("available")
961
    Boolean available;
962

963
    @SerializedName("display_preference")
964
    DisplayPreference displayPreference;
965

966
    /**
967
     * For more details about DisplayPreference, please refer to the <a
968
     * href="https://docs.stripe.com/api">API Reference.</a>
969
     */
970
    @Getter
971
    @Setter
972
    @EqualsAndHashCode(callSuper = false)
973
    public static class DisplayPreference extends StripeObject {
×
974
      /**
975
       * For child configs, whether or not the account's preference will be observed. If {@code
976
       * false}, the parent configuration's default is used.
977
       */
978
      @SerializedName("overridable")
979
      Boolean overridable;
980

981
      /**
982
       * The account's display preference.
983
       *
984
       * <p>One of {@code none}, {@code off}, or {@code on}.
985
       */
986
      @SerializedName("preference")
987
      String preference;
988

989
      /**
990
       * The effective display preference value.
991
       *
992
       * <p>One of {@code off}, or {@code on}.
993
       */
994
      @SerializedName("value")
995
      String value;
996
    }
997
  }
998

999
  /**
1000
   * For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
1001
   * Reference.</a>
1002
   */
1003
  @Getter
1004
  @Setter
1005
  @EqualsAndHashCode(callSuper = false)
1006
  public static class Card extends StripeObject {
1✔
1007
    /**
1008
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1009
     * {@code on} and the payment method's capability is active.
1010
     */
1011
    @SerializedName("available")
1012
    Boolean available;
1013

1014
    @SerializedName("display_preference")
1015
    DisplayPreference displayPreference;
1016

1017
    /**
1018
     * For more details about DisplayPreference, please refer to the <a
1019
     * href="https://docs.stripe.com/api">API Reference.</a>
1020
     */
1021
    @Getter
1022
    @Setter
1023
    @EqualsAndHashCode(callSuper = false)
1024
    public static class DisplayPreference extends StripeObject {
1✔
1025
      /**
1026
       * For child configs, whether or not the account's preference will be observed. If {@code
1027
       * false}, the parent configuration's default is used.
1028
       */
1029
      @SerializedName("overridable")
1030
      Boolean overridable;
1031

1032
      /**
1033
       * The account's display preference.
1034
       *
1035
       * <p>One of {@code none}, {@code off}, or {@code on}.
1036
       */
1037
      @SerializedName("preference")
1038
      String preference;
1039

1040
      /**
1041
       * The effective display preference value.
1042
       *
1043
       * <p>One of {@code off}, or {@code on}.
1044
       */
1045
      @SerializedName("value")
1046
      String value;
1047
    }
1048
  }
1049

1050
  /**
1051
   * For more details about CartesBancaires, please refer to the <a
1052
   * href="https://docs.stripe.com/api">API Reference.</a>
1053
   */
1054
  @Getter
1055
  @Setter
1056
  @EqualsAndHashCode(callSuper = false)
1057
  public static class CartesBancaires extends StripeObject {
1✔
1058
    /**
1059
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1060
     * {@code on} and the payment method's capability is active.
1061
     */
1062
    @SerializedName("available")
1063
    Boolean available;
1064

1065
    @SerializedName("display_preference")
1066
    DisplayPreference displayPreference;
1067

1068
    /**
1069
     * For more details about DisplayPreference, please refer to the <a
1070
     * href="https://docs.stripe.com/api">API Reference.</a>
1071
     */
1072
    @Getter
1073
    @Setter
1074
    @EqualsAndHashCode(callSuper = false)
1075
    public static class DisplayPreference extends StripeObject {
1✔
1076
      /**
1077
       * For child configs, whether or not the account's preference will be observed. If {@code
1078
       * false}, the parent configuration's default is used.
1079
       */
1080
      @SerializedName("overridable")
1081
      Boolean overridable;
1082

1083
      /**
1084
       * The account's display preference.
1085
       *
1086
       * <p>One of {@code none}, {@code off}, or {@code on}.
1087
       */
1088
      @SerializedName("preference")
1089
      String preference;
1090

1091
      /**
1092
       * The effective display preference value.
1093
       *
1094
       * <p>One of {@code off}, or {@code on}.
1095
       */
1096
      @SerializedName("value")
1097
      String value;
1098
    }
1099
  }
1100

1101
  /**
1102
   * For more details about Cashapp, please refer to the <a href="https://docs.stripe.com/api">API
1103
   * Reference.</a>
1104
   */
1105
  @Getter
1106
  @Setter
1107
  @EqualsAndHashCode(callSuper = false)
1108
  public static class Cashapp extends StripeObject {
1✔
1109
    /**
1110
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1111
     * {@code on} and the payment method's capability is active.
1112
     */
1113
    @SerializedName("available")
1114
    Boolean available;
1115

1116
    @SerializedName("display_preference")
1117
    DisplayPreference displayPreference;
1118

1119
    /**
1120
     * For more details about DisplayPreference, please refer to the <a
1121
     * href="https://docs.stripe.com/api">API Reference.</a>
1122
     */
1123
    @Getter
1124
    @Setter
1125
    @EqualsAndHashCode(callSuper = false)
1126
    public static class DisplayPreference extends StripeObject {
1✔
1127
      /**
1128
       * For child configs, whether or not the account's preference will be observed. If {@code
1129
       * false}, the parent configuration's default is used.
1130
       */
1131
      @SerializedName("overridable")
1132
      Boolean overridable;
1133

1134
      /**
1135
       * The account's display preference.
1136
       *
1137
       * <p>One of {@code none}, {@code off}, or {@code on}.
1138
       */
1139
      @SerializedName("preference")
1140
      String preference;
1141

1142
      /**
1143
       * The effective display preference value.
1144
       *
1145
       * <p>One of {@code off}, or {@code on}.
1146
       */
1147
      @SerializedName("value")
1148
      String value;
1149
    }
1150
  }
1151

1152
  /**
1153
   * For more details about CustomerBalance, please refer to the <a
1154
   * href="https://docs.stripe.com/api">API Reference.</a>
1155
   */
1156
  @Getter
1157
  @Setter
1158
  @EqualsAndHashCode(callSuper = false)
1159
  public static class CustomerBalance extends StripeObject {
1✔
1160
    /**
1161
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1162
     * {@code on} and the payment method's capability is active.
1163
     */
1164
    @SerializedName("available")
1165
    Boolean available;
1166

1167
    @SerializedName("display_preference")
1168
    DisplayPreference displayPreference;
1169

1170
    /**
1171
     * For more details about DisplayPreference, please refer to the <a
1172
     * href="https://docs.stripe.com/api">API Reference.</a>
1173
     */
1174
    @Getter
1175
    @Setter
1176
    @EqualsAndHashCode(callSuper = false)
1177
    public static class DisplayPreference extends StripeObject {
1✔
1178
      /**
1179
       * For child configs, whether or not the account's preference will be observed. If {@code
1180
       * false}, the parent configuration's default is used.
1181
       */
1182
      @SerializedName("overridable")
1183
      Boolean overridable;
1184

1185
      /**
1186
       * The account's display preference.
1187
       *
1188
       * <p>One of {@code none}, {@code off}, or {@code on}.
1189
       */
1190
      @SerializedName("preference")
1191
      String preference;
1192

1193
      /**
1194
       * The effective display preference value.
1195
       *
1196
       * <p>One of {@code off}, or {@code on}.
1197
       */
1198
      @SerializedName("value")
1199
      String value;
1200
    }
1201
  }
1202

1203
  /**
1204
   * For more details about Eps, please refer to the <a href="https://docs.stripe.com/api">API
1205
   * Reference.</a>
1206
   */
1207
  @Getter
1208
  @Setter
1209
  @EqualsAndHashCode(callSuper = false)
1210
  public static class Eps extends StripeObject {
1✔
1211
    /**
1212
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1213
     * {@code on} and the payment method's capability is active.
1214
     */
1215
    @SerializedName("available")
1216
    Boolean available;
1217

1218
    @SerializedName("display_preference")
1219
    DisplayPreference displayPreference;
1220

1221
    /**
1222
     * For more details about DisplayPreference, please refer to the <a
1223
     * href="https://docs.stripe.com/api">API Reference.</a>
1224
     */
1225
    @Getter
1226
    @Setter
1227
    @EqualsAndHashCode(callSuper = false)
1228
    public static class DisplayPreference extends StripeObject {
1✔
1229
      /**
1230
       * For child configs, whether or not the account's preference will be observed. If {@code
1231
       * false}, the parent configuration's default is used.
1232
       */
1233
      @SerializedName("overridable")
1234
      Boolean overridable;
1235

1236
      /**
1237
       * The account's display preference.
1238
       *
1239
       * <p>One of {@code none}, {@code off}, or {@code on}.
1240
       */
1241
      @SerializedName("preference")
1242
      String preference;
1243

1244
      /**
1245
       * The effective display preference value.
1246
       *
1247
       * <p>One of {@code off}, or {@code on}.
1248
       */
1249
      @SerializedName("value")
1250
      String value;
1251
    }
1252
  }
1253

1254
  /**
1255
   * For more details about Fpx, please refer to the <a href="https://docs.stripe.com/api">API
1256
   * Reference.</a>
1257
   */
1258
  @Getter
1259
  @Setter
1260
  @EqualsAndHashCode(callSuper = false)
1261
  public static class Fpx extends StripeObject {
×
1262
    /**
1263
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1264
     * {@code on} and the payment method's capability is active.
1265
     */
1266
    @SerializedName("available")
1267
    Boolean available;
1268

1269
    @SerializedName("display_preference")
1270
    DisplayPreference displayPreference;
1271

1272
    /**
1273
     * For more details about DisplayPreference, please refer to the <a
1274
     * href="https://docs.stripe.com/api">API Reference.</a>
1275
     */
1276
    @Getter
1277
    @Setter
1278
    @EqualsAndHashCode(callSuper = false)
1279
    public static class DisplayPreference extends StripeObject {
×
1280
      /**
1281
       * For child configs, whether or not the account's preference will be observed. If {@code
1282
       * false}, the parent configuration's default is used.
1283
       */
1284
      @SerializedName("overridable")
1285
      Boolean overridable;
1286

1287
      /**
1288
       * The account's display preference.
1289
       *
1290
       * <p>One of {@code none}, {@code off}, or {@code on}.
1291
       */
1292
      @SerializedName("preference")
1293
      String preference;
1294

1295
      /**
1296
       * The effective display preference value.
1297
       *
1298
       * <p>One of {@code off}, or {@code on}.
1299
       */
1300
      @SerializedName("value")
1301
      String value;
1302
    }
1303
  }
1304

1305
  /**
1306
   * For more details about Giropay, please refer to the <a href="https://docs.stripe.com/api">API
1307
   * Reference.</a>
1308
   */
1309
  @Getter
1310
  @Setter
1311
  @EqualsAndHashCode(callSuper = false)
1312
  public static class Giropay extends StripeObject {
1✔
1313
    /**
1314
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1315
     * {@code on} and the payment method's capability is active.
1316
     */
1317
    @SerializedName("available")
1318
    Boolean available;
1319

1320
    @SerializedName("display_preference")
1321
    DisplayPreference displayPreference;
1322

1323
    /**
1324
     * For more details about DisplayPreference, please refer to the <a
1325
     * href="https://docs.stripe.com/api">API Reference.</a>
1326
     */
1327
    @Getter
1328
    @Setter
1329
    @EqualsAndHashCode(callSuper = false)
1330
    public static class DisplayPreference extends StripeObject {
1✔
1331
      /**
1332
       * For child configs, whether or not the account's preference will be observed. If {@code
1333
       * false}, the parent configuration's default is used.
1334
       */
1335
      @SerializedName("overridable")
1336
      Boolean overridable;
1337

1338
      /**
1339
       * The account's display preference.
1340
       *
1341
       * <p>One of {@code none}, {@code off}, or {@code on}.
1342
       */
1343
      @SerializedName("preference")
1344
      String preference;
1345

1346
      /**
1347
       * The effective display preference value.
1348
       *
1349
       * <p>One of {@code off}, or {@code on}.
1350
       */
1351
      @SerializedName("value")
1352
      String value;
1353
    }
1354
  }
1355

1356
  /**
1357
   * For more details about GooglePay, please refer to the <a href="https://docs.stripe.com/api">API
1358
   * Reference.</a>
1359
   */
1360
  @Getter
1361
  @Setter
1362
  @EqualsAndHashCode(callSuper = false)
1363
  public static class GooglePay extends StripeObject {
1✔
1364
    /**
1365
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1366
     * {@code on} and the payment method's capability is active.
1367
     */
1368
    @SerializedName("available")
1369
    Boolean available;
1370

1371
    @SerializedName("display_preference")
1372
    DisplayPreference displayPreference;
1373

1374
    /**
1375
     * For more details about DisplayPreference, please refer to the <a
1376
     * href="https://docs.stripe.com/api">API Reference.</a>
1377
     */
1378
    @Getter
1379
    @Setter
1380
    @EqualsAndHashCode(callSuper = false)
1381
    public static class DisplayPreference extends StripeObject {
1✔
1382
      /**
1383
       * For child configs, whether or not the account's preference will be observed. If {@code
1384
       * false}, the parent configuration's default is used.
1385
       */
1386
      @SerializedName("overridable")
1387
      Boolean overridable;
1388

1389
      /**
1390
       * The account's display preference.
1391
       *
1392
       * <p>One of {@code none}, {@code off}, or {@code on}.
1393
       */
1394
      @SerializedName("preference")
1395
      String preference;
1396

1397
      /**
1398
       * The effective display preference value.
1399
       *
1400
       * <p>One of {@code off}, or {@code on}.
1401
       */
1402
      @SerializedName("value")
1403
      String value;
1404
    }
1405
  }
1406

1407
  /**
1408
   * For more details about Gopay, please refer to the <a href="https://docs.stripe.com/api">API
1409
   * Reference.</a>
1410
   */
1411
  @Getter
1412
  @Setter
1413
  @EqualsAndHashCode(callSuper = false)
NEW
1414
  public static class Gopay extends StripeObject {
×
1415
    /**
1416
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1417
     * {@code on} and the payment method's capability is active.
1418
     */
1419
    @SerializedName("available")
1420
    Boolean available;
1421

1422
    @SerializedName("display_preference")
1423
    DisplayPreference displayPreference;
1424

1425
    /**
1426
     * For more details about DisplayPreference, please refer to the <a
1427
     * href="https://docs.stripe.com/api">API Reference.</a>
1428
     */
1429
    @Getter
1430
    @Setter
1431
    @EqualsAndHashCode(callSuper = false)
NEW
1432
    public static class DisplayPreference extends StripeObject {
×
1433
      /**
1434
       * For child configs, whether or not the account's preference will be observed. If {@code
1435
       * false}, the parent configuration's default is used.
1436
       */
1437
      @SerializedName("overridable")
1438
      Boolean overridable;
1439

1440
      /**
1441
       * The account's display preference.
1442
       *
1443
       * <p>One of {@code none}, {@code off}, or {@code on}.
1444
       */
1445
      @SerializedName("preference")
1446
      String preference;
1447

1448
      /**
1449
       * The effective display preference value.
1450
       *
1451
       * <p>One of {@code off}, or {@code on}.
1452
       */
1453
      @SerializedName("value")
1454
      String value;
1455
    }
1456
  }
1457

1458
  /**
1459
   * For more details about Grabpay, please refer to the <a href="https://docs.stripe.com/api">API
1460
   * Reference.</a>
1461
   */
1462
  @Getter
1463
  @Setter
1464
  @EqualsAndHashCode(callSuper = false)
1465
  public static class Grabpay extends StripeObject {
×
1466
    /**
1467
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1468
     * {@code on} and the payment method's capability is active.
1469
     */
1470
    @SerializedName("available")
1471
    Boolean available;
1472

1473
    @SerializedName("display_preference")
1474
    DisplayPreference displayPreference;
1475

1476
    /**
1477
     * For more details about DisplayPreference, please refer to the <a
1478
     * href="https://docs.stripe.com/api">API Reference.</a>
1479
     */
1480
    @Getter
1481
    @Setter
1482
    @EqualsAndHashCode(callSuper = false)
1483
    public static class DisplayPreference extends StripeObject {
×
1484
      /**
1485
       * For child configs, whether or not the account's preference will be observed. If {@code
1486
       * false}, the parent configuration's default is used.
1487
       */
1488
      @SerializedName("overridable")
1489
      Boolean overridable;
1490

1491
      /**
1492
       * The account's display preference.
1493
       *
1494
       * <p>One of {@code none}, {@code off}, or {@code on}.
1495
       */
1496
      @SerializedName("preference")
1497
      String preference;
1498

1499
      /**
1500
       * The effective display preference value.
1501
       *
1502
       * <p>One of {@code off}, or {@code on}.
1503
       */
1504
      @SerializedName("value")
1505
      String value;
1506
    }
1507
  }
1508

1509
  /**
1510
   * For more details about IdBankTransfer, please refer to the <a
1511
   * href="https://docs.stripe.com/api">API Reference.</a>
1512
   */
1513
  @Getter
1514
  @Setter
1515
  @EqualsAndHashCode(callSuper = false)
NEW
1516
  public static class IdBankTransfer extends StripeObject {
×
1517
    /**
1518
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1519
     * {@code on} and the payment method's capability is active.
1520
     */
1521
    @SerializedName("available")
1522
    Boolean available;
1523

1524
    @SerializedName("display_preference")
1525
    DisplayPreference displayPreference;
1526

1527
    /**
1528
     * For more details about DisplayPreference, please refer to the <a
1529
     * href="https://docs.stripe.com/api">API Reference.</a>
1530
     */
1531
    @Getter
1532
    @Setter
1533
    @EqualsAndHashCode(callSuper = false)
NEW
1534
    public static class DisplayPreference extends StripeObject {
×
1535
      /**
1536
       * For child configs, whether or not the account's preference will be observed. If {@code
1537
       * false}, the parent configuration's default is used.
1538
       */
1539
      @SerializedName("overridable")
1540
      Boolean overridable;
1541

1542
      /**
1543
       * The account's display preference.
1544
       *
1545
       * <p>One of {@code none}, {@code off}, or {@code on}.
1546
       */
1547
      @SerializedName("preference")
1548
      String preference;
1549

1550
      /**
1551
       * The effective display preference value.
1552
       *
1553
       * <p>One of {@code off}, or {@code on}.
1554
       */
1555
      @SerializedName("value")
1556
      String value;
1557
    }
1558
  }
1559

1560
  /**
1561
   * For more details about Ideal, please refer to the <a href="https://docs.stripe.com/api">API
1562
   * Reference.</a>
1563
   */
1564
  @Getter
1565
  @Setter
1566
  @EqualsAndHashCode(callSuper = false)
1567
  public static class Ideal extends StripeObject {
1✔
1568
    /**
1569
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1570
     * {@code on} and the payment method's capability is active.
1571
     */
1572
    @SerializedName("available")
1573
    Boolean available;
1574

1575
    @SerializedName("display_preference")
1576
    DisplayPreference displayPreference;
1577

1578
    /**
1579
     * For more details about DisplayPreference, please refer to the <a
1580
     * href="https://docs.stripe.com/api">API Reference.</a>
1581
     */
1582
    @Getter
1583
    @Setter
1584
    @EqualsAndHashCode(callSuper = false)
1585
    public static class DisplayPreference extends StripeObject {
1✔
1586
      /**
1587
       * For child configs, whether or not the account's preference will be observed. If {@code
1588
       * false}, the parent configuration's default is used.
1589
       */
1590
      @SerializedName("overridable")
1591
      Boolean overridable;
1592

1593
      /**
1594
       * The account's display preference.
1595
       *
1596
       * <p>One of {@code none}, {@code off}, or {@code on}.
1597
       */
1598
      @SerializedName("preference")
1599
      String preference;
1600

1601
      /**
1602
       * The effective display preference value.
1603
       *
1604
       * <p>One of {@code off}, or {@code on}.
1605
       */
1606
      @SerializedName("value")
1607
      String value;
1608
    }
1609
  }
1610

1611
  /**
1612
   * For more details about Jcb, please refer to the <a href="https://docs.stripe.com/api">API
1613
   * Reference.</a>
1614
   */
1615
  @Getter
1616
  @Setter
1617
  @EqualsAndHashCode(callSuper = false)
1618
  public static class Jcb extends StripeObject {
×
1619
    /**
1620
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1621
     * {@code on} and the payment method's capability is active.
1622
     */
1623
    @SerializedName("available")
1624
    Boolean available;
1625

1626
    @SerializedName("display_preference")
1627
    DisplayPreference displayPreference;
1628

1629
    /**
1630
     * For more details about DisplayPreference, please refer to the <a
1631
     * href="https://docs.stripe.com/api">API Reference.</a>
1632
     */
1633
    @Getter
1634
    @Setter
1635
    @EqualsAndHashCode(callSuper = false)
1636
    public static class DisplayPreference extends StripeObject {
×
1637
      /**
1638
       * For child configs, whether or not the account's preference will be observed. If {@code
1639
       * false}, the parent configuration's default is used.
1640
       */
1641
      @SerializedName("overridable")
1642
      Boolean overridable;
1643

1644
      /**
1645
       * The account's display preference.
1646
       *
1647
       * <p>One of {@code none}, {@code off}, or {@code on}.
1648
       */
1649
      @SerializedName("preference")
1650
      String preference;
1651

1652
      /**
1653
       * The effective display preference value.
1654
       *
1655
       * <p>One of {@code off}, or {@code on}.
1656
       */
1657
      @SerializedName("value")
1658
      String value;
1659
    }
1660
  }
1661

1662
  /**
1663
   * For more details about Klarna, please refer to the <a href="https://docs.stripe.com/api">API
1664
   * Reference.</a>
1665
   */
1666
  @Getter
1667
  @Setter
1668
  @EqualsAndHashCode(callSuper = false)
1669
  public static class Klarna extends StripeObject {
1✔
1670
    /**
1671
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1672
     * {@code on} and the payment method's capability is active.
1673
     */
1674
    @SerializedName("available")
1675
    Boolean available;
1676

1677
    @SerializedName("display_preference")
1678
    DisplayPreference displayPreference;
1679

1680
    /**
1681
     * For more details about DisplayPreference, please refer to the <a
1682
     * href="https://docs.stripe.com/api">API Reference.</a>
1683
     */
1684
    @Getter
1685
    @Setter
1686
    @EqualsAndHashCode(callSuper = false)
1687
    public static class DisplayPreference extends StripeObject {
1✔
1688
      /**
1689
       * For child configs, whether or not the account's preference will be observed. If {@code
1690
       * false}, the parent configuration's default is used.
1691
       */
1692
      @SerializedName("overridable")
1693
      Boolean overridable;
1694

1695
      /**
1696
       * The account's display preference.
1697
       *
1698
       * <p>One of {@code none}, {@code off}, or {@code on}.
1699
       */
1700
      @SerializedName("preference")
1701
      String preference;
1702

1703
      /**
1704
       * The effective display preference value.
1705
       *
1706
       * <p>One of {@code off}, or {@code on}.
1707
       */
1708
      @SerializedName("value")
1709
      String value;
1710
    }
1711
  }
1712

1713
  /**
1714
   * For more details about Konbini, please refer to the <a href="https://docs.stripe.com/api">API
1715
   * Reference.</a>
1716
   */
1717
  @Getter
1718
  @Setter
1719
  @EqualsAndHashCode(callSuper = false)
1720
  public static class Konbini extends StripeObject {
×
1721
    /**
1722
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1723
     * {@code on} and the payment method's capability is active.
1724
     */
1725
    @SerializedName("available")
1726
    Boolean available;
1727

1728
    @SerializedName("display_preference")
1729
    DisplayPreference displayPreference;
1730

1731
    /**
1732
     * For more details about DisplayPreference, please refer to the <a
1733
     * href="https://docs.stripe.com/api">API Reference.</a>
1734
     */
1735
    @Getter
1736
    @Setter
1737
    @EqualsAndHashCode(callSuper = false)
1738
    public static class DisplayPreference extends StripeObject {
×
1739
      /**
1740
       * For child configs, whether or not the account's preference will be observed. If {@code
1741
       * false}, the parent configuration's default is used.
1742
       */
1743
      @SerializedName("overridable")
1744
      Boolean overridable;
1745

1746
      /**
1747
       * The account's display preference.
1748
       *
1749
       * <p>One of {@code none}, {@code off}, or {@code on}.
1750
       */
1751
      @SerializedName("preference")
1752
      String preference;
1753

1754
      /**
1755
       * The effective display preference value.
1756
       *
1757
       * <p>One of {@code off}, or {@code on}.
1758
       */
1759
      @SerializedName("value")
1760
      String value;
1761
    }
1762
  }
1763

1764
  /**
1765
   * For more details about Link, please refer to the <a href="https://docs.stripe.com/api">API
1766
   * Reference.</a>
1767
   */
1768
  @Getter
1769
  @Setter
1770
  @EqualsAndHashCode(callSuper = false)
1771
  public static class Link extends StripeObject {
1✔
1772
    /**
1773
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1774
     * {@code on} and the payment method's capability is active.
1775
     */
1776
    @SerializedName("available")
1777
    Boolean available;
1778

1779
    @SerializedName("display_preference")
1780
    DisplayPreference displayPreference;
1781

1782
    /**
1783
     * For more details about DisplayPreference, please refer to the <a
1784
     * href="https://docs.stripe.com/api">API Reference.</a>
1785
     */
1786
    @Getter
1787
    @Setter
1788
    @EqualsAndHashCode(callSuper = false)
1789
    public static class DisplayPreference extends StripeObject {
1✔
1790
      /**
1791
       * For child configs, whether or not the account's preference will be observed. If {@code
1792
       * false}, the parent configuration's default is used.
1793
       */
1794
      @SerializedName("overridable")
1795
      Boolean overridable;
1796

1797
      /**
1798
       * The account's display preference.
1799
       *
1800
       * <p>One of {@code none}, {@code off}, or {@code on}.
1801
       */
1802
      @SerializedName("preference")
1803
      String preference;
1804

1805
      /**
1806
       * The effective display preference value.
1807
       *
1808
       * <p>One of {@code off}, or {@code on}.
1809
       */
1810
      @SerializedName("value")
1811
      String value;
1812
    }
1813
  }
1814

1815
  /**
1816
   * For more details about Mobilepay, please refer to the <a href="https://docs.stripe.com/api">API
1817
   * Reference.</a>
1818
   */
1819
  @Getter
1820
  @Setter
1821
  @EqualsAndHashCode(callSuper = false)
1822
  public static class Mobilepay extends StripeObject {
×
1823
    /**
1824
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1825
     * {@code on} and the payment method's capability is active.
1826
     */
1827
    @SerializedName("available")
1828
    Boolean available;
1829

1830
    @SerializedName("display_preference")
1831
    DisplayPreference displayPreference;
1832

1833
    /**
1834
     * For more details about DisplayPreference, please refer to the <a
1835
     * href="https://docs.stripe.com/api">API Reference.</a>
1836
     */
1837
    @Getter
1838
    @Setter
1839
    @EqualsAndHashCode(callSuper = false)
1840
    public static class DisplayPreference extends StripeObject {
×
1841
      /**
1842
       * For child configs, whether or not the account's preference will be observed. If {@code
1843
       * false}, the parent configuration's default is used.
1844
       */
1845
      @SerializedName("overridable")
1846
      Boolean overridable;
1847

1848
      /**
1849
       * The account's display preference.
1850
       *
1851
       * <p>One of {@code none}, {@code off}, or {@code on}.
1852
       */
1853
      @SerializedName("preference")
1854
      String preference;
1855

1856
      /**
1857
       * The effective display preference value.
1858
       *
1859
       * <p>One of {@code off}, or {@code on}.
1860
       */
1861
      @SerializedName("value")
1862
      String value;
1863
    }
1864
  }
1865

1866
  /**
1867
   * For more details about Multibanco, please refer to the <a
1868
   * href="https://docs.stripe.com/api">API Reference.</a>
1869
   */
1870
  @Getter
1871
  @Setter
1872
  @EqualsAndHashCode(callSuper = false)
1873
  public static class Multibanco extends StripeObject {
1✔
1874
    /**
1875
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1876
     * {@code on} and the payment method's capability is active.
1877
     */
1878
    @SerializedName("available")
1879
    Boolean available;
1880

1881
    @SerializedName("display_preference")
1882
    DisplayPreference displayPreference;
1883

1884
    /**
1885
     * For more details about DisplayPreference, please refer to the <a
1886
     * href="https://docs.stripe.com/api">API Reference.</a>
1887
     */
1888
    @Getter
1889
    @Setter
1890
    @EqualsAndHashCode(callSuper = false)
1891
    public static class DisplayPreference extends StripeObject {
1✔
1892
      /**
1893
       * For child configs, whether or not the account's preference will be observed. If {@code
1894
       * false}, the parent configuration's default is used.
1895
       */
1896
      @SerializedName("overridable")
1897
      Boolean overridable;
1898

1899
      /**
1900
       * The account's display preference.
1901
       *
1902
       * <p>One of {@code none}, {@code off}, or {@code on}.
1903
       */
1904
      @SerializedName("preference")
1905
      String preference;
1906

1907
      /**
1908
       * The effective display preference value.
1909
       *
1910
       * <p>One of {@code off}, or {@code on}.
1911
       */
1912
      @SerializedName("value")
1913
      String value;
1914
    }
1915
  }
1916

1917
  /**
1918
   * For more details about Oxxo, please refer to the <a href="https://docs.stripe.com/api">API
1919
   * Reference.</a>
1920
   */
1921
  @Getter
1922
  @Setter
1923
  @EqualsAndHashCode(callSuper = false)
1924
  public static class Oxxo extends StripeObject {
×
1925
    /**
1926
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1927
     * {@code on} and the payment method's capability is active.
1928
     */
1929
    @SerializedName("available")
1930
    Boolean available;
1931

1932
    @SerializedName("display_preference")
1933
    DisplayPreference displayPreference;
1934

1935
    /**
1936
     * For more details about DisplayPreference, please refer to the <a
1937
     * href="https://docs.stripe.com/api">API Reference.</a>
1938
     */
1939
    @Getter
1940
    @Setter
1941
    @EqualsAndHashCode(callSuper = false)
1942
    public static class DisplayPreference extends StripeObject {
×
1943
      /**
1944
       * For child configs, whether or not the account's preference will be observed. If {@code
1945
       * false}, the parent configuration's default is used.
1946
       */
1947
      @SerializedName("overridable")
1948
      Boolean overridable;
1949

1950
      /**
1951
       * The account's display preference.
1952
       *
1953
       * <p>One of {@code none}, {@code off}, or {@code on}.
1954
       */
1955
      @SerializedName("preference")
1956
      String preference;
1957

1958
      /**
1959
       * The effective display preference value.
1960
       *
1961
       * <p>One of {@code off}, or {@code on}.
1962
       */
1963
      @SerializedName("value")
1964
      String value;
1965
    }
1966
  }
1967

1968
  /**
1969
   * For more details about P24, please refer to the <a href="https://docs.stripe.com/api">API
1970
   * Reference.</a>
1971
   */
1972
  @Getter
1973
  @Setter
1974
  @EqualsAndHashCode(callSuper = false)
1975
  public static class P24 extends StripeObject {
1✔
1976
    /**
1977
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1978
     * {@code on} and the payment method's capability is active.
1979
     */
1980
    @SerializedName("available")
1981
    Boolean available;
1982

1983
    @SerializedName("display_preference")
1984
    DisplayPreference displayPreference;
1985

1986
    /**
1987
     * For more details about DisplayPreference, please refer to the <a
1988
     * href="https://docs.stripe.com/api">API Reference.</a>
1989
     */
1990
    @Getter
1991
    @Setter
1992
    @EqualsAndHashCode(callSuper = false)
1993
    public static class DisplayPreference extends StripeObject {
1✔
1994
      /**
1995
       * For child configs, whether or not the account's preference will be observed. If {@code
1996
       * false}, the parent configuration's default is used.
1997
       */
1998
      @SerializedName("overridable")
1999
      Boolean overridable;
2000

2001
      /**
2002
       * The account's display preference.
2003
       *
2004
       * <p>One of {@code none}, {@code off}, or {@code on}.
2005
       */
2006
      @SerializedName("preference")
2007
      String preference;
2008

2009
      /**
2010
       * The effective display preference value.
2011
       *
2012
       * <p>One of {@code off}, or {@code on}.
2013
       */
2014
      @SerializedName("value")
2015
      String value;
2016
    }
2017
  }
2018

2019
  /**
2020
   * For more details about Paynow, please refer to the <a href="https://docs.stripe.com/api">API
2021
   * Reference.</a>
2022
   */
2023
  @Getter
2024
  @Setter
2025
  @EqualsAndHashCode(callSuper = false)
2026
  public static class Paynow extends StripeObject {
×
2027
    /**
2028
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2029
     * {@code on} and the payment method's capability is active.
2030
     */
2031
    @SerializedName("available")
2032
    Boolean available;
2033

2034
    @SerializedName("display_preference")
2035
    DisplayPreference displayPreference;
2036

2037
    /**
2038
     * For more details about DisplayPreference, please refer to the <a
2039
     * href="https://docs.stripe.com/api">API Reference.</a>
2040
     */
2041
    @Getter
2042
    @Setter
2043
    @EqualsAndHashCode(callSuper = false)
2044
    public static class DisplayPreference extends StripeObject {
×
2045
      /**
2046
       * For child configs, whether or not the account's preference will be observed. If {@code
2047
       * false}, the parent configuration's default is used.
2048
       */
2049
      @SerializedName("overridable")
2050
      Boolean overridable;
2051

2052
      /**
2053
       * The account's display preference.
2054
       *
2055
       * <p>One of {@code none}, {@code off}, or {@code on}.
2056
       */
2057
      @SerializedName("preference")
2058
      String preference;
2059

2060
      /**
2061
       * The effective display preference value.
2062
       *
2063
       * <p>One of {@code off}, or {@code on}.
2064
       */
2065
      @SerializedName("value")
2066
      String value;
2067
    }
2068
  }
2069

2070
  /**
2071
   * For more details about Paypal, please refer to the <a href="https://docs.stripe.com/api">API
2072
   * Reference.</a>
2073
   */
2074
  @Getter
2075
  @Setter
2076
  @EqualsAndHashCode(callSuper = false)
2077
  public static class Paypal extends StripeObject {
×
2078
    /**
2079
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2080
     * {@code on} and the payment method's capability is active.
2081
     */
2082
    @SerializedName("available")
2083
    Boolean available;
2084

2085
    @SerializedName("display_preference")
2086
    DisplayPreference displayPreference;
2087

2088
    /**
2089
     * For more details about DisplayPreference, please refer to the <a
2090
     * href="https://docs.stripe.com/api">API Reference.</a>
2091
     */
2092
    @Getter
2093
    @Setter
2094
    @EqualsAndHashCode(callSuper = false)
2095
    public static class DisplayPreference extends StripeObject {
×
2096
      /**
2097
       * For child configs, whether or not the account's preference will be observed. If {@code
2098
       * false}, the parent configuration's default is used.
2099
       */
2100
      @SerializedName("overridable")
2101
      Boolean overridable;
2102

2103
      /**
2104
       * The account's display preference.
2105
       *
2106
       * <p>One of {@code none}, {@code off}, or {@code on}.
2107
       */
2108
      @SerializedName("preference")
2109
      String preference;
2110

2111
      /**
2112
       * The effective display preference value.
2113
       *
2114
       * <p>One of {@code off}, or {@code on}.
2115
       */
2116
      @SerializedName("value")
2117
      String value;
2118
    }
2119
  }
2120

2121
  /**
2122
   * For more details about Payto, please refer to the <a href="https://docs.stripe.com/api">API
2123
   * Reference.</a>
2124
   */
2125
  @Getter
2126
  @Setter
2127
  @EqualsAndHashCode(callSuper = false)
2128
  public static class Payto extends StripeObject {
×
2129
    /**
2130
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2131
     * {@code on} and the payment method's capability is active.
2132
     */
2133
    @SerializedName("available")
2134
    Boolean available;
2135

2136
    @SerializedName("display_preference")
2137
    DisplayPreference displayPreference;
2138

2139
    /**
2140
     * For more details about DisplayPreference, please refer to the <a
2141
     * href="https://docs.stripe.com/api">API Reference.</a>
2142
     */
2143
    @Getter
2144
    @Setter
2145
    @EqualsAndHashCode(callSuper = false)
2146
    public static class DisplayPreference extends StripeObject {
×
2147
      /**
2148
       * For child configs, whether or not the account's preference will be observed. If {@code
2149
       * false}, the parent configuration's default is used.
2150
       */
2151
      @SerializedName("overridable")
2152
      Boolean overridable;
2153

2154
      /**
2155
       * The account's display preference.
2156
       *
2157
       * <p>One of {@code none}, {@code off}, or {@code on}.
2158
       */
2159
      @SerializedName("preference")
2160
      String preference;
2161

2162
      /**
2163
       * The effective display preference value.
2164
       *
2165
       * <p>One of {@code off}, or {@code on}.
2166
       */
2167
      @SerializedName("value")
2168
      String value;
2169
    }
2170
  }
2171

2172
  /**
2173
   * For more details about Promptpay, please refer to the <a href="https://docs.stripe.com/api">API
2174
   * Reference.</a>
2175
   */
2176
  @Getter
2177
  @Setter
2178
  @EqualsAndHashCode(callSuper = false)
2179
  public static class Promptpay extends StripeObject {
×
2180
    /**
2181
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2182
     * {@code on} and the payment method's capability is active.
2183
     */
2184
    @SerializedName("available")
2185
    Boolean available;
2186

2187
    @SerializedName("display_preference")
2188
    DisplayPreference displayPreference;
2189

2190
    /**
2191
     * For more details about DisplayPreference, please refer to the <a
2192
     * href="https://docs.stripe.com/api">API Reference.</a>
2193
     */
2194
    @Getter
2195
    @Setter
2196
    @EqualsAndHashCode(callSuper = false)
2197
    public static class DisplayPreference extends StripeObject {
×
2198
      /**
2199
       * For child configs, whether or not the account's preference will be observed. If {@code
2200
       * false}, the parent configuration's default is used.
2201
       */
2202
      @SerializedName("overridable")
2203
      Boolean overridable;
2204

2205
      /**
2206
       * The account's display preference.
2207
       *
2208
       * <p>One of {@code none}, {@code off}, or {@code on}.
2209
       */
2210
      @SerializedName("preference")
2211
      String preference;
2212

2213
      /**
2214
       * The effective display preference value.
2215
       *
2216
       * <p>One of {@code off}, or {@code on}.
2217
       */
2218
      @SerializedName("value")
2219
      String value;
2220
    }
2221
  }
2222

2223
  /**
2224
   * For more details about Qris, please refer to the <a href="https://docs.stripe.com/api">API
2225
   * Reference.</a>
2226
   */
2227
  @Getter
2228
  @Setter
2229
  @EqualsAndHashCode(callSuper = false)
NEW
2230
  public static class Qris extends StripeObject {
×
2231
    /**
2232
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2233
     * {@code on} and the payment method's capability is active.
2234
     */
2235
    @SerializedName("available")
2236
    Boolean available;
2237

2238
    @SerializedName("display_preference")
2239
    DisplayPreference displayPreference;
2240

2241
    /**
2242
     * For more details about DisplayPreference, please refer to the <a
2243
     * href="https://docs.stripe.com/api">API Reference.</a>
2244
     */
2245
    @Getter
2246
    @Setter
2247
    @EqualsAndHashCode(callSuper = false)
NEW
2248
    public static class DisplayPreference extends StripeObject {
×
2249
      /**
2250
       * For child configs, whether or not the account's preference will be observed. If {@code
2251
       * false}, the parent configuration's default is used.
2252
       */
2253
      @SerializedName("overridable")
2254
      Boolean overridable;
2255

2256
      /**
2257
       * The account's display preference.
2258
       *
2259
       * <p>One of {@code none}, {@code off}, or {@code on}.
2260
       */
2261
      @SerializedName("preference")
2262
      String preference;
2263

2264
      /**
2265
       * The effective display preference value.
2266
       *
2267
       * <p>One of {@code off}, or {@code on}.
2268
       */
2269
      @SerializedName("value")
2270
      String value;
2271
    }
2272
  }
2273

2274
  /**
2275
   * For more details about RevolutPay, please refer to the <a
2276
   * href="https://docs.stripe.com/api">API Reference.</a>
2277
   */
2278
  @Getter
2279
  @Setter
2280
  @EqualsAndHashCode(callSuper = false)
2281
  public static class RevolutPay extends StripeObject {
×
2282
    /**
2283
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2284
     * {@code on} and the payment method's capability is active.
2285
     */
2286
    @SerializedName("available")
2287
    Boolean available;
2288

2289
    @SerializedName("display_preference")
2290
    DisplayPreference displayPreference;
2291

2292
    /**
2293
     * For more details about DisplayPreference, please refer to the <a
2294
     * href="https://docs.stripe.com/api">API Reference.</a>
2295
     */
2296
    @Getter
2297
    @Setter
2298
    @EqualsAndHashCode(callSuper = false)
2299
    public static class DisplayPreference extends StripeObject {
×
2300
      /**
2301
       * For child configs, whether or not the account's preference will be observed. If {@code
2302
       * false}, the parent configuration's default is used.
2303
       */
2304
      @SerializedName("overridable")
2305
      Boolean overridable;
2306

2307
      /**
2308
       * The account's display preference.
2309
       *
2310
       * <p>One of {@code none}, {@code off}, or {@code on}.
2311
       */
2312
      @SerializedName("preference")
2313
      String preference;
2314

2315
      /**
2316
       * The effective display preference value.
2317
       *
2318
       * <p>One of {@code off}, or {@code on}.
2319
       */
2320
      @SerializedName("value")
2321
      String value;
2322
    }
2323
  }
2324

2325
  /**
2326
   * For more details about SepaDebit, please refer to the <a href="https://docs.stripe.com/api">API
2327
   * Reference.</a>
2328
   */
2329
  @Getter
2330
  @Setter
2331
  @EqualsAndHashCode(callSuper = false)
2332
  public static class SepaDebit extends StripeObject {
1✔
2333
    /**
2334
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2335
     * {@code on} and the payment method's capability is active.
2336
     */
2337
    @SerializedName("available")
2338
    Boolean available;
2339

2340
    @SerializedName("display_preference")
2341
    DisplayPreference displayPreference;
2342

2343
    /**
2344
     * For more details about DisplayPreference, please refer to the <a
2345
     * href="https://docs.stripe.com/api">API Reference.</a>
2346
     */
2347
    @Getter
2348
    @Setter
2349
    @EqualsAndHashCode(callSuper = false)
2350
    public static class DisplayPreference extends StripeObject {
1✔
2351
      /**
2352
       * For child configs, whether or not the account's preference will be observed. If {@code
2353
       * false}, the parent configuration's default is used.
2354
       */
2355
      @SerializedName("overridable")
2356
      Boolean overridable;
2357

2358
      /**
2359
       * The account's display preference.
2360
       *
2361
       * <p>One of {@code none}, {@code off}, or {@code on}.
2362
       */
2363
      @SerializedName("preference")
2364
      String preference;
2365

2366
      /**
2367
       * The effective display preference value.
2368
       *
2369
       * <p>One of {@code off}, or {@code on}.
2370
       */
2371
      @SerializedName("value")
2372
      String value;
2373
    }
2374
  }
2375

2376
  /**
2377
   * For more details about Shopeepay, please refer to the <a href="https://docs.stripe.com/api">API
2378
   * Reference.</a>
2379
   */
2380
  @Getter
2381
  @Setter
2382
  @EqualsAndHashCode(callSuper = false)
NEW
2383
  public static class Shopeepay extends StripeObject {
×
2384
    /**
2385
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2386
     * {@code on} and the payment method's capability is active.
2387
     */
2388
    @SerializedName("available")
2389
    Boolean available;
2390

2391
    @SerializedName("display_preference")
2392
    DisplayPreference displayPreference;
2393

2394
    /**
2395
     * For more details about DisplayPreference, please refer to the <a
2396
     * href="https://docs.stripe.com/api">API Reference.</a>
2397
     */
2398
    @Getter
2399
    @Setter
2400
    @EqualsAndHashCode(callSuper = false)
NEW
2401
    public static class DisplayPreference extends StripeObject {
×
2402
      /**
2403
       * For child configs, whether or not the account's preference will be observed. If {@code
2404
       * false}, the parent configuration's default is used.
2405
       */
2406
      @SerializedName("overridable")
2407
      Boolean overridable;
2408

2409
      /**
2410
       * The account's display preference.
2411
       *
2412
       * <p>One of {@code none}, {@code off}, or {@code on}.
2413
       */
2414
      @SerializedName("preference")
2415
      String preference;
2416

2417
      /**
2418
       * The effective display preference value.
2419
       *
2420
       * <p>One of {@code off}, or {@code on}.
2421
       */
2422
      @SerializedName("value")
2423
      String value;
2424
    }
2425
  }
2426

2427
  /**
2428
   * For more details about Sofort, please refer to the <a href="https://docs.stripe.com/api">API
2429
   * Reference.</a>
2430
   */
2431
  @Getter
2432
  @Setter
2433
  @EqualsAndHashCode(callSuper = false)
2434
  public static class Sofort extends StripeObject {
1✔
2435
    /**
2436
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2437
     * {@code on} and the payment method's capability is active.
2438
     */
2439
    @SerializedName("available")
2440
    Boolean available;
2441

2442
    @SerializedName("display_preference")
2443
    DisplayPreference displayPreference;
2444

2445
    /**
2446
     * For more details about DisplayPreference, please refer to the <a
2447
     * href="https://docs.stripe.com/api">API Reference.</a>
2448
     */
2449
    @Getter
2450
    @Setter
2451
    @EqualsAndHashCode(callSuper = false)
2452
    public static class DisplayPreference extends StripeObject {
1✔
2453
      /**
2454
       * For child configs, whether or not the account's preference will be observed. If {@code
2455
       * false}, the parent configuration's default is used.
2456
       */
2457
      @SerializedName("overridable")
2458
      Boolean overridable;
2459

2460
      /**
2461
       * The account's display preference.
2462
       *
2463
       * <p>One of {@code none}, {@code off}, or {@code on}.
2464
       */
2465
      @SerializedName("preference")
2466
      String preference;
2467

2468
      /**
2469
       * The effective display preference value.
2470
       *
2471
       * <p>One of {@code off}, or {@code on}.
2472
       */
2473
      @SerializedName("value")
2474
      String value;
2475
    }
2476
  }
2477

2478
  /**
2479
   * For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
2480
   * Reference.</a>
2481
   */
2482
  @Getter
2483
  @Setter
2484
  @EqualsAndHashCode(callSuper = false)
2485
  public static class Swish extends StripeObject {
×
2486
    /**
2487
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2488
     * {@code on} and the payment method's capability is active.
2489
     */
2490
    @SerializedName("available")
2491
    Boolean available;
2492

2493
    @SerializedName("display_preference")
2494
    DisplayPreference displayPreference;
2495

2496
    /**
2497
     * For more details about DisplayPreference, please refer to the <a
2498
     * href="https://docs.stripe.com/api">API Reference.</a>
2499
     */
2500
    @Getter
2501
    @Setter
2502
    @EqualsAndHashCode(callSuper = false)
2503
    public static class DisplayPreference extends StripeObject {
×
2504
      /**
2505
       * For child configs, whether or not the account's preference will be observed. If {@code
2506
       * false}, the parent configuration's default is used.
2507
       */
2508
      @SerializedName("overridable")
2509
      Boolean overridable;
2510

2511
      /**
2512
       * The account's display preference.
2513
       *
2514
       * <p>One of {@code none}, {@code off}, or {@code on}.
2515
       */
2516
      @SerializedName("preference")
2517
      String preference;
2518

2519
      /**
2520
       * The effective display preference value.
2521
       *
2522
       * <p>One of {@code off}, or {@code on}.
2523
       */
2524
      @SerializedName("value")
2525
      String value;
2526
    }
2527
  }
2528

2529
  /**
2530
   * For more details about Twint, please refer to the <a href="https://docs.stripe.com/api">API
2531
   * Reference.</a>
2532
   */
2533
  @Getter
2534
  @Setter
2535
  @EqualsAndHashCode(callSuper = false)
2536
  public static class Twint extends StripeObject {
×
2537
    /**
2538
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2539
     * {@code on} and the payment method's capability is active.
2540
     */
2541
    @SerializedName("available")
2542
    Boolean available;
2543

2544
    @SerializedName("display_preference")
2545
    DisplayPreference displayPreference;
2546

2547
    /**
2548
     * For more details about DisplayPreference, please refer to the <a
2549
     * href="https://docs.stripe.com/api">API Reference.</a>
2550
     */
2551
    @Getter
2552
    @Setter
2553
    @EqualsAndHashCode(callSuper = false)
2554
    public static class DisplayPreference extends StripeObject {
×
2555
      /**
2556
       * For child configs, whether or not the account's preference will be observed. If {@code
2557
       * false}, the parent configuration's default is used.
2558
       */
2559
      @SerializedName("overridable")
2560
      Boolean overridable;
2561

2562
      /**
2563
       * The account's display preference.
2564
       *
2565
       * <p>One of {@code none}, {@code off}, or {@code on}.
2566
       */
2567
      @SerializedName("preference")
2568
      String preference;
2569

2570
      /**
2571
       * The effective display preference value.
2572
       *
2573
       * <p>One of {@code off}, or {@code on}.
2574
       */
2575
      @SerializedName("value")
2576
      String value;
2577
    }
2578
  }
2579

2580
  /**
2581
   * For more details about UsBankAccount, please refer to the <a
2582
   * href="https://docs.stripe.com/api">API Reference.</a>
2583
   */
2584
  @Getter
2585
  @Setter
2586
  @EqualsAndHashCode(callSuper = false)
2587
  public static class UsBankAccount extends StripeObject {
1✔
2588
    /**
2589
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2590
     * {@code on} and the payment method's capability is active.
2591
     */
2592
    @SerializedName("available")
2593
    Boolean available;
2594

2595
    @SerializedName("display_preference")
2596
    DisplayPreference displayPreference;
2597

2598
    /**
2599
     * For more details about DisplayPreference, please refer to the <a
2600
     * href="https://docs.stripe.com/api">API Reference.</a>
2601
     */
2602
    @Getter
2603
    @Setter
2604
    @EqualsAndHashCode(callSuper = false)
2605
    public static class DisplayPreference extends StripeObject {
1✔
2606
      /**
2607
       * For child configs, whether or not the account's preference will be observed. If {@code
2608
       * false}, the parent configuration's default is used.
2609
       */
2610
      @SerializedName("overridable")
2611
      Boolean overridable;
2612

2613
      /**
2614
       * The account's display preference.
2615
       *
2616
       * <p>One of {@code none}, {@code off}, or {@code on}.
2617
       */
2618
      @SerializedName("preference")
2619
      String preference;
2620

2621
      /**
2622
       * The effective display preference value.
2623
       *
2624
       * <p>One of {@code off}, or {@code on}.
2625
       */
2626
      @SerializedName("value")
2627
      String value;
2628
    }
2629
  }
2630

2631
  /**
2632
   * For more details about WechatPay, please refer to the <a href="https://docs.stripe.com/api">API
2633
   * Reference.</a>
2634
   */
2635
  @Getter
2636
  @Setter
2637
  @EqualsAndHashCode(callSuper = false)
2638
  public static class WechatPay extends StripeObject {
1✔
2639
    /**
2640
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2641
     * {@code on} and the payment method's capability is active.
2642
     */
2643
    @SerializedName("available")
2644
    Boolean available;
2645

2646
    @SerializedName("display_preference")
2647
    DisplayPreference displayPreference;
2648

2649
    /**
2650
     * For more details about DisplayPreference, please refer to the <a
2651
     * href="https://docs.stripe.com/api">API Reference.</a>
2652
     */
2653
    @Getter
2654
    @Setter
2655
    @EqualsAndHashCode(callSuper = false)
2656
    public static class DisplayPreference extends StripeObject {
1✔
2657
      /**
2658
       * For child configs, whether or not the account's preference will be observed. If {@code
2659
       * false}, the parent configuration's default is used.
2660
       */
2661
      @SerializedName("overridable")
2662
      Boolean overridable;
2663

2664
      /**
2665
       * The account's display preference.
2666
       *
2667
       * <p>One of {@code none}, {@code off}, or {@code on}.
2668
       */
2669
      @SerializedName("preference")
2670
      String preference;
2671

2672
      /**
2673
       * The effective display preference value.
2674
       *
2675
       * <p>One of {@code off}, or {@code on}.
2676
       */
2677
      @SerializedName("value")
2678
      String value;
2679
    }
2680
  }
2681

2682
  /**
2683
   * For more details about Zip, please refer to the <a href="https://docs.stripe.com/api">API
2684
   * Reference.</a>
2685
   */
2686
  @Getter
2687
  @Setter
2688
  @EqualsAndHashCode(callSuper = false)
2689
  public static class Zip extends StripeObject {
1✔
2690
    /**
2691
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2692
     * {@code on} and the payment method's capability is active.
2693
     */
2694
    @SerializedName("available")
2695
    Boolean available;
2696

2697
    @SerializedName("display_preference")
2698
    DisplayPreference displayPreference;
2699

2700
    /**
2701
     * For more details about DisplayPreference, please refer to the <a
2702
     * href="https://docs.stripe.com/api">API Reference.</a>
2703
     */
2704
    @Getter
2705
    @Setter
2706
    @EqualsAndHashCode(callSuper = false)
2707
    public static class DisplayPreference extends StripeObject {
1✔
2708
      /**
2709
       * For child configs, whether or not the account's preference will be observed. If {@code
2710
       * false}, the parent configuration's default is used.
2711
       */
2712
      @SerializedName("overridable")
2713
      Boolean overridable;
2714

2715
      /**
2716
       * The account's display preference.
2717
       *
2718
       * <p>One of {@code none}, {@code off}, or {@code on}.
2719
       */
2720
      @SerializedName("preference")
2721
      String preference;
2722

2723
      /**
2724
       * The effective display preference value.
2725
       *
2726
       * <p>One of {@code off}, or {@code on}.
2727
       */
2728
      @SerializedName("value")
2729
      String value;
2730
    }
2731
  }
2732

2733
  @Override
2734
  public void setResponseGetter(StripeResponseGetter responseGetter) {
2735
    super.setResponseGetter(responseGetter);
1✔
2736
    trySetResponseGetter(acssDebit, responseGetter);
1✔
2737
    trySetResponseGetter(affirm, responseGetter);
1✔
2738
    trySetResponseGetter(afterpayClearpay, responseGetter);
1✔
2739
    trySetResponseGetter(alipay, responseGetter);
1✔
2740
    trySetResponseGetter(alma, responseGetter);
1✔
2741
    trySetResponseGetter(amazonPay, responseGetter);
1✔
2742
    trySetResponseGetter(applePay, responseGetter);
1✔
2743
    trySetResponseGetter(auBecsDebit, responseGetter);
1✔
2744
    trySetResponseGetter(bacsDebit, responseGetter);
1✔
2745
    trySetResponseGetter(bancontact, responseGetter);
1✔
2746
    trySetResponseGetter(blik, responseGetter);
1✔
2747
    trySetResponseGetter(boleto, responseGetter);
1✔
2748
    trySetResponseGetter(card, responseGetter);
1✔
2749
    trySetResponseGetter(cartesBancaires, responseGetter);
1✔
2750
    trySetResponseGetter(cashapp, responseGetter);
1✔
2751
    trySetResponseGetter(customerBalance, responseGetter);
1✔
2752
    trySetResponseGetter(eps, responseGetter);
1✔
2753
    trySetResponseGetter(fpx, responseGetter);
1✔
2754
    trySetResponseGetter(giropay, responseGetter);
1✔
2755
    trySetResponseGetter(googlePay, responseGetter);
1✔
2756
    trySetResponseGetter(gopay, responseGetter);
1✔
2757
    trySetResponseGetter(grabpay, responseGetter);
1✔
2758
    trySetResponseGetter(idBankTransfer, responseGetter);
1✔
2759
    trySetResponseGetter(ideal, responseGetter);
1✔
2760
    trySetResponseGetter(jcb, responseGetter);
1✔
2761
    trySetResponseGetter(klarna, responseGetter);
1✔
2762
    trySetResponseGetter(konbini, responseGetter);
1✔
2763
    trySetResponseGetter(link, responseGetter);
1✔
2764
    trySetResponseGetter(mobilepay, responseGetter);
1✔
2765
    trySetResponseGetter(multibanco, responseGetter);
1✔
2766
    trySetResponseGetter(oxxo, responseGetter);
1✔
2767
    trySetResponseGetter(p24, responseGetter);
1✔
2768
    trySetResponseGetter(paynow, responseGetter);
1✔
2769
    trySetResponseGetter(paypal, responseGetter);
1✔
2770
    trySetResponseGetter(payto, responseGetter);
1✔
2771
    trySetResponseGetter(promptpay, responseGetter);
1✔
2772
    trySetResponseGetter(qris, responseGetter);
1✔
2773
    trySetResponseGetter(revolutPay, responseGetter);
1✔
2774
    trySetResponseGetter(sepaDebit, responseGetter);
1✔
2775
    trySetResponseGetter(shopeepay, responseGetter);
1✔
2776
    trySetResponseGetter(sofort, responseGetter);
1✔
2777
    trySetResponseGetter(swish, responseGetter);
1✔
2778
    trySetResponseGetter(twint, responseGetter);
1✔
2779
    trySetResponseGetter(usBankAccount, responseGetter);
1✔
2780
    trySetResponseGetter(wechatPay, responseGetter);
1✔
2781
    trySetResponseGetter(zip, responseGetter);
1✔
2782
  }
1✔
2783
}
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