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

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

18 Sep 2023 12:01PM UTC coverage: 13.219%. First build
#2657

push

web-flow
Merge 17bcee1e5 into ace7d0cdd

1759 of 1759 new or added lines in 33 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

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: 1
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.ApplePayInfo;
21
import com.adyen.model.management.BcmcInfo;
22
import com.adyen.model.management.CartesBancairesInfo;
23
import com.adyen.model.management.ClearpayInfo;
24
import com.adyen.model.management.GenericPmWithTdiInfo;
25
import com.adyen.model.management.GiroPayInfo;
26
import com.adyen.model.management.GooglePayInfo;
27
import com.adyen.model.management.KlarnaInfo;
28
import com.adyen.model.management.MealVoucherFRInfo;
29
import com.adyen.model.management.PayPalInfo;
30
import com.adyen.model.management.SofortInfo;
31
import com.adyen.model.management.SwishInfo;
32
import com.adyen.model.management.TwintInfo;
33
import com.adyen.model.management.VippsInfo;
34
import com.fasterxml.jackson.annotation.JsonInclude;
35
import com.fasterxml.jackson.annotation.JsonProperty;
36
import com.fasterxml.jackson.annotation.JsonCreator;
37
import com.fasterxml.jackson.annotation.JsonTypeName;
38
import com.fasterxml.jackson.annotation.JsonValue;
39
import io.swagger.annotations.ApiModel;
40
import io.swagger.annotations.ApiModelProperty;
41
import java.util.ArrayList;
42
import java.util.List;
43
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
44
import com.fasterxml.jackson.core.JsonProcessingException;
45

46

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

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

90
  public static final String JSON_PROPERTY_APPLE_PAY = "applePay";
91
  private ApplePayInfo applePay;
92

93
  public static final String JSON_PROPERTY_BCMC = "bcmc";
94
  private BcmcInfo bcmc;
95

96
  public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId";
97
  private String businessLineId;
98

99
  public static final String JSON_PROPERTY_CARTES_BANCAIRES = "cartesBancaires";
100
  private CartesBancairesInfo cartesBancaires;
101

102
  public static final String JSON_PROPERTY_CLEARPAY = "clearpay";
103
  private ClearpayInfo clearpay;
104

105
  public static final String JSON_PROPERTY_COUNTRIES = "countries";
106
  private List<String> countries = null;
×
107

108
  public static final String JSON_PROPERTY_CUP = "cup";
109
  private GenericPmWithTdiInfo cup;
110

111
  public static final String JSON_PROPERTY_CURRENCIES = "currencies";
112
  private List<String> currencies = null;
×
113

114
  public static final String JSON_PROPERTY_CUSTOM_ROUTING_FLAGS = "customRoutingFlags";
115
  private List<String> customRoutingFlags = null;
×
116

117
  public static final String JSON_PROPERTY_DINERS = "diners";
118
  private GenericPmWithTdiInfo diners;
119

120
  public static final String JSON_PROPERTY_DISCOVER = "discover";
121
  private GenericPmWithTdiInfo discover;
122

123
  public static final String JSON_PROPERTY_EFTPOS_AUSTRALIA = "eftpos_australia";
124
  private GenericPmWithTdiInfo eftposAustralia;
125

126
  public static final String JSON_PROPERTY_GIRO_PAY = "giroPay";
127
  private GiroPayInfo giroPay;
128

129
  public static final String JSON_PROPERTY_GIROCARD = "girocard";
130
  private GenericPmWithTdiInfo girocard;
131

132
  public static final String JSON_PROPERTY_GOOGLE_PAY = "googlePay";
133
  private GooglePayInfo googlePay;
134

135
  public static final String JSON_PROPERTY_IDEAL = "ideal";
136
  private GenericPmWithTdiInfo ideal;
137

138
  public static final String JSON_PROPERTY_INTERAC_CARD = "interac_card";
139
  private GenericPmWithTdiInfo interacCard;
140

141
  public static final String JSON_PROPERTY_JCB = "jcb";
142
  private GenericPmWithTdiInfo jcb;
143

144
  public static final String JSON_PROPERTY_KLARNA = "klarna";
145
  private KlarnaInfo klarna;
146

147
  public static final String JSON_PROPERTY_MAESTRO = "maestro";
148
  private GenericPmWithTdiInfo maestro;
149

150
  public static final String JSON_PROPERTY_MC = "mc";
151
  private GenericPmWithTdiInfo mc;
152

153
  public static final String JSON_PROPERTY_MEAL_VOUCHER_F_R = "mealVoucher_FR";
154
  private MealVoucherFRInfo mealVoucherFR;
155

156
  public static final String JSON_PROPERTY_PAYPAL = "paypal";
157
  private PayPalInfo paypal;
158

159
  public static final String JSON_PROPERTY_REFERENCE = "reference";
160
  private String reference;
161

162
  /**
163
   * 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**. 
164
   */
165
  public enum ShopperInteractionEnum {
×
166
    ECOMMERCE("eCommerce"),
×
167
    
168
    POS("pos"),
×
169
    
170
    MOTO("moto"),
×
171
    
172
    CONTAUTH("contAuth");
×
173

174
    private String value;
175

176
    ShopperInteractionEnum(String value) {
×
177
      this.value = value;
×
178
    }
×
179

180
    @JsonValue
181
    public String getValue() {
182
      return value;
×
183
    }
184

185
    @Override
186
    public String toString() {
187
      return String.valueOf(value);
×
188
    }
189

190
    @JsonCreator
191
    public static ShopperInteractionEnum fromValue(String value) {
192
      for (ShopperInteractionEnum b : ShopperInteractionEnum.values()) {
×
193
        if (b.value.equals(value)) {
×
194
          return b;
×
195
        }
196
      }
197
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
198
    }
199
  }
200

201
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
202
  private ShopperInteractionEnum shopperInteraction;
203

204
  public static final String JSON_PROPERTY_SOFORT = "sofort";
205
  private SofortInfo sofort;
206

207
  public static final String JSON_PROPERTY_STORE_ID = "storeId";
208
  private String storeId;
209

210
  public static final String JSON_PROPERTY_SWISH = "swish";
211
  private SwishInfo swish;
212

213
  public static final String JSON_PROPERTY_TWINT = "twint";
214
  private TwintInfo twint;
215

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

320
    private String value;
321

322
    TypeEnum(String value) {
×
323
      this.value = value;
×
324
    }
×
325

326
    @JsonValue
327
    public String getValue() {
328
      return value;
×
329
    }
330

331
    @Override
332
    public String toString() {
333
      return String.valueOf(value);
×
334
    }
335

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

347
  public static final String JSON_PROPERTY_TYPE = "type";
348
  private TypeEnum type;
349

350
  public static final String JSON_PROPERTY_VIPPS = "vipps";
351
  private VippsInfo vipps;
352

353
  public static final String JSON_PROPERTY_VISA = "visa";
354
  private GenericPmWithTdiInfo visa;
355

356
  public PaymentMethodSetupInfo() { 
×
357
  }
×
358

359
  public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) {
360
    this.afterpayTouch = afterpayTouch;
×
361
    return this;
×
362
  }
363

364
   /**
365
   * Get afterpayTouch
366
   * @return afterpayTouch
367
  **/
368
  @ApiModelProperty(value = "")
369
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
370
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
371

372
  public AfterpayTouchInfo getAfterpayTouch() {
373
    return afterpayTouch;
×
374
  }
375

376

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

383

384
  public PaymentMethodSetupInfo applePay(ApplePayInfo applePay) {
385
    this.applePay = applePay;
×
386
    return this;
×
387
  }
388

389
   /**
390
   * Get applePay
391
   * @return applePay
392
  **/
393
  @ApiModelProperty(value = "")
394
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
395
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
396

397
  public ApplePayInfo getApplePay() {
398
    return applePay;
×
399
  }
400

401

402
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
403
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
404
  public void setApplePay(ApplePayInfo applePay) {
405
    this.applePay = applePay;
×
406
  }
×
407

408

409
  public PaymentMethodSetupInfo bcmc(BcmcInfo bcmc) {
410
    this.bcmc = bcmc;
×
411
    return this;
×
412
  }
413

414
   /**
415
   * Get bcmc
416
   * @return bcmc
417
  **/
418
  @ApiModelProperty(value = "")
419
  @JsonProperty(JSON_PROPERTY_BCMC)
420
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
421

422
  public BcmcInfo getBcmc() {
423
    return bcmc;
×
424
  }
425

426

427
  @JsonProperty(JSON_PROPERTY_BCMC)
428
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
429
  public void setBcmc(BcmcInfo bcmc) {
430
    this.bcmc = bcmc;
×
431
  }
×
432

433

434
  public PaymentMethodSetupInfo businessLineId(String businessLineId) {
435
    this.businessLineId = businessLineId;
×
436
    return this;
×
437
  }
438

439
   /**
440
   * The unique identifier of the business line.
441
   * @return businessLineId
442
  **/
443
  @ApiModelProperty(value = "The unique identifier of the business line.")
444
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
445
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
446

447
  public String getBusinessLineId() {
448
    return businessLineId;
×
449
  }
450

451

452
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
453
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
454
  public void setBusinessLineId(String businessLineId) {
455
    this.businessLineId = businessLineId;
×
456
  }
×
457

458

459
  public PaymentMethodSetupInfo cartesBancaires(CartesBancairesInfo cartesBancaires) {
460
    this.cartesBancaires = cartesBancaires;
×
461
    return this;
×
462
  }
463

464
   /**
465
   * Get cartesBancaires
466
   * @return cartesBancaires
467
  **/
468
  @ApiModelProperty(value = "")
469
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
470
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
471

472
  public CartesBancairesInfo getCartesBancaires() {
473
    return cartesBancaires;
×
474
  }
475

476

477
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
478
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
479
  public void setCartesBancaires(CartesBancairesInfo cartesBancaires) {
480
    this.cartesBancaires = cartesBancaires;
×
481
  }
×
482

483

484
  public PaymentMethodSetupInfo clearpay(ClearpayInfo clearpay) {
485
    this.clearpay = clearpay;
×
486
    return this;
×
487
  }
488

489
   /**
490
   * Get clearpay
491
   * @return clearpay
492
  **/
493
  @ApiModelProperty(value = "")
494
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
495
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
496

497
  public ClearpayInfo getClearpay() {
498
    return clearpay;
×
499
  }
500

501

502
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
503
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
504
  public void setClearpay(ClearpayInfo clearpay) {
505
    this.clearpay = clearpay;
×
506
  }
×
507

508

509
  public PaymentMethodSetupInfo countries(List<String> countries) {
510
    this.countries = countries;
×
511
    return this;
×
512
  }
513

514
  public PaymentMethodSetupInfo addCountriesItem(String countriesItem) {
515
    if (this.countries == null) {
×
516
      this.countries = new ArrayList<>();
×
517
    }
518
    this.countries.add(countriesItem);
×
519
    return this;
×
520
  }
521

522
   /**
523
   * The list of countries where a payment method is available. By default, all countries supported by the payment method.
524
   * @return countries
525
  **/
526
  @ApiModelProperty(value = "The list of countries where a payment method is available. By default, all countries supported by the payment method.")
527
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
528
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
529

530
  public List<String> getCountries() {
531
    return countries;
×
532
  }
533

534

535
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
536
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
537
  public void setCountries(List<String> countries) {
538
    this.countries = countries;
×
539
  }
×
540

541

542
  public PaymentMethodSetupInfo cup(GenericPmWithTdiInfo cup) {
543
    this.cup = cup;
×
544
    return this;
×
545
  }
546

547
   /**
548
   * Get cup
549
   * @return cup
550
  **/
551
  @ApiModelProperty(value = "")
552
  @JsonProperty(JSON_PROPERTY_CUP)
553
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
554

555
  public GenericPmWithTdiInfo getCup() {
556
    return cup;
×
557
  }
558

559

560
  @JsonProperty(JSON_PROPERTY_CUP)
561
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
562
  public void setCup(GenericPmWithTdiInfo cup) {
563
    this.cup = cup;
×
564
  }
×
565

566

567
  public PaymentMethodSetupInfo currencies(List<String> currencies) {
568
    this.currencies = currencies;
×
569
    return this;
×
570
  }
571

572
  public PaymentMethodSetupInfo addCurrenciesItem(String currenciesItem) {
573
    if (this.currencies == null) {
×
574
      this.currencies = new ArrayList<>();
×
575
    }
576
    this.currencies.add(currenciesItem);
×
577
    return this;
×
578
  }
579

580
   /**
581
   * The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
582
   * @return currencies
583
  **/
584
  @ApiModelProperty(value = "The list of currencies that a payment method supports. By default, all currencies supported by the payment method.")
585
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
586
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
587

588
  public List<String> getCurrencies() {
589
    return currencies;
×
590
  }
591

592

593
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
594
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
595
  public void setCurrencies(List<String> currencies) {
596
    this.currencies = currencies;
×
597
  }
×
598

599

600
  public PaymentMethodSetupInfo customRoutingFlags(List<String> customRoutingFlags) {
601
    this.customRoutingFlags = customRoutingFlags;
×
602
    return this;
×
603
  }
604

605
  public PaymentMethodSetupInfo addCustomRoutingFlagsItem(String customRoutingFlagsItem) {
606
    if (this.customRoutingFlags == null) {
×
607
      this.customRoutingFlags = new ArrayList<>();
×
608
    }
609
    this.customRoutingFlags.add(customRoutingFlagsItem);
×
610
    return this;
×
611
  }
612

613
   /**
614
   * The list of custom routing flags to route payment to the intended acquirer.
615
   * @return customRoutingFlags
616
  **/
617
  @ApiModelProperty(value = "The list of custom routing flags to route payment to the intended acquirer.")
618
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
619
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
620

621
  public List<String> getCustomRoutingFlags() {
622
    return customRoutingFlags;
×
623
  }
624

625

626
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
627
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
628
  public void setCustomRoutingFlags(List<String> customRoutingFlags) {
629
    this.customRoutingFlags = customRoutingFlags;
×
630
  }
×
631

632

633
  public PaymentMethodSetupInfo diners(GenericPmWithTdiInfo diners) {
634
    this.diners = diners;
×
635
    return this;
×
636
  }
637

638
   /**
639
   * Get diners
640
   * @return diners
641
  **/
642
  @ApiModelProperty(value = "")
643
  @JsonProperty(JSON_PROPERTY_DINERS)
644
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
645

646
  public GenericPmWithTdiInfo getDiners() {
647
    return diners;
×
648
  }
649

650

651
  @JsonProperty(JSON_PROPERTY_DINERS)
652
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
653
  public void setDiners(GenericPmWithTdiInfo diners) {
654
    this.diners = diners;
×
655
  }
×
656

657

658
  public PaymentMethodSetupInfo discover(GenericPmWithTdiInfo discover) {
659
    this.discover = discover;
×
660
    return this;
×
661
  }
662

663
   /**
664
   * Get discover
665
   * @return discover
666
  **/
667
  @ApiModelProperty(value = "")
668
  @JsonProperty(JSON_PROPERTY_DISCOVER)
669
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
670

671
  public GenericPmWithTdiInfo getDiscover() {
672
    return discover;
×
673
  }
674

675

676
  @JsonProperty(JSON_PROPERTY_DISCOVER)
677
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
678
  public void setDiscover(GenericPmWithTdiInfo discover) {
679
    this.discover = discover;
×
680
  }
×
681

682

683
  public PaymentMethodSetupInfo eftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
684
    this.eftposAustralia = eftposAustralia;
×
685
    return this;
×
686
  }
687

688
   /**
689
   * Get eftposAustralia
690
   * @return eftposAustralia
691
  **/
692
  @ApiModelProperty(value = "")
693
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
694
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
695

696
  public GenericPmWithTdiInfo getEftposAustralia() {
697
    return eftposAustralia;
×
698
  }
699

700

701
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
702
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
703
  public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
704
    this.eftposAustralia = eftposAustralia;
×
705
  }
×
706

707

708
  public PaymentMethodSetupInfo giroPay(GiroPayInfo giroPay) {
709
    this.giroPay = giroPay;
×
710
    return this;
×
711
  }
712

713
   /**
714
   * Get giroPay
715
   * @return giroPay
716
  **/
717
  @ApiModelProperty(value = "")
718
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
719
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
720

721
  public GiroPayInfo getGiroPay() {
722
    return giroPay;
×
723
  }
724

725

726
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
727
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
728
  public void setGiroPay(GiroPayInfo giroPay) {
729
    this.giroPay = giroPay;
×
730
  }
×
731

732

733
  public PaymentMethodSetupInfo girocard(GenericPmWithTdiInfo girocard) {
734
    this.girocard = girocard;
×
735
    return this;
×
736
  }
737

738
   /**
739
   * Get girocard
740
   * @return girocard
741
  **/
742
  @ApiModelProperty(value = "")
743
  @JsonProperty(JSON_PROPERTY_GIROCARD)
744
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
745

746
  public GenericPmWithTdiInfo getGirocard() {
747
    return girocard;
×
748
  }
749

750

751
  @JsonProperty(JSON_PROPERTY_GIROCARD)
752
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
753
  public void setGirocard(GenericPmWithTdiInfo girocard) {
754
    this.girocard = girocard;
×
755
  }
×
756

757

758
  public PaymentMethodSetupInfo googlePay(GooglePayInfo googlePay) {
759
    this.googlePay = googlePay;
×
760
    return this;
×
761
  }
762

763
   /**
764
   * Get googlePay
765
   * @return googlePay
766
  **/
767
  @ApiModelProperty(value = "")
768
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
769
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
770

771
  public GooglePayInfo getGooglePay() {
772
    return googlePay;
×
773
  }
774

775

776
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
777
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
778
  public void setGooglePay(GooglePayInfo googlePay) {
779
    this.googlePay = googlePay;
×
780
  }
×
781

782

783
  public PaymentMethodSetupInfo ideal(GenericPmWithTdiInfo ideal) {
784
    this.ideal = ideal;
×
785
    return this;
×
786
  }
787

788
   /**
789
   * Get ideal
790
   * @return ideal
791
  **/
792
  @ApiModelProperty(value = "")
793
  @JsonProperty(JSON_PROPERTY_IDEAL)
794
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
795

796
  public GenericPmWithTdiInfo getIdeal() {
797
    return ideal;
×
798
  }
799

800

801
  @JsonProperty(JSON_PROPERTY_IDEAL)
802
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
803
  public void setIdeal(GenericPmWithTdiInfo ideal) {
804
    this.ideal = ideal;
×
805
  }
×
806

807

808
  public PaymentMethodSetupInfo interacCard(GenericPmWithTdiInfo interacCard) {
809
    this.interacCard = interacCard;
×
810
    return this;
×
811
  }
812

813
   /**
814
   * Get interacCard
815
   * @return interacCard
816
  **/
817
  @ApiModelProperty(value = "")
818
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
819
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
820

821
  public GenericPmWithTdiInfo getInteracCard() {
822
    return interacCard;
×
823
  }
824

825

826
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
827
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
828
  public void setInteracCard(GenericPmWithTdiInfo interacCard) {
829
    this.interacCard = interacCard;
×
830
  }
×
831

832

833
  public PaymentMethodSetupInfo jcb(GenericPmWithTdiInfo jcb) {
834
    this.jcb = jcb;
×
835
    return this;
×
836
  }
837

838
   /**
839
   * Get jcb
840
   * @return jcb
841
  **/
842
  @ApiModelProperty(value = "")
843
  @JsonProperty(JSON_PROPERTY_JCB)
844
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
845

846
  public GenericPmWithTdiInfo getJcb() {
847
    return jcb;
×
848
  }
849

850

851
  @JsonProperty(JSON_PROPERTY_JCB)
852
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
853
  public void setJcb(GenericPmWithTdiInfo jcb) {
854
    this.jcb = jcb;
×
855
  }
×
856

857

858
  public PaymentMethodSetupInfo klarna(KlarnaInfo klarna) {
859
    this.klarna = klarna;
×
860
    return this;
×
861
  }
862

863
   /**
864
   * Get klarna
865
   * @return klarna
866
  **/
867
  @ApiModelProperty(value = "")
868
  @JsonProperty(JSON_PROPERTY_KLARNA)
869
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
870

871
  public KlarnaInfo getKlarna() {
872
    return klarna;
×
873
  }
874

875

876
  @JsonProperty(JSON_PROPERTY_KLARNA)
877
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
878
  public void setKlarna(KlarnaInfo klarna) {
879
    this.klarna = klarna;
×
880
  }
×
881

882

883
  public PaymentMethodSetupInfo maestro(GenericPmWithTdiInfo maestro) {
884
    this.maestro = maestro;
×
885
    return this;
×
886
  }
887

888
   /**
889
   * Get maestro
890
   * @return maestro
891
  **/
892
  @ApiModelProperty(value = "")
893
  @JsonProperty(JSON_PROPERTY_MAESTRO)
894
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
895

896
  public GenericPmWithTdiInfo getMaestro() {
897
    return maestro;
×
898
  }
899

900

901
  @JsonProperty(JSON_PROPERTY_MAESTRO)
902
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
903
  public void setMaestro(GenericPmWithTdiInfo maestro) {
904
    this.maestro = maestro;
×
905
  }
×
906

907

908
  public PaymentMethodSetupInfo mc(GenericPmWithTdiInfo mc) {
909
    this.mc = mc;
×
910
    return this;
×
911
  }
912

913
   /**
914
   * Get mc
915
   * @return mc
916
  **/
917
  @ApiModelProperty(value = "")
918
  @JsonProperty(JSON_PROPERTY_MC)
919
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
920

921
  public GenericPmWithTdiInfo getMc() {
922
    return mc;
×
923
  }
924

925

926
  @JsonProperty(JSON_PROPERTY_MC)
927
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
928
  public void setMc(GenericPmWithTdiInfo mc) {
929
    this.mc = mc;
×
930
  }
×
931

932

933
  public PaymentMethodSetupInfo mealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
934
    this.mealVoucherFR = mealVoucherFR;
×
935
    return this;
×
936
  }
937

938
   /**
939
   * Get mealVoucherFR
940
   * @return mealVoucherFR
941
  **/
942
  @ApiModelProperty(value = "")
943
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
944
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
945

946
  public MealVoucherFRInfo getMealVoucherFR() {
947
    return mealVoucherFR;
×
948
  }
949

950

951
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
952
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
953
  public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
954
    this.mealVoucherFR = mealVoucherFR;
×
955
  }
×
956

957

958
  public PaymentMethodSetupInfo paypal(PayPalInfo paypal) {
959
    this.paypal = paypal;
×
960
    return this;
×
961
  }
962

963
   /**
964
   * Get paypal
965
   * @return paypal
966
  **/
967
  @ApiModelProperty(value = "")
968
  @JsonProperty(JSON_PROPERTY_PAYPAL)
969
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
970

971
  public PayPalInfo getPaypal() {
972
    return paypal;
×
973
  }
974

975

976
  @JsonProperty(JSON_PROPERTY_PAYPAL)
977
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
978
  public void setPaypal(PayPalInfo paypal) {
979
    this.paypal = paypal;
×
980
  }
×
981

982

983
  public PaymentMethodSetupInfo reference(String reference) {
984
    this.reference = reference;
×
985
    return this;
×
986
  }
987

988
   /**
989
   * Your reference for the payment method. Supported characters a-z, A-Z, 0-9.
990
   * @return reference
991
  **/
992
  @ApiModelProperty(value = "Your reference for the payment method. Supported characters a-z, A-Z, 0-9.")
993
  @JsonProperty(JSON_PROPERTY_REFERENCE)
994
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
995

996
  public String getReference() {
997
    return reference;
×
998
  }
999

1000

1001
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1002
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1003
  public void setReference(String reference) {
1004
    this.reference = reference;
×
1005
  }
×
1006

1007

1008
  public PaymentMethodSetupInfo shopperInteraction(ShopperInteractionEnum shopperInteraction) {
1009
    this.shopperInteraction = shopperInteraction;
×
1010
    return this;
×
1011
  }
1012

1013
   /**
1014
   * 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**. 
1015
   * @return shopperInteraction
1016
  **/
1017
  @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**. ")
1018
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1019
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1020

1021
  public ShopperInteractionEnum getShopperInteraction() {
1022
    return shopperInteraction;
×
1023
  }
1024

1025

1026
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1027
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1028
  public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) {
1029
    this.shopperInteraction = shopperInteraction;
×
1030
  }
×
1031

1032

1033
  public PaymentMethodSetupInfo sofort(SofortInfo sofort) {
1034
    this.sofort = sofort;
×
1035
    return this;
×
1036
  }
1037

1038
   /**
1039
   * Get sofort
1040
   * @return sofort
1041
  **/
1042
  @ApiModelProperty(value = "")
1043
  @JsonProperty(JSON_PROPERTY_SOFORT)
1044
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1045

1046
  public SofortInfo getSofort() {
1047
    return sofort;
×
1048
  }
1049

1050

1051
  @JsonProperty(JSON_PROPERTY_SOFORT)
1052
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1053
  public void setSofort(SofortInfo sofort) {
1054
    this.sofort = sofort;
×
1055
  }
×
1056

1057

1058
  public PaymentMethodSetupInfo storeId(String storeId) {
1059
    this.storeId = storeId;
×
1060
    return this;
×
1061
  }
1062

1063
   /**
1064
   * The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.
1065
   * @return storeId
1066
  **/
1067
  @ApiModelProperty(value = "The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.")
1068
  @JsonProperty(JSON_PROPERTY_STORE_ID)
1069
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1070

1071
  public String getStoreId() {
1072
    return storeId;
×
1073
  }
1074

1075

1076
  @JsonProperty(JSON_PROPERTY_STORE_ID)
1077
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1078
  public void setStoreId(String storeId) {
1079
    this.storeId = storeId;
×
1080
  }
×
1081

1082

1083
  public PaymentMethodSetupInfo swish(SwishInfo swish) {
1084
    this.swish = swish;
×
1085
    return this;
×
1086
  }
1087

1088
   /**
1089
   * Get swish
1090
   * @return swish
1091
  **/
1092
  @ApiModelProperty(value = "")
1093
  @JsonProperty(JSON_PROPERTY_SWISH)
1094
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1095

1096
  public SwishInfo getSwish() {
1097
    return swish;
×
1098
  }
1099

1100

1101
  @JsonProperty(JSON_PROPERTY_SWISH)
1102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1103
  public void setSwish(SwishInfo swish) {
1104
    this.swish = swish;
×
1105
  }
×
1106

1107

1108
  public PaymentMethodSetupInfo twint(TwintInfo twint) {
1109
    this.twint = twint;
×
1110
    return this;
×
1111
  }
1112

1113
   /**
1114
   * Get twint
1115
   * @return twint
1116
  **/
1117
  @ApiModelProperty(value = "")
1118
  @JsonProperty(JSON_PROPERTY_TWINT)
1119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1120

1121
  public TwintInfo getTwint() {
1122
    return twint;
×
1123
  }
1124

1125

1126
  @JsonProperty(JSON_PROPERTY_TWINT)
1127
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1128
  public void setTwint(TwintInfo twint) {
1129
    this.twint = twint;
×
1130
  }
×
1131

1132

1133
  public PaymentMethodSetupInfo type(TypeEnum type) {
1134
    this.type = type;
×
1135
    return this;
×
1136
  }
1137

1138
   /**
1139
   * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
1140
   * @return type
1141
  **/
1142
  @ApiModelProperty(value = "Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).")
1143
  @JsonProperty(JSON_PROPERTY_TYPE)
1144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1145

1146
  public TypeEnum getType() {
1147
    return type;
×
1148
  }
1149

1150

1151
  @JsonProperty(JSON_PROPERTY_TYPE)
1152
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1153
  public void setType(TypeEnum type) {
1154
    this.type = type;
×
1155
  }
×
1156

1157

1158
  public PaymentMethodSetupInfo vipps(VippsInfo vipps) {
1159
    this.vipps = vipps;
×
1160
    return this;
×
1161
  }
1162

1163
   /**
1164
   * Get vipps
1165
   * @return vipps
1166
  **/
1167
  @ApiModelProperty(value = "")
1168
  @JsonProperty(JSON_PROPERTY_VIPPS)
1169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1170

1171
  public VippsInfo getVipps() {
1172
    return vipps;
×
1173
  }
1174

1175

1176
  @JsonProperty(JSON_PROPERTY_VIPPS)
1177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1178
  public void setVipps(VippsInfo vipps) {
1179
    this.vipps = vipps;
×
1180
  }
×
1181

1182

1183
  public PaymentMethodSetupInfo visa(GenericPmWithTdiInfo visa) {
1184
    this.visa = visa;
×
1185
    return this;
×
1186
  }
1187

1188
   /**
1189
   * Get visa
1190
   * @return visa
1191
  **/
1192
  @ApiModelProperty(value = "")
1193
  @JsonProperty(JSON_PROPERTY_VISA)
1194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1195

1196
  public GenericPmWithTdiInfo getVisa() {
1197
    return visa;
×
1198
  }
1199

1200

1201
  @JsonProperty(JSON_PROPERTY_VISA)
1202
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1203
  public void setVisa(GenericPmWithTdiInfo visa) {
1204
    this.visa = visa;
×
1205
  }
×
1206

1207

1208
  /**
1209
   * Return true if this PaymentMethodSetupInfo object is equal to o.
1210
   */
1211
  @Override
1212
  public boolean equals(Object o) {
1213
    if (this == o) {
×
1214
      return true;
×
1215
    }
1216
    if (o == null || getClass() != o.getClass()) {
×
1217
      return false;
×
1218
    }
1219
    PaymentMethodSetupInfo paymentMethodSetupInfo = (PaymentMethodSetupInfo) o;
×
1220
    return Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) &&
×
1221
        Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) &&
×
1222
        Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) &&
×
1223
        Objects.equals(this.businessLineId, paymentMethodSetupInfo.businessLineId) &&
×
1224
        Objects.equals(this.cartesBancaires, paymentMethodSetupInfo.cartesBancaires) &&
×
1225
        Objects.equals(this.clearpay, paymentMethodSetupInfo.clearpay) &&
×
1226
        Objects.equals(this.countries, paymentMethodSetupInfo.countries) &&
×
1227
        Objects.equals(this.cup, paymentMethodSetupInfo.cup) &&
×
1228
        Objects.equals(this.currencies, paymentMethodSetupInfo.currencies) &&
×
1229
        Objects.equals(this.customRoutingFlags, paymentMethodSetupInfo.customRoutingFlags) &&
×
1230
        Objects.equals(this.diners, paymentMethodSetupInfo.diners) &&
×
1231
        Objects.equals(this.discover, paymentMethodSetupInfo.discover) &&
×
1232
        Objects.equals(this.eftposAustralia, paymentMethodSetupInfo.eftposAustralia) &&
×
1233
        Objects.equals(this.giroPay, paymentMethodSetupInfo.giroPay) &&
×
1234
        Objects.equals(this.girocard, paymentMethodSetupInfo.girocard) &&
×
1235
        Objects.equals(this.googlePay, paymentMethodSetupInfo.googlePay) &&
×
1236
        Objects.equals(this.ideal, paymentMethodSetupInfo.ideal) &&
×
1237
        Objects.equals(this.interacCard, paymentMethodSetupInfo.interacCard) &&
×
1238
        Objects.equals(this.jcb, paymentMethodSetupInfo.jcb) &&
×
1239
        Objects.equals(this.klarna, paymentMethodSetupInfo.klarna) &&
×
1240
        Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) &&
×
1241
        Objects.equals(this.mc, paymentMethodSetupInfo.mc) &&
×
1242
        Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) &&
×
1243
        Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) &&
×
1244
        Objects.equals(this.reference, paymentMethodSetupInfo.reference) &&
×
1245
        Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) &&
×
1246
        Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) &&
×
1247
        Objects.equals(this.storeId, paymentMethodSetupInfo.storeId) &&
×
1248
        Objects.equals(this.swish, paymentMethodSetupInfo.swish) &&
×
1249
        Objects.equals(this.twint, paymentMethodSetupInfo.twint) &&
×
1250
        Objects.equals(this.type, paymentMethodSetupInfo.type) &&
×
1251
        Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) &&
×
1252
        Objects.equals(this.visa, paymentMethodSetupInfo.visa);
×
1253
  }
1254

1255
  @Override
1256
  public int hashCode() {
1257
    return Objects.hash(afterpayTouch, 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, storeId, swish, twint, type, vipps, visa);
×
1258
  }
1259

1260
  @Override
1261
  public String toString() {
1262
    StringBuilder sb = new StringBuilder();
×
1263
    sb.append("class PaymentMethodSetupInfo {\n");
×
1264
    sb.append("    afterpayTouch: ").append(toIndentedString(afterpayTouch)).append("\n");
×
1265
    sb.append("    applePay: ").append(toIndentedString(applePay)).append("\n");
×
1266
    sb.append("    bcmc: ").append(toIndentedString(bcmc)).append("\n");
×
1267
    sb.append("    businessLineId: ").append(toIndentedString(businessLineId)).append("\n");
×
1268
    sb.append("    cartesBancaires: ").append(toIndentedString(cartesBancaires)).append("\n");
×
1269
    sb.append("    clearpay: ").append(toIndentedString(clearpay)).append("\n");
×
1270
    sb.append("    countries: ").append(toIndentedString(countries)).append("\n");
×
1271
    sb.append("    cup: ").append(toIndentedString(cup)).append("\n");
×
1272
    sb.append("    currencies: ").append(toIndentedString(currencies)).append("\n");
×
1273
    sb.append("    customRoutingFlags: ").append(toIndentedString(customRoutingFlags)).append("\n");
×
1274
    sb.append("    diners: ").append(toIndentedString(diners)).append("\n");
×
1275
    sb.append("    discover: ").append(toIndentedString(discover)).append("\n");
×
1276
    sb.append("    eftposAustralia: ").append(toIndentedString(eftposAustralia)).append("\n");
×
1277
    sb.append("    giroPay: ").append(toIndentedString(giroPay)).append("\n");
×
1278
    sb.append("    girocard: ").append(toIndentedString(girocard)).append("\n");
×
1279
    sb.append("    googlePay: ").append(toIndentedString(googlePay)).append("\n");
×
1280
    sb.append("    ideal: ").append(toIndentedString(ideal)).append("\n");
×
1281
    sb.append("    interacCard: ").append(toIndentedString(interacCard)).append("\n");
×
1282
    sb.append("    jcb: ").append(toIndentedString(jcb)).append("\n");
×
1283
    sb.append("    klarna: ").append(toIndentedString(klarna)).append("\n");
×
1284
    sb.append("    maestro: ").append(toIndentedString(maestro)).append("\n");
×
1285
    sb.append("    mc: ").append(toIndentedString(mc)).append("\n");
×
1286
    sb.append("    mealVoucherFR: ").append(toIndentedString(mealVoucherFR)).append("\n");
×
1287
    sb.append("    paypal: ").append(toIndentedString(paypal)).append("\n");
×
1288
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
1289
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
1290
    sb.append("    sofort: ").append(toIndentedString(sofort)).append("\n");
×
1291
    sb.append("    storeId: ").append(toIndentedString(storeId)).append("\n");
×
1292
    sb.append("    swish: ").append(toIndentedString(swish)).append("\n");
×
1293
    sb.append("    twint: ").append(toIndentedString(twint)).append("\n");
×
1294
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
1295
    sb.append("    vipps: ").append(toIndentedString(vipps)).append("\n");
×
1296
    sb.append("    visa: ").append(toIndentedString(visa)).append("\n");
×
1297
    sb.append("}");
×
1298
    return sb.toString();
×
1299
  }
1300

1301
  /**
1302
   * Convert the given object to string with each line indented by 4 spaces
1303
   * (except the first line).
1304
   */
1305
  private String toIndentedString(Object o) {
1306
    if (o == null) {
×
1307
      return "null";
×
1308
    }
1309
    return o.toString().replace("\n", "\n    ");
×
1310
  }
1311

1312
/**
1313
   * Create an instance of PaymentMethodSetupInfo given an JSON string
1314
   *
1315
   * @param jsonString JSON string
1316
   * @return An instance of PaymentMethodSetupInfo
1317
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodSetupInfo
1318
   */
1319
  public static PaymentMethodSetupInfo fromJson(String jsonString) throws JsonProcessingException {
1320
    return JSON.getMapper().readValue(jsonString, PaymentMethodSetupInfo.class);
×
1321
  }
1322
/**
1323
  * Convert an instance of PaymentMethodSetupInfo to an JSON string
1324
  *
1325
  * @return JSON string
1326
  */
1327
  public String toJson() throws JsonProcessingException {
1328
    return JSON.getMapper().writeValueAsString(this);
×
1329
  }
1330
}
1331

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc