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

stripe / stripe-java / #16562

18 Oct 2024 07:00PM UTC coverage: 12.614% (-0.1%) from 12.74%
#16562

push

github

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

Update generated code for beta

49 of 1978 new or added lines in 47 files covered. (2.48%)

68 existing lines in 20 files now uncovered.

18798 of 149026 relevant lines covered (12.61%)

0.13 hits per line

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

69.49
/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("grabpay")
124
  Grabpay grabpay;
125

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

131
  @SerializedName("ideal")
132
  Ideal ideal;
133

134
  /** The default configuration is used whenever a payment method configuration is not specified. */
135
  @SerializedName("is_default")
136
  Boolean isDefault;
137

138
  @SerializedName("jcb")
139
  Jcb jcb;
140

141
  @SerializedName("klarna")
142
  Klarna klarna;
143

144
  @SerializedName("konbini")
145
  Konbini konbini;
146

147
  @SerializedName("link")
148
  Link link;
149

150
  /**
151
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
152
   * object exists in test mode.
153
   */
154
  @SerializedName("livemode")
155
  Boolean livemode;
156

157
  @SerializedName("mobilepay")
158
  Mobilepay mobilepay;
159

160
  @SerializedName("multibanco")
161
  Multibanco multibanco;
162

163
  /** The configuration's name. */
164
  @SerializedName("name")
165
  String name;
166

167
  /**
168
   * String representing the object's type. Objects of the same type share the same value.
169
   *
170
   * <p>Equal to {@code payment_method_configuration}.
171
   */
172
  @SerializedName("object")
173
  String object;
174

175
  @SerializedName("oxxo")
176
  Oxxo oxxo;
177

178
  @SerializedName("p24")
179
  P24 p24;
180

181
  /** For child configs, the configuration's parent configuration. */
182
  @SerializedName("parent")
183
  String parent;
184

185
  @SerializedName("paynow")
186
  Paynow paynow;
187

188
  @SerializedName("paypal")
189
  Paypal paypal;
190

191
  @SerializedName("payto")
192
  Payto payto;
193

194
  @SerializedName("promptpay")
195
  Promptpay promptpay;
196

197
  @SerializedName("revolut_pay")
198
  RevolutPay revolutPay;
199

200
  @SerializedName("sepa_debit")
201
  SepaDebit sepaDebit;
202

203
  @SerializedName("sofort")
204
  Sofort sofort;
205

206
  @SerializedName("swish")
207
  Swish swish;
208

209
  @SerializedName("twint")
210
  Twint twint;
211

212
  @SerializedName("us_bank_account")
213
  UsBankAccount usBankAccount;
214

215
  @SerializedName("wechat_pay")
216
  WechatPay wechatPay;
217

218
  @SerializedName("zip")
219
  Zip zip;
220

221
  /** Creates a payment method configuration. */
222
  public static PaymentMethodConfiguration create(Map<String, Object> params)
223
      throws StripeException {
224
    return create(params, (RequestOptions) null);
×
225
  }
226

227
  /** Creates a payment method configuration. */
228
  public static PaymentMethodConfiguration create(
229
      Map<String, Object> params, RequestOptions options) throws StripeException {
230
    String path = "/v1/payment_method_configurations";
×
231
    ApiRequest request =
×
232
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
233
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
×
234
  }
235

236
  /** Creates a payment method configuration. */
237
  public static PaymentMethodConfiguration create(PaymentMethodConfigurationCreateParams params)
238
      throws StripeException {
239
    return create(params, (RequestOptions) null);
1✔
240
  }
241

242
  /** Creates a payment method configuration. */
243
  public static PaymentMethodConfiguration create(
244
      PaymentMethodConfigurationCreateParams params, RequestOptions options)
245
      throws StripeException {
246
    String path = "/v1/payment_method_configurations";
1✔
247
    ApiResource.checkNullTypedParams(path, params);
1✔
248
    ApiRequest request =
1✔
249
        new ApiRequest(
250
            BaseAddress.API,
251
            ApiResource.RequestMethod.POST,
252
            path,
253
            ApiRequestParams.paramsToMap(params),
1✔
254
            options);
255
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
1✔
256
  }
257

258
  /** List payment method configurations. */
259
  public static PaymentMethodConfigurationCollection list(Map<String, Object> params)
260
      throws StripeException {
261
    return list(params, (RequestOptions) null);
×
262
  }
263

264
  /** List payment method configurations. */
265
  public static PaymentMethodConfigurationCollection list(
266
      Map<String, Object> params, RequestOptions options) throws StripeException {
267
    String path = "/v1/payment_method_configurations";
×
268
    ApiRequest request =
×
269
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
270
    return getGlobalResponseGetter().request(request, PaymentMethodConfigurationCollection.class);
×
271
  }
272

273
  /** List payment method configurations. */
274
  public static PaymentMethodConfigurationCollection list(
275
      PaymentMethodConfigurationListParams params) throws StripeException {
276
    return list(params, (RequestOptions) null);
1✔
277
  }
278

279
  /** List payment method configurations. */
280
  public static PaymentMethodConfigurationCollection list(
281
      PaymentMethodConfigurationListParams params, RequestOptions options) throws StripeException {
282
    String path = "/v1/payment_method_configurations";
1✔
283
    ApiResource.checkNullTypedParams(path, params);
1✔
284
    ApiRequest request =
1✔
285
        new ApiRequest(
286
            BaseAddress.API,
287
            ApiResource.RequestMethod.GET,
288
            path,
289
            ApiRequestParams.paramsToMap(params),
1✔
290
            options);
291
    return getGlobalResponseGetter().request(request, PaymentMethodConfigurationCollection.class);
1✔
292
  }
293

294
  /** Retrieve payment method configuration. */
295
  public static PaymentMethodConfiguration retrieve(String configuration) throws StripeException {
296
    return retrieve(configuration, (Map<String, Object>) null, (RequestOptions) null);
1✔
297
  }
298

299
  /** Retrieve payment method configuration. */
300
  public static PaymentMethodConfiguration retrieve(String configuration, RequestOptions options)
301
      throws StripeException {
302
    return retrieve(configuration, (Map<String, Object>) null, options);
×
303
  }
304

305
  /** Retrieve payment method configuration. */
306
  public static PaymentMethodConfiguration retrieve(
307
      String configuration, Map<String, Object> params, RequestOptions options)
308
      throws StripeException {
309
    String path =
1✔
310
        String.format(
1✔
311
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(configuration));
1✔
312
    ApiRequest request =
1✔
313
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
314
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
1✔
315
  }
316

317
  /** Retrieve payment method configuration. */
318
  public static PaymentMethodConfiguration retrieve(
319
      String configuration, PaymentMethodConfigurationRetrieveParams params, RequestOptions options)
320
      throws StripeException {
321
    String path =
×
322
        String.format(
×
323
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(configuration));
×
324
    ApiResource.checkNullTypedParams(path, params);
×
325
    ApiRequest request =
×
326
        new ApiRequest(
327
            BaseAddress.API,
328
            ApiResource.RequestMethod.GET,
329
            path,
330
            ApiRequestParams.paramsToMap(params),
×
331
            options);
332
    return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class);
×
333
  }
334

335
  /** Update payment method configuration. */
336
  public PaymentMethodConfiguration update(Map<String, Object> params) throws StripeException {
337
    return update(params, (RequestOptions) null);
×
338
  }
339

340
  /** Update payment method configuration. */
341
  public PaymentMethodConfiguration update(Map<String, Object> params, RequestOptions options)
342
      throws StripeException {
343
    String path =
×
344
        String.format(
×
345
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(this.getId()));
×
346
    ApiRequest request =
×
347
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
348
    return getResponseGetter().request(request, PaymentMethodConfiguration.class);
×
349
  }
350

351
  /** Update payment method configuration. */
352
  public PaymentMethodConfiguration update(PaymentMethodConfigurationUpdateParams params)
353
      throws StripeException {
354
    return update(params, (RequestOptions) null);
1✔
355
  }
356

357
  /** Update payment method configuration. */
358
  public PaymentMethodConfiguration update(
359
      PaymentMethodConfigurationUpdateParams params, RequestOptions options)
360
      throws StripeException {
361
    String path =
1✔
362
        String.format(
1✔
363
            "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(this.getId()));
1✔
364
    ApiResource.checkNullTypedParams(path, params);
1✔
365
    ApiRequest request =
1✔
366
        new ApiRequest(
367
            BaseAddress.API,
368
            ApiResource.RequestMethod.POST,
369
            path,
370
            ApiRequestParams.paramsToMap(params),
1✔
371
            options);
372
    return getResponseGetter().request(request, PaymentMethodConfiguration.class);
1✔
373
  }
374

375
  /**
376
   * For more details about AcssDebit, please refer to the <a href="https://docs.stripe.com/api">API
377
   * Reference.</a>
378
   */
379
  @Getter
380
  @Setter
381
  @EqualsAndHashCode(callSuper = false)
382
  public static class AcssDebit extends StripeObject {
1✔
383
    /**
384
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
385
     * {@code on} and the payment method's capability is active.
386
     */
387
    @SerializedName("available")
388
    Boolean available;
389

390
    @SerializedName("display_preference")
391
    DisplayPreference displayPreference;
392

393
    /**
394
     * For more details about DisplayPreference, please refer to the <a
395
     * href="https://docs.stripe.com/api">API Reference.</a>
396
     */
397
    @Getter
398
    @Setter
399
    @EqualsAndHashCode(callSuper = false)
400
    public static class DisplayPreference extends StripeObject {
1✔
401
      /**
402
       * For child configs, whether or not the account's preference will be observed. If {@code
403
       * false}, the parent configuration's default is used.
404
       */
405
      @SerializedName("overridable")
406
      Boolean overridable;
407

408
      /**
409
       * The account's display preference.
410
       *
411
       * <p>One of {@code none}, {@code off}, or {@code on}.
412
       */
413
      @SerializedName("preference")
414
      String preference;
415

416
      /**
417
       * The effective display preference value.
418
       *
419
       * <p>One of {@code off}, or {@code on}.
420
       */
421
      @SerializedName("value")
422
      String value;
423
    }
424
  }
425

426
  /**
427
   * For more details about Affirm, please refer to the <a href="https://docs.stripe.com/api">API
428
   * Reference.</a>
429
   */
430
  @Getter
431
  @Setter
432
  @EqualsAndHashCode(callSuper = false)
433
  public static class Affirm extends StripeObject {
1✔
434
    /**
435
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
436
     * {@code on} and the payment method's capability is active.
437
     */
438
    @SerializedName("available")
439
    Boolean available;
440

441
    @SerializedName("display_preference")
442
    DisplayPreference displayPreference;
443

444
    /**
445
     * For more details about DisplayPreference, please refer to the <a
446
     * href="https://docs.stripe.com/api">API Reference.</a>
447
     */
448
    @Getter
449
    @Setter
450
    @EqualsAndHashCode(callSuper = false)
451
    public static class DisplayPreference extends StripeObject {
1✔
452
      /**
453
       * For child configs, whether or not the account's preference will be observed. If {@code
454
       * false}, the parent configuration's default is used.
455
       */
456
      @SerializedName("overridable")
457
      Boolean overridable;
458

459
      /**
460
       * The account's display preference.
461
       *
462
       * <p>One of {@code none}, {@code off}, or {@code on}.
463
       */
464
      @SerializedName("preference")
465
      String preference;
466

467
      /**
468
       * The effective display preference value.
469
       *
470
       * <p>One of {@code off}, or {@code on}.
471
       */
472
      @SerializedName("value")
473
      String value;
474
    }
475
  }
476

477
  /**
478
   * For more details about AfterpayClearpay, please refer to the <a
479
   * href="https://docs.stripe.com/api">API Reference.</a>
480
   */
481
  @Getter
482
  @Setter
483
  @EqualsAndHashCode(callSuper = false)
484
  public static class AfterpayClearpay extends StripeObject {
1✔
485
    /**
486
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
487
     * {@code on} and the payment method's capability is active.
488
     */
489
    @SerializedName("available")
490
    Boolean available;
491

492
    @SerializedName("display_preference")
493
    DisplayPreference displayPreference;
494

495
    /**
496
     * For more details about DisplayPreference, please refer to the <a
497
     * href="https://docs.stripe.com/api">API Reference.</a>
498
     */
499
    @Getter
500
    @Setter
501
    @EqualsAndHashCode(callSuper = false)
502
    public static class DisplayPreference extends StripeObject {
1✔
503
      /**
504
       * For child configs, whether or not the account's preference will be observed. If {@code
505
       * false}, the parent configuration's default is used.
506
       */
507
      @SerializedName("overridable")
508
      Boolean overridable;
509

510
      /**
511
       * The account's display preference.
512
       *
513
       * <p>One of {@code none}, {@code off}, or {@code on}.
514
       */
515
      @SerializedName("preference")
516
      String preference;
517

518
      /**
519
       * The effective display preference value.
520
       *
521
       * <p>One of {@code off}, or {@code on}.
522
       */
523
      @SerializedName("value")
524
      String value;
525
    }
526
  }
527

528
  /**
529
   * For more details about Alipay, please refer to the <a href="https://docs.stripe.com/api">API
530
   * Reference.</a>
531
   */
532
  @Getter
533
  @Setter
534
  @EqualsAndHashCode(callSuper = false)
535
  public static class Alipay extends StripeObject {
1✔
536
    /**
537
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
538
     * {@code on} and the payment method's capability is active.
539
     */
540
    @SerializedName("available")
541
    Boolean available;
542

543
    @SerializedName("display_preference")
544
    DisplayPreference displayPreference;
545

546
    /**
547
     * For more details about DisplayPreference, please refer to the <a
548
     * href="https://docs.stripe.com/api">API Reference.</a>
549
     */
550
    @Getter
551
    @Setter
552
    @EqualsAndHashCode(callSuper = false)
553
    public static class DisplayPreference extends StripeObject {
1✔
554
      /**
555
       * For child configs, whether or not the account's preference will be observed. If {@code
556
       * false}, the parent configuration's default is used.
557
       */
558
      @SerializedName("overridable")
559
      Boolean overridable;
560

561
      /**
562
       * The account's display preference.
563
       *
564
       * <p>One of {@code none}, {@code off}, or {@code on}.
565
       */
566
      @SerializedName("preference")
567
      String preference;
568

569
      /**
570
       * The effective display preference value.
571
       *
572
       * <p>One of {@code off}, or {@code on}.
573
       */
574
      @SerializedName("value")
575
      String value;
576
    }
577
  }
578

579
  /**
580
   * For more details about Alma, please refer to the <a href="https://docs.stripe.com/api">API
581
   * Reference.</a>
582
   */
583
  @Getter
584
  @Setter
585
  @EqualsAndHashCode(callSuper = false)
NEW
586
  public static class Alma extends StripeObject {
×
587
    /**
588
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
589
     * {@code on} and the payment method's capability is active.
590
     */
591
    @SerializedName("available")
592
    Boolean available;
593

594
    @SerializedName("display_preference")
595
    DisplayPreference displayPreference;
596

597
    /**
598
     * For more details about DisplayPreference, please refer to the <a
599
     * href="https://docs.stripe.com/api">API Reference.</a>
600
     */
601
    @Getter
602
    @Setter
603
    @EqualsAndHashCode(callSuper = false)
UNCOV
604
    public static class DisplayPreference extends StripeObject {
×
605
      /**
606
       * For child configs, whether or not the account's preference will be observed. If {@code
607
       * false}, the parent configuration's default is used.
608
       */
609
      @SerializedName("overridable")
610
      Boolean overridable;
611

612
      /**
613
       * The account's display preference.
614
       *
615
       * <p>One of {@code none}, {@code off}, or {@code on}.
616
       */
617
      @SerializedName("preference")
618
      String preference;
619

620
      /**
621
       * The effective display preference value.
622
       *
623
       * <p>One of {@code off}, or {@code on}.
624
       */
625
      @SerializedName("value")
626
      String value;
627
    }
628
  }
629

630
  /**
631
   * For more details about AmazonPay, please refer to the <a href="https://docs.stripe.com/api">API
632
   * Reference.</a>
633
   */
634
  @Getter
635
  @Setter
636
  @EqualsAndHashCode(callSuper = false)
637
  public static class AmazonPay extends StripeObject {
1✔
638
    /**
639
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
640
     * {@code on} and the payment method's capability is active.
641
     */
642
    @SerializedName("available")
643
    Boolean available;
644

645
    @SerializedName("display_preference")
646
    DisplayPreference displayPreference;
647

648
    /**
649
     * For more details about DisplayPreference, please refer to the <a
650
     * href="https://docs.stripe.com/api">API Reference.</a>
651
     */
652
    @Getter
653
    @Setter
654
    @EqualsAndHashCode(callSuper = false)
655
    public static class DisplayPreference extends StripeObject {
1✔
656
      /**
657
       * For child configs, whether or not the account's preference will be observed. If {@code
658
       * false}, the parent configuration's default is used.
659
       */
660
      @SerializedName("overridable")
661
      Boolean overridable;
662

663
      /**
664
       * The account's display preference.
665
       *
666
       * <p>One of {@code none}, {@code off}, or {@code on}.
667
       */
668
      @SerializedName("preference")
669
      String preference;
670

671
      /**
672
       * The effective display preference value.
673
       *
674
       * <p>One of {@code off}, or {@code on}.
675
       */
676
      @SerializedName("value")
677
      String value;
678
    }
679
  }
680

681
  /**
682
   * For more details about ApplePay, please refer to the <a href="https://docs.stripe.com/api">API
683
   * Reference.</a>
684
   */
685
  @Getter
686
  @Setter
687
  @EqualsAndHashCode(callSuper = false)
688
  public static class ApplePay extends StripeObject {
1✔
689
    /**
690
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
691
     * {@code on} and the payment method's capability is active.
692
     */
693
    @SerializedName("available")
694
    Boolean available;
695

696
    @SerializedName("display_preference")
697
    DisplayPreference displayPreference;
698

699
    /**
700
     * For more details about DisplayPreference, please refer to the <a
701
     * href="https://docs.stripe.com/api">API Reference.</a>
702
     */
703
    @Getter
704
    @Setter
705
    @EqualsAndHashCode(callSuper = false)
706
    public static class DisplayPreference extends StripeObject {
1✔
707
      /**
708
       * For child configs, whether or not the account's preference will be observed. If {@code
709
       * false}, the parent configuration's default is used.
710
       */
711
      @SerializedName("overridable")
712
      Boolean overridable;
713

714
      /**
715
       * The account's display preference.
716
       *
717
       * <p>One of {@code none}, {@code off}, or {@code on}.
718
       */
719
      @SerializedName("preference")
720
      String preference;
721

722
      /**
723
       * The effective display preference value.
724
       *
725
       * <p>One of {@code off}, or {@code on}.
726
       */
727
      @SerializedName("value")
728
      String value;
729
    }
730
  }
731

732
  /**
733
   * For more details about AuBecsDebit, please refer to the <a
734
   * href="https://docs.stripe.com/api">API Reference.</a>
735
   */
736
  @Getter
737
  @Setter
738
  @EqualsAndHashCode(callSuper = false)
739
  public static class AuBecsDebit extends StripeObject {
×
740
    /**
741
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
742
     * {@code on} and the payment method's capability is active.
743
     */
744
    @SerializedName("available")
745
    Boolean available;
746

747
    @SerializedName("display_preference")
748
    DisplayPreference displayPreference;
749

750
    /**
751
     * For more details about DisplayPreference, please refer to the <a
752
     * href="https://docs.stripe.com/api">API Reference.</a>
753
     */
754
    @Getter
755
    @Setter
756
    @EqualsAndHashCode(callSuper = false)
757
    public static class DisplayPreference extends StripeObject {
×
758
      /**
759
       * For child configs, whether or not the account's preference will be observed. If {@code
760
       * false}, the parent configuration's default is used.
761
       */
762
      @SerializedName("overridable")
763
      Boolean overridable;
764

765
      /**
766
       * The account's display preference.
767
       *
768
       * <p>One of {@code none}, {@code off}, or {@code on}.
769
       */
770
      @SerializedName("preference")
771
      String preference;
772

773
      /**
774
       * The effective display preference value.
775
       *
776
       * <p>One of {@code off}, or {@code on}.
777
       */
778
      @SerializedName("value")
779
      String value;
780
    }
781
  }
782

783
  /**
784
   * For more details about BacsDebit, please refer to the <a href="https://docs.stripe.com/api">API
785
   * Reference.</a>
786
   */
787
  @Getter
788
  @Setter
789
  @EqualsAndHashCode(callSuper = false)
790
  public static class BacsDebit extends StripeObject {
1✔
791
    /**
792
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
793
     * {@code on} and the payment method's capability is active.
794
     */
795
    @SerializedName("available")
796
    Boolean available;
797

798
    @SerializedName("display_preference")
799
    DisplayPreference displayPreference;
800

801
    /**
802
     * For more details about DisplayPreference, please refer to the <a
803
     * href="https://docs.stripe.com/api">API Reference.</a>
804
     */
805
    @Getter
806
    @Setter
807
    @EqualsAndHashCode(callSuper = false)
808
    public static class DisplayPreference extends StripeObject {
1✔
809
      /**
810
       * For child configs, whether or not the account's preference will be observed. If {@code
811
       * false}, the parent configuration's default is used.
812
       */
813
      @SerializedName("overridable")
814
      Boolean overridable;
815

816
      /**
817
       * The account's display preference.
818
       *
819
       * <p>One of {@code none}, {@code off}, or {@code on}.
820
       */
821
      @SerializedName("preference")
822
      String preference;
823

824
      /**
825
       * The effective display preference value.
826
       *
827
       * <p>One of {@code off}, or {@code on}.
828
       */
829
      @SerializedName("value")
830
      String value;
831
    }
832
  }
833

834
  /**
835
   * For more details about Bancontact, please refer to the <a
836
   * href="https://docs.stripe.com/api">API Reference.</a>
837
   */
838
  @Getter
839
  @Setter
840
  @EqualsAndHashCode(callSuper = false)
841
  public static class Bancontact extends StripeObject {
1✔
842
    /**
843
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
844
     * {@code on} and the payment method's capability is active.
845
     */
846
    @SerializedName("available")
847
    Boolean available;
848

849
    @SerializedName("display_preference")
850
    DisplayPreference displayPreference;
851

852
    /**
853
     * For more details about DisplayPreference, please refer to the <a
854
     * href="https://docs.stripe.com/api">API Reference.</a>
855
     */
856
    @Getter
857
    @Setter
858
    @EqualsAndHashCode(callSuper = false)
859
    public static class DisplayPreference extends StripeObject {
1✔
860
      /**
861
       * For child configs, whether or not the account's preference will be observed. If {@code
862
       * false}, the parent configuration's default is used.
863
       */
864
      @SerializedName("overridable")
865
      Boolean overridable;
866

867
      /**
868
       * The account's display preference.
869
       *
870
       * <p>One of {@code none}, {@code off}, or {@code on}.
871
       */
872
      @SerializedName("preference")
873
      String preference;
874

875
      /**
876
       * The effective display preference value.
877
       *
878
       * <p>One of {@code off}, or {@code on}.
879
       */
880
      @SerializedName("value")
881
      String value;
882
    }
883
  }
884

885
  /**
886
   * For more details about Blik, please refer to the <a href="https://docs.stripe.com/api">API
887
   * Reference.</a>
888
   */
889
  @Getter
890
  @Setter
891
  @EqualsAndHashCode(callSuper = false)
892
  public static class Blik extends StripeObject {
1✔
893
    /**
894
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
895
     * {@code on} and the payment method's capability is active.
896
     */
897
    @SerializedName("available")
898
    Boolean available;
899

900
    @SerializedName("display_preference")
901
    DisplayPreference displayPreference;
902

903
    /**
904
     * For more details about DisplayPreference, please refer to the <a
905
     * href="https://docs.stripe.com/api">API Reference.</a>
906
     */
907
    @Getter
908
    @Setter
909
    @EqualsAndHashCode(callSuper = false)
910
    public static class DisplayPreference extends StripeObject {
1✔
911
      /**
912
       * For child configs, whether or not the account's preference will be observed. If {@code
913
       * false}, the parent configuration's default is used.
914
       */
915
      @SerializedName("overridable")
916
      Boolean overridable;
917

918
      /**
919
       * The account's display preference.
920
       *
921
       * <p>One of {@code none}, {@code off}, or {@code on}.
922
       */
923
      @SerializedName("preference")
924
      String preference;
925

926
      /**
927
       * The effective display preference value.
928
       *
929
       * <p>One of {@code off}, or {@code on}.
930
       */
931
      @SerializedName("value")
932
      String value;
933
    }
934
  }
935

936
  /**
937
   * For more details about Boleto, please refer to the <a href="https://docs.stripe.com/api">API
938
   * Reference.</a>
939
   */
940
  @Getter
941
  @Setter
942
  @EqualsAndHashCode(callSuper = false)
943
  public static class Boleto extends StripeObject {
×
944
    /**
945
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
946
     * {@code on} and the payment method's capability is active.
947
     */
948
    @SerializedName("available")
949
    Boolean available;
950

951
    @SerializedName("display_preference")
952
    DisplayPreference displayPreference;
953

954
    /**
955
     * For more details about DisplayPreference, please refer to the <a
956
     * href="https://docs.stripe.com/api">API Reference.</a>
957
     */
958
    @Getter
959
    @Setter
960
    @EqualsAndHashCode(callSuper = false)
961
    public static class DisplayPreference extends StripeObject {
×
962
      /**
963
       * For child configs, whether or not the account's preference will be observed. If {@code
964
       * false}, the parent configuration's default is used.
965
       */
966
      @SerializedName("overridable")
967
      Boolean overridable;
968

969
      /**
970
       * The account's display preference.
971
       *
972
       * <p>One of {@code none}, {@code off}, or {@code on}.
973
       */
974
      @SerializedName("preference")
975
      String preference;
976

977
      /**
978
       * The effective display preference value.
979
       *
980
       * <p>One of {@code off}, or {@code on}.
981
       */
982
      @SerializedName("value")
983
      String value;
984
    }
985
  }
986

987
  /**
988
   * For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
989
   * Reference.</a>
990
   */
991
  @Getter
992
  @Setter
993
  @EqualsAndHashCode(callSuper = false)
994
  public static class Card extends StripeObject {
1✔
995
    /**
996
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
997
     * {@code on} and the payment method's capability is active.
998
     */
999
    @SerializedName("available")
1000
    Boolean available;
1001

1002
    @SerializedName("display_preference")
1003
    DisplayPreference displayPreference;
1004

1005
    /**
1006
     * For more details about DisplayPreference, please refer to the <a
1007
     * href="https://docs.stripe.com/api">API Reference.</a>
1008
     */
1009
    @Getter
1010
    @Setter
1011
    @EqualsAndHashCode(callSuper = false)
1012
    public static class DisplayPreference extends StripeObject {
1✔
1013
      /**
1014
       * For child configs, whether or not the account's preference will be observed. If {@code
1015
       * false}, the parent configuration's default is used.
1016
       */
1017
      @SerializedName("overridable")
1018
      Boolean overridable;
1019

1020
      /**
1021
       * The account's display preference.
1022
       *
1023
       * <p>One of {@code none}, {@code off}, or {@code on}.
1024
       */
1025
      @SerializedName("preference")
1026
      String preference;
1027

1028
      /**
1029
       * The effective display preference value.
1030
       *
1031
       * <p>One of {@code off}, or {@code on}.
1032
       */
1033
      @SerializedName("value")
1034
      String value;
1035
    }
1036
  }
1037

1038
  /**
1039
   * For more details about CartesBancaires, please refer to the <a
1040
   * href="https://docs.stripe.com/api">API Reference.</a>
1041
   */
1042
  @Getter
1043
  @Setter
1044
  @EqualsAndHashCode(callSuper = false)
1045
  public static class CartesBancaires extends StripeObject {
1✔
1046
    /**
1047
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1048
     * {@code on} and the payment method's capability is active.
1049
     */
1050
    @SerializedName("available")
1051
    Boolean available;
1052

1053
    @SerializedName("display_preference")
1054
    DisplayPreference displayPreference;
1055

1056
    /**
1057
     * For more details about DisplayPreference, please refer to the <a
1058
     * href="https://docs.stripe.com/api">API Reference.</a>
1059
     */
1060
    @Getter
1061
    @Setter
1062
    @EqualsAndHashCode(callSuper = false)
1063
    public static class DisplayPreference extends StripeObject {
1✔
1064
      /**
1065
       * For child configs, whether or not the account's preference will be observed. If {@code
1066
       * false}, the parent configuration's default is used.
1067
       */
1068
      @SerializedName("overridable")
1069
      Boolean overridable;
1070

1071
      /**
1072
       * The account's display preference.
1073
       *
1074
       * <p>One of {@code none}, {@code off}, or {@code on}.
1075
       */
1076
      @SerializedName("preference")
1077
      String preference;
1078

1079
      /**
1080
       * The effective display preference value.
1081
       *
1082
       * <p>One of {@code off}, or {@code on}.
1083
       */
1084
      @SerializedName("value")
1085
      String value;
1086
    }
1087
  }
1088

1089
  /**
1090
   * For more details about Cashapp, please refer to the <a href="https://docs.stripe.com/api">API
1091
   * Reference.</a>
1092
   */
1093
  @Getter
1094
  @Setter
1095
  @EqualsAndHashCode(callSuper = false)
1096
  public static class Cashapp extends StripeObject {
1✔
1097
    /**
1098
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1099
     * {@code on} and the payment method's capability is active.
1100
     */
1101
    @SerializedName("available")
1102
    Boolean available;
1103

1104
    @SerializedName("display_preference")
1105
    DisplayPreference displayPreference;
1106

1107
    /**
1108
     * For more details about DisplayPreference, please refer to the <a
1109
     * href="https://docs.stripe.com/api">API Reference.</a>
1110
     */
1111
    @Getter
1112
    @Setter
1113
    @EqualsAndHashCode(callSuper = false)
1114
    public static class DisplayPreference extends StripeObject {
1✔
1115
      /**
1116
       * For child configs, whether or not the account's preference will be observed. If {@code
1117
       * false}, the parent configuration's default is used.
1118
       */
1119
      @SerializedName("overridable")
1120
      Boolean overridable;
1121

1122
      /**
1123
       * The account's display preference.
1124
       *
1125
       * <p>One of {@code none}, {@code off}, or {@code on}.
1126
       */
1127
      @SerializedName("preference")
1128
      String preference;
1129

1130
      /**
1131
       * The effective display preference value.
1132
       *
1133
       * <p>One of {@code off}, or {@code on}.
1134
       */
1135
      @SerializedName("value")
1136
      String value;
1137
    }
1138
  }
1139

1140
  /**
1141
   * For more details about CustomerBalance, please refer to the <a
1142
   * href="https://docs.stripe.com/api">API Reference.</a>
1143
   */
1144
  @Getter
1145
  @Setter
1146
  @EqualsAndHashCode(callSuper = false)
1147
  public static class CustomerBalance extends StripeObject {
1✔
1148
    /**
1149
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1150
     * {@code on} and the payment method's capability is active.
1151
     */
1152
    @SerializedName("available")
1153
    Boolean available;
1154

1155
    @SerializedName("display_preference")
1156
    DisplayPreference displayPreference;
1157

1158
    /**
1159
     * For more details about DisplayPreference, please refer to the <a
1160
     * href="https://docs.stripe.com/api">API Reference.</a>
1161
     */
1162
    @Getter
1163
    @Setter
1164
    @EqualsAndHashCode(callSuper = false)
1165
    public static class DisplayPreference extends StripeObject {
1✔
1166
      /**
1167
       * For child configs, whether or not the account's preference will be observed. If {@code
1168
       * false}, the parent configuration's default is used.
1169
       */
1170
      @SerializedName("overridable")
1171
      Boolean overridable;
1172

1173
      /**
1174
       * The account's display preference.
1175
       *
1176
       * <p>One of {@code none}, {@code off}, or {@code on}.
1177
       */
1178
      @SerializedName("preference")
1179
      String preference;
1180

1181
      /**
1182
       * The effective display preference value.
1183
       *
1184
       * <p>One of {@code off}, or {@code on}.
1185
       */
1186
      @SerializedName("value")
1187
      String value;
1188
    }
1189
  }
1190

1191
  /**
1192
   * For more details about Eps, please refer to the <a href="https://docs.stripe.com/api">API
1193
   * Reference.</a>
1194
   */
1195
  @Getter
1196
  @Setter
1197
  @EqualsAndHashCode(callSuper = false)
1198
  public static class Eps extends StripeObject {
1✔
1199
    /**
1200
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1201
     * {@code on} and the payment method's capability is active.
1202
     */
1203
    @SerializedName("available")
1204
    Boolean available;
1205

1206
    @SerializedName("display_preference")
1207
    DisplayPreference displayPreference;
1208

1209
    /**
1210
     * For more details about DisplayPreference, please refer to the <a
1211
     * href="https://docs.stripe.com/api">API Reference.</a>
1212
     */
1213
    @Getter
1214
    @Setter
1215
    @EqualsAndHashCode(callSuper = false)
1216
    public static class DisplayPreference extends StripeObject {
1✔
1217
      /**
1218
       * For child configs, whether or not the account's preference will be observed. If {@code
1219
       * false}, the parent configuration's default is used.
1220
       */
1221
      @SerializedName("overridable")
1222
      Boolean overridable;
1223

1224
      /**
1225
       * The account's display preference.
1226
       *
1227
       * <p>One of {@code none}, {@code off}, or {@code on}.
1228
       */
1229
      @SerializedName("preference")
1230
      String preference;
1231

1232
      /**
1233
       * The effective display preference value.
1234
       *
1235
       * <p>One of {@code off}, or {@code on}.
1236
       */
1237
      @SerializedName("value")
1238
      String value;
1239
    }
1240
  }
1241

1242
  /**
1243
   * For more details about Fpx, please refer to the <a href="https://docs.stripe.com/api">API
1244
   * Reference.</a>
1245
   */
1246
  @Getter
1247
  @Setter
1248
  @EqualsAndHashCode(callSuper = false)
1249
  public static class Fpx extends StripeObject {
×
1250
    /**
1251
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1252
     * {@code on} and the payment method's capability is active.
1253
     */
1254
    @SerializedName("available")
1255
    Boolean available;
1256

1257
    @SerializedName("display_preference")
1258
    DisplayPreference displayPreference;
1259

1260
    /**
1261
     * For more details about DisplayPreference, please refer to the <a
1262
     * href="https://docs.stripe.com/api">API Reference.</a>
1263
     */
1264
    @Getter
1265
    @Setter
1266
    @EqualsAndHashCode(callSuper = false)
1267
    public static class DisplayPreference extends StripeObject {
×
1268
      /**
1269
       * For child configs, whether or not the account's preference will be observed. If {@code
1270
       * false}, the parent configuration's default is used.
1271
       */
1272
      @SerializedName("overridable")
1273
      Boolean overridable;
1274

1275
      /**
1276
       * The account's display preference.
1277
       *
1278
       * <p>One of {@code none}, {@code off}, or {@code on}.
1279
       */
1280
      @SerializedName("preference")
1281
      String preference;
1282

1283
      /**
1284
       * The effective display preference value.
1285
       *
1286
       * <p>One of {@code off}, or {@code on}.
1287
       */
1288
      @SerializedName("value")
1289
      String value;
1290
    }
1291
  }
1292

1293
  /**
1294
   * For more details about Giropay, please refer to the <a href="https://docs.stripe.com/api">API
1295
   * Reference.</a>
1296
   */
1297
  @Getter
1298
  @Setter
1299
  @EqualsAndHashCode(callSuper = false)
1300
  public static class Giropay extends StripeObject {
1✔
1301
    /**
1302
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1303
     * {@code on} and the payment method's capability is active.
1304
     */
1305
    @SerializedName("available")
1306
    Boolean available;
1307

1308
    @SerializedName("display_preference")
1309
    DisplayPreference displayPreference;
1310

1311
    /**
1312
     * For more details about DisplayPreference, please refer to the <a
1313
     * href="https://docs.stripe.com/api">API Reference.</a>
1314
     */
1315
    @Getter
1316
    @Setter
1317
    @EqualsAndHashCode(callSuper = false)
1318
    public static class DisplayPreference extends StripeObject {
1✔
1319
      /**
1320
       * For child configs, whether or not the account's preference will be observed. If {@code
1321
       * false}, the parent configuration's default is used.
1322
       */
1323
      @SerializedName("overridable")
1324
      Boolean overridable;
1325

1326
      /**
1327
       * The account's display preference.
1328
       *
1329
       * <p>One of {@code none}, {@code off}, or {@code on}.
1330
       */
1331
      @SerializedName("preference")
1332
      String preference;
1333

1334
      /**
1335
       * The effective display preference value.
1336
       *
1337
       * <p>One of {@code off}, or {@code on}.
1338
       */
1339
      @SerializedName("value")
1340
      String value;
1341
    }
1342
  }
1343

1344
  /**
1345
   * For more details about GooglePay, please refer to the <a href="https://docs.stripe.com/api">API
1346
   * Reference.</a>
1347
   */
1348
  @Getter
1349
  @Setter
1350
  @EqualsAndHashCode(callSuper = false)
1351
  public static class GooglePay extends StripeObject {
1✔
1352
    /**
1353
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1354
     * {@code on} and the payment method's capability is active.
1355
     */
1356
    @SerializedName("available")
1357
    Boolean available;
1358

1359
    @SerializedName("display_preference")
1360
    DisplayPreference displayPreference;
1361

1362
    /**
1363
     * For more details about DisplayPreference, please refer to the <a
1364
     * href="https://docs.stripe.com/api">API Reference.</a>
1365
     */
1366
    @Getter
1367
    @Setter
1368
    @EqualsAndHashCode(callSuper = false)
1369
    public static class DisplayPreference extends StripeObject {
1✔
1370
      /**
1371
       * For child configs, whether or not the account's preference will be observed. If {@code
1372
       * false}, the parent configuration's default is used.
1373
       */
1374
      @SerializedName("overridable")
1375
      Boolean overridable;
1376

1377
      /**
1378
       * The account's display preference.
1379
       *
1380
       * <p>One of {@code none}, {@code off}, or {@code on}.
1381
       */
1382
      @SerializedName("preference")
1383
      String preference;
1384

1385
      /**
1386
       * The effective display preference value.
1387
       *
1388
       * <p>One of {@code off}, or {@code on}.
1389
       */
1390
      @SerializedName("value")
1391
      String value;
1392
    }
1393
  }
1394

1395
  /**
1396
   * For more details about Grabpay, please refer to the <a href="https://docs.stripe.com/api">API
1397
   * Reference.</a>
1398
   */
1399
  @Getter
1400
  @Setter
1401
  @EqualsAndHashCode(callSuper = false)
1402
  public static class Grabpay extends StripeObject {
×
1403
    /**
1404
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1405
     * {@code on} and the payment method's capability is active.
1406
     */
1407
    @SerializedName("available")
1408
    Boolean available;
1409

1410
    @SerializedName("display_preference")
1411
    DisplayPreference displayPreference;
1412

1413
    /**
1414
     * For more details about DisplayPreference, please refer to the <a
1415
     * href="https://docs.stripe.com/api">API Reference.</a>
1416
     */
1417
    @Getter
1418
    @Setter
1419
    @EqualsAndHashCode(callSuper = false)
1420
    public static class DisplayPreference extends StripeObject {
×
1421
      /**
1422
       * For child configs, whether or not the account's preference will be observed. If {@code
1423
       * false}, the parent configuration's default is used.
1424
       */
1425
      @SerializedName("overridable")
1426
      Boolean overridable;
1427

1428
      /**
1429
       * The account's display preference.
1430
       *
1431
       * <p>One of {@code none}, {@code off}, or {@code on}.
1432
       */
1433
      @SerializedName("preference")
1434
      String preference;
1435

1436
      /**
1437
       * The effective display preference value.
1438
       *
1439
       * <p>One of {@code off}, or {@code on}.
1440
       */
1441
      @SerializedName("value")
1442
      String value;
1443
    }
1444
  }
1445

1446
  /**
1447
   * For more details about Ideal, please refer to the <a href="https://docs.stripe.com/api">API
1448
   * Reference.</a>
1449
   */
1450
  @Getter
1451
  @Setter
1452
  @EqualsAndHashCode(callSuper = false)
1453
  public static class Ideal extends StripeObject {
1✔
1454
    /**
1455
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1456
     * {@code on} and the payment method's capability is active.
1457
     */
1458
    @SerializedName("available")
1459
    Boolean available;
1460

1461
    @SerializedName("display_preference")
1462
    DisplayPreference displayPreference;
1463

1464
    /**
1465
     * For more details about DisplayPreference, please refer to the <a
1466
     * href="https://docs.stripe.com/api">API Reference.</a>
1467
     */
1468
    @Getter
1469
    @Setter
1470
    @EqualsAndHashCode(callSuper = false)
1471
    public static class DisplayPreference extends StripeObject {
1✔
1472
      /**
1473
       * For child configs, whether or not the account's preference will be observed. If {@code
1474
       * false}, the parent configuration's default is used.
1475
       */
1476
      @SerializedName("overridable")
1477
      Boolean overridable;
1478

1479
      /**
1480
       * The account's display preference.
1481
       *
1482
       * <p>One of {@code none}, {@code off}, or {@code on}.
1483
       */
1484
      @SerializedName("preference")
1485
      String preference;
1486

1487
      /**
1488
       * The effective display preference value.
1489
       *
1490
       * <p>One of {@code off}, or {@code on}.
1491
       */
1492
      @SerializedName("value")
1493
      String value;
1494
    }
1495
  }
1496

1497
  /**
1498
   * For more details about Jcb, please refer to the <a href="https://docs.stripe.com/api">API
1499
   * Reference.</a>
1500
   */
1501
  @Getter
1502
  @Setter
1503
  @EqualsAndHashCode(callSuper = false)
1504
  public static class Jcb extends StripeObject {
×
1505
    /**
1506
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1507
     * {@code on} and the payment method's capability is active.
1508
     */
1509
    @SerializedName("available")
1510
    Boolean available;
1511

1512
    @SerializedName("display_preference")
1513
    DisplayPreference displayPreference;
1514

1515
    /**
1516
     * For more details about DisplayPreference, please refer to the <a
1517
     * href="https://docs.stripe.com/api">API Reference.</a>
1518
     */
1519
    @Getter
1520
    @Setter
1521
    @EqualsAndHashCode(callSuper = false)
1522
    public static class DisplayPreference extends StripeObject {
×
1523
      /**
1524
       * For child configs, whether or not the account's preference will be observed. If {@code
1525
       * false}, the parent configuration's default is used.
1526
       */
1527
      @SerializedName("overridable")
1528
      Boolean overridable;
1529

1530
      /**
1531
       * The account's display preference.
1532
       *
1533
       * <p>One of {@code none}, {@code off}, or {@code on}.
1534
       */
1535
      @SerializedName("preference")
1536
      String preference;
1537

1538
      /**
1539
       * The effective display preference value.
1540
       *
1541
       * <p>One of {@code off}, or {@code on}.
1542
       */
1543
      @SerializedName("value")
1544
      String value;
1545
    }
1546
  }
1547

1548
  /**
1549
   * For more details about Klarna, please refer to the <a href="https://docs.stripe.com/api">API
1550
   * Reference.</a>
1551
   */
1552
  @Getter
1553
  @Setter
1554
  @EqualsAndHashCode(callSuper = false)
1555
  public static class Klarna extends StripeObject {
1✔
1556
    /**
1557
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1558
     * {@code on} and the payment method's capability is active.
1559
     */
1560
    @SerializedName("available")
1561
    Boolean available;
1562

1563
    @SerializedName("display_preference")
1564
    DisplayPreference displayPreference;
1565

1566
    /**
1567
     * For more details about DisplayPreference, please refer to the <a
1568
     * href="https://docs.stripe.com/api">API Reference.</a>
1569
     */
1570
    @Getter
1571
    @Setter
1572
    @EqualsAndHashCode(callSuper = false)
1573
    public static class DisplayPreference extends StripeObject {
1✔
1574
      /**
1575
       * For child configs, whether or not the account's preference will be observed. If {@code
1576
       * false}, the parent configuration's default is used.
1577
       */
1578
      @SerializedName("overridable")
1579
      Boolean overridable;
1580

1581
      /**
1582
       * The account's display preference.
1583
       *
1584
       * <p>One of {@code none}, {@code off}, or {@code on}.
1585
       */
1586
      @SerializedName("preference")
1587
      String preference;
1588

1589
      /**
1590
       * The effective display preference value.
1591
       *
1592
       * <p>One of {@code off}, or {@code on}.
1593
       */
1594
      @SerializedName("value")
1595
      String value;
1596
    }
1597
  }
1598

1599
  /**
1600
   * For more details about Konbini, please refer to the <a href="https://docs.stripe.com/api">API
1601
   * Reference.</a>
1602
   */
1603
  @Getter
1604
  @Setter
1605
  @EqualsAndHashCode(callSuper = false)
1606
  public static class Konbini extends StripeObject {
×
1607
    /**
1608
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1609
     * {@code on} and the payment method's capability is active.
1610
     */
1611
    @SerializedName("available")
1612
    Boolean available;
1613

1614
    @SerializedName("display_preference")
1615
    DisplayPreference displayPreference;
1616

1617
    /**
1618
     * For more details about DisplayPreference, please refer to the <a
1619
     * href="https://docs.stripe.com/api">API Reference.</a>
1620
     */
1621
    @Getter
1622
    @Setter
1623
    @EqualsAndHashCode(callSuper = false)
1624
    public static class DisplayPreference extends StripeObject {
×
1625
      /**
1626
       * For child configs, whether or not the account's preference will be observed. If {@code
1627
       * false}, the parent configuration's default is used.
1628
       */
1629
      @SerializedName("overridable")
1630
      Boolean overridable;
1631

1632
      /**
1633
       * The account's display preference.
1634
       *
1635
       * <p>One of {@code none}, {@code off}, or {@code on}.
1636
       */
1637
      @SerializedName("preference")
1638
      String preference;
1639

1640
      /**
1641
       * The effective display preference value.
1642
       *
1643
       * <p>One of {@code off}, or {@code on}.
1644
       */
1645
      @SerializedName("value")
1646
      String value;
1647
    }
1648
  }
1649

1650
  /**
1651
   * For more details about Link, please refer to the <a href="https://docs.stripe.com/api">API
1652
   * Reference.</a>
1653
   */
1654
  @Getter
1655
  @Setter
1656
  @EqualsAndHashCode(callSuper = false)
1657
  public static class Link extends StripeObject {
1✔
1658
    /**
1659
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1660
     * {@code on} and the payment method's capability is active.
1661
     */
1662
    @SerializedName("available")
1663
    Boolean available;
1664

1665
    @SerializedName("display_preference")
1666
    DisplayPreference displayPreference;
1667

1668
    /**
1669
     * For more details about DisplayPreference, please refer to the <a
1670
     * href="https://docs.stripe.com/api">API Reference.</a>
1671
     */
1672
    @Getter
1673
    @Setter
1674
    @EqualsAndHashCode(callSuper = false)
1675
    public static class DisplayPreference extends StripeObject {
1✔
1676
      /**
1677
       * For child configs, whether or not the account's preference will be observed. If {@code
1678
       * false}, the parent configuration's default is used.
1679
       */
1680
      @SerializedName("overridable")
1681
      Boolean overridable;
1682

1683
      /**
1684
       * The account's display preference.
1685
       *
1686
       * <p>One of {@code none}, {@code off}, or {@code on}.
1687
       */
1688
      @SerializedName("preference")
1689
      String preference;
1690

1691
      /**
1692
       * The effective display preference value.
1693
       *
1694
       * <p>One of {@code off}, or {@code on}.
1695
       */
1696
      @SerializedName("value")
1697
      String value;
1698
    }
1699
  }
1700

1701
  /**
1702
   * For more details about Mobilepay, please refer to the <a href="https://docs.stripe.com/api">API
1703
   * Reference.</a>
1704
   */
1705
  @Getter
1706
  @Setter
1707
  @EqualsAndHashCode(callSuper = false)
1708
  public static class Mobilepay extends StripeObject {
×
1709
    /**
1710
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1711
     * {@code on} and the payment method's capability is active.
1712
     */
1713
    @SerializedName("available")
1714
    Boolean available;
1715

1716
    @SerializedName("display_preference")
1717
    DisplayPreference displayPreference;
1718

1719
    /**
1720
     * For more details about DisplayPreference, please refer to the <a
1721
     * href="https://docs.stripe.com/api">API Reference.</a>
1722
     */
1723
    @Getter
1724
    @Setter
1725
    @EqualsAndHashCode(callSuper = false)
1726
    public static class DisplayPreference extends StripeObject {
×
1727
      /**
1728
       * For child configs, whether or not the account's preference will be observed. If {@code
1729
       * false}, the parent configuration's default is used.
1730
       */
1731
      @SerializedName("overridable")
1732
      Boolean overridable;
1733

1734
      /**
1735
       * The account's display preference.
1736
       *
1737
       * <p>One of {@code none}, {@code off}, or {@code on}.
1738
       */
1739
      @SerializedName("preference")
1740
      String preference;
1741

1742
      /**
1743
       * The effective display preference value.
1744
       *
1745
       * <p>One of {@code off}, or {@code on}.
1746
       */
1747
      @SerializedName("value")
1748
      String value;
1749
    }
1750
  }
1751

1752
  /**
1753
   * For more details about Multibanco, please refer to the <a
1754
   * href="https://docs.stripe.com/api">API Reference.</a>
1755
   */
1756
  @Getter
1757
  @Setter
1758
  @EqualsAndHashCode(callSuper = false)
1759
  public static class Multibanco extends StripeObject {
1✔
1760
    /**
1761
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1762
     * {@code on} and the payment method's capability is active.
1763
     */
1764
    @SerializedName("available")
1765
    Boolean available;
1766

1767
    @SerializedName("display_preference")
1768
    DisplayPreference displayPreference;
1769

1770
    /**
1771
     * For more details about DisplayPreference, please refer to the <a
1772
     * href="https://docs.stripe.com/api">API Reference.</a>
1773
     */
1774
    @Getter
1775
    @Setter
1776
    @EqualsAndHashCode(callSuper = false)
1777
    public static class DisplayPreference extends StripeObject {
1✔
1778
      /**
1779
       * For child configs, whether or not the account's preference will be observed. If {@code
1780
       * false}, the parent configuration's default is used.
1781
       */
1782
      @SerializedName("overridable")
1783
      Boolean overridable;
1784

1785
      /**
1786
       * The account's display preference.
1787
       *
1788
       * <p>One of {@code none}, {@code off}, or {@code on}.
1789
       */
1790
      @SerializedName("preference")
1791
      String preference;
1792

1793
      /**
1794
       * The effective display preference value.
1795
       *
1796
       * <p>One of {@code off}, or {@code on}.
1797
       */
1798
      @SerializedName("value")
1799
      String value;
1800
    }
1801
  }
1802

1803
  /**
1804
   * For more details about Oxxo, please refer to the <a href="https://docs.stripe.com/api">API
1805
   * Reference.</a>
1806
   */
1807
  @Getter
1808
  @Setter
1809
  @EqualsAndHashCode(callSuper = false)
1810
  public static class Oxxo extends StripeObject {
×
1811
    /**
1812
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1813
     * {@code on} and the payment method's capability is active.
1814
     */
1815
    @SerializedName("available")
1816
    Boolean available;
1817

1818
    @SerializedName("display_preference")
1819
    DisplayPreference displayPreference;
1820

1821
    /**
1822
     * For more details about DisplayPreference, please refer to the <a
1823
     * href="https://docs.stripe.com/api">API Reference.</a>
1824
     */
1825
    @Getter
1826
    @Setter
1827
    @EqualsAndHashCode(callSuper = false)
1828
    public static class DisplayPreference extends StripeObject {
×
1829
      /**
1830
       * For child configs, whether or not the account's preference will be observed. If {@code
1831
       * false}, the parent configuration's default is used.
1832
       */
1833
      @SerializedName("overridable")
1834
      Boolean overridable;
1835

1836
      /**
1837
       * The account's display preference.
1838
       *
1839
       * <p>One of {@code none}, {@code off}, or {@code on}.
1840
       */
1841
      @SerializedName("preference")
1842
      String preference;
1843

1844
      /**
1845
       * The effective display preference value.
1846
       *
1847
       * <p>One of {@code off}, or {@code on}.
1848
       */
1849
      @SerializedName("value")
1850
      String value;
1851
    }
1852
  }
1853

1854
  /**
1855
   * For more details about P24, please refer to the <a href="https://docs.stripe.com/api">API
1856
   * Reference.</a>
1857
   */
1858
  @Getter
1859
  @Setter
1860
  @EqualsAndHashCode(callSuper = false)
1861
  public static class P24 extends StripeObject {
1✔
1862
    /**
1863
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1864
     * {@code on} and the payment method's capability is active.
1865
     */
1866
    @SerializedName("available")
1867
    Boolean available;
1868

1869
    @SerializedName("display_preference")
1870
    DisplayPreference displayPreference;
1871

1872
    /**
1873
     * For more details about DisplayPreference, please refer to the <a
1874
     * href="https://docs.stripe.com/api">API Reference.</a>
1875
     */
1876
    @Getter
1877
    @Setter
1878
    @EqualsAndHashCode(callSuper = false)
1879
    public static class DisplayPreference extends StripeObject {
1✔
1880
      /**
1881
       * For child configs, whether or not the account's preference will be observed. If {@code
1882
       * false}, the parent configuration's default is used.
1883
       */
1884
      @SerializedName("overridable")
1885
      Boolean overridable;
1886

1887
      /**
1888
       * The account's display preference.
1889
       *
1890
       * <p>One of {@code none}, {@code off}, or {@code on}.
1891
       */
1892
      @SerializedName("preference")
1893
      String preference;
1894

1895
      /**
1896
       * The effective display preference value.
1897
       *
1898
       * <p>One of {@code off}, or {@code on}.
1899
       */
1900
      @SerializedName("value")
1901
      String value;
1902
    }
1903
  }
1904

1905
  /**
1906
   * For more details about Paynow, please refer to the <a href="https://docs.stripe.com/api">API
1907
   * Reference.</a>
1908
   */
1909
  @Getter
1910
  @Setter
1911
  @EqualsAndHashCode(callSuper = false)
1912
  public static class Paynow extends StripeObject {
×
1913
    /**
1914
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1915
     * {@code on} and the payment method's capability is active.
1916
     */
1917
    @SerializedName("available")
1918
    Boolean available;
1919

1920
    @SerializedName("display_preference")
1921
    DisplayPreference displayPreference;
1922

1923
    /**
1924
     * For more details about DisplayPreference, please refer to the <a
1925
     * href="https://docs.stripe.com/api">API Reference.</a>
1926
     */
1927
    @Getter
1928
    @Setter
1929
    @EqualsAndHashCode(callSuper = false)
1930
    public static class DisplayPreference extends StripeObject {
×
1931
      /**
1932
       * For child configs, whether or not the account's preference will be observed. If {@code
1933
       * false}, the parent configuration's default is used.
1934
       */
1935
      @SerializedName("overridable")
1936
      Boolean overridable;
1937

1938
      /**
1939
       * The account's display preference.
1940
       *
1941
       * <p>One of {@code none}, {@code off}, or {@code on}.
1942
       */
1943
      @SerializedName("preference")
1944
      String preference;
1945

1946
      /**
1947
       * The effective display preference value.
1948
       *
1949
       * <p>One of {@code off}, or {@code on}.
1950
       */
1951
      @SerializedName("value")
1952
      String value;
1953
    }
1954
  }
1955

1956
  /**
1957
   * For more details about Paypal, please refer to the <a href="https://docs.stripe.com/api">API
1958
   * Reference.</a>
1959
   */
1960
  @Getter
1961
  @Setter
1962
  @EqualsAndHashCode(callSuper = false)
1963
  public static class Paypal extends StripeObject {
×
1964
    /**
1965
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1966
     * {@code on} and the payment method's capability is active.
1967
     */
1968
    @SerializedName("available")
1969
    Boolean available;
1970

1971
    @SerializedName("display_preference")
1972
    DisplayPreference displayPreference;
1973

1974
    /**
1975
     * For more details about DisplayPreference, please refer to the <a
1976
     * href="https://docs.stripe.com/api">API Reference.</a>
1977
     */
1978
    @Getter
1979
    @Setter
1980
    @EqualsAndHashCode(callSuper = false)
1981
    public static class DisplayPreference extends StripeObject {
×
1982
      /**
1983
       * For child configs, whether or not the account's preference will be observed. If {@code
1984
       * false}, the parent configuration's default is used.
1985
       */
1986
      @SerializedName("overridable")
1987
      Boolean overridable;
1988

1989
      /**
1990
       * The account's display preference.
1991
       *
1992
       * <p>One of {@code none}, {@code off}, or {@code on}.
1993
       */
1994
      @SerializedName("preference")
1995
      String preference;
1996

1997
      /**
1998
       * The effective display preference value.
1999
       *
2000
       * <p>One of {@code off}, or {@code on}.
2001
       */
2002
      @SerializedName("value")
2003
      String value;
2004
    }
2005
  }
2006

2007
  /**
2008
   * For more details about Payto, please refer to the <a href="https://docs.stripe.com/api">API
2009
   * Reference.</a>
2010
   */
2011
  @Getter
2012
  @Setter
2013
  @EqualsAndHashCode(callSuper = false)
2014
  public static class Payto extends StripeObject {
×
2015
    /**
2016
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2017
     * {@code on} and the payment method's capability is active.
2018
     */
2019
    @SerializedName("available")
2020
    Boolean available;
2021

2022
    @SerializedName("display_preference")
2023
    DisplayPreference displayPreference;
2024

2025
    /**
2026
     * For more details about DisplayPreference, please refer to the <a
2027
     * href="https://docs.stripe.com/api">API Reference.</a>
2028
     */
2029
    @Getter
2030
    @Setter
2031
    @EqualsAndHashCode(callSuper = false)
2032
    public static class DisplayPreference extends StripeObject {
×
2033
      /**
2034
       * For child configs, whether or not the account's preference will be observed. If {@code
2035
       * false}, the parent configuration's default is used.
2036
       */
2037
      @SerializedName("overridable")
2038
      Boolean overridable;
2039

2040
      /**
2041
       * The account's display preference.
2042
       *
2043
       * <p>One of {@code none}, {@code off}, or {@code on}.
2044
       */
2045
      @SerializedName("preference")
2046
      String preference;
2047

2048
      /**
2049
       * The effective display preference value.
2050
       *
2051
       * <p>One of {@code off}, or {@code on}.
2052
       */
2053
      @SerializedName("value")
2054
      String value;
2055
    }
2056
  }
2057

2058
  /**
2059
   * For more details about Promptpay, please refer to the <a href="https://docs.stripe.com/api">API
2060
   * Reference.</a>
2061
   */
2062
  @Getter
2063
  @Setter
2064
  @EqualsAndHashCode(callSuper = false)
2065
  public static class Promptpay extends StripeObject {
×
2066
    /**
2067
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2068
     * {@code on} and the payment method's capability is active.
2069
     */
2070
    @SerializedName("available")
2071
    Boolean available;
2072

2073
    @SerializedName("display_preference")
2074
    DisplayPreference displayPreference;
2075

2076
    /**
2077
     * For more details about DisplayPreference, please refer to the <a
2078
     * href="https://docs.stripe.com/api">API Reference.</a>
2079
     */
2080
    @Getter
2081
    @Setter
2082
    @EqualsAndHashCode(callSuper = false)
2083
    public static class DisplayPreference extends StripeObject {
×
2084
      /**
2085
       * For child configs, whether or not the account's preference will be observed. If {@code
2086
       * false}, the parent configuration's default is used.
2087
       */
2088
      @SerializedName("overridable")
2089
      Boolean overridable;
2090

2091
      /**
2092
       * The account's display preference.
2093
       *
2094
       * <p>One of {@code none}, {@code off}, or {@code on}.
2095
       */
2096
      @SerializedName("preference")
2097
      String preference;
2098

2099
      /**
2100
       * The effective display preference value.
2101
       *
2102
       * <p>One of {@code off}, or {@code on}.
2103
       */
2104
      @SerializedName("value")
2105
      String value;
2106
    }
2107
  }
2108

2109
  /**
2110
   * For more details about RevolutPay, please refer to the <a
2111
   * href="https://docs.stripe.com/api">API Reference.</a>
2112
   */
2113
  @Getter
2114
  @Setter
2115
  @EqualsAndHashCode(callSuper = false)
2116
  public static class RevolutPay extends StripeObject {
×
2117
    /**
2118
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2119
     * {@code on} and the payment method's capability is active.
2120
     */
2121
    @SerializedName("available")
2122
    Boolean available;
2123

2124
    @SerializedName("display_preference")
2125
    DisplayPreference displayPreference;
2126

2127
    /**
2128
     * For more details about DisplayPreference, please refer to the <a
2129
     * href="https://docs.stripe.com/api">API Reference.</a>
2130
     */
2131
    @Getter
2132
    @Setter
2133
    @EqualsAndHashCode(callSuper = false)
2134
    public static class DisplayPreference extends StripeObject {
×
2135
      /**
2136
       * For child configs, whether or not the account's preference will be observed. If {@code
2137
       * false}, the parent configuration's default is used.
2138
       */
2139
      @SerializedName("overridable")
2140
      Boolean overridable;
2141

2142
      /**
2143
       * The account's display preference.
2144
       *
2145
       * <p>One of {@code none}, {@code off}, or {@code on}.
2146
       */
2147
      @SerializedName("preference")
2148
      String preference;
2149

2150
      /**
2151
       * The effective display preference value.
2152
       *
2153
       * <p>One of {@code off}, or {@code on}.
2154
       */
2155
      @SerializedName("value")
2156
      String value;
2157
    }
2158
  }
2159

2160
  /**
2161
   * For more details about SepaDebit, please refer to the <a href="https://docs.stripe.com/api">API
2162
   * Reference.</a>
2163
   */
2164
  @Getter
2165
  @Setter
2166
  @EqualsAndHashCode(callSuper = false)
2167
  public static class SepaDebit extends StripeObject {
1✔
2168
    /**
2169
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2170
     * {@code on} and the payment method's capability is active.
2171
     */
2172
    @SerializedName("available")
2173
    Boolean available;
2174

2175
    @SerializedName("display_preference")
2176
    DisplayPreference displayPreference;
2177

2178
    /**
2179
     * For more details about DisplayPreference, please refer to the <a
2180
     * href="https://docs.stripe.com/api">API Reference.</a>
2181
     */
2182
    @Getter
2183
    @Setter
2184
    @EqualsAndHashCode(callSuper = false)
2185
    public static class DisplayPreference extends StripeObject {
1✔
2186
      /**
2187
       * For child configs, whether or not the account's preference will be observed. If {@code
2188
       * false}, the parent configuration's default is used.
2189
       */
2190
      @SerializedName("overridable")
2191
      Boolean overridable;
2192

2193
      /**
2194
       * The account's display preference.
2195
       *
2196
       * <p>One of {@code none}, {@code off}, or {@code on}.
2197
       */
2198
      @SerializedName("preference")
2199
      String preference;
2200

2201
      /**
2202
       * The effective display preference value.
2203
       *
2204
       * <p>One of {@code off}, or {@code on}.
2205
       */
2206
      @SerializedName("value")
2207
      String value;
2208
    }
2209
  }
2210

2211
  /**
2212
   * For more details about Sofort, please refer to the <a href="https://docs.stripe.com/api">API
2213
   * Reference.</a>
2214
   */
2215
  @Getter
2216
  @Setter
2217
  @EqualsAndHashCode(callSuper = false)
2218
  public static class Sofort extends StripeObject {
1✔
2219
    /**
2220
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2221
     * {@code on} and the payment method's capability is active.
2222
     */
2223
    @SerializedName("available")
2224
    Boolean available;
2225

2226
    @SerializedName("display_preference")
2227
    DisplayPreference displayPreference;
2228

2229
    /**
2230
     * For more details about DisplayPreference, please refer to the <a
2231
     * href="https://docs.stripe.com/api">API Reference.</a>
2232
     */
2233
    @Getter
2234
    @Setter
2235
    @EqualsAndHashCode(callSuper = false)
2236
    public static class DisplayPreference extends StripeObject {
1✔
2237
      /**
2238
       * For child configs, whether or not the account's preference will be observed. If {@code
2239
       * false}, the parent configuration's default is used.
2240
       */
2241
      @SerializedName("overridable")
2242
      Boolean overridable;
2243

2244
      /**
2245
       * The account's display preference.
2246
       *
2247
       * <p>One of {@code none}, {@code off}, or {@code on}.
2248
       */
2249
      @SerializedName("preference")
2250
      String preference;
2251

2252
      /**
2253
       * The effective display preference value.
2254
       *
2255
       * <p>One of {@code off}, or {@code on}.
2256
       */
2257
      @SerializedName("value")
2258
      String value;
2259
    }
2260
  }
2261

2262
  /**
2263
   * For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
2264
   * Reference.</a>
2265
   */
2266
  @Getter
2267
  @Setter
2268
  @EqualsAndHashCode(callSuper = false)
2269
  public static class Swish extends StripeObject {
×
2270
    /**
2271
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2272
     * {@code on} and the payment method's capability is active.
2273
     */
2274
    @SerializedName("available")
2275
    Boolean available;
2276

2277
    @SerializedName("display_preference")
2278
    DisplayPreference displayPreference;
2279

2280
    /**
2281
     * For more details about DisplayPreference, please refer to the <a
2282
     * href="https://docs.stripe.com/api">API Reference.</a>
2283
     */
2284
    @Getter
2285
    @Setter
2286
    @EqualsAndHashCode(callSuper = false)
2287
    public static class DisplayPreference extends StripeObject {
×
2288
      /**
2289
       * For child configs, whether or not the account's preference will be observed. If {@code
2290
       * false}, the parent configuration's default is used.
2291
       */
2292
      @SerializedName("overridable")
2293
      Boolean overridable;
2294

2295
      /**
2296
       * The account's display preference.
2297
       *
2298
       * <p>One of {@code none}, {@code off}, or {@code on}.
2299
       */
2300
      @SerializedName("preference")
2301
      String preference;
2302

2303
      /**
2304
       * The effective display preference value.
2305
       *
2306
       * <p>One of {@code off}, or {@code on}.
2307
       */
2308
      @SerializedName("value")
2309
      String value;
2310
    }
2311
  }
2312

2313
  /**
2314
   * For more details about Twint, please refer to the <a href="https://docs.stripe.com/api">API
2315
   * Reference.</a>
2316
   */
2317
  @Getter
2318
  @Setter
2319
  @EqualsAndHashCode(callSuper = false)
2320
  public static class Twint extends StripeObject {
×
2321
    /**
2322
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2323
     * {@code on} and the payment method's capability is active.
2324
     */
2325
    @SerializedName("available")
2326
    Boolean available;
2327

2328
    @SerializedName("display_preference")
2329
    DisplayPreference displayPreference;
2330

2331
    /**
2332
     * For more details about DisplayPreference, please refer to the <a
2333
     * href="https://docs.stripe.com/api">API Reference.</a>
2334
     */
2335
    @Getter
2336
    @Setter
2337
    @EqualsAndHashCode(callSuper = false)
2338
    public static class DisplayPreference extends StripeObject {
×
2339
      /**
2340
       * For child configs, whether or not the account's preference will be observed. If {@code
2341
       * false}, the parent configuration's default is used.
2342
       */
2343
      @SerializedName("overridable")
2344
      Boolean overridable;
2345

2346
      /**
2347
       * The account's display preference.
2348
       *
2349
       * <p>One of {@code none}, {@code off}, or {@code on}.
2350
       */
2351
      @SerializedName("preference")
2352
      String preference;
2353

2354
      /**
2355
       * The effective display preference value.
2356
       *
2357
       * <p>One of {@code off}, or {@code on}.
2358
       */
2359
      @SerializedName("value")
2360
      String value;
2361
    }
2362
  }
2363

2364
  /**
2365
   * For more details about UsBankAccount, please refer to the <a
2366
   * href="https://docs.stripe.com/api">API Reference.</a>
2367
   */
2368
  @Getter
2369
  @Setter
2370
  @EqualsAndHashCode(callSuper = false)
2371
  public static class UsBankAccount extends StripeObject {
1✔
2372
    /**
2373
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2374
     * {@code on} and the payment method's capability is active.
2375
     */
2376
    @SerializedName("available")
2377
    Boolean available;
2378

2379
    @SerializedName("display_preference")
2380
    DisplayPreference displayPreference;
2381

2382
    /**
2383
     * For more details about DisplayPreference, please refer to the <a
2384
     * href="https://docs.stripe.com/api">API Reference.</a>
2385
     */
2386
    @Getter
2387
    @Setter
2388
    @EqualsAndHashCode(callSuper = false)
2389
    public static class DisplayPreference extends StripeObject {
1✔
2390
      /**
2391
       * For child configs, whether or not the account's preference will be observed. If {@code
2392
       * false}, the parent configuration's default is used.
2393
       */
2394
      @SerializedName("overridable")
2395
      Boolean overridable;
2396

2397
      /**
2398
       * The account's display preference.
2399
       *
2400
       * <p>One of {@code none}, {@code off}, or {@code on}.
2401
       */
2402
      @SerializedName("preference")
2403
      String preference;
2404

2405
      /**
2406
       * The effective display preference value.
2407
       *
2408
       * <p>One of {@code off}, or {@code on}.
2409
       */
2410
      @SerializedName("value")
2411
      String value;
2412
    }
2413
  }
2414

2415
  /**
2416
   * For more details about WechatPay, please refer to the <a href="https://docs.stripe.com/api">API
2417
   * Reference.</a>
2418
   */
2419
  @Getter
2420
  @Setter
2421
  @EqualsAndHashCode(callSuper = false)
2422
  public static class WechatPay extends StripeObject {
1✔
2423
    /**
2424
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2425
     * {@code on} and the payment method's capability is active.
2426
     */
2427
    @SerializedName("available")
2428
    Boolean available;
2429

2430
    @SerializedName("display_preference")
2431
    DisplayPreference displayPreference;
2432

2433
    /**
2434
     * For more details about DisplayPreference, please refer to the <a
2435
     * href="https://docs.stripe.com/api">API Reference.</a>
2436
     */
2437
    @Getter
2438
    @Setter
2439
    @EqualsAndHashCode(callSuper = false)
2440
    public static class DisplayPreference extends StripeObject {
1✔
2441
      /**
2442
       * For child configs, whether or not the account's preference will be observed. If {@code
2443
       * false}, the parent configuration's default is used.
2444
       */
2445
      @SerializedName("overridable")
2446
      Boolean overridable;
2447

2448
      /**
2449
       * The account's display preference.
2450
       *
2451
       * <p>One of {@code none}, {@code off}, or {@code on}.
2452
       */
2453
      @SerializedName("preference")
2454
      String preference;
2455

2456
      /**
2457
       * The effective display preference value.
2458
       *
2459
       * <p>One of {@code off}, or {@code on}.
2460
       */
2461
      @SerializedName("value")
2462
      String value;
2463
    }
2464
  }
2465

2466
  /**
2467
   * For more details about Zip, please refer to the <a href="https://docs.stripe.com/api">API
2468
   * Reference.</a>
2469
   */
2470
  @Getter
2471
  @Setter
2472
  @EqualsAndHashCode(callSuper = false)
2473
  public static class Zip extends StripeObject {
1✔
2474
    /**
2475
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2476
     * {@code on} and the payment method's capability is active.
2477
     */
2478
    @SerializedName("available")
2479
    Boolean available;
2480

2481
    @SerializedName("display_preference")
2482
    DisplayPreference displayPreference;
2483

2484
    /**
2485
     * For more details about DisplayPreference, please refer to the <a
2486
     * href="https://docs.stripe.com/api">API Reference.</a>
2487
     */
2488
    @Getter
2489
    @Setter
2490
    @EqualsAndHashCode(callSuper = false)
2491
    public static class DisplayPreference extends StripeObject {
1✔
2492
      /**
2493
       * For child configs, whether or not the account's preference will be observed. If {@code
2494
       * false}, the parent configuration's default is used.
2495
       */
2496
      @SerializedName("overridable")
2497
      Boolean overridable;
2498

2499
      /**
2500
       * The account's display preference.
2501
       *
2502
       * <p>One of {@code none}, {@code off}, or {@code on}.
2503
       */
2504
      @SerializedName("preference")
2505
      String preference;
2506

2507
      /**
2508
       * The effective display preference value.
2509
       *
2510
       * <p>One of {@code off}, or {@code on}.
2511
       */
2512
      @SerializedName("value")
2513
      String value;
2514
    }
2515
  }
2516

2517
  @Override
2518
  public void setResponseGetter(StripeResponseGetter responseGetter) {
2519
    super.setResponseGetter(responseGetter);
1✔
2520
    trySetResponseGetter(acssDebit, responseGetter);
1✔
2521
    trySetResponseGetter(affirm, responseGetter);
1✔
2522
    trySetResponseGetter(afterpayClearpay, responseGetter);
1✔
2523
    trySetResponseGetter(alipay, responseGetter);
1✔
2524
    trySetResponseGetter(alma, responseGetter);
1✔
2525
    trySetResponseGetter(amazonPay, responseGetter);
1✔
2526
    trySetResponseGetter(applePay, responseGetter);
1✔
2527
    trySetResponseGetter(auBecsDebit, responseGetter);
1✔
2528
    trySetResponseGetter(bacsDebit, responseGetter);
1✔
2529
    trySetResponseGetter(bancontact, responseGetter);
1✔
2530
    trySetResponseGetter(blik, responseGetter);
1✔
2531
    trySetResponseGetter(boleto, responseGetter);
1✔
2532
    trySetResponseGetter(card, responseGetter);
1✔
2533
    trySetResponseGetter(cartesBancaires, responseGetter);
1✔
2534
    trySetResponseGetter(cashapp, responseGetter);
1✔
2535
    trySetResponseGetter(customerBalance, responseGetter);
1✔
2536
    trySetResponseGetter(eps, responseGetter);
1✔
2537
    trySetResponseGetter(fpx, responseGetter);
1✔
2538
    trySetResponseGetter(giropay, responseGetter);
1✔
2539
    trySetResponseGetter(googlePay, responseGetter);
1✔
2540
    trySetResponseGetter(grabpay, responseGetter);
1✔
2541
    trySetResponseGetter(ideal, responseGetter);
1✔
2542
    trySetResponseGetter(jcb, responseGetter);
1✔
2543
    trySetResponseGetter(klarna, responseGetter);
1✔
2544
    trySetResponseGetter(konbini, responseGetter);
1✔
2545
    trySetResponseGetter(link, responseGetter);
1✔
2546
    trySetResponseGetter(mobilepay, responseGetter);
1✔
2547
    trySetResponseGetter(multibanco, responseGetter);
1✔
2548
    trySetResponseGetter(oxxo, responseGetter);
1✔
2549
    trySetResponseGetter(p24, responseGetter);
1✔
2550
    trySetResponseGetter(paynow, responseGetter);
1✔
2551
    trySetResponseGetter(paypal, responseGetter);
1✔
2552
    trySetResponseGetter(payto, responseGetter);
1✔
2553
    trySetResponseGetter(promptpay, responseGetter);
1✔
2554
    trySetResponseGetter(revolutPay, responseGetter);
1✔
2555
    trySetResponseGetter(sepaDebit, responseGetter);
1✔
2556
    trySetResponseGetter(sofort, responseGetter);
1✔
2557
    trySetResponseGetter(swish, responseGetter);
1✔
2558
    trySetResponseGetter(twint, responseGetter);
1✔
2559
    trySetResponseGetter(usBankAccount, responseGetter);
1✔
2560
    trySetResponseGetter(wechatPay, responseGetter);
1✔
2561
    trySetResponseGetter(zip, responseGetter);
1✔
2562
  }
1✔
2563
}
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