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

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

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

push

web-flow
Merge 14cc2ffc1 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/PaymentMethod.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
 * PaymentMethod
50
 */
51
@JsonPropertyOrder({
52
  PaymentMethod.JSON_PROPERTY_AFTERPAY_TOUCH,
53
  PaymentMethod.JSON_PROPERTY_ALLOWED,
54
  PaymentMethod.JSON_PROPERTY_AMEX,
55
  PaymentMethod.JSON_PROPERTY_APPLE_PAY,
56
  PaymentMethod.JSON_PROPERTY_BCMC,
57
  PaymentMethod.JSON_PROPERTY_BUSINESS_LINE_ID,
58
  PaymentMethod.JSON_PROPERTY_CARTES_BANCAIRES,
59
  PaymentMethod.JSON_PROPERTY_CLEARPAY,
60
  PaymentMethod.JSON_PROPERTY_COUNTRIES,
61
  PaymentMethod.JSON_PROPERTY_CUP,
62
  PaymentMethod.JSON_PROPERTY_CURRENCIES,
63
  PaymentMethod.JSON_PROPERTY_CUSTOM_ROUTING_FLAGS,
64
  PaymentMethod.JSON_PROPERTY_DINERS,
65
  PaymentMethod.JSON_PROPERTY_DISCOVER,
66
  PaymentMethod.JSON_PROPERTY_EFTPOS_AUSTRALIA,
67
  PaymentMethod.JSON_PROPERTY_ENABLED,
68
  PaymentMethod.JSON_PROPERTY_GIRO_PAY,
69
  PaymentMethod.JSON_PROPERTY_GIROCARD,
70
  PaymentMethod.JSON_PROPERTY_GOOGLE_PAY,
71
  PaymentMethod.JSON_PROPERTY_ID,
72
  PaymentMethod.JSON_PROPERTY_IDEAL,
73
  PaymentMethod.JSON_PROPERTY_INTERAC_CARD,
74
  PaymentMethod.JSON_PROPERTY_JCB,
75
  PaymentMethod.JSON_PROPERTY_KLARNA,
76
  PaymentMethod.JSON_PROPERTY_MAESTRO,
77
  PaymentMethod.JSON_PROPERTY_MC,
78
  PaymentMethod.JSON_PROPERTY_MEAL_VOUCHER_F_R,
79
  PaymentMethod.JSON_PROPERTY_PAYPAL,
80
  PaymentMethod.JSON_PROPERTY_REFERENCE,
81
  PaymentMethod.JSON_PROPERTY_SHOPPER_INTERACTION,
82
  PaymentMethod.JSON_PROPERTY_SOFORT,
83
  PaymentMethod.JSON_PROPERTY_STORE_IDS,
84
  PaymentMethod.JSON_PROPERTY_SWISH,
85
  PaymentMethod.JSON_PROPERTY_TWINT,
86
  PaymentMethod.JSON_PROPERTY_TYPE,
87
  PaymentMethod.JSON_PROPERTY_VERIFICATION_STATUS,
88
  PaymentMethod.JSON_PROPERTY_VIPPS,
89
  PaymentMethod.JSON_PROPERTY_VISA
90
})
91

92
public class PaymentMethod {
93
  public static final String JSON_PROPERTY_AFTERPAY_TOUCH = "afterpayTouch";
94
  private AfterpayTouchInfo afterpayTouch;
95

96
  public static final String JSON_PROPERTY_ALLOWED = "allowed";
97
  private Boolean allowed;
98

99
  public static final String JSON_PROPERTY_AMEX = "amex";
100
  private AmexInfo amex;
101

102
  public static final String JSON_PROPERTY_APPLE_PAY = "applePay";
103
  private ApplePayInfo applePay;
104

105
  public static final String JSON_PROPERTY_BCMC = "bcmc";
106
  private BcmcInfo bcmc;
107

108
  public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId";
109
  private String businessLineId;
110

111
  public static final String JSON_PROPERTY_CARTES_BANCAIRES = "cartesBancaires";
112
  private CartesBancairesInfo cartesBancaires;
113

114
  public static final String JSON_PROPERTY_CLEARPAY = "clearpay";
115
  private ClearpayInfo clearpay;
116

117
  public static final String JSON_PROPERTY_COUNTRIES = "countries";
118
  private List<String> countries = null;
×
119

120
  public static final String JSON_PROPERTY_CUP = "cup";
121
  private GenericPmWithTdiInfo cup;
122

123
  public static final String JSON_PROPERTY_CURRENCIES = "currencies";
124
  private List<String> currencies = null;
×
125

126
  public static final String JSON_PROPERTY_CUSTOM_ROUTING_FLAGS = "customRoutingFlags";
127
  private List<String> customRoutingFlags = null;
×
128

129
  public static final String JSON_PROPERTY_DINERS = "diners";
130
  private GenericPmWithTdiInfo diners;
131

132
  public static final String JSON_PROPERTY_DISCOVER = "discover";
133
  private GenericPmWithTdiInfo discover;
134

135
  public static final String JSON_PROPERTY_EFTPOS_AUSTRALIA = "eftpos_australia";
136
  private GenericPmWithTdiInfo eftposAustralia;
137

138
  public static final String JSON_PROPERTY_ENABLED = "enabled";
139
  private Boolean enabled;
140

141
  public static final String JSON_PROPERTY_GIRO_PAY = "giroPay";
142
  private GiroPayInfo giroPay;
143

144
  public static final String JSON_PROPERTY_GIROCARD = "girocard";
145
  private GenericPmWithTdiInfo girocard;
146

147
  public static final String JSON_PROPERTY_GOOGLE_PAY = "googlePay";
148
  private GooglePayInfo googlePay;
149

150
  public static final String JSON_PROPERTY_ID = "id";
151
  private String id;
152

153
  public static final String JSON_PROPERTY_IDEAL = "ideal";
154
  private GenericPmWithTdiInfo ideal;
155

156
  public static final String JSON_PROPERTY_INTERAC_CARD = "interac_card";
157
  private GenericPmWithTdiInfo interacCard;
158

159
  public static final String JSON_PROPERTY_JCB = "jcb";
160
  private GenericPmWithTdiInfo jcb;
161

162
  public static final String JSON_PROPERTY_KLARNA = "klarna";
163
  private KlarnaInfo klarna;
164

165
  public static final String JSON_PROPERTY_MAESTRO = "maestro";
166
  private GenericPmWithTdiInfo maestro;
167

168
  public static final String JSON_PROPERTY_MC = "mc";
169
  private GenericPmWithTdiInfo mc;
170

171
  public static final String JSON_PROPERTY_MEAL_VOUCHER_F_R = "mealVoucher_FR";
172
  private MealVoucherFRInfo mealVoucherFR;
173

174
  public static final String JSON_PROPERTY_PAYPAL = "paypal";
175
  private PayPalInfo paypal;
176

177
  public static final String JSON_PROPERTY_REFERENCE = "reference";
178
  private String reference;
179

180
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
181
  private String shopperInteraction;
182

183
  public static final String JSON_PROPERTY_SOFORT = "sofort";
184
  private SofortInfo sofort;
185

186
  public static final String JSON_PROPERTY_STORE_IDS = "storeIds";
187
  private List<String> storeIds = null;
×
188

189
  public static final String JSON_PROPERTY_SWISH = "swish";
190
  private SwishInfo swish;
191

192
  public static final String JSON_PROPERTY_TWINT = "twint";
193
  private TwintInfo twint;
194

195
  public static final String JSON_PROPERTY_TYPE = "type";
196
  private String type;
197

198
  /**
199
   * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
200
   */
201
  public enum VerificationStatusEnum {
×
202
    VALID("valid"),
×
203
    
204
    PENDING("pending"),
×
205
    
206
    INVALID("invalid"),
×
207
    
208
    REJECTED("rejected");
×
209

210
    private String value;
211

212
    VerificationStatusEnum(String value) {
×
213
      this.value = value;
×
214
    }
×
215

216
    @JsonValue
217
    public String getValue() {
218
      return value;
×
219
    }
220

221
    @Override
222
    public String toString() {
223
      return String.valueOf(value);
×
224
    }
225

226
    @JsonCreator
227
    public static VerificationStatusEnum fromValue(String value) {
228
      for (VerificationStatusEnum b : VerificationStatusEnum.values()) {
×
229
        if (b.value.equals(value)) {
×
230
          return b;
×
231
        }
232
      }
233
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
234
    }
235
  }
236

237
  public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus";
238
  private VerificationStatusEnum verificationStatus;
239

240
  public static final String JSON_PROPERTY_VIPPS = "vipps";
241
  private VippsInfo vipps;
242

243
  public static final String JSON_PROPERTY_VISA = "visa";
244
  private GenericPmWithTdiInfo visa;
245

246
  public PaymentMethod() { 
×
247
  }
×
248

249
  public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) {
250
    this.afterpayTouch = afterpayTouch;
×
251
    return this;
×
252
  }
253

254
   /**
255
   * Get afterpayTouch
256
   * @return afterpayTouch
257
  **/
258
  @ApiModelProperty(value = "")
259
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
260
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
261

262
  public AfterpayTouchInfo getAfterpayTouch() {
263
    return afterpayTouch;
×
264
  }
265

266

267
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
268
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
269
  public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) {
270
    this.afterpayTouch = afterpayTouch;
×
271
  }
×
272

273

274
  public PaymentMethod allowed(Boolean allowed) {
275
    this.allowed = allowed;
×
276
    return this;
×
277
  }
278

279
   /**
280
   * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.
281
   * @return allowed
282
  **/
283
  @ApiModelProperty(value = "Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.")
284
  @JsonProperty(JSON_PROPERTY_ALLOWED)
285
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
286

287
  public Boolean getAllowed() {
288
    return allowed;
×
289
  }
290

291

292
  @JsonProperty(JSON_PROPERTY_ALLOWED)
293
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
294
  public void setAllowed(Boolean allowed) {
295
    this.allowed = allowed;
×
296
  }
×
297

298

299
  public PaymentMethod amex(AmexInfo amex) {
NEW
300
    this.amex = amex;
×
NEW
301
    return this;
×
302
  }
303

304
   /**
305
   * Get amex
306
   * @return amex
307
  **/
308
  @ApiModelProperty(value = "")
309
  @JsonProperty(JSON_PROPERTY_AMEX)
310
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
311

312
  public AmexInfo getAmex() {
NEW
313
    return amex;
×
314
  }
315

316

317
  @JsonProperty(JSON_PROPERTY_AMEX)
318
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
319
  public void setAmex(AmexInfo amex) {
NEW
320
    this.amex = amex;
×
NEW
321
  }
×
322

323

324
  public PaymentMethod applePay(ApplePayInfo applePay) {
325
    this.applePay = applePay;
×
326
    return this;
×
327
  }
328

329
   /**
330
   * Get applePay
331
   * @return applePay
332
  **/
333
  @ApiModelProperty(value = "")
334
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
335
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
336

337
  public ApplePayInfo getApplePay() {
338
    return applePay;
×
339
  }
340

341

342
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
343
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
344
  public void setApplePay(ApplePayInfo applePay) {
345
    this.applePay = applePay;
×
346
  }
×
347

348

349
  public PaymentMethod bcmc(BcmcInfo bcmc) {
350
    this.bcmc = bcmc;
×
351
    return this;
×
352
  }
353

354
   /**
355
   * Get bcmc
356
   * @return bcmc
357
  **/
358
  @ApiModelProperty(value = "")
359
  @JsonProperty(JSON_PROPERTY_BCMC)
360
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
361

362
  public BcmcInfo getBcmc() {
363
    return bcmc;
×
364
  }
365

366

367
  @JsonProperty(JSON_PROPERTY_BCMC)
368
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
369
  public void setBcmc(BcmcInfo bcmc) {
370
    this.bcmc = bcmc;
×
371
  }
×
372

373

374
  public PaymentMethod businessLineId(String businessLineId) {
375
    this.businessLineId = businessLineId;
×
376
    return this;
×
377
  }
378

379
   /**
380
   * The unique identifier of the business line.
381
   * @return businessLineId
382
  **/
383
  @ApiModelProperty(value = "The unique identifier of the business line.")
384
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
385
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
386

387
  public String getBusinessLineId() {
388
    return businessLineId;
×
389
  }
390

391

392
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
393
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
394
  public void setBusinessLineId(String businessLineId) {
395
    this.businessLineId = businessLineId;
×
396
  }
×
397

398

399
  public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires) {
400
    this.cartesBancaires = cartesBancaires;
×
401
    return this;
×
402
  }
403

404
   /**
405
   * Get cartesBancaires
406
   * @return cartesBancaires
407
  **/
408
  @ApiModelProperty(value = "")
409
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
410
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
411

412
  public CartesBancairesInfo getCartesBancaires() {
413
    return cartesBancaires;
×
414
  }
415

416

417
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
418
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
419
  public void setCartesBancaires(CartesBancairesInfo cartesBancaires) {
420
    this.cartesBancaires = cartesBancaires;
×
421
  }
×
422

423

424
  public PaymentMethod clearpay(ClearpayInfo clearpay) {
425
    this.clearpay = clearpay;
×
426
    return this;
×
427
  }
428

429
   /**
430
   * Get clearpay
431
   * @return clearpay
432
  **/
433
  @ApiModelProperty(value = "")
434
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
435
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
436

437
  public ClearpayInfo getClearpay() {
438
    return clearpay;
×
439
  }
440

441

442
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
443
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
444
  public void setClearpay(ClearpayInfo clearpay) {
445
    this.clearpay = clearpay;
×
446
  }
×
447

448

449
  public PaymentMethod countries(List<String> countries) {
450
    this.countries = countries;
×
451
    return this;
×
452
  }
453

454
  public PaymentMethod addCountriesItem(String countriesItem) {
455
    if (this.countries == null) {
×
456
      this.countries = new ArrayList<>();
×
457
    }
458
    this.countries.add(countriesItem);
×
459
    return this;
×
460
  }
461

462
   /**
463
   * The list of countries where a payment method is available. By default, all countries supported by the payment method.
464
   * @return countries
465
  **/
466
  @ApiModelProperty(value = "The list of countries where a payment method is available. By default, all countries supported by the payment method.")
467
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
468
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
469

470
  public List<String> getCountries() {
471
    return countries;
×
472
  }
473

474

475
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
476
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
477
  public void setCountries(List<String> countries) {
478
    this.countries = countries;
×
479
  }
×
480

481

482
  public PaymentMethod cup(GenericPmWithTdiInfo cup) {
483
    this.cup = cup;
×
484
    return this;
×
485
  }
486

487
   /**
488
   * Get cup
489
   * @return cup
490
  **/
491
  @ApiModelProperty(value = "")
492
  @JsonProperty(JSON_PROPERTY_CUP)
493
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
494

495
  public GenericPmWithTdiInfo getCup() {
496
    return cup;
×
497
  }
498

499

500
  @JsonProperty(JSON_PROPERTY_CUP)
501
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
502
  public void setCup(GenericPmWithTdiInfo cup) {
503
    this.cup = cup;
×
504
  }
×
505

506

507
  public PaymentMethod currencies(List<String> currencies) {
508
    this.currencies = currencies;
×
509
    return this;
×
510
  }
511

512
  public PaymentMethod addCurrenciesItem(String currenciesItem) {
513
    if (this.currencies == null) {
×
514
      this.currencies = new ArrayList<>();
×
515
    }
516
    this.currencies.add(currenciesItem);
×
517
    return this;
×
518
  }
519

520
   /**
521
   * The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
522
   * @return currencies
523
  **/
524
  @ApiModelProperty(value = "The list of currencies that a payment method supports. By default, all currencies supported by the payment method.")
525
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
526
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
527

528
  public List<String> getCurrencies() {
529
    return currencies;
×
530
  }
531

532

533
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
534
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
535
  public void setCurrencies(List<String> currencies) {
536
    this.currencies = currencies;
×
537
  }
×
538

539

540
  public PaymentMethod customRoutingFlags(List<String> customRoutingFlags) {
541
    this.customRoutingFlags = customRoutingFlags;
×
542
    return this;
×
543
  }
544

545
  public PaymentMethod addCustomRoutingFlagsItem(String customRoutingFlagsItem) {
546
    if (this.customRoutingFlags == null) {
×
547
      this.customRoutingFlags = new ArrayList<>();
×
548
    }
549
    this.customRoutingFlags.add(customRoutingFlagsItem);
×
550
    return this;
×
551
  }
552

553
   /**
554
   * The list of custom routing flags to route payment to the intended acquirer.
555
   * @return customRoutingFlags
556
  **/
557
  @ApiModelProperty(value = "The list of custom routing flags to route payment to the intended acquirer.")
558
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
559
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
560

561
  public List<String> getCustomRoutingFlags() {
562
    return customRoutingFlags;
×
563
  }
564

565

566
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
567
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
568
  public void setCustomRoutingFlags(List<String> customRoutingFlags) {
569
    this.customRoutingFlags = customRoutingFlags;
×
570
  }
×
571

572

573
  public PaymentMethod diners(GenericPmWithTdiInfo diners) {
574
    this.diners = diners;
×
575
    return this;
×
576
  }
577

578
   /**
579
   * Get diners
580
   * @return diners
581
  **/
582
  @ApiModelProperty(value = "")
583
  @JsonProperty(JSON_PROPERTY_DINERS)
584
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
585

586
  public GenericPmWithTdiInfo getDiners() {
587
    return diners;
×
588
  }
589

590

591
  @JsonProperty(JSON_PROPERTY_DINERS)
592
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
593
  public void setDiners(GenericPmWithTdiInfo diners) {
594
    this.diners = diners;
×
595
  }
×
596

597

598
  public PaymentMethod discover(GenericPmWithTdiInfo discover) {
599
    this.discover = discover;
×
600
    return this;
×
601
  }
602

603
   /**
604
   * Get discover
605
   * @return discover
606
  **/
607
  @ApiModelProperty(value = "")
608
  @JsonProperty(JSON_PROPERTY_DISCOVER)
609
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
610

611
  public GenericPmWithTdiInfo getDiscover() {
612
    return discover;
×
613
  }
614

615

616
  @JsonProperty(JSON_PROPERTY_DISCOVER)
617
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
618
  public void setDiscover(GenericPmWithTdiInfo discover) {
619
    this.discover = discover;
×
620
  }
×
621

622

623
  public PaymentMethod eftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
624
    this.eftposAustralia = eftposAustralia;
×
625
    return this;
×
626
  }
627

628
   /**
629
   * Get eftposAustralia
630
   * @return eftposAustralia
631
  **/
632
  @ApiModelProperty(value = "")
633
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
634
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
635

636
  public GenericPmWithTdiInfo getEftposAustralia() {
637
    return eftposAustralia;
×
638
  }
639

640

641
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
642
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
643
  public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
644
    this.eftposAustralia = eftposAustralia;
×
645
  }
×
646

647

648
  public PaymentMethod enabled(Boolean enabled) {
649
    this.enabled = enabled;
×
650
    return this;
×
651
  }
652

653
   /**
654
   * Indicates whether the payment method is enabled (**true**) or disabled (**false**).
655
   * @return enabled
656
  **/
657
  @ApiModelProperty(value = "Indicates whether the payment method is enabled (**true**) or disabled (**false**).")
658
  @JsonProperty(JSON_PROPERTY_ENABLED)
659
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
660

661
  public Boolean getEnabled() {
662
    return enabled;
×
663
  }
664

665

666
  @JsonProperty(JSON_PROPERTY_ENABLED)
667
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
668
  public void setEnabled(Boolean enabled) {
669
    this.enabled = enabled;
×
670
  }
×
671

672

673
  public PaymentMethod giroPay(GiroPayInfo giroPay) {
674
    this.giroPay = giroPay;
×
675
    return this;
×
676
  }
677

678
   /**
679
   * Get giroPay
680
   * @return giroPay
681
  **/
682
  @ApiModelProperty(value = "")
683
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
684
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
685

686
  public GiroPayInfo getGiroPay() {
687
    return giroPay;
×
688
  }
689

690

691
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
692
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
693
  public void setGiroPay(GiroPayInfo giroPay) {
694
    this.giroPay = giroPay;
×
695
  }
×
696

697

698
  public PaymentMethod girocard(GenericPmWithTdiInfo girocard) {
699
    this.girocard = girocard;
×
700
    return this;
×
701
  }
702

703
   /**
704
   * Get girocard
705
   * @return girocard
706
  **/
707
  @ApiModelProperty(value = "")
708
  @JsonProperty(JSON_PROPERTY_GIROCARD)
709
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
710

711
  public GenericPmWithTdiInfo getGirocard() {
712
    return girocard;
×
713
  }
714

715

716
  @JsonProperty(JSON_PROPERTY_GIROCARD)
717
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
718
  public void setGirocard(GenericPmWithTdiInfo girocard) {
719
    this.girocard = girocard;
×
720
  }
×
721

722

723
  public PaymentMethod googlePay(GooglePayInfo googlePay) {
724
    this.googlePay = googlePay;
×
725
    return this;
×
726
  }
727

728
   /**
729
   * Get googlePay
730
   * @return googlePay
731
  **/
732
  @ApiModelProperty(value = "")
733
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
734
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
735

736
  public GooglePayInfo getGooglePay() {
737
    return googlePay;
×
738
  }
739

740

741
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
742
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
743
  public void setGooglePay(GooglePayInfo googlePay) {
744
    this.googlePay = googlePay;
×
745
  }
×
746

747

748
  public PaymentMethod id(String id) {
749
    this.id = id;
×
750
    return this;
×
751
  }
752

753
   /**
754
   * The identifier of the resource.
755
   * @return id
756
  **/
757
  @ApiModelProperty(required = true, value = "The identifier of the resource.")
758
  @JsonProperty(JSON_PROPERTY_ID)
759
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
760

761
  public String getId() {
762
    return id;
×
763
  }
764

765

766
  @JsonProperty(JSON_PROPERTY_ID)
767
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
768
  public void setId(String id) {
769
    this.id = id;
×
770
  }
×
771

772

773
  public PaymentMethod ideal(GenericPmWithTdiInfo ideal) {
774
    this.ideal = ideal;
×
775
    return this;
×
776
  }
777

778
   /**
779
   * Get ideal
780
   * @return ideal
781
  **/
782
  @ApiModelProperty(value = "")
783
  @JsonProperty(JSON_PROPERTY_IDEAL)
784
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
785

786
  public GenericPmWithTdiInfo getIdeal() {
787
    return ideal;
×
788
  }
789

790

791
  @JsonProperty(JSON_PROPERTY_IDEAL)
792
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
793
  public void setIdeal(GenericPmWithTdiInfo ideal) {
794
    this.ideal = ideal;
×
795
  }
×
796

797

798
  public PaymentMethod interacCard(GenericPmWithTdiInfo interacCard) {
799
    this.interacCard = interacCard;
×
800
    return this;
×
801
  }
802

803
   /**
804
   * Get interacCard
805
   * @return interacCard
806
  **/
807
  @ApiModelProperty(value = "")
808
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
809
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
810

811
  public GenericPmWithTdiInfo getInteracCard() {
812
    return interacCard;
×
813
  }
814

815

816
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
817
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
818
  public void setInteracCard(GenericPmWithTdiInfo interacCard) {
819
    this.interacCard = interacCard;
×
820
  }
×
821

822

823
  public PaymentMethod jcb(GenericPmWithTdiInfo jcb) {
824
    this.jcb = jcb;
×
825
    return this;
×
826
  }
827

828
   /**
829
   * Get jcb
830
   * @return jcb
831
  **/
832
  @ApiModelProperty(value = "")
833
  @JsonProperty(JSON_PROPERTY_JCB)
834
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
835

836
  public GenericPmWithTdiInfo getJcb() {
837
    return jcb;
×
838
  }
839

840

841
  @JsonProperty(JSON_PROPERTY_JCB)
842
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
843
  public void setJcb(GenericPmWithTdiInfo jcb) {
844
    this.jcb = jcb;
×
845
  }
×
846

847

848
  public PaymentMethod klarna(KlarnaInfo klarna) {
849
    this.klarna = klarna;
×
850
    return this;
×
851
  }
852

853
   /**
854
   * Get klarna
855
   * @return klarna
856
  **/
857
  @ApiModelProperty(value = "")
858
  @JsonProperty(JSON_PROPERTY_KLARNA)
859
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
860

861
  public KlarnaInfo getKlarna() {
862
    return klarna;
×
863
  }
864

865

866
  @JsonProperty(JSON_PROPERTY_KLARNA)
867
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
868
  public void setKlarna(KlarnaInfo klarna) {
869
    this.klarna = klarna;
×
870
  }
×
871

872

873
  public PaymentMethod maestro(GenericPmWithTdiInfo maestro) {
874
    this.maestro = maestro;
×
875
    return this;
×
876
  }
877

878
   /**
879
   * Get maestro
880
   * @return maestro
881
  **/
882
  @ApiModelProperty(value = "")
883
  @JsonProperty(JSON_PROPERTY_MAESTRO)
884
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
885

886
  public GenericPmWithTdiInfo getMaestro() {
887
    return maestro;
×
888
  }
889

890

891
  @JsonProperty(JSON_PROPERTY_MAESTRO)
892
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
893
  public void setMaestro(GenericPmWithTdiInfo maestro) {
894
    this.maestro = maestro;
×
895
  }
×
896

897

898
  public PaymentMethod mc(GenericPmWithTdiInfo mc) {
899
    this.mc = mc;
×
900
    return this;
×
901
  }
902

903
   /**
904
   * Get mc
905
   * @return mc
906
  **/
907
  @ApiModelProperty(value = "")
908
  @JsonProperty(JSON_PROPERTY_MC)
909
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
910

911
  public GenericPmWithTdiInfo getMc() {
912
    return mc;
×
913
  }
914

915

916
  @JsonProperty(JSON_PROPERTY_MC)
917
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
918
  public void setMc(GenericPmWithTdiInfo mc) {
919
    this.mc = mc;
×
920
  }
×
921

922

923
  public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
924
    this.mealVoucherFR = mealVoucherFR;
×
925
    return this;
×
926
  }
927

928
   /**
929
   * Get mealVoucherFR
930
   * @return mealVoucherFR
931
  **/
932
  @ApiModelProperty(value = "")
933
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
934
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
935

936
  public MealVoucherFRInfo getMealVoucherFR() {
937
    return mealVoucherFR;
×
938
  }
939

940

941
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
942
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
943
  public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
944
    this.mealVoucherFR = mealVoucherFR;
×
945
  }
×
946

947

948
  public PaymentMethod paypal(PayPalInfo paypal) {
949
    this.paypal = paypal;
×
950
    return this;
×
951
  }
952

953
   /**
954
   * Get paypal
955
   * @return paypal
956
  **/
957
  @ApiModelProperty(value = "")
958
  @JsonProperty(JSON_PROPERTY_PAYPAL)
959
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
960

961
  public PayPalInfo getPaypal() {
962
    return paypal;
×
963
  }
964

965

966
  @JsonProperty(JSON_PROPERTY_PAYPAL)
967
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
968
  public void setPaypal(PayPalInfo paypal) {
969
    this.paypal = paypal;
×
970
  }
×
971

972

973
  public PaymentMethod reference(String reference) {
974
    this.reference = reference;
×
975
    return this;
×
976
  }
977

978
   /**
979
   * Your reference for the payment method. Supported characters a-z, A-Z, 0-9.
980
   * @return reference
981
  **/
982
  @ApiModelProperty(value = "Your reference for the payment method. Supported characters a-z, A-Z, 0-9.")
983
  @JsonProperty(JSON_PROPERTY_REFERENCE)
984
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
985

986
  public String getReference() {
987
    return reference;
×
988
  }
989

990

991
  @JsonProperty(JSON_PROPERTY_REFERENCE)
992
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
993
  public void setReference(String reference) {
994
    this.reference = reference;
×
995
  }
×
996

997

998
  public PaymentMethod shopperInteraction(String shopperInteraction) {
999
    this.shopperInteraction = shopperInteraction;
×
1000
    return this;
×
1001
  }
1002

1003
   /**
1004
   * The sales channel.
1005
   * @return shopperInteraction
1006
  **/
1007
  @ApiModelProperty(value = "The sales channel.")
1008
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1009
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1010

1011
  public String getShopperInteraction() {
1012
    return shopperInteraction;
×
1013
  }
1014

1015

1016
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1017
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1018
  public void setShopperInteraction(String shopperInteraction) {
1019
    this.shopperInteraction = shopperInteraction;
×
1020
  }
×
1021

1022

1023
  public PaymentMethod sofort(SofortInfo sofort) {
1024
    this.sofort = sofort;
×
1025
    return this;
×
1026
  }
1027

1028
   /**
1029
   * Get sofort
1030
   * @return sofort
1031
  **/
1032
  @ApiModelProperty(value = "")
1033
  @JsonProperty(JSON_PROPERTY_SOFORT)
1034
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1035

1036
  public SofortInfo getSofort() {
1037
    return sofort;
×
1038
  }
1039

1040

1041
  @JsonProperty(JSON_PROPERTY_SOFORT)
1042
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1043
  public void setSofort(SofortInfo sofort) {
1044
    this.sofort = sofort;
×
1045
  }
×
1046

1047

1048
  public PaymentMethod storeIds(List<String> storeIds) {
1049
    this.storeIds = storeIds;
×
1050
    return this;
×
1051
  }
1052

1053
  public PaymentMethod addStoreIdsItem(String storeIdsItem) {
1054
    if (this.storeIds == null) {
×
1055
      this.storeIds = new ArrayList<>();
×
1056
    }
1057
    this.storeIds.add(storeIdsItem);
×
1058
    return this;
×
1059
  }
1060

1061
   /**
1062
   * The unique identifier of the store for which to configure the payment method, if any.
1063
   * @return storeIds
1064
  **/
1065
  @ApiModelProperty(value = "The unique identifier of the store for which to configure the payment method, if any.")
1066
  @JsonProperty(JSON_PROPERTY_STORE_IDS)
1067
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1068

1069
  public List<String> getStoreIds() {
1070
    return storeIds;
×
1071
  }
1072

1073

1074
  @JsonProperty(JSON_PROPERTY_STORE_IDS)
1075
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1076
  public void setStoreIds(List<String> storeIds) {
1077
    this.storeIds = storeIds;
×
1078
  }
×
1079

1080

1081
  public PaymentMethod swish(SwishInfo swish) {
1082
    this.swish = swish;
×
1083
    return this;
×
1084
  }
1085

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

1094
  public SwishInfo getSwish() {
1095
    return swish;
×
1096
  }
1097

1098

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

1105

1106
  public PaymentMethod twint(TwintInfo twint) {
1107
    this.twint = twint;
×
1108
    return this;
×
1109
  }
1110

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

1119
  public TwintInfo getTwint() {
1120
    return twint;
×
1121
  }
1122

1123

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

1130

1131
  public PaymentMethod type(String type) {
1132
    this.type = type;
×
1133
    return this;
×
1134
  }
1135

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

1144
  public String getType() {
1145
    return type;
×
1146
  }
1147

1148

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

1155

1156
  public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatus) {
1157
    this.verificationStatus = verificationStatus;
×
1158
    return this;
×
1159
  }
1160

1161
   /**
1162
   * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
1163
   * @return verificationStatus
1164
  **/
1165
  @ApiModelProperty(value = "Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**")
1166
  @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS)
1167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1168

1169
  public VerificationStatusEnum getVerificationStatus() {
1170
    return verificationStatus;
×
1171
  }
1172

1173

1174
  @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS)
1175
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1176
  public void setVerificationStatus(VerificationStatusEnum verificationStatus) {
1177
    this.verificationStatus = verificationStatus;
×
1178
  }
×
1179

1180

1181
  public PaymentMethod vipps(VippsInfo vipps) {
1182
    this.vipps = vipps;
×
1183
    return this;
×
1184
  }
1185

1186
   /**
1187
   * Get vipps
1188
   * @return vipps
1189
  **/
1190
  @ApiModelProperty(value = "")
1191
  @JsonProperty(JSON_PROPERTY_VIPPS)
1192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1193

1194
  public VippsInfo getVipps() {
1195
    return vipps;
×
1196
  }
1197

1198

1199
  @JsonProperty(JSON_PROPERTY_VIPPS)
1200
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1201
  public void setVipps(VippsInfo vipps) {
1202
    this.vipps = vipps;
×
1203
  }
×
1204

1205

1206
  public PaymentMethod visa(GenericPmWithTdiInfo visa) {
1207
    this.visa = visa;
×
1208
    return this;
×
1209
  }
1210

1211
   /**
1212
   * Get visa
1213
   * @return visa
1214
  **/
1215
  @ApiModelProperty(value = "")
1216
  @JsonProperty(JSON_PROPERTY_VISA)
1217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1218

1219
  public GenericPmWithTdiInfo getVisa() {
1220
    return visa;
×
1221
  }
1222

1223

1224
  @JsonProperty(JSON_PROPERTY_VISA)
1225
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1226
  public void setVisa(GenericPmWithTdiInfo visa) {
1227
    this.visa = visa;
×
1228
  }
×
1229

1230

1231
  /**
1232
   * Return true if this PaymentMethod object is equal to o.
1233
   */
1234
  @Override
1235
  public boolean equals(Object o) {
1236
    if (this == o) {
×
1237
      return true;
×
1238
    }
1239
    if (o == null || getClass() != o.getClass()) {
×
1240
      return false;
×
1241
    }
1242
    PaymentMethod paymentMethod = (PaymentMethod) o;
×
1243
    return Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) &&
×
1244
        Objects.equals(this.allowed, paymentMethod.allowed) &&
×
NEW
1245
        Objects.equals(this.amex, paymentMethod.amex) &&
×
1246
        Objects.equals(this.applePay, paymentMethod.applePay) &&
×
1247
        Objects.equals(this.bcmc, paymentMethod.bcmc) &&
×
1248
        Objects.equals(this.businessLineId, paymentMethod.businessLineId) &&
×
1249
        Objects.equals(this.cartesBancaires, paymentMethod.cartesBancaires) &&
×
1250
        Objects.equals(this.clearpay, paymentMethod.clearpay) &&
×
1251
        Objects.equals(this.countries, paymentMethod.countries) &&
×
1252
        Objects.equals(this.cup, paymentMethod.cup) &&
×
1253
        Objects.equals(this.currencies, paymentMethod.currencies) &&
×
1254
        Objects.equals(this.customRoutingFlags, paymentMethod.customRoutingFlags) &&
×
1255
        Objects.equals(this.diners, paymentMethod.diners) &&
×
1256
        Objects.equals(this.discover, paymentMethod.discover) &&
×
1257
        Objects.equals(this.eftposAustralia, paymentMethod.eftposAustralia) &&
×
1258
        Objects.equals(this.enabled, paymentMethod.enabled) &&
×
1259
        Objects.equals(this.giroPay, paymentMethod.giroPay) &&
×
1260
        Objects.equals(this.girocard, paymentMethod.girocard) &&
×
1261
        Objects.equals(this.googlePay, paymentMethod.googlePay) &&
×
1262
        Objects.equals(this.id, paymentMethod.id) &&
×
1263
        Objects.equals(this.ideal, paymentMethod.ideal) &&
×
1264
        Objects.equals(this.interacCard, paymentMethod.interacCard) &&
×
1265
        Objects.equals(this.jcb, paymentMethod.jcb) &&
×
1266
        Objects.equals(this.klarna, paymentMethod.klarna) &&
×
1267
        Objects.equals(this.maestro, paymentMethod.maestro) &&
×
1268
        Objects.equals(this.mc, paymentMethod.mc) &&
×
1269
        Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) &&
×
1270
        Objects.equals(this.paypal, paymentMethod.paypal) &&
×
1271
        Objects.equals(this.reference, paymentMethod.reference) &&
×
1272
        Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) &&
×
1273
        Objects.equals(this.sofort, paymentMethod.sofort) &&
×
1274
        Objects.equals(this.storeIds, paymentMethod.storeIds) &&
×
1275
        Objects.equals(this.swish, paymentMethod.swish) &&
×
1276
        Objects.equals(this.twint, paymentMethod.twint) &&
×
1277
        Objects.equals(this.type, paymentMethod.type) &&
×
1278
        Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) &&
×
1279
        Objects.equals(this.vipps, paymentMethod.vipps) &&
×
1280
        Objects.equals(this.visa, paymentMethod.visa);
×
1281
  }
1282

1283
  @Override
1284
  public int hashCode() {
NEW
1285
    return Objects.hash(afterpayTouch, allowed, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, enabled, giroPay, girocard, googlePay, id, ideal, interacCard, jcb, klarna, maestro, mc, mealVoucherFR, paypal, reference, shopperInteraction, sofort, storeIds, swish, twint, type, verificationStatus, vipps, visa);
×
1286
  }
1287

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

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

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

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