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

Adyen / adyen-java-api-library / #2889

29 Nov 2023 02:09PM UTC coverage: 12.845%. First build
#2889

push

web-flow
Merge 12cd0863d into ec0c20882

0 of 100 new or added lines in 6 files covered. (0.0%)

12465 of 97040 relevant lines covered (12.85%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java
1
/*
2
 * Management API
3
 *
4
 * The version of the OpenAPI document: 3
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.management;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.management.AfterpayTouchInfo;
20
import com.adyen.model.management.AmexInfo;
21
import com.adyen.model.management.ApplePayInfo;
22
import com.adyen.model.management.BcmcInfo;
23
import com.adyen.model.management.CartesBancairesInfo;
24
import com.adyen.model.management.ClearpayInfo;
25
import com.adyen.model.management.GenericPmWithTdiInfo;
26
import com.adyen.model.management.GiroPayInfo;
27
import com.adyen.model.management.GooglePayInfo;
28
import com.adyen.model.management.KlarnaInfo;
29
import com.adyen.model.management.MealVoucherFRInfo;
30
import com.adyen.model.management.PayPalInfo;
31
import com.adyen.model.management.SofortInfo;
32
import com.adyen.model.management.SwishInfo;
33
import com.adyen.model.management.TwintInfo;
34
import com.adyen.model.management.VippsInfo;
35
import com.fasterxml.jackson.annotation.JsonInclude;
36
import com.fasterxml.jackson.annotation.JsonProperty;
37
import com.fasterxml.jackson.annotation.JsonCreator;
38
import com.fasterxml.jackson.annotation.JsonTypeName;
39
import com.fasterxml.jackson.annotation.JsonValue;
40
import io.swagger.annotations.ApiModel;
41
import io.swagger.annotations.ApiModelProperty;
42
import java.util.ArrayList;
43
import java.util.List;
44
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
45
import com.fasterxml.jackson.core.JsonProcessingException;
46

47

48
/**
49
 * PaymentMethodSetupInfo
50
 */
51
@JsonPropertyOrder({
52
  PaymentMethodSetupInfo.JSON_PROPERTY_AFTERPAY_TOUCH,
53
  PaymentMethodSetupInfo.JSON_PROPERTY_AMEX,
54
  PaymentMethodSetupInfo.JSON_PROPERTY_APPLE_PAY,
55
  PaymentMethodSetupInfo.JSON_PROPERTY_BCMC,
56
  PaymentMethodSetupInfo.JSON_PROPERTY_BUSINESS_LINE_ID,
57
  PaymentMethodSetupInfo.JSON_PROPERTY_CARTES_BANCAIRES,
58
  PaymentMethodSetupInfo.JSON_PROPERTY_CLEARPAY,
59
  PaymentMethodSetupInfo.JSON_PROPERTY_COUNTRIES,
60
  PaymentMethodSetupInfo.JSON_PROPERTY_CUP,
61
  PaymentMethodSetupInfo.JSON_PROPERTY_CURRENCIES,
62
  PaymentMethodSetupInfo.JSON_PROPERTY_CUSTOM_ROUTING_FLAGS,
63
  PaymentMethodSetupInfo.JSON_PROPERTY_DINERS,
64
  PaymentMethodSetupInfo.JSON_PROPERTY_DISCOVER,
65
  PaymentMethodSetupInfo.JSON_PROPERTY_EFTPOS_AUSTRALIA,
66
  PaymentMethodSetupInfo.JSON_PROPERTY_GIRO_PAY,
67
  PaymentMethodSetupInfo.JSON_PROPERTY_GIROCARD,
68
  PaymentMethodSetupInfo.JSON_PROPERTY_GOOGLE_PAY,
69
  PaymentMethodSetupInfo.JSON_PROPERTY_IDEAL,
70
  PaymentMethodSetupInfo.JSON_PROPERTY_INTERAC_CARD,
71
  PaymentMethodSetupInfo.JSON_PROPERTY_JCB,
72
  PaymentMethodSetupInfo.JSON_PROPERTY_KLARNA,
73
  PaymentMethodSetupInfo.JSON_PROPERTY_MAESTRO,
74
  PaymentMethodSetupInfo.JSON_PROPERTY_MC,
75
  PaymentMethodSetupInfo.JSON_PROPERTY_MEAL_VOUCHER_F_R,
76
  PaymentMethodSetupInfo.JSON_PROPERTY_PAYPAL,
77
  PaymentMethodSetupInfo.JSON_PROPERTY_REFERENCE,
78
  PaymentMethodSetupInfo.JSON_PROPERTY_SHOPPER_INTERACTION,
79
  PaymentMethodSetupInfo.JSON_PROPERTY_SOFORT,
80
  PaymentMethodSetupInfo.JSON_PROPERTY_STORE_IDS,
81
  PaymentMethodSetupInfo.JSON_PROPERTY_SWISH,
82
  PaymentMethodSetupInfo.JSON_PROPERTY_TWINT,
83
  PaymentMethodSetupInfo.JSON_PROPERTY_TYPE,
84
  PaymentMethodSetupInfo.JSON_PROPERTY_VIPPS,
85
  PaymentMethodSetupInfo.JSON_PROPERTY_VISA
86
})
87

88
public class PaymentMethodSetupInfo {
89
  public static final String JSON_PROPERTY_AFTERPAY_TOUCH = "afterpayTouch";
90
  private AfterpayTouchInfo afterpayTouch;
91

92
  public static final String JSON_PROPERTY_AMEX = "amex";
93
  private AmexInfo amex;
94

95
  public static final String JSON_PROPERTY_APPLE_PAY = "applePay";
96
  private ApplePayInfo applePay;
97

98
  public static final String JSON_PROPERTY_BCMC = "bcmc";
99
  private BcmcInfo bcmc;
100

101
  public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId";
102
  private String businessLineId;
103

104
  public static final String JSON_PROPERTY_CARTES_BANCAIRES = "cartesBancaires";
105
  private CartesBancairesInfo cartesBancaires;
106

107
  public static final String JSON_PROPERTY_CLEARPAY = "clearpay";
108
  private ClearpayInfo clearpay;
109

110
  public static final String JSON_PROPERTY_COUNTRIES = "countries";
111
  private List<String> countries = null;
×
112

113
  public static final String JSON_PROPERTY_CUP = "cup";
114
  private GenericPmWithTdiInfo cup;
115

116
  public static final String JSON_PROPERTY_CURRENCIES = "currencies";
117
  private List<String> currencies = null;
×
118

119
  public static final String JSON_PROPERTY_CUSTOM_ROUTING_FLAGS = "customRoutingFlags";
120
  private List<String> customRoutingFlags = null;
×
121

122
  public static final String JSON_PROPERTY_DINERS = "diners";
123
  private GenericPmWithTdiInfo diners;
124

125
  public static final String JSON_PROPERTY_DISCOVER = "discover";
126
  private GenericPmWithTdiInfo discover;
127

128
  public static final String JSON_PROPERTY_EFTPOS_AUSTRALIA = "eftpos_australia";
129
  private GenericPmWithTdiInfo eftposAustralia;
130

131
  public static final String JSON_PROPERTY_GIRO_PAY = "giroPay";
132
  private GiroPayInfo giroPay;
133

134
  public static final String JSON_PROPERTY_GIROCARD = "girocard";
135
  private GenericPmWithTdiInfo girocard;
136

137
  public static final String JSON_PROPERTY_GOOGLE_PAY = "googlePay";
138
  private GooglePayInfo googlePay;
139

140
  public static final String JSON_PROPERTY_IDEAL = "ideal";
141
  private GenericPmWithTdiInfo ideal;
142

143
  public static final String JSON_PROPERTY_INTERAC_CARD = "interac_card";
144
  private GenericPmWithTdiInfo interacCard;
145

146
  public static final String JSON_PROPERTY_JCB = "jcb";
147
  private GenericPmWithTdiInfo jcb;
148

149
  public static final String JSON_PROPERTY_KLARNA = "klarna";
150
  private KlarnaInfo klarna;
151

152
  public static final String JSON_PROPERTY_MAESTRO = "maestro";
153
  private GenericPmWithTdiInfo maestro;
154

155
  public static final String JSON_PROPERTY_MC = "mc";
156
  private GenericPmWithTdiInfo mc;
157

158
  public static final String JSON_PROPERTY_MEAL_VOUCHER_F_R = "mealVoucher_FR";
159
  private MealVoucherFRInfo mealVoucherFR;
160

161
  public static final String JSON_PROPERTY_PAYPAL = "paypal";
162
  private PayPalInfo paypal;
163

164
  public static final String JSON_PROPERTY_REFERENCE = "reference";
165
  private String reference;
166

167
  /**
168
   * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account.  Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. 
169
   */
170
  public enum ShopperInteractionEnum {
×
171
    ECOMMERCE("eCommerce"),
×
172
    
173
    POS("pos"),
×
174
    
175
    MOTO("moto"),
×
176
    
177
    CONTAUTH("contAuth");
×
178

179
    private String value;
180

181
    ShopperInteractionEnum(String value) {
×
182
      this.value = value;
×
183
    }
×
184

185
    @JsonValue
186
    public String getValue() {
187
      return value;
×
188
    }
189

190
    @Override
191
    public String toString() {
192
      return String.valueOf(value);
×
193
    }
194

195
    @JsonCreator
196
    public static ShopperInteractionEnum fromValue(String value) {
197
      for (ShopperInteractionEnum b : ShopperInteractionEnum.values()) {
×
198
        if (b.value.equals(value)) {
×
199
          return b;
×
200
        }
201
      }
202
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
203
    }
204
  }
205

206
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
207
  private ShopperInteractionEnum shopperInteraction;
208

209
  public static final String JSON_PROPERTY_SOFORT = "sofort";
210
  private SofortInfo sofort;
211

212
  public static final String JSON_PROPERTY_STORE_IDS = "storeIds";
213
  private List<String> storeIds = null;
×
214

215
  public static final String JSON_PROPERTY_SWISH = "swish";
216
  private SwishInfo swish;
217

218
  public static final String JSON_PROPERTY_TWINT = "twint";
219
  private TwintInfo twint;
220

221
  /**
222
   * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
223
   */
224
  public enum TypeEnum {
×
225
    AFTERPAYTOUCH("afterpaytouch"),
×
226
    
227
    ALIPAY("alipay"),
×
228
    
229
    ALIPAY_HK("alipay_hk"),
×
230
    
231
    AMEX("amex"),
×
232
    
233
    APPLEPAY("applepay"),
×
234
    
235
    BCMC("bcmc"),
×
236
    
237
    BLIK("blik"),
×
238
    
239
    CARTEBANCAIRE("cartebancaire"),
×
240
    
241
    CLEARPAY("clearpay"),
×
242
    
243
    CUP("cup"),
×
244
    
245
    DINERS("diners"),
×
246
    
247
    DIRECTDEBIT_GB("directdebit_GB"),
×
248
    
249
    DISCOVER("discover"),
×
250
    
251
    EBANKING_FI("ebanking_FI"),
×
252
    
253
    EFTPOS_AUSTRALIA("eftpos_australia"),
×
254
    
255
    ELO("elo"),
×
256
    
257
    ELOCREDIT("elocredit"),
×
258
    
259
    ELODEBIT("elodebit"),
×
260
    
261
    GIROCARD("girocard"),
×
262
    
263
    GOOGLEPAY("googlepay"),
×
264
    
265
    HIPER("hiper"),
×
266
    
267
    HIPERCARD("hipercard"),
×
268
    
269
    IDEAL("ideal"),
×
270
    
271
    INTERAC_CARD("interac_card"),
×
272
    
273
    JCB("jcb"),
×
274
    
275
    KLARNA("klarna"),
×
276
    
277
    KLARNA_ACCOUNT("klarna_account"),
×
278
    
279
    KLARNA_PAYNOW("klarna_paynow"),
×
280
    
281
    MAESTRO("maestro"),
×
282
    
283
    MBWAY("mbway"),
×
284
    
285
    MC("mc"),
×
286
    
287
    MCDEBIT("mcdebit"),
×
288
    
289
    MEALVOUCHER_FR("mealVoucher_FR"),
×
290
    
291
    MOBILEPAY("mobilepay"),
×
292
    
293
    MULTIBANCO("multibanco"),
×
294
    
295
    ONLINEBANKING_PL("onlineBanking_PL"),
×
296
    
297
    PAYBYBANK("paybybank"),
×
298
    
299
    PAYPAL("paypal"),
×
300
    
301
    PAYSHOP("payshop"),
×
302
    
303
    SWISH("swish"),
×
304
    
305
    TRUSTLY("trustly"),
×
306
    
307
    TWINT("twint"),
×
308
    
309
    TWINT_POS("twint_pos"),
×
310
    
311
    VIPPS("vipps"),
×
312
    
313
    VISA("visa"),
×
314
    
315
    VISADEBIT("visadebit"),
×
316
    
317
    VPAY("vpay"),
×
318
    
319
    WECHATPAY("wechatpay"),
×
320
    
321
    WECHATPAY_POS("wechatpay_pos");
×
322

323
    private String value;
324

325
    TypeEnum(String value) {
×
326
      this.value = value;
×
327
    }
×
328

329
    @JsonValue
330
    public String getValue() {
331
      return value;
×
332
    }
333

334
    @Override
335
    public String toString() {
336
      return String.valueOf(value);
×
337
    }
338

339
    @JsonCreator
340
    public static TypeEnum fromValue(String value) {
341
      for (TypeEnum b : TypeEnum.values()) {
×
342
        if (b.value.equals(value)) {
×
343
          return b;
×
344
        }
345
      }
346
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
347
    }
348
  }
349

350
  public static final String JSON_PROPERTY_TYPE = "type";
351
  private TypeEnum type;
352

353
  public static final String JSON_PROPERTY_VIPPS = "vipps";
354
  private VippsInfo vipps;
355

356
  public static final String JSON_PROPERTY_VISA = "visa";
357
  private GenericPmWithTdiInfo visa;
358

359
  public PaymentMethodSetupInfo() { 
×
360
  }
×
361

362
  public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) {
363
    this.afterpayTouch = afterpayTouch;
×
364
    return this;
×
365
  }
366

367
   /**
368
   * Get afterpayTouch
369
   * @return afterpayTouch
370
  **/
371
  @ApiModelProperty(value = "")
372
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
373
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
374

375
  public AfterpayTouchInfo getAfterpayTouch() {
376
    return afterpayTouch;
×
377
  }
378

379

380
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
381
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
382
  public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) {
383
    this.afterpayTouch = afterpayTouch;
×
384
  }
×
385

386

387
  public PaymentMethodSetupInfo amex(AmexInfo amex) {
NEW
388
    this.amex = amex;
×
NEW
389
    return this;
×
390
  }
391

392
   /**
393
   * Get amex
394
   * @return amex
395
  **/
396
  @ApiModelProperty(value = "")
397
  @JsonProperty(JSON_PROPERTY_AMEX)
398
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
399

400
  public AmexInfo getAmex() {
NEW
401
    return amex;
×
402
  }
403

404

405
  @JsonProperty(JSON_PROPERTY_AMEX)
406
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
407
  public void setAmex(AmexInfo amex) {
NEW
408
    this.amex = amex;
×
NEW
409
  }
×
410

411

412
  public PaymentMethodSetupInfo applePay(ApplePayInfo applePay) {
413
    this.applePay = applePay;
×
414
    return this;
×
415
  }
416

417
   /**
418
   * Get applePay
419
   * @return applePay
420
  **/
421
  @ApiModelProperty(value = "")
422
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
423
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
424

425
  public ApplePayInfo getApplePay() {
426
    return applePay;
×
427
  }
428

429

430
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
431
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
432
  public void setApplePay(ApplePayInfo applePay) {
433
    this.applePay = applePay;
×
434
  }
×
435

436

437
  public PaymentMethodSetupInfo bcmc(BcmcInfo bcmc) {
438
    this.bcmc = bcmc;
×
439
    return this;
×
440
  }
441

442
   /**
443
   * Get bcmc
444
   * @return bcmc
445
  **/
446
  @ApiModelProperty(value = "")
447
  @JsonProperty(JSON_PROPERTY_BCMC)
448
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
449

450
  public BcmcInfo getBcmc() {
451
    return bcmc;
×
452
  }
453

454

455
  @JsonProperty(JSON_PROPERTY_BCMC)
456
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
457
  public void setBcmc(BcmcInfo bcmc) {
458
    this.bcmc = bcmc;
×
459
  }
×
460

461

462
  public PaymentMethodSetupInfo businessLineId(String businessLineId) {
463
    this.businessLineId = businessLineId;
×
464
    return this;
×
465
  }
466

467
   /**
468
   * The unique identifier of the business line.
469
   * @return businessLineId
470
  **/
471
  @ApiModelProperty(value = "The unique identifier of the business line.")
472
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
473
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
474

475
  public String getBusinessLineId() {
476
    return businessLineId;
×
477
  }
478

479

480
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
481
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
482
  public void setBusinessLineId(String businessLineId) {
483
    this.businessLineId = businessLineId;
×
484
  }
×
485

486

487
  public PaymentMethodSetupInfo cartesBancaires(CartesBancairesInfo cartesBancaires) {
488
    this.cartesBancaires = cartesBancaires;
×
489
    return this;
×
490
  }
491

492
   /**
493
   * Get cartesBancaires
494
   * @return cartesBancaires
495
  **/
496
  @ApiModelProperty(value = "")
497
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
498
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
499

500
  public CartesBancairesInfo getCartesBancaires() {
501
    return cartesBancaires;
×
502
  }
503

504

505
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
506
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
507
  public void setCartesBancaires(CartesBancairesInfo cartesBancaires) {
508
    this.cartesBancaires = cartesBancaires;
×
509
  }
×
510

511

512
  public PaymentMethodSetupInfo clearpay(ClearpayInfo clearpay) {
513
    this.clearpay = clearpay;
×
514
    return this;
×
515
  }
516

517
   /**
518
   * Get clearpay
519
   * @return clearpay
520
  **/
521
  @ApiModelProperty(value = "")
522
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
523
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
524

525
  public ClearpayInfo getClearpay() {
526
    return clearpay;
×
527
  }
528

529

530
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
531
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
532
  public void setClearpay(ClearpayInfo clearpay) {
533
    this.clearpay = clearpay;
×
534
  }
×
535

536

537
  public PaymentMethodSetupInfo countries(List<String> countries) {
538
    this.countries = countries;
×
539
    return this;
×
540
  }
541

542
  public PaymentMethodSetupInfo addCountriesItem(String countriesItem) {
543
    if (this.countries == null) {
×
544
      this.countries = new ArrayList<>();
×
545
    }
546
    this.countries.add(countriesItem);
×
547
    return this;
×
548
  }
549

550
   /**
551
   * The list of countries where a payment method is available. By default, all countries supported by the payment method.
552
   * @return countries
553
  **/
554
  @ApiModelProperty(value = "The list of countries where a payment method is available. By default, all countries supported by the payment method.")
555
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
556
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
557

558
  public List<String> getCountries() {
559
    return countries;
×
560
  }
561

562

563
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
564
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
565
  public void setCountries(List<String> countries) {
566
    this.countries = countries;
×
567
  }
×
568

569

570
  public PaymentMethodSetupInfo cup(GenericPmWithTdiInfo cup) {
571
    this.cup = cup;
×
572
    return this;
×
573
  }
574

575
   /**
576
   * Get cup
577
   * @return cup
578
  **/
579
  @ApiModelProperty(value = "")
580
  @JsonProperty(JSON_PROPERTY_CUP)
581
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
582

583
  public GenericPmWithTdiInfo getCup() {
584
    return cup;
×
585
  }
586

587

588
  @JsonProperty(JSON_PROPERTY_CUP)
589
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
590
  public void setCup(GenericPmWithTdiInfo cup) {
591
    this.cup = cup;
×
592
  }
×
593

594

595
  public PaymentMethodSetupInfo currencies(List<String> currencies) {
596
    this.currencies = currencies;
×
597
    return this;
×
598
  }
599

600
  public PaymentMethodSetupInfo addCurrenciesItem(String currenciesItem) {
601
    if (this.currencies == null) {
×
602
      this.currencies = new ArrayList<>();
×
603
    }
604
    this.currencies.add(currenciesItem);
×
605
    return this;
×
606
  }
607

608
   /**
609
   * The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
610
   * @return currencies
611
  **/
612
  @ApiModelProperty(value = "The list of currencies that a payment method supports. By default, all currencies supported by the payment method.")
613
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
614
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
615

616
  public List<String> getCurrencies() {
617
    return currencies;
×
618
  }
619

620

621
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
622
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
623
  public void setCurrencies(List<String> currencies) {
624
    this.currencies = currencies;
×
625
  }
×
626

627

628
  public PaymentMethodSetupInfo customRoutingFlags(List<String> customRoutingFlags) {
629
    this.customRoutingFlags = customRoutingFlags;
×
630
    return this;
×
631
  }
632

633
  public PaymentMethodSetupInfo addCustomRoutingFlagsItem(String customRoutingFlagsItem) {
634
    if (this.customRoutingFlags == null) {
×
635
      this.customRoutingFlags = new ArrayList<>();
×
636
    }
637
    this.customRoutingFlags.add(customRoutingFlagsItem);
×
638
    return this;
×
639
  }
640

641
   /**
642
   * The list of custom routing flags to route payment to the intended acquirer.
643
   * @return customRoutingFlags
644
  **/
645
  @ApiModelProperty(value = "The list of custom routing flags to route payment to the intended acquirer.")
646
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
647
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
648

649
  public List<String> getCustomRoutingFlags() {
650
    return customRoutingFlags;
×
651
  }
652

653

654
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
655
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
656
  public void setCustomRoutingFlags(List<String> customRoutingFlags) {
657
    this.customRoutingFlags = customRoutingFlags;
×
658
  }
×
659

660

661
  public PaymentMethodSetupInfo diners(GenericPmWithTdiInfo diners) {
662
    this.diners = diners;
×
663
    return this;
×
664
  }
665

666
   /**
667
   * Get diners
668
   * @return diners
669
  **/
670
  @ApiModelProperty(value = "")
671
  @JsonProperty(JSON_PROPERTY_DINERS)
672
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
673

674
  public GenericPmWithTdiInfo getDiners() {
675
    return diners;
×
676
  }
677

678

679
  @JsonProperty(JSON_PROPERTY_DINERS)
680
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
681
  public void setDiners(GenericPmWithTdiInfo diners) {
682
    this.diners = diners;
×
683
  }
×
684

685

686
  public PaymentMethodSetupInfo discover(GenericPmWithTdiInfo discover) {
687
    this.discover = discover;
×
688
    return this;
×
689
  }
690

691
   /**
692
   * Get discover
693
   * @return discover
694
  **/
695
  @ApiModelProperty(value = "")
696
  @JsonProperty(JSON_PROPERTY_DISCOVER)
697
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
698

699
  public GenericPmWithTdiInfo getDiscover() {
700
    return discover;
×
701
  }
702

703

704
  @JsonProperty(JSON_PROPERTY_DISCOVER)
705
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
706
  public void setDiscover(GenericPmWithTdiInfo discover) {
707
    this.discover = discover;
×
708
  }
×
709

710

711
  public PaymentMethodSetupInfo eftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
712
    this.eftposAustralia = eftposAustralia;
×
713
    return this;
×
714
  }
715

716
   /**
717
   * Get eftposAustralia
718
   * @return eftposAustralia
719
  **/
720
  @ApiModelProperty(value = "")
721
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
722
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
723

724
  public GenericPmWithTdiInfo getEftposAustralia() {
725
    return eftposAustralia;
×
726
  }
727

728

729
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
730
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
731
  public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
732
    this.eftposAustralia = eftposAustralia;
×
733
  }
×
734

735

736
  public PaymentMethodSetupInfo giroPay(GiroPayInfo giroPay) {
737
    this.giroPay = giroPay;
×
738
    return this;
×
739
  }
740

741
   /**
742
   * Get giroPay
743
   * @return giroPay
744
  **/
745
  @ApiModelProperty(value = "")
746
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
747
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
748

749
  public GiroPayInfo getGiroPay() {
750
    return giroPay;
×
751
  }
752

753

754
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
755
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
756
  public void setGiroPay(GiroPayInfo giroPay) {
757
    this.giroPay = giroPay;
×
758
  }
×
759

760

761
  public PaymentMethodSetupInfo girocard(GenericPmWithTdiInfo girocard) {
762
    this.girocard = girocard;
×
763
    return this;
×
764
  }
765

766
   /**
767
   * Get girocard
768
   * @return girocard
769
  **/
770
  @ApiModelProperty(value = "")
771
  @JsonProperty(JSON_PROPERTY_GIROCARD)
772
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
773

774
  public GenericPmWithTdiInfo getGirocard() {
775
    return girocard;
×
776
  }
777

778

779
  @JsonProperty(JSON_PROPERTY_GIROCARD)
780
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
781
  public void setGirocard(GenericPmWithTdiInfo girocard) {
782
    this.girocard = girocard;
×
783
  }
×
784

785

786
  public PaymentMethodSetupInfo googlePay(GooglePayInfo googlePay) {
787
    this.googlePay = googlePay;
×
788
    return this;
×
789
  }
790

791
   /**
792
   * Get googlePay
793
   * @return googlePay
794
  **/
795
  @ApiModelProperty(value = "")
796
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
797
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
798

799
  public GooglePayInfo getGooglePay() {
800
    return googlePay;
×
801
  }
802

803

804
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
805
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
806
  public void setGooglePay(GooglePayInfo googlePay) {
807
    this.googlePay = googlePay;
×
808
  }
×
809

810

811
  public PaymentMethodSetupInfo ideal(GenericPmWithTdiInfo ideal) {
812
    this.ideal = ideal;
×
813
    return this;
×
814
  }
815

816
   /**
817
   * Get ideal
818
   * @return ideal
819
  **/
820
  @ApiModelProperty(value = "")
821
  @JsonProperty(JSON_PROPERTY_IDEAL)
822
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
823

824
  public GenericPmWithTdiInfo getIdeal() {
825
    return ideal;
×
826
  }
827

828

829
  @JsonProperty(JSON_PROPERTY_IDEAL)
830
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
831
  public void setIdeal(GenericPmWithTdiInfo ideal) {
832
    this.ideal = ideal;
×
833
  }
×
834

835

836
  public PaymentMethodSetupInfo interacCard(GenericPmWithTdiInfo interacCard) {
837
    this.interacCard = interacCard;
×
838
    return this;
×
839
  }
840

841
   /**
842
   * Get interacCard
843
   * @return interacCard
844
  **/
845
  @ApiModelProperty(value = "")
846
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
847
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
848

849
  public GenericPmWithTdiInfo getInteracCard() {
850
    return interacCard;
×
851
  }
852

853

854
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
855
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
856
  public void setInteracCard(GenericPmWithTdiInfo interacCard) {
857
    this.interacCard = interacCard;
×
858
  }
×
859

860

861
  public PaymentMethodSetupInfo jcb(GenericPmWithTdiInfo jcb) {
862
    this.jcb = jcb;
×
863
    return this;
×
864
  }
865

866
   /**
867
   * Get jcb
868
   * @return jcb
869
  **/
870
  @ApiModelProperty(value = "")
871
  @JsonProperty(JSON_PROPERTY_JCB)
872
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
873

874
  public GenericPmWithTdiInfo getJcb() {
875
    return jcb;
×
876
  }
877

878

879
  @JsonProperty(JSON_PROPERTY_JCB)
880
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
881
  public void setJcb(GenericPmWithTdiInfo jcb) {
882
    this.jcb = jcb;
×
883
  }
×
884

885

886
  public PaymentMethodSetupInfo klarna(KlarnaInfo klarna) {
887
    this.klarna = klarna;
×
888
    return this;
×
889
  }
890

891
   /**
892
   * Get klarna
893
   * @return klarna
894
  **/
895
  @ApiModelProperty(value = "")
896
  @JsonProperty(JSON_PROPERTY_KLARNA)
897
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
898

899
  public KlarnaInfo getKlarna() {
900
    return klarna;
×
901
  }
902

903

904
  @JsonProperty(JSON_PROPERTY_KLARNA)
905
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
906
  public void setKlarna(KlarnaInfo klarna) {
907
    this.klarna = klarna;
×
908
  }
×
909

910

911
  public PaymentMethodSetupInfo maestro(GenericPmWithTdiInfo maestro) {
912
    this.maestro = maestro;
×
913
    return this;
×
914
  }
915

916
   /**
917
   * Get maestro
918
   * @return maestro
919
  **/
920
  @ApiModelProperty(value = "")
921
  @JsonProperty(JSON_PROPERTY_MAESTRO)
922
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
923

924
  public GenericPmWithTdiInfo getMaestro() {
925
    return maestro;
×
926
  }
927

928

929
  @JsonProperty(JSON_PROPERTY_MAESTRO)
930
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
931
  public void setMaestro(GenericPmWithTdiInfo maestro) {
932
    this.maestro = maestro;
×
933
  }
×
934

935

936
  public PaymentMethodSetupInfo mc(GenericPmWithTdiInfo mc) {
937
    this.mc = mc;
×
938
    return this;
×
939
  }
940

941
   /**
942
   * Get mc
943
   * @return mc
944
  **/
945
  @ApiModelProperty(value = "")
946
  @JsonProperty(JSON_PROPERTY_MC)
947
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
948

949
  public GenericPmWithTdiInfo getMc() {
950
    return mc;
×
951
  }
952

953

954
  @JsonProperty(JSON_PROPERTY_MC)
955
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
956
  public void setMc(GenericPmWithTdiInfo mc) {
957
    this.mc = mc;
×
958
  }
×
959

960

961
  public PaymentMethodSetupInfo mealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
962
    this.mealVoucherFR = mealVoucherFR;
×
963
    return this;
×
964
  }
965

966
   /**
967
   * Get mealVoucherFR
968
   * @return mealVoucherFR
969
  **/
970
  @ApiModelProperty(value = "")
971
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
972
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
973

974
  public MealVoucherFRInfo getMealVoucherFR() {
975
    return mealVoucherFR;
×
976
  }
977

978

979
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
980
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
981
  public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
982
    this.mealVoucherFR = mealVoucherFR;
×
983
  }
×
984

985

986
  public PaymentMethodSetupInfo paypal(PayPalInfo paypal) {
987
    this.paypal = paypal;
×
988
    return this;
×
989
  }
990

991
   /**
992
   * Get paypal
993
   * @return paypal
994
  **/
995
  @ApiModelProperty(value = "")
996
  @JsonProperty(JSON_PROPERTY_PAYPAL)
997
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
998

999
  public PayPalInfo getPaypal() {
1000
    return paypal;
×
1001
  }
1002

1003

1004
  @JsonProperty(JSON_PROPERTY_PAYPAL)
1005
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1006
  public void setPaypal(PayPalInfo paypal) {
1007
    this.paypal = paypal;
×
1008
  }
×
1009

1010

1011
  public PaymentMethodSetupInfo reference(String reference) {
1012
    this.reference = reference;
×
1013
    return this;
×
1014
  }
1015

1016
   /**
1017
   * Your reference for the payment method. Supported characters a-z, A-Z, 0-9.
1018
   * @return reference
1019
  **/
1020
  @ApiModelProperty(value = "Your reference for the payment method. Supported characters a-z, A-Z, 0-9.")
1021
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1022
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1023

1024
  public String getReference() {
1025
    return reference;
×
1026
  }
1027

1028

1029
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1030
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1031
  public void setReference(String reference) {
1032
    this.reference = reference;
×
1033
  }
×
1034

1035

1036
  public PaymentMethodSetupInfo shopperInteraction(ShopperInteractionEnum shopperInteraction) {
1037
    this.shopperInteraction = shopperInteraction;
×
1038
    return this;
×
1039
  }
1040

1041
   /**
1042
   * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account.  Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. 
1043
   * @return shopperInteraction
1044
  **/
1045
  @ApiModelProperty(value = "The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account.  Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. ")
1046
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1047
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1048

1049
  public ShopperInteractionEnum getShopperInteraction() {
1050
    return shopperInteraction;
×
1051
  }
1052

1053

1054
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1055
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1056
  public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) {
1057
    this.shopperInteraction = shopperInteraction;
×
1058
  }
×
1059

1060

1061
  public PaymentMethodSetupInfo sofort(SofortInfo sofort) {
1062
    this.sofort = sofort;
×
1063
    return this;
×
1064
  }
1065

1066
   /**
1067
   * Get sofort
1068
   * @return sofort
1069
  **/
1070
  @ApiModelProperty(value = "")
1071
  @JsonProperty(JSON_PROPERTY_SOFORT)
1072
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1073

1074
  public SofortInfo getSofort() {
1075
    return sofort;
×
1076
  }
1077

1078

1079
  @JsonProperty(JSON_PROPERTY_SOFORT)
1080
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1081
  public void setSofort(SofortInfo sofort) {
1082
    this.sofort = sofort;
×
1083
  }
×
1084

1085

1086
  public PaymentMethodSetupInfo storeIds(List<String> storeIds) {
1087
    this.storeIds = storeIds;
×
1088
    return this;
×
1089
  }
1090

1091
  public PaymentMethodSetupInfo addStoreIdsItem(String storeIdsItem) {
1092
    if (this.storeIds == null) {
×
1093
      this.storeIds = new ArrayList<>();
×
1094
    }
1095
    this.storeIds.add(storeIdsItem);
×
1096
    return this;
×
1097
  }
1098

1099
   /**
1100
   * The unique identifier of the store for which to configure the payment method, if any.
1101
   * @return storeIds
1102
  **/
1103
  @ApiModelProperty(value = "The unique identifier of the store for which to configure the payment method, if any.")
1104
  @JsonProperty(JSON_PROPERTY_STORE_IDS)
1105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1106

1107
  public List<String> getStoreIds() {
1108
    return storeIds;
×
1109
  }
1110

1111

1112
  @JsonProperty(JSON_PROPERTY_STORE_IDS)
1113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1114
  public void setStoreIds(List<String> storeIds) {
1115
    this.storeIds = storeIds;
×
1116
  }
×
1117

1118

1119
  public PaymentMethodSetupInfo swish(SwishInfo swish) {
1120
    this.swish = swish;
×
1121
    return this;
×
1122
  }
1123

1124
   /**
1125
   * Get swish
1126
   * @return swish
1127
  **/
1128
  @ApiModelProperty(value = "")
1129
  @JsonProperty(JSON_PROPERTY_SWISH)
1130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1131

1132
  public SwishInfo getSwish() {
1133
    return swish;
×
1134
  }
1135

1136

1137
  @JsonProperty(JSON_PROPERTY_SWISH)
1138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1139
  public void setSwish(SwishInfo swish) {
1140
    this.swish = swish;
×
1141
  }
×
1142

1143

1144
  public PaymentMethodSetupInfo twint(TwintInfo twint) {
1145
    this.twint = twint;
×
1146
    return this;
×
1147
  }
1148

1149
   /**
1150
   * Get twint
1151
   * @return twint
1152
  **/
1153
  @ApiModelProperty(value = "")
1154
  @JsonProperty(JSON_PROPERTY_TWINT)
1155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1156

1157
  public TwintInfo getTwint() {
1158
    return twint;
×
1159
  }
1160

1161

1162
  @JsonProperty(JSON_PROPERTY_TWINT)
1163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1164
  public void setTwint(TwintInfo twint) {
1165
    this.twint = twint;
×
1166
  }
×
1167

1168

1169
  public PaymentMethodSetupInfo type(TypeEnum type) {
1170
    this.type = type;
×
1171
    return this;
×
1172
  }
1173

1174
   /**
1175
   * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
1176
   * @return type
1177
  **/
1178
  @ApiModelProperty(required = true, value = "Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).")
1179
  @JsonProperty(JSON_PROPERTY_TYPE)
1180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1181

1182
  public TypeEnum getType() {
1183
    return type;
×
1184
  }
1185

1186

1187
  @JsonProperty(JSON_PROPERTY_TYPE)
1188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1189
  public void setType(TypeEnum type) {
1190
    this.type = type;
×
1191
  }
×
1192

1193

1194
  public PaymentMethodSetupInfo vipps(VippsInfo vipps) {
1195
    this.vipps = vipps;
×
1196
    return this;
×
1197
  }
1198

1199
   /**
1200
   * Get vipps
1201
   * @return vipps
1202
  **/
1203
  @ApiModelProperty(value = "")
1204
  @JsonProperty(JSON_PROPERTY_VIPPS)
1205
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1206

1207
  public VippsInfo getVipps() {
1208
    return vipps;
×
1209
  }
1210

1211

1212
  @JsonProperty(JSON_PROPERTY_VIPPS)
1213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1214
  public void setVipps(VippsInfo vipps) {
1215
    this.vipps = vipps;
×
1216
  }
×
1217

1218

1219
  public PaymentMethodSetupInfo visa(GenericPmWithTdiInfo visa) {
1220
    this.visa = visa;
×
1221
    return this;
×
1222
  }
1223

1224
   /**
1225
   * Get visa
1226
   * @return visa
1227
  **/
1228
  @ApiModelProperty(value = "")
1229
  @JsonProperty(JSON_PROPERTY_VISA)
1230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1231

1232
  public GenericPmWithTdiInfo getVisa() {
1233
    return visa;
×
1234
  }
1235

1236

1237
  @JsonProperty(JSON_PROPERTY_VISA)
1238
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1239
  public void setVisa(GenericPmWithTdiInfo visa) {
1240
    this.visa = visa;
×
1241
  }
×
1242

1243

1244
  /**
1245
   * Return true if this PaymentMethodSetupInfo object is equal to o.
1246
   */
1247
  @Override
1248
  public boolean equals(Object o) {
1249
    if (this == o) {
×
1250
      return true;
×
1251
    }
1252
    if (o == null || getClass() != o.getClass()) {
×
1253
      return false;
×
1254
    }
1255
    PaymentMethodSetupInfo paymentMethodSetupInfo = (PaymentMethodSetupInfo) o;
×
1256
    return Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) &&
×
NEW
1257
        Objects.equals(this.amex, paymentMethodSetupInfo.amex) &&
×
1258
        Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) &&
×
1259
        Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) &&
×
1260
        Objects.equals(this.businessLineId, paymentMethodSetupInfo.businessLineId) &&
×
1261
        Objects.equals(this.cartesBancaires, paymentMethodSetupInfo.cartesBancaires) &&
×
1262
        Objects.equals(this.clearpay, paymentMethodSetupInfo.clearpay) &&
×
1263
        Objects.equals(this.countries, paymentMethodSetupInfo.countries) &&
×
1264
        Objects.equals(this.cup, paymentMethodSetupInfo.cup) &&
×
1265
        Objects.equals(this.currencies, paymentMethodSetupInfo.currencies) &&
×
1266
        Objects.equals(this.customRoutingFlags, paymentMethodSetupInfo.customRoutingFlags) &&
×
1267
        Objects.equals(this.diners, paymentMethodSetupInfo.diners) &&
×
1268
        Objects.equals(this.discover, paymentMethodSetupInfo.discover) &&
×
1269
        Objects.equals(this.eftposAustralia, paymentMethodSetupInfo.eftposAustralia) &&
×
1270
        Objects.equals(this.giroPay, paymentMethodSetupInfo.giroPay) &&
×
1271
        Objects.equals(this.girocard, paymentMethodSetupInfo.girocard) &&
×
1272
        Objects.equals(this.googlePay, paymentMethodSetupInfo.googlePay) &&
×
1273
        Objects.equals(this.ideal, paymentMethodSetupInfo.ideal) &&
×
1274
        Objects.equals(this.interacCard, paymentMethodSetupInfo.interacCard) &&
×
1275
        Objects.equals(this.jcb, paymentMethodSetupInfo.jcb) &&
×
1276
        Objects.equals(this.klarna, paymentMethodSetupInfo.klarna) &&
×
1277
        Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) &&
×
1278
        Objects.equals(this.mc, paymentMethodSetupInfo.mc) &&
×
1279
        Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) &&
×
1280
        Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) &&
×
1281
        Objects.equals(this.reference, paymentMethodSetupInfo.reference) &&
×
1282
        Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) &&
×
1283
        Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) &&
×
1284
        Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) &&
×
1285
        Objects.equals(this.swish, paymentMethodSetupInfo.swish) &&
×
1286
        Objects.equals(this.twint, paymentMethodSetupInfo.twint) &&
×
1287
        Objects.equals(this.type, paymentMethodSetupInfo.type) &&
×
1288
        Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) &&
×
1289
        Objects.equals(this.visa, paymentMethodSetupInfo.visa);
×
1290
  }
1291

1292
  @Override
1293
  public int hashCode() {
NEW
1294
    return Objects.hash(afterpayTouch, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, giroPay, girocard, googlePay, ideal, interacCard, jcb, klarna, maestro, mc, mealVoucherFR, paypal, reference, shopperInteraction, sofort, storeIds, swish, twint, type, vipps, visa);
×
1295
  }
1296

1297
  @Override
1298
  public String toString() {
1299
    StringBuilder sb = new StringBuilder();
×
1300
    sb.append("class PaymentMethodSetupInfo {\n");
×
1301
    sb.append("    afterpayTouch: ").append(toIndentedString(afterpayTouch)).append("\n");
×
NEW
1302
    sb.append("    amex: ").append(toIndentedString(amex)).append("\n");
×
1303
    sb.append("    applePay: ").append(toIndentedString(applePay)).append("\n");
×
1304
    sb.append("    bcmc: ").append(toIndentedString(bcmc)).append("\n");
×
1305
    sb.append("    businessLineId: ").append(toIndentedString(businessLineId)).append("\n");
×
1306
    sb.append("    cartesBancaires: ").append(toIndentedString(cartesBancaires)).append("\n");
×
1307
    sb.append("    clearpay: ").append(toIndentedString(clearpay)).append("\n");
×
1308
    sb.append("    countries: ").append(toIndentedString(countries)).append("\n");
×
1309
    sb.append("    cup: ").append(toIndentedString(cup)).append("\n");
×
1310
    sb.append("    currencies: ").append(toIndentedString(currencies)).append("\n");
×
1311
    sb.append("    customRoutingFlags: ").append(toIndentedString(customRoutingFlags)).append("\n");
×
1312
    sb.append("    diners: ").append(toIndentedString(diners)).append("\n");
×
1313
    sb.append("    discover: ").append(toIndentedString(discover)).append("\n");
×
1314
    sb.append("    eftposAustralia: ").append(toIndentedString(eftposAustralia)).append("\n");
×
1315
    sb.append("    giroPay: ").append(toIndentedString(giroPay)).append("\n");
×
1316
    sb.append("    girocard: ").append(toIndentedString(girocard)).append("\n");
×
1317
    sb.append("    googlePay: ").append(toIndentedString(googlePay)).append("\n");
×
1318
    sb.append("    ideal: ").append(toIndentedString(ideal)).append("\n");
×
1319
    sb.append("    interacCard: ").append(toIndentedString(interacCard)).append("\n");
×
1320
    sb.append("    jcb: ").append(toIndentedString(jcb)).append("\n");
×
1321
    sb.append("    klarna: ").append(toIndentedString(klarna)).append("\n");
×
1322
    sb.append("    maestro: ").append(toIndentedString(maestro)).append("\n");
×
1323
    sb.append("    mc: ").append(toIndentedString(mc)).append("\n");
×
1324
    sb.append("    mealVoucherFR: ").append(toIndentedString(mealVoucherFR)).append("\n");
×
1325
    sb.append("    paypal: ").append(toIndentedString(paypal)).append("\n");
×
1326
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
1327
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
1328
    sb.append("    sofort: ").append(toIndentedString(sofort)).append("\n");
×
1329
    sb.append("    storeIds: ").append(toIndentedString(storeIds)).append("\n");
×
1330
    sb.append("    swish: ").append(toIndentedString(swish)).append("\n");
×
1331
    sb.append("    twint: ").append(toIndentedString(twint)).append("\n");
×
1332
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
1333
    sb.append("    vipps: ").append(toIndentedString(vipps)).append("\n");
×
1334
    sb.append("    visa: ").append(toIndentedString(visa)).append("\n");
×
1335
    sb.append("}");
×
1336
    return sb.toString();
×
1337
  }
1338

1339
  /**
1340
   * Convert the given object to string with each line indented by 4 spaces
1341
   * (except the first line).
1342
   */
1343
  private String toIndentedString(Object o) {
1344
    if (o == null) {
×
1345
      return "null";
×
1346
    }
1347
    return o.toString().replace("\n", "\n    ");
×
1348
  }
1349

1350
/**
1351
   * Create an instance of PaymentMethodSetupInfo given an JSON string
1352
   *
1353
   * @param jsonString JSON string
1354
   * @return An instance of PaymentMethodSetupInfo
1355
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodSetupInfo
1356
   */
1357
  public static PaymentMethodSetupInfo fromJson(String jsonString) throws JsonProcessingException {
1358
    return JSON.getMapper().readValue(jsonString, PaymentMethodSetupInfo.class);
×
1359
  }
1360
/**
1361
  * Convert an instance of PaymentMethodSetupInfo to an JSON string
1362
  *
1363
  * @return JSON string
1364
  */
1365
  public String toJson() throws JsonProcessingException {
1366
    return JSON.getMapper().writeValueAsString(this);
×
1367
  }
1368
}
1369

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