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

stripe / stripe-java / #16380

30 Aug 2024 07:54PM UTC coverage: 12.882% (-0.004%) from 12.886%
#16380

push

github

web-flow
Merge from master after the changes to not pass api_mode from individual methods (#1857)

* Generate SDK for OpenAPI spec version 1230 (#1856)

* Bump version to 26.9.0

* No need for APIMode to be passed around from individual API methods (#1855)

* Generated code

* Update the code around raw request

* Update the v2 tests to use v2 path

16 of 23 new or added lines in 7 files covered. (69.57%)

706 existing lines in 213 files now uncovered.

18468 of 143365 relevant lines covered (12.88%)

0.13 hits per line

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

70.11
/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("amazon_pay")
72
  AmazonPay amazonPay;
73

74
  @SerializedName("apple_pay")
75
  ApplePay applePay;
76

77
  /** For child configs, the Connect application associated with the configuration. */
78
  @SerializedName("application")
79
  String application;
80

81
  @SerializedName("au_becs_debit")
82
  AuBecsDebit auBecsDebit;
83

84
  @SerializedName("bacs_debit")
85
  BacsDebit bacsDebit;
86

87
  @SerializedName("bancontact")
88
  Bancontact bancontact;
89

90
  @SerializedName("blik")
91
  Blik blik;
92

93
  @SerializedName("boleto")
94
  Boleto boleto;
95

96
  @SerializedName("card")
97
  Card card;
98

99
  @SerializedName("cartes_bancaires")
100
  CartesBancaires cartesBancaires;
101

102
  @SerializedName("cashapp")
103
  Cashapp cashapp;
104

105
  @SerializedName("customer_balance")
106
  CustomerBalance customerBalance;
107

108
  @SerializedName("eps")
109
  Eps eps;
110

111
  @SerializedName("fpx")
112
  Fpx fpx;
113

114
  @SerializedName("giropay")
115
  Giropay giropay;
116

117
  @SerializedName("google_pay")
118
  GooglePay googlePay;
119

120
  @SerializedName("grabpay")
121
  Grabpay grabpay;
122

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

128
  @SerializedName("ideal")
129
  Ideal ideal;
130

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

135
  @SerializedName("jcb")
136
  Jcb jcb;
137

138
  @SerializedName("klarna")
139
  Klarna klarna;
140

141
  @SerializedName("konbini")
142
  Konbini konbini;
143

144
  @SerializedName("link")
145
  Link link;
146

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

154
  @SerializedName("mobilepay")
155
  Mobilepay mobilepay;
156

157
  @SerializedName("multibanco")
158
  Multibanco multibanco;
159

160
  /** The configuration's name. */
161
  @SerializedName("name")
162
  String name;
163

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

172
  @SerializedName("oxxo")
173
  Oxxo oxxo;
174

175
  @SerializedName("p24")
176
  P24 p24;
177

178
  /** For child configs, the configuration's parent configuration. */
179
  @SerializedName("parent")
180
  String parent;
181

182
  @SerializedName("paynow")
183
  Paynow paynow;
184

185
  @SerializedName("paypal")
186
  Paypal paypal;
187

188
  @SerializedName("payto")
189
  Payto payto;
190

191
  @SerializedName("promptpay")
192
  Promptpay promptpay;
193

194
  @SerializedName("revolut_pay")
195
  RevolutPay revolutPay;
196

197
  @SerializedName("sepa_debit")
198
  SepaDebit sepaDebit;
199

200
  @SerializedName("sofort")
201
  Sofort sofort;
202

203
  @SerializedName("swish")
204
  Swish swish;
205

206
  @SerializedName("twint")
207
  Twint twint;
208

209
  @SerializedName("us_bank_account")
210
  UsBankAccount usBankAccount;
211

212
  @SerializedName("wechat_pay")
213
  WechatPay wechatPay;
214

215
  @SerializedName("zip")
216
  Zip zip;
217

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

372
  @Getter
373
  @Setter
374
  @EqualsAndHashCode(callSuper = false)
375
  public static class AcssDebit extends StripeObject {
1✔
376
    /**
377
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
378
     * {@code on} and the payment method's capability is active.
379
     */
380
    @SerializedName("available")
381
    Boolean available;
382

383
    @SerializedName("display_preference")
384
    DisplayPreference displayPreference;
385

386
    @Getter
387
    @Setter
388
    @EqualsAndHashCode(callSuper = false)
389
    public static class DisplayPreference extends StripeObject {
1✔
390
      /**
391
       * For child configs, whether or not the account's preference will be observed. If {@code
392
       * false}, the parent configuration's default is used.
393
       */
394
      @SerializedName("overridable")
395
      Boolean overridable;
396

397
      /**
398
       * The account's display preference.
399
       *
400
       * <p>One of {@code none}, {@code off}, or {@code on}.
401
       */
402
      @SerializedName("preference")
403
      String preference;
404

405
      /**
406
       * The effective display preference value.
407
       *
408
       * <p>One of {@code off}, or {@code on}.
409
       */
410
      @SerializedName("value")
411
      String value;
412
    }
413
  }
414

415
  @Getter
416
  @Setter
417
  @EqualsAndHashCode(callSuper = false)
418
  public static class Affirm extends StripeObject {
1✔
419
    /**
420
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
421
     * {@code on} and the payment method's capability is active.
422
     */
423
    @SerializedName("available")
424
    Boolean available;
425

426
    @SerializedName("display_preference")
427
    DisplayPreference displayPreference;
428

429
    @Getter
430
    @Setter
431
    @EqualsAndHashCode(callSuper = false)
432
    public static class DisplayPreference extends StripeObject {
1✔
433
      /**
434
       * For child configs, whether or not the account's preference will be observed. If {@code
435
       * false}, the parent configuration's default is used.
436
       */
437
      @SerializedName("overridable")
438
      Boolean overridable;
439

440
      /**
441
       * The account's display preference.
442
       *
443
       * <p>One of {@code none}, {@code off}, or {@code on}.
444
       */
445
      @SerializedName("preference")
446
      String preference;
447

448
      /**
449
       * The effective display preference value.
450
       *
451
       * <p>One of {@code off}, or {@code on}.
452
       */
453
      @SerializedName("value")
454
      String value;
455
    }
456
  }
457

458
  @Getter
459
  @Setter
460
  @EqualsAndHashCode(callSuper = false)
461
  public static class AfterpayClearpay extends StripeObject {
1✔
462
    /**
463
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
464
     * {@code on} and the payment method's capability is active.
465
     */
466
    @SerializedName("available")
467
    Boolean available;
468

469
    @SerializedName("display_preference")
470
    DisplayPreference displayPreference;
471

472
    @Getter
473
    @Setter
474
    @EqualsAndHashCode(callSuper = false)
475
    public static class DisplayPreference extends StripeObject {
1✔
476
      /**
477
       * For child configs, whether or not the account's preference will be observed. If {@code
478
       * false}, the parent configuration's default is used.
479
       */
480
      @SerializedName("overridable")
481
      Boolean overridable;
482

483
      /**
484
       * The account's display preference.
485
       *
486
       * <p>One of {@code none}, {@code off}, or {@code on}.
487
       */
488
      @SerializedName("preference")
489
      String preference;
490

491
      /**
492
       * The effective display preference value.
493
       *
494
       * <p>One of {@code off}, or {@code on}.
495
       */
496
      @SerializedName("value")
497
      String value;
498
    }
499
  }
500

501
  @Getter
502
  @Setter
503
  @EqualsAndHashCode(callSuper = false)
504
  public static class Alipay extends StripeObject {
1✔
505
    /**
506
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
507
     * {@code on} and the payment method's capability is active.
508
     */
509
    @SerializedName("available")
510
    Boolean available;
511

512
    @SerializedName("display_preference")
513
    DisplayPreference displayPreference;
514

515
    @Getter
516
    @Setter
517
    @EqualsAndHashCode(callSuper = false)
518
    public static class DisplayPreference extends StripeObject {
1✔
519
      /**
520
       * For child configs, whether or not the account's preference will be observed. If {@code
521
       * false}, the parent configuration's default is used.
522
       */
523
      @SerializedName("overridable")
524
      Boolean overridable;
525

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

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

544
  @Getter
545
  @Setter
546
  @EqualsAndHashCode(callSuper = false)
547
  public static class AmazonPay 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
    @Getter
559
    @Setter
560
    @EqualsAndHashCode(callSuper = false)
561
    public static class DisplayPreference extends StripeObject {
1✔
562
      /**
563
       * For child configs, whether or not the account's preference will be observed. If {@code
564
       * false}, the parent configuration's default is used.
565
       */
566
      @SerializedName("overridable")
567
      Boolean overridable;
568

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

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

587
  @Getter
588
  @Setter
589
  @EqualsAndHashCode(callSuper = false)
590
  public static class ApplePay extends StripeObject {
1✔
591
    /**
592
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
593
     * {@code on} and the payment method's capability is active.
594
     */
595
    @SerializedName("available")
596
    Boolean available;
597

598
    @SerializedName("display_preference")
599
    DisplayPreference displayPreference;
600

601
    @Getter
602
    @Setter
603
    @EqualsAndHashCode(callSuper = false)
604
    public static class DisplayPreference extends StripeObject {
1✔
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
  @Getter
631
  @Setter
632
  @EqualsAndHashCode(callSuper = false)
633
  public static class AuBecsDebit extends StripeObject {
×
634
    /**
635
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
636
     * {@code on} and the payment method's capability is active.
637
     */
638
    @SerializedName("available")
639
    Boolean available;
640

641
    @SerializedName("display_preference")
642
    DisplayPreference displayPreference;
643

644
    @Getter
645
    @Setter
646
    @EqualsAndHashCode(callSuper = false)
647
    public static class DisplayPreference extends StripeObject {
×
648
      /**
649
       * For child configs, whether or not the account's preference will be observed. If {@code
650
       * false}, the parent configuration's default is used.
651
       */
652
      @SerializedName("overridable")
653
      Boolean overridable;
654

655
      /**
656
       * The account's display preference.
657
       *
658
       * <p>One of {@code none}, {@code off}, or {@code on}.
659
       */
660
      @SerializedName("preference")
661
      String preference;
662

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

673
  @Getter
674
  @Setter
675
  @EqualsAndHashCode(callSuper = false)
676
  public static class BacsDebit extends StripeObject {
1✔
677
    /**
678
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
679
     * {@code on} and the payment method's capability is active.
680
     */
681
    @SerializedName("available")
682
    Boolean available;
683

684
    @SerializedName("display_preference")
685
    DisplayPreference displayPreference;
686

687
    @Getter
688
    @Setter
689
    @EqualsAndHashCode(callSuper = false)
690
    public static class DisplayPreference extends StripeObject {
1✔
691
      /**
692
       * For child configs, whether or not the account's preference will be observed. If {@code
693
       * false}, the parent configuration's default is used.
694
       */
695
      @SerializedName("overridable")
696
      Boolean overridable;
697

698
      /**
699
       * The account's display preference.
700
       *
701
       * <p>One of {@code none}, {@code off}, or {@code on}.
702
       */
703
      @SerializedName("preference")
704
      String preference;
705

706
      /**
707
       * The effective display preference value.
708
       *
709
       * <p>One of {@code off}, or {@code on}.
710
       */
711
      @SerializedName("value")
712
      String value;
713
    }
714
  }
715

716
  @Getter
717
  @Setter
718
  @EqualsAndHashCode(callSuper = false)
719
  public static class Bancontact extends StripeObject {
1✔
720
    /**
721
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
722
     * {@code on} and the payment method's capability is active.
723
     */
724
    @SerializedName("available")
725
    Boolean available;
726

727
    @SerializedName("display_preference")
728
    DisplayPreference displayPreference;
729

730
    @Getter
731
    @Setter
732
    @EqualsAndHashCode(callSuper = false)
733
    public static class DisplayPreference extends StripeObject {
1✔
734
      /**
735
       * For child configs, whether or not the account's preference will be observed. If {@code
736
       * false}, the parent configuration's default is used.
737
       */
738
      @SerializedName("overridable")
739
      Boolean overridable;
740

741
      /**
742
       * The account's display preference.
743
       *
744
       * <p>One of {@code none}, {@code off}, or {@code on}.
745
       */
746
      @SerializedName("preference")
747
      String preference;
748

749
      /**
750
       * The effective display preference value.
751
       *
752
       * <p>One of {@code off}, or {@code on}.
753
       */
754
      @SerializedName("value")
755
      String value;
756
    }
757
  }
758

759
  @Getter
760
  @Setter
761
  @EqualsAndHashCode(callSuper = false)
762
  public static class Blik extends StripeObject {
1✔
763
    /**
764
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
765
     * {@code on} and the payment method's capability is active.
766
     */
767
    @SerializedName("available")
768
    Boolean available;
769

770
    @SerializedName("display_preference")
771
    DisplayPreference displayPreference;
772

773
    @Getter
774
    @Setter
775
    @EqualsAndHashCode(callSuper = false)
776
    public static class DisplayPreference extends StripeObject {
1✔
777
      /**
778
       * For child configs, whether or not the account's preference will be observed. If {@code
779
       * false}, the parent configuration's default is used.
780
       */
781
      @SerializedName("overridable")
782
      Boolean overridable;
783

784
      /**
785
       * The account's display preference.
786
       *
787
       * <p>One of {@code none}, {@code off}, or {@code on}.
788
       */
789
      @SerializedName("preference")
790
      String preference;
791

792
      /**
793
       * The effective display preference value.
794
       *
795
       * <p>One of {@code off}, or {@code on}.
796
       */
797
      @SerializedName("value")
798
      String value;
799
    }
800
  }
801

802
  @Getter
803
  @Setter
804
  @EqualsAndHashCode(callSuper = false)
805
  public static class Boleto extends StripeObject {
×
806
    /**
807
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
808
     * {@code on} and the payment method's capability is active.
809
     */
810
    @SerializedName("available")
811
    Boolean available;
812

813
    @SerializedName("display_preference")
814
    DisplayPreference displayPreference;
815

816
    @Getter
817
    @Setter
818
    @EqualsAndHashCode(callSuper = false)
819
    public static class DisplayPreference extends StripeObject {
×
820
      /**
821
       * For child configs, whether or not the account's preference will be observed. If {@code
822
       * false}, the parent configuration's default is used.
823
       */
824
      @SerializedName("overridable")
825
      Boolean overridable;
826

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

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

845
  @Getter
846
  @Setter
847
  @EqualsAndHashCode(callSuper = false)
848
  public static class Card extends StripeObject {
1✔
849
    /**
850
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
851
     * {@code on} and the payment method's capability is active.
852
     */
853
    @SerializedName("available")
854
    Boolean available;
855

856
    @SerializedName("display_preference")
857
    DisplayPreference displayPreference;
858

859
    @Getter
860
    @Setter
861
    @EqualsAndHashCode(callSuper = false)
862
    public static class DisplayPreference extends StripeObject {
1✔
863
      /**
864
       * For child configs, whether or not the account's preference will be observed. If {@code
865
       * false}, the parent configuration's default is used.
866
       */
867
      @SerializedName("overridable")
868
      Boolean overridable;
869

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

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

888
  @Getter
889
  @Setter
890
  @EqualsAndHashCode(callSuper = false)
891
  public static class CartesBancaires extends StripeObject {
1✔
892
    /**
893
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
894
     * {@code on} and the payment method's capability is active.
895
     */
896
    @SerializedName("available")
897
    Boolean available;
898

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

902
    @Getter
903
    @Setter
904
    @EqualsAndHashCode(callSuper = false)
905
    public static class DisplayPreference extends StripeObject {
1✔
906
      /**
907
       * For child configs, whether or not the account's preference will be observed. If {@code
908
       * false}, the parent configuration's default is used.
909
       */
910
      @SerializedName("overridable")
911
      Boolean overridable;
912

913
      /**
914
       * The account's display preference.
915
       *
916
       * <p>One of {@code none}, {@code off}, or {@code on}.
917
       */
918
      @SerializedName("preference")
919
      String preference;
920

921
      /**
922
       * The effective display preference value.
923
       *
924
       * <p>One of {@code off}, or {@code on}.
925
       */
926
      @SerializedName("value")
927
      String value;
928
    }
929
  }
930

931
  @Getter
932
  @Setter
933
  @EqualsAndHashCode(callSuper = false)
934
  public static class Cashapp extends StripeObject {
1✔
935
    /**
936
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
937
     * {@code on} and the payment method's capability is active.
938
     */
939
    @SerializedName("available")
940
    Boolean available;
941

942
    @SerializedName("display_preference")
943
    DisplayPreference displayPreference;
944

945
    @Getter
946
    @Setter
947
    @EqualsAndHashCode(callSuper = false)
948
    public static class DisplayPreference extends StripeObject {
1✔
949
      /**
950
       * For child configs, whether or not the account's preference will be observed. If {@code
951
       * false}, the parent configuration's default is used.
952
       */
953
      @SerializedName("overridable")
954
      Boolean overridable;
955

956
      /**
957
       * The account's display preference.
958
       *
959
       * <p>One of {@code none}, {@code off}, or {@code on}.
960
       */
961
      @SerializedName("preference")
962
      String preference;
963

964
      /**
965
       * The effective display preference value.
966
       *
967
       * <p>One of {@code off}, or {@code on}.
968
       */
969
      @SerializedName("value")
970
      String value;
971
    }
972
  }
973

974
  @Getter
975
  @Setter
976
  @EqualsAndHashCode(callSuper = false)
977
  public static class CustomerBalance extends StripeObject {
1✔
978
    /**
979
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
980
     * {@code on} and the payment method's capability is active.
981
     */
982
    @SerializedName("available")
983
    Boolean available;
984

985
    @SerializedName("display_preference")
986
    DisplayPreference displayPreference;
987

988
    @Getter
989
    @Setter
990
    @EqualsAndHashCode(callSuper = false)
991
    public static class DisplayPreference extends StripeObject {
1✔
992
      /**
993
       * For child configs, whether or not the account's preference will be observed. If {@code
994
       * false}, the parent configuration's default is used.
995
       */
996
      @SerializedName("overridable")
997
      Boolean overridable;
998

999
      /**
1000
       * The account's display preference.
1001
       *
1002
       * <p>One of {@code none}, {@code off}, or {@code on}.
1003
       */
1004
      @SerializedName("preference")
1005
      String preference;
1006

1007
      /**
1008
       * The effective display preference value.
1009
       *
1010
       * <p>One of {@code off}, or {@code on}.
1011
       */
1012
      @SerializedName("value")
1013
      String value;
1014
    }
1015
  }
1016

1017
  @Getter
1018
  @Setter
1019
  @EqualsAndHashCode(callSuper = false)
1020
  public static class Eps extends StripeObject {
1✔
1021
    /**
1022
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1023
     * {@code on} and the payment method's capability is active.
1024
     */
1025
    @SerializedName("available")
1026
    Boolean available;
1027

1028
    @SerializedName("display_preference")
1029
    DisplayPreference displayPreference;
1030

1031
    @Getter
1032
    @Setter
1033
    @EqualsAndHashCode(callSuper = false)
1034
    public static class DisplayPreference extends StripeObject {
1✔
1035
      /**
1036
       * For child configs, whether or not the account's preference will be observed. If {@code
1037
       * false}, the parent configuration's default is used.
1038
       */
1039
      @SerializedName("overridable")
1040
      Boolean overridable;
1041

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

1050
      /**
1051
       * The effective display preference value.
1052
       *
1053
       * <p>One of {@code off}, or {@code on}.
1054
       */
1055
      @SerializedName("value")
1056
      String value;
1057
    }
1058
  }
1059

1060
  @Getter
1061
  @Setter
1062
  @EqualsAndHashCode(callSuper = false)
1063
  public static class Fpx extends StripeObject {
×
1064
    /**
1065
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1066
     * {@code on} and the payment method's capability is active.
1067
     */
1068
    @SerializedName("available")
1069
    Boolean available;
1070

1071
    @SerializedName("display_preference")
1072
    DisplayPreference displayPreference;
1073

1074
    @Getter
1075
    @Setter
1076
    @EqualsAndHashCode(callSuper = false)
1077
    public static class DisplayPreference extends StripeObject {
×
1078
      /**
1079
       * For child configs, whether or not the account's preference will be observed. If {@code
1080
       * false}, the parent configuration's default is used.
1081
       */
1082
      @SerializedName("overridable")
1083
      Boolean overridable;
1084

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

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

1103
  @Getter
1104
  @Setter
1105
  @EqualsAndHashCode(callSuper = false)
1106
  public static class Giropay extends StripeObject {
1✔
1107
    /**
1108
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1109
     * {@code on} and the payment method's capability is active.
1110
     */
1111
    @SerializedName("available")
1112
    Boolean available;
1113

1114
    @SerializedName("display_preference")
1115
    DisplayPreference displayPreference;
1116

1117
    @Getter
1118
    @Setter
1119
    @EqualsAndHashCode(callSuper = false)
1120
    public static class DisplayPreference extends StripeObject {
1✔
1121
      /**
1122
       * For child configs, whether or not the account's preference will be observed. If {@code
1123
       * false}, the parent configuration's default is used.
1124
       */
1125
      @SerializedName("overridable")
1126
      Boolean overridable;
1127

1128
      /**
1129
       * The account's display preference.
1130
       *
1131
       * <p>One of {@code none}, {@code off}, or {@code on}.
1132
       */
1133
      @SerializedName("preference")
1134
      String preference;
1135

1136
      /**
1137
       * The effective display preference value.
1138
       *
1139
       * <p>One of {@code off}, or {@code on}.
1140
       */
1141
      @SerializedName("value")
1142
      String value;
1143
    }
1144
  }
1145

1146
  @Getter
1147
  @Setter
1148
  @EqualsAndHashCode(callSuper = false)
1149
  public static class GooglePay extends StripeObject {
1✔
1150
    /**
1151
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1152
     * {@code on} and the payment method's capability is active.
1153
     */
1154
    @SerializedName("available")
1155
    Boolean available;
1156

1157
    @SerializedName("display_preference")
1158
    DisplayPreference displayPreference;
1159

1160
    @Getter
1161
    @Setter
1162
    @EqualsAndHashCode(callSuper = false)
1163
    public static class DisplayPreference extends StripeObject {
1✔
1164
      /**
1165
       * For child configs, whether or not the account's preference will be observed. If {@code
1166
       * false}, the parent configuration's default is used.
1167
       */
1168
      @SerializedName("overridable")
1169
      Boolean overridable;
1170

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

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

1189
  @Getter
1190
  @Setter
1191
  @EqualsAndHashCode(callSuper = false)
1192
  public static class Grabpay extends StripeObject {
×
1193
    /**
1194
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1195
     * {@code on} and the payment method's capability is active.
1196
     */
1197
    @SerializedName("available")
1198
    Boolean available;
1199

1200
    @SerializedName("display_preference")
1201
    DisplayPreference displayPreference;
1202

1203
    @Getter
1204
    @Setter
1205
    @EqualsAndHashCode(callSuper = false)
1206
    public static class DisplayPreference extends StripeObject {
×
1207
      /**
1208
       * For child configs, whether or not the account's preference will be observed. If {@code
1209
       * false}, the parent configuration's default is used.
1210
       */
1211
      @SerializedName("overridable")
1212
      Boolean overridable;
1213

1214
      /**
1215
       * The account's display preference.
1216
       *
1217
       * <p>One of {@code none}, {@code off}, or {@code on}.
1218
       */
1219
      @SerializedName("preference")
1220
      String preference;
1221

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

1232
  @Getter
1233
  @Setter
1234
  @EqualsAndHashCode(callSuper = false)
1235
  public static class Ideal extends StripeObject {
1✔
1236
    /**
1237
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1238
     * {@code on} and the payment method's capability is active.
1239
     */
1240
    @SerializedName("available")
1241
    Boolean available;
1242

1243
    @SerializedName("display_preference")
1244
    DisplayPreference displayPreference;
1245

1246
    @Getter
1247
    @Setter
1248
    @EqualsAndHashCode(callSuper = false)
1249
    public static class DisplayPreference extends StripeObject {
1✔
1250
      /**
1251
       * For child configs, whether or not the account's preference will be observed. If {@code
1252
       * false}, the parent configuration's default is used.
1253
       */
1254
      @SerializedName("overridable")
1255
      Boolean overridable;
1256

1257
      /**
1258
       * The account's display preference.
1259
       *
1260
       * <p>One of {@code none}, {@code off}, or {@code on}.
1261
       */
1262
      @SerializedName("preference")
1263
      String preference;
1264

1265
      /**
1266
       * The effective display preference value.
1267
       *
1268
       * <p>One of {@code off}, or {@code on}.
1269
       */
1270
      @SerializedName("value")
1271
      String value;
1272
    }
1273
  }
1274

1275
  @Getter
1276
  @Setter
1277
  @EqualsAndHashCode(callSuper = false)
1278
  public static class Jcb extends StripeObject {
×
1279
    /**
1280
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1281
     * {@code on} and the payment method's capability is active.
1282
     */
1283
    @SerializedName("available")
1284
    Boolean available;
1285

1286
    @SerializedName("display_preference")
1287
    DisplayPreference displayPreference;
1288

1289
    @Getter
1290
    @Setter
1291
    @EqualsAndHashCode(callSuper = false)
1292
    public static class DisplayPreference extends StripeObject {
×
1293
      /**
1294
       * For child configs, whether or not the account's preference will be observed. If {@code
1295
       * false}, the parent configuration's default is used.
1296
       */
1297
      @SerializedName("overridable")
1298
      Boolean overridable;
1299

1300
      /**
1301
       * The account's display preference.
1302
       *
1303
       * <p>One of {@code none}, {@code off}, or {@code on}.
1304
       */
1305
      @SerializedName("preference")
1306
      String preference;
1307

1308
      /**
1309
       * The effective display preference value.
1310
       *
1311
       * <p>One of {@code off}, or {@code on}.
1312
       */
1313
      @SerializedName("value")
1314
      String value;
1315
    }
1316
  }
1317

1318
  @Getter
1319
  @Setter
1320
  @EqualsAndHashCode(callSuper = false)
1321
  public static class Klarna extends StripeObject {
1✔
1322
    /**
1323
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1324
     * {@code on} and the payment method's capability is active.
1325
     */
1326
    @SerializedName("available")
1327
    Boolean available;
1328

1329
    @SerializedName("display_preference")
1330
    DisplayPreference displayPreference;
1331

1332
    @Getter
1333
    @Setter
1334
    @EqualsAndHashCode(callSuper = false)
1335
    public static class DisplayPreference extends StripeObject {
1✔
1336
      /**
1337
       * For child configs, whether or not the account's preference will be observed. If {@code
1338
       * false}, the parent configuration's default is used.
1339
       */
1340
      @SerializedName("overridable")
1341
      Boolean overridable;
1342

1343
      /**
1344
       * The account's display preference.
1345
       *
1346
       * <p>One of {@code none}, {@code off}, or {@code on}.
1347
       */
1348
      @SerializedName("preference")
1349
      String preference;
1350

1351
      /**
1352
       * The effective display preference value.
1353
       *
1354
       * <p>One of {@code off}, or {@code on}.
1355
       */
1356
      @SerializedName("value")
1357
      String value;
1358
    }
1359
  }
1360

1361
  @Getter
1362
  @Setter
1363
  @EqualsAndHashCode(callSuper = false)
1364
  public static class Konbini extends StripeObject {
×
1365
    /**
1366
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1367
     * {@code on} and the payment method's capability is active.
1368
     */
1369
    @SerializedName("available")
1370
    Boolean available;
1371

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

1375
    @Getter
1376
    @Setter
1377
    @EqualsAndHashCode(callSuper = false)
1378
    public static class DisplayPreference extends StripeObject {
×
1379
      /**
1380
       * For child configs, whether or not the account's preference will be observed. If {@code
1381
       * false}, the parent configuration's default is used.
1382
       */
1383
      @SerializedName("overridable")
1384
      Boolean overridable;
1385

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

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

1404
  @Getter
1405
  @Setter
1406
  @EqualsAndHashCode(callSuper = false)
1407
  public static class Link extends StripeObject {
1✔
1408
    /**
1409
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1410
     * {@code on} and the payment method's capability is active.
1411
     */
1412
    @SerializedName("available")
1413
    Boolean available;
1414

1415
    @SerializedName("display_preference")
1416
    DisplayPreference displayPreference;
1417

1418
    @Getter
1419
    @Setter
1420
    @EqualsAndHashCode(callSuper = false)
1421
    public static class DisplayPreference extends StripeObject {
1✔
1422
      /**
1423
       * For child configs, whether or not the account's preference will be observed. If {@code
1424
       * false}, the parent configuration's default is used.
1425
       */
1426
      @SerializedName("overridable")
1427
      Boolean overridable;
1428

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

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

1447
  @Getter
1448
  @Setter
1449
  @EqualsAndHashCode(callSuper = false)
1450
  public static class Mobilepay extends StripeObject {
×
1451
    /**
1452
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1453
     * {@code on} and the payment method's capability is active.
1454
     */
1455
    @SerializedName("available")
1456
    Boolean available;
1457

1458
    @SerializedName("display_preference")
1459
    DisplayPreference displayPreference;
1460

1461
    @Getter
1462
    @Setter
1463
    @EqualsAndHashCode(callSuper = false)
1464
    public static class DisplayPreference extends StripeObject {
×
1465
      /**
1466
       * For child configs, whether or not the account's preference will be observed. If {@code
1467
       * false}, the parent configuration's default is used.
1468
       */
1469
      @SerializedName("overridable")
1470
      Boolean overridable;
1471

1472
      /**
1473
       * The account's display preference.
1474
       *
1475
       * <p>One of {@code none}, {@code off}, or {@code on}.
1476
       */
1477
      @SerializedName("preference")
1478
      String preference;
1479

1480
      /**
1481
       * The effective display preference value.
1482
       *
1483
       * <p>One of {@code off}, or {@code on}.
1484
       */
1485
      @SerializedName("value")
1486
      String value;
1487
    }
1488
  }
1489

1490
  @Getter
1491
  @Setter
1492
  @EqualsAndHashCode(callSuper = false)
1493
  public static class Multibanco extends StripeObject {
1✔
1494
    /**
1495
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1496
     * {@code on} and the payment method's capability is active.
1497
     */
1498
    @SerializedName("available")
1499
    Boolean available;
1500

1501
    @SerializedName("display_preference")
1502
    DisplayPreference displayPreference;
1503

1504
    @Getter
1505
    @Setter
1506
    @EqualsAndHashCode(callSuper = false)
1507
    public static class DisplayPreference extends StripeObject {
1✔
1508
      /**
1509
       * For child configs, whether or not the account's preference will be observed. If {@code
1510
       * false}, the parent configuration's default is used.
1511
       */
1512
      @SerializedName("overridable")
1513
      Boolean overridable;
1514

1515
      /**
1516
       * The account's display preference.
1517
       *
1518
       * <p>One of {@code none}, {@code off}, or {@code on}.
1519
       */
1520
      @SerializedName("preference")
1521
      String preference;
1522

1523
      /**
1524
       * The effective display preference value.
1525
       *
1526
       * <p>One of {@code off}, or {@code on}.
1527
       */
1528
      @SerializedName("value")
1529
      String value;
1530
    }
1531
  }
1532

1533
  @Getter
1534
  @Setter
1535
  @EqualsAndHashCode(callSuper = false)
1536
  public static class Oxxo extends StripeObject {
×
1537
    /**
1538
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1539
     * {@code on} and the payment method's capability is active.
1540
     */
1541
    @SerializedName("available")
1542
    Boolean available;
1543

1544
    @SerializedName("display_preference")
1545
    DisplayPreference displayPreference;
1546

1547
    @Getter
1548
    @Setter
1549
    @EqualsAndHashCode(callSuper = false)
1550
    public static class DisplayPreference extends StripeObject {
×
1551
      /**
1552
       * For child configs, whether or not the account's preference will be observed. If {@code
1553
       * false}, the parent configuration's default is used.
1554
       */
1555
      @SerializedName("overridable")
1556
      Boolean overridable;
1557

1558
      /**
1559
       * The account's display preference.
1560
       *
1561
       * <p>One of {@code none}, {@code off}, or {@code on}.
1562
       */
1563
      @SerializedName("preference")
1564
      String preference;
1565

1566
      /**
1567
       * The effective display preference value.
1568
       *
1569
       * <p>One of {@code off}, or {@code on}.
1570
       */
1571
      @SerializedName("value")
1572
      String value;
1573
    }
1574
  }
1575

1576
  @Getter
1577
  @Setter
1578
  @EqualsAndHashCode(callSuper = false)
1579
  public static class P24 extends StripeObject {
1✔
1580
    /**
1581
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1582
     * {@code on} and the payment method's capability is active.
1583
     */
1584
    @SerializedName("available")
1585
    Boolean available;
1586

1587
    @SerializedName("display_preference")
1588
    DisplayPreference displayPreference;
1589

1590
    @Getter
1591
    @Setter
1592
    @EqualsAndHashCode(callSuper = false)
1593
    public static class DisplayPreference extends StripeObject {
1✔
1594
      /**
1595
       * For child configs, whether or not the account's preference will be observed. If {@code
1596
       * false}, the parent configuration's default is used.
1597
       */
1598
      @SerializedName("overridable")
1599
      Boolean overridable;
1600

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

1609
      /**
1610
       * The effective display preference value.
1611
       *
1612
       * <p>One of {@code off}, or {@code on}.
1613
       */
1614
      @SerializedName("value")
1615
      String value;
1616
    }
1617
  }
1618

1619
  @Getter
1620
  @Setter
1621
  @EqualsAndHashCode(callSuper = false)
1622
  public static class Paynow extends StripeObject {
×
1623
    /**
1624
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1625
     * {@code on} and the payment method's capability is active.
1626
     */
1627
    @SerializedName("available")
1628
    Boolean available;
1629

1630
    @SerializedName("display_preference")
1631
    DisplayPreference displayPreference;
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
  @Getter
1663
  @Setter
1664
  @EqualsAndHashCode(callSuper = false)
1665
  public static class Paypal extends StripeObject {
×
1666
    /**
1667
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1668
     * {@code on} and the payment method's capability is active.
1669
     */
1670
    @SerializedName("available")
1671
    Boolean available;
1672

1673
    @SerializedName("display_preference")
1674
    DisplayPreference displayPreference;
1675

1676
    @Getter
1677
    @Setter
1678
    @EqualsAndHashCode(callSuper = false)
1679
    public static class DisplayPreference extends StripeObject {
×
1680
      /**
1681
       * For child configs, whether or not the account's preference will be observed. If {@code
1682
       * false}, the parent configuration's default is used.
1683
       */
1684
      @SerializedName("overridable")
1685
      Boolean overridable;
1686

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

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

1705
  @Getter
1706
  @Setter
1707
  @EqualsAndHashCode(callSuper = false)
1708
  public static class Payto 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
    @Getter
1720
    @Setter
1721
    @EqualsAndHashCode(callSuper = false)
1722
    public static class DisplayPreference extends StripeObject {
×
1723
      /**
1724
       * For child configs, whether or not the account's preference will be observed. If {@code
1725
       * false}, the parent configuration's default is used.
1726
       */
1727
      @SerializedName("overridable")
1728
      Boolean overridable;
1729

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

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

1748
  @Getter
1749
  @Setter
1750
  @EqualsAndHashCode(callSuper = false)
1751
  public static class Promptpay extends StripeObject {
×
1752
    /**
1753
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1754
     * {@code on} and the payment method's capability is active.
1755
     */
1756
    @SerializedName("available")
1757
    Boolean available;
1758

1759
    @SerializedName("display_preference")
1760
    DisplayPreference displayPreference;
1761

1762
    @Getter
1763
    @Setter
1764
    @EqualsAndHashCode(callSuper = false)
1765
    public static class DisplayPreference extends StripeObject {
×
1766
      /**
1767
       * For child configs, whether or not the account's preference will be observed. If {@code
1768
       * false}, the parent configuration's default is used.
1769
       */
1770
      @SerializedName("overridable")
1771
      Boolean overridable;
1772

1773
      /**
1774
       * The account's display preference.
1775
       *
1776
       * <p>One of {@code none}, {@code off}, or {@code on}.
1777
       */
1778
      @SerializedName("preference")
1779
      String preference;
1780

1781
      /**
1782
       * The effective display preference value.
1783
       *
1784
       * <p>One of {@code off}, or {@code on}.
1785
       */
1786
      @SerializedName("value")
1787
      String value;
1788
    }
1789
  }
1790

1791
  @Getter
1792
  @Setter
1793
  @EqualsAndHashCode(callSuper = false)
1794
  public static class RevolutPay extends StripeObject {
×
1795
    /**
1796
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1797
     * {@code on} and the payment method's capability is active.
1798
     */
1799
    @SerializedName("available")
1800
    Boolean available;
1801

1802
    @SerializedName("display_preference")
1803
    DisplayPreference displayPreference;
1804

1805
    @Getter
1806
    @Setter
1807
    @EqualsAndHashCode(callSuper = false)
1808
    public static class DisplayPreference extends StripeObject {
×
1809
      /**
1810
       * For child configs, whether or not the account's preference will be observed. If {@code
1811
       * false}, the parent configuration's default is used.
1812
       */
1813
      @SerializedName("overridable")
1814
      Boolean overridable;
1815

1816
      /**
1817
       * The account's display preference.
1818
       *
1819
       * <p>One of {@code none}, {@code off}, or {@code on}.
1820
       */
1821
      @SerializedName("preference")
1822
      String preference;
1823

1824
      /**
1825
       * The effective display preference value.
1826
       *
1827
       * <p>One of {@code off}, or {@code on}.
1828
       */
1829
      @SerializedName("value")
1830
      String value;
1831
    }
1832
  }
1833

1834
  @Getter
1835
  @Setter
1836
  @EqualsAndHashCode(callSuper = false)
1837
  public static class SepaDebit extends StripeObject {
1✔
1838
    /**
1839
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1840
     * {@code on} and the payment method's capability is active.
1841
     */
1842
    @SerializedName("available")
1843
    Boolean available;
1844

1845
    @SerializedName("display_preference")
1846
    DisplayPreference displayPreference;
1847

1848
    @Getter
1849
    @Setter
1850
    @EqualsAndHashCode(callSuper = false)
1851
    public static class DisplayPreference extends StripeObject {
1✔
1852
      /**
1853
       * For child configs, whether or not the account's preference will be observed. If {@code
1854
       * false}, the parent configuration's default is used.
1855
       */
1856
      @SerializedName("overridable")
1857
      Boolean overridable;
1858

1859
      /**
1860
       * The account's display preference.
1861
       *
1862
       * <p>One of {@code none}, {@code off}, or {@code on}.
1863
       */
1864
      @SerializedName("preference")
1865
      String preference;
1866

1867
      /**
1868
       * The effective display preference value.
1869
       *
1870
       * <p>One of {@code off}, or {@code on}.
1871
       */
1872
      @SerializedName("value")
1873
      String value;
1874
    }
1875
  }
1876

1877
  @Getter
1878
  @Setter
1879
  @EqualsAndHashCode(callSuper = false)
1880
  public static class Sofort extends StripeObject {
1✔
1881
    /**
1882
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1883
     * {@code on} and the payment method's capability is active.
1884
     */
1885
    @SerializedName("available")
1886
    Boolean available;
1887

1888
    @SerializedName("display_preference")
1889
    DisplayPreference displayPreference;
1890

1891
    @Getter
1892
    @Setter
1893
    @EqualsAndHashCode(callSuper = false)
1894
    public static class DisplayPreference extends StripeObject {
1✔
1895
      /**
1896
       * For child configs, whether or not the account's preference will be observed. If {@code
1897
       * false}, the parent configuration's default is used.
1898
       */
1899
      @SerializedName("overridable")
1900
      Boolean overridable;
1901

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

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

1920
  @Getter
1921
  @Setter
1922
  @EqualsAndHashCode(callSuper = false)
1923
  public static class Swish extends StripeObject {
×
1924
    /**
1925
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1926
     * {@code on} and the payment method's capability is active.
1927
     */
1928
    @SerializedName("available")
1929
    Boolean available;
1930

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

1934
    @Getter
1935
    @Setter
1936
    @EqualsAndHashCode(callSuper = false)
1937
    public static class DisplayPreference extends StripeObject {
×
1938
      /**
1939
       * For child configs, whether or not the account's preference will be observed. If {@code
1940
       * false}, the parent configuration's default is used.
1941
       */
1942
      @SerializedName("overridable")
1943
      Boolean overridable;
1944

1945
      /**
1946
       * The account's display preference.
1947
       *
1948
       * <p>One of {@code none}, {@code off}, or {@code on}.
1949
       */
1950
      @SerializedName("preference")
1951
      String preference;
1952

1953
      /**
1954
       * The effective display preference value.
1955
       *
1956
       * <p>One of {@code off}, or {@code on}.
1957
       */
1958
      @SerializedName("value")
1959
      String value;
1960
    }
1961
  }
1962

1963
  @Getter
1964
  @Setter
1965
  @EqualsAndHashCode(callSuper = false)
1966
  public static class Twint extends StripeObject {
×
1967
    /**
1968
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
1969
     * {@code on} and the payment method's capability is active.
1970
     */
1971
    @SerializedName("available")
1972
    Boolean available;
1973

1974
    @SerializedName("display_preference")
1975
    DisplayPreference displayPreference;
1976

1977
    @Getter
1978
    @Setter
1979
    @EqualsAndHashCode(callSuper = false)
1980
    public static class DisplayPreference extends StripeObject {
×
1981
      /**
1982
       * For child configs, whether or not the account's preference will be observed. If {@code
1983
       * false}, the parent configuration's default is used.
1984
       */
1985
      @SerializedName("overridable")
1986
      Boolean overridable;
1987

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

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

2006
  @Getter
2007
  @Setter
2008
  @EqualsAndHashCode(callSuper = false)
2009
  public static class UsBankAccount extends StripeObject {
1✔
2010
    /**
2011
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2012
     * {@code on} and the payment method's capability is active.
2013
     */
2014
    @SerializedName("available")
2015
    Boolean available;
2016

2017
    @SerializedName("display_preference")
2018
    DisplayPreference displayPreference;
2019

2020
    @Getter
2021
    @Setter
2022
    @EqualsAndHashCode(callSuper = false)
2023
    public static class DisplayPreference extends StripeObject {
1✔
2024
      /**
2025
       * For child configs, whether or not the account's preference will be observed. If {@code
2026
       * false}, the parent configuration's default is used.
2027
       */
2028
      @SerializedName("overridable")
2029
      Boolean overridable;
2030

2031
      /**
2032
       * The account's display preference.
2033
       *
2034
       * <p>One of {@code none}, {@code off}, or {@code on}.
2035
       */
2036
      @SerializedName("preference")
2037
      String preference;
2038

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

2049
  @Getter
2050
  @Setter
2051
  @EqualsAndHashCode(callSuper = false)
2052
  public static class WechatPay extends StripeObject {
1✔
2053
    /**
2054
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2055
     * {@code on} and the payment method's capability is active.
2056
     */
2057
    @SerializedName("available")
2058
    Boolean available;
2059

2060
    @SerializedName("display_preference")
2061
    DisplayPreference displayPreference;
2062

2063
    @Getter
2064
    @Setter
2065
    @EqualsAndHashCode(callSuper = false)
2066
    public static class DisplayPreference extends StripeObject {
1✔
2067
      /**
2068
       * For child configs, whether or not the account's preference will be observed. If {@code
2069
       * false}, the parent configuration's default is used.
2070
       */
2071
      @SerializedName("overridable")
2072
      Boolean overridable;
2073

2074
      /**
2075
       * The account's display preference.
2076
       *
2077
       * <p>One of {@code none}, {@code off}, or {@code on}.
2078
       */
2079
      @SerializedName("preference")
2080
      String preference;
2081

2082
      /**
2083
       * The effective display preference value.
2084
       *
2085
       * <p>One of {@code off}, or {@code on}.
2086
       */
2087
      @SerializedName("value")
2088
      String value;
2089
    }
2090
  }
2091

2092
  @Getter
2093
  @Setter
2094
  @EqualsAndHashCode(callSuper = false)
2095
  public static class Zip extends StripeObject {
1✔
2096
    /**
2097
     * Whether this payment method may be offered at checkout. True if {@code display_preference} is
2098
     * {@code on} and the payment method's capability is active.
2099
     */
2100
    @SerializedName("available")
2101
    Boolean available;
2102

2103
    @SerializedName("display_preference")
2104
    DisplayPreference displayPreference;
2105

2106
    @Getter
2107
    @Setter
2108
    @EqualsAndHashCode(callSuper = false)
2109
    public static class DisplayPreference extends StripeObject {
1✔
2110
      /**
2111
       * For child configs, whether or not the account's preference will be observed. If {@code
2112
       * false}, the parent configuration's default is used.
2113
       */
2114
      @SerializedName("overridable")
2115
      Boolean overridable;
2116

2117
      /**
2118
       * The account's display preference.
2119
       *
2120
       * <p>One of {@code none}, {@code off}, or {@code on}.
2121
       */
2122
      @SerializedName("preference")
2123
      String preference;
2124

2125
      /**
2126
       * The effective display preference value.
2127
       *
2128
       * <p>One of {@code off}, or {@code on}.
2129
       */
2130
      @SerializedName("value")
2131
      String value;
2132
    }
2133
  }
2134

2135
  @Override
2136
  public void setResponseGetter(StripeResponseGetter responseGetter) {
2137
    super.setResponseGetter(responseGetter);
1✔
2138
    trySetResponseGetter(acssDebit, responseGetter);
1✔
2139
    trySetResponseGetter(affirm, responseGetter);
1✔
2140
    trySetResponseGetter(afterpayClearpay, responseGetter);
1✔
2141
    trySetResponseGetter(alipay, responseGetter);
1✔
2142
    trySetResponseGetter(amazonPay, responseGetter);
1✔
2143
    trySetResponseGetter(applePay, responseGetter);
1✔
2144
    trySetResponseGetter(auBecsDebit, responseGetter);
1✔
2145
    trySetResponseGetter(bacsDebit, responseGetter);
1✔
2146
    trySetResponseGetter(bancontact, responseGetter);
1✔
2147
    trySetResponseGetter(blik, responseGetter);
1✔
2148
    trySetResponseGetter(boleto, responseGetter);
1✔
2149
    trySetResponseGetter(card, responseGetter);
1✔
2150
    trySetResponseGetter(cartesBancaires, responseGetter);
1✔
2151
    trySetResponseGetter(cashapp, responseGetter);
1✔
2152
    trySetResponseGetter(customerBalance, responseGetter);
1✔
2153
    trySetResponseGetter(eps, responseGetter);
1✔
2154
    trySetResponseGetter(fpx, responseGetter);
1✔
2155
    trySetResponseGetter(giropay, responseGetter);
1✔
2156
    trySetResponseGetter(googlePay, responseGetter);
1✔
2157
    trySetResponseGetter(grabpay, responseGetter);
1✔
2158
    trySetResponseGetter(ideal, responseGetter);
1✔
2159
    trySetResponseGetter(jcb, responseGetter);
1✔
2160
    trySetResponseGetter(klarna, responseGetter);
1✔
2161
    trySetResponseGetter(konbini, responseGetter);
1✔
2162
    trySetResponseGetter(link, responseGetter);
1✔
2163
    trySetResponseGetter(mobilepay, responseGetter);
1✔
2164
    trySetResponseGetter(multibanco, responseGetter);
1✔
2165
    trySetResponseGetter(oxxo, responseGetter);
1✔
2166
    trySetResponseGetter(p24, responseGetter);
1✔
2167
    trySetResponseGetter(paynow, responseGetter);
1✔
2168
    trySetResponseGetter(paypal, responseGetter);
1✔
2169
    trySetResponseGetter(payto, responseGetter);
1✔
2170
    trySetResponseGetter(promptpay, responseGetter);
1✔
2171
    trySetResponseGetter(revolutPay, responseGetter);
1✔
2172
    trySetResponseGetter(sepaDebit, responseGetter);
1✔
2173
    trySetResponseGetter(sofort, responseGetter);
1✔
2174
    trySetResponseGetter(swish, responseGetter);
1✔
2175
    trySetResponseGetter(twint, responseGetter);
1✔
2176
    trySetResponseGetter(usBankAccount, responseGetter);
1✔
2177
    trySetResponseGetter(wechatPay, responseGetter);
1✔
2178
    trySetResponseGetter(zip, responseGetter);
1✔
2179
  }
1✔
2180
}
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