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

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

94
  public static final String JSON_PROPERTY_ALLOWED = "allowed";
95
  private Boolean allowed;
96

97
  public static final String JSON_PROPERTY_APPLE_PAY = "applePay";
98
  private ApplePayInfo applePay;
99

100
  public static final String JSON_PROPERTY_BCMC = "bcmc";
101
  private BcmcInfo bcmc;
102

103
  public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId";
104
  private String businessLineId;
105

106
  public static final String JSON_PROPERTY_CARTES_BANCAIRES = "cartesBancaires";
107
  private CartesBancairesInfo cartesBancaires;
108

109
  public static final String JSON_PROPERTY_CLEARPAY = "clearpay";
110
  private ClearpayInfo clearpay;
111

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

115
  public static final String JSON_PROPERTY_CUP = "cup";
116
  private GenericPmWithTdiInfo cup;
117

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

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

124
  public static final String JSON_PROPERTY_DINERS = "diners";
125
  private GenericPmWithTdiInfo diners;
126

127
  public static final String JSON_PROPERTY_DISCOVER = "discover";
128
  private GenericPmWithTdiInfo discover;
129

130
  public static final String JSON_PROPERTY_EFTPOS_AUSTRALIA = "eftpos_australia";
131
  private GenericPmWithTdiInfo eftposAustralia;
132

133
  public static final String JSON_PROPERTY_ENABLED = "enabled";
134
  private Boolean enabled;
135

136
  public static final String JSON_PROPERTY_GIRO_PAY = "giroPay";
137
  private GiroPayInfo giroPay;
138

139
  public static final String JSON_PROPERTY_GIROCARD = "girocard";
140
  private GenericPmWithTdiInfo girocard;
141

142
  public static final String JSON_PROPERTY_GOOGLE_PAY = "googlePay";
143
  private GooglePayInfo googlePay;
144

145
  public static final String JSON_PROPERTY_ID = "id";
146
  private String id;
147

148
  public static final String JSON_PROPERTY_IDEAL = "ideal";
149
  private GenericPmWithTdiInfo ideal;
150

151
  public static final String JSON_PROPERTY_INTERAC_CARD = "interac_card";
152
  private GenericPmWithTdiInfo interacCard;
153

154
  public static final String JSON_PROPERTY_JCB = "jcb";
155
  private GenericPmWithTdiInfo jcb;
156

157
  public static final String JSON_PROPERTY_KLARNA = "klarna";
158
  private KlarnaInfo klarna;
159

160
  public static final String JSON_PROPERTY_MAESTRO = "maestro";
161
  private GenericPmWithTdiInfo maestro;
162

163
  public static final String JSON_PROPERTY_MC = "mc";
164
  private GenericPmWithTdiInfo mc;
165

166
  public static final String JSON_PROPERTY_MEAL_VOUCHER_F_R = "mealVoucher_FR";
167
  private MealVoucherFRInfo mealVoucherFR;
168

169
  public static final String JSON_PROPERTY_PAYPAL = "paypal";
170
  private PayPalInfo paypal;
171

172
  public static final String JSON_PROPERTY_REFERENCE = "reference";
173
  private String reference;
174

175
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
176
  private String shopperInteraction;
177

178
  public static final String JSON_PROPERTY_SOFORT = "sofort";
179
  private SofortInfo sofort;
180

181
  public static final String JSON_PROPERTY_STORE_ID = "storeId";
182
  private String storeId;
183

184
  public static final String JSON_PROPERTY_SWISH = "swish";
185
  private SwishInfo swish;
186

187
  public static final String JSON_PROPERTY_TWINT = "twint";
188
  private TwintInfo twint;
189

190
  public static final String JSON_PROPERTY_TYPE = "type";
191
  private String type;
192

193
  /**
194
   * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
195
   */
196
  public enum VerificationStatusEnum {
×
197
    VALID("valid"),
×
198
    
199
    PENDING("pending"),
×
200
    
201
    INVALID("invalid"),
×
202
    
203
    REJECTED("rejected");
×
204

205
    private String value;
206

207
    VerificationStatusEnum(String value) {
×
208
      this.value = value;
×
209
    }
×
210

211
    @JsonValue
212
    public String getValue() {
213
      return value;
×
214
    }
215

216
    @Override
217
    public String toString() {
218
      return String.valueOf(value);
×
219
    }
220

221
    @JsonCreator
222
    public static VerificationStatusEnum fromValue(String value) {
223
      for (VerificationStatusEnum b : VerificationStatusEnum.values()) {
×
224
        if (b.value.equals(value)) {
×
225
          return b;
×
226
        }
227
      }
228
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
229
    }
230
  }
231

232
  public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus";
233
  private VerificationStatusEnum verificationStatus;
234

235
  public static final String JSON_PROPERTY_VIPPS = "vipps";
236
  private VippsInfo vipps;
237

238
  public static final String JSON_PROPERTY_VISA = "visa";
239
  private GenericPmWithTdiInfo visa;
240

241
  public PaymentMethod() { 
×
242
  }
×
243

244
  public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) {
245
    this.afterpayTouch = afterpayTouch;
×
246
    return this;
×
247
  }
248

249
   /**
250
   * Get afterpayTouch
251
   * @return afterpayTouch
252
  **/
253
  @ApiModelProperty(value = "")
254
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256

257
  public AfterpayTouchInfo getAfterpayTouch() {
258
    return afterpayTouch;
×
259
  }
260

261

262
  @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH)
263
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
264
  public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) {
265
    this.afterpayTouch = afterpayTouch;
×
266
  }
×
267

268

269
  public PaymentMethod allowed(Boolean allowed) {
270
    this.allowed = allowed;
×
271
    return this;
×
272
  }
273

274
   /**
275
   * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.
276
   * @return allowed
277
  **/
278
  @ApiModelProperty(value = "Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.")
279
  @JsonProperty(JSON_PROPERTY_ALLOWED)
280
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281

282
  public Boolean getAllowed() {
283
    return allowed;
×
284
  }
285

286

287
  @JsonProperty(JSON_PROPERTY_ALLOWED)
288
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
289
  public void setAllowed(Boolean allowed) {
290
    this.allowed = allowed;
×
291
  }
×
292

293

294
  public PaymentMethod applePay(ApplePayInfo applePay) {
295
    this.applePay = applePay;
×
296
    return this;
×
297
  }
298

299
   /**
300
   * Get applePay
301
   * @return applePay
302
  **/
303
  @ApiModelProperty(value = "")
304
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
305
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
306

307
  public ApplePayInfo getApplePay() {
308
    return applePay;
×
309
  }
310

311

312
  @JsonProperty(JSON_PROPERTY_APPLE_PAY)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314
  public void setApplePay(ApplePayInfo applePay) {
315
    this.applePay = applePay;
×
316
  }
×
317

318

319
  public PaymentMethod bcmc(BcmcInfo bcmc) {
320
    this.bcmc = bcmc;
×
321
    return this;
×
322
  }
323

324
   /**
325
   * Get bcmc
326
   * @return bcmc
327
  **/
328
  @ApiModelProperty(value = "")
329
  @JsonProperty(JSON_PROPERTY_BCMC)
330
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
331

332
  public BcmcInfo getBcmc() {
333
    return bcmc;
×
334
  }
335

336

337
  @JsonProperty(JSON_PROPERTY_BCMC)
338
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
339
  public void setBcmc(BcmcInfo bcmc) {
340
    this.bcmc = bcmc;
×
341
  }
×
342

343

344
  public PaymentMethod businessLineId(String businessLineId) {
345
    this.businessLineId = businessLineId;
×
346
    return this;
×
347
  }
348

349
   /**
350
   * The unique identifier of the business line.
351
   * @return businessLineId
352
  **/
353
  @ApiModelProperty(value = "The unique identifier of the business line.")
354
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
355
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
356

357
  public String getBusinessLineId() {
358
    return businessLineId;
×
359
  }
360

361

362
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
363
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
364
  public void setBusinessLineId(String businessLineId) {
365
    this.businessLineId = businessLineId;
×
366
  }
×
367

368

369
  public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires) {
370
    this.cartesBancaires = cartesBancaires;
×
371
    return this;
×
372
  }
373

374
   /**
375
   * Get cartesBancaires
376
   * @return cartesBancaires
377
  **/
378
  @ApiModelProperty(value = "")
379
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
380
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
381

382
  public CartesBancairesInfo getCartesBancaires() {
383
    return cartesBancaires;
×
384
  }
385

386

387
  @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES)
388
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
389
  public void setCartesBancaires(CartesBancairesInfo cartesBancaires) {
390
    this.cartesBancaires = cartesBancaires;
×
391
  }
×
392

393

394
  public PaymentMethod clearpay(ClearpayInfo clearpay) {
395
    this.clearpay = clearpay;
×
396
    return this;
×
397
  }
398

399
   /**
400
   * Get clearpay
401
   * @return clearpay
402
  **/
403
  @ApiModelProperty(value = "")
404
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
405
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
406

407
  public ClearpayInfo getClearpay() {
408
    return clearpay;
×
409
  }
410

411

412
  @JsonProperty(JSON_PROPERTY_CLEARPAY)
413
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
414
  public void setClearpay(ClearpayInfo clearpay) {
415
    this.clearpay = clearpay;
×
416
  }
×
417

418

419
  public PaymentMethod countries(List<String> countries) {
420
    this.countries = countries;
×
421
    return this;
×
422
  }
423

424
  public PaymentMethod addCountriesItem(String countriesItem) {
425
    if (this.countries == null) {
×
426
      this.countries = new ArrayList<>();
×
427
    }
428
    this.countries.add(countriesItem);
×
429
    return this;
×
430
  }
431

432
   /**
433
   * The list of countries where a payment method is available. By default, all countries supported by the payment method.
434
   * @return countries
435
  **/
436
  @ApiModelProperty(value = "The list of countries where a payment method is available. By default, all countries supported by the payment method.")
437
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
438
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
439

440
  public List<String> getCountries() {
441
    return countries;
×
442
  }
443

444

445
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
446
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
447
  public void setCountries(List<String> countries) {
448
    this.countries = countries;
×
449
  }
×
450

451

452
  public PaymentMethod cup(GenericPmWithTdiInfo cup) {
453
    this.cup = cup;
×
454
    return this;
×
455
  }
456

457
   /**
458
   * Get cup
459
   * @return cup
460
  **/
461
  @ApiModelProperty(value = "")
462
  @JsonProperty(JSON_PROPERTY_CUP)
463
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
464

465
  public GenericPmWithTdiInfo getCup() {
466
    return cup;
×
467
  }
468

469

470
  @JsonProperty(JSON_PROPERTY_CUP)
471
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
472
  public void setCup(GenericPmWithTdiInfo cup) {
473
    this.cup = cup;
×
474
  }
×
475

476

477
  public PaymentMethod currencies(List<String> currencies) {
478
    this.currencies = currencies;
×
479
    return this;
×
480
  }
481

482
  public PaymentMethod addCurrenciesItem(String currenciesItem) {
483
    if (this.currencies == null) {
×
484
      this.currencies = new ArrayList<>();
×
485
    }
486
    this.currencies.add(currenciesItem);
×
487
    return this;
×
488
  }
489

490
   /**
491
   * The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
492
   * @return currencies
493
  **/
494
  @ApiModelProperty(value = "The list of currencies that a payment method supports. By default, all currencies supported by the payment method.")
495
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
496
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
497

498
  public List<String> getCurrencies() {
499
    return currencies;
×
500
  }
501

502

503
  @JsonProperty(JSON_PROPERTY_CURRENCIES)
504
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
505
  public void setCurrencies(List<String> currencies) {
506
    this.currencies = currencies;
×
507
  }
×
508

509

510
  public PaymentMethod customRoutingFlags(List<String> customRoutingFlags) {
511
    this.customRoutingFlags = customRoutingFlags;
×
512
    return this;
×
513
  }
514

515
  public PaymentMethod addCustomRoutingFlagsItem(String customRoutingFlagsItem) {
516
    if (this.customRoutingFlags == null) {
×
517
      this.customRoutingFlags = new ArrayList<>();
×
518
    }
519
    this.customRoutingFlags.add(customRoutingFlagsItem);
×
520
    return this;
×
521
  }
522

523
   /**
524
   * The list of custom routing flags to route payment to the intended acquirer.
525
   * @return customRoutingFlags
526
  **/
527
  @ApiModelProperty(value = "The list of custom routing flags to route payment to the intended acquirer.")
528
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
529
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
530

531
  public List<String> getCustomRoutingFlags() {
532
    return customRoutingFlags;
×
533
  }
534

535

536
  @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS)
537
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
538
  public void setCustomRoutingFlags(List<String> customRoutingFlags) {
539
    this.customRoutingFlags = customRoutingFlags;
×
540
  }
×
541

542

543
  public PaymentMethod diners(GenericPmWithTdiInfo diners) {
544
    this.diners = diners;
×
545
    return this;
×
546
  }
547

548
   /**
549
   * Get diners
550
   * @return diners
551
  **/
552
  @ApiModelProperty(value = "")
553
  @JsonProperty(JSON_PROPERTY_DINERS)
554
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
555

556
  public GenericPmWithTdiInfo getDiners() {
557
    return diners;
×
558
  }
559

560

561
  @JsonProperty(JSON_PROPERTY_DINERS)
562
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
563
  public void setDiners(GenericPmWithTdiInfo diners) {
564
    this.diners = diners;
×
565
  }
×
566

567

568
  public PaymentMethod discover(GenericPmWithTdiInfo discover) {
569
    this.discover = discover;
×
570
    return this;
×
571
  }
572

573
   /**
574
   * Get discover
575
   * @return discover
576
  **/
577
  @ApiModelProperty(value = "")
578
  @JsonProperty(JSON_PROPERTY_DISCOVER)
579
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
580

581
  public GenericPmWithTdiInfo getDiscover() {
582
    return discover;
×
583
  }
584

585

586
  @JsonProperty(JSON_PROPERTY_DISCOVER)
587
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
588
  public void setDiscover(GenericPmWithTdiInfo discover) {
589
    this.discover = discover;
×
590
  }
×
591

592

593
  public PaymentMethod eftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
594
    this.eftposAustralia = eftposAustralia;
×
595
    return this;
×
596
  }
597

598
   /**
599
   * Get eftposAustralia
600
   * @return eftposAustralia
601
  **/
602
  @ApiModelProperty(value = "")
603
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
604
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
605

606
  public GenericPmWithTdiInfo getEftposAustralia() {
607
    return eftposAustralia;
×
608
  }
609

610

611
  @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA)
612
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
613
  public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) {
614
    this.eftposAustralia = eftposAustralia;
×
615
  }
×
616

617

618
  public PaymentMethod enabled(Boolean enabled) {
619
    this.enabled = enabled;
×
620
    return this;
×
621
  }
622

623
   /**
624
   * Indicates whether the payment method is enabled (**true**) or disabled (**false**).
625
   * @return enabled
626
  **/
627
  @ApiModelProperty(value = "Indicates whether the payment method is enabled (**true**) or disabled (**false**).")
628
  @JsonProperty(JSON_PROPERTY_ENABLED)
629
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
630

631
  public Boolean getEnabled() {
632
    return enabled;
×
633
  }
634

635

636
  @JsonProperty(JSON_PROPERTY_ENABLED)
637
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
638
  public void setEnabled(Boolean enabled) {
639
    this.enabled = enabled;
×
640
  }
×
641

642

643
  public PaymentMethod giroPay(GiroPayInfo giroPay) {
644
    this.giroPay = giroPay;
×
645
    return this;
×
646
  }
647

648
   /**
649
   * Get giroPay
650
   * @return giroPay
651
  **/
652
  @ApiModelProperty(value = "")
653
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
654
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
655

656
  public GiroPayInfo getGiroPay() {
657
    return giroPay;
×
658
  }
659

660

661
  @JsonProperty(JSON_PROPERTY_GIRO_PAY)
662
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
663
  public void setGiroPay(GiroPayInfo giroPay) {
664
    this.giroPay = giroPay;
×
665
  }
×
666

667

668
  public PaymentMethod girocard(GenericPmWithTdiInfo girocard) {
669
    this.girocard = girocard;
×
670
    return this;
×
671
  }
672

673
   /**
674
   * Get girocard
675
   * @return girocard
676
  **/
677
  @ApiModelProperty(value = "")
678
  @JsonProperty(JSON_PROPERTY_GIROCARD)
679
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
680

681
  public GenericPmWithTdiInfo getGirocard() {
682
    return girocard;
×
683
  }
684

685

686
  @JsonProperty(JSON_PROPERTY_GIROCARD)
687
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
688
  public void setGirocard(GenericPmWithTdiInfo girocard) {
689
    this.girocard = girocard;
×
690
  }
×
691

692

693
  public PaymentMethod googlePay(GooglePayInfo googlePay) {
694
    this.googlePay = googlePay;
×
695
    return this;
×
696
  }
697

698
   /**
699
   * Get googlePay
700
   * @return googlePay
701
  **/
702
  @ApiModelProperty(value = "")
703
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
704
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
705

706
  public GooglePayInfo getGooglePay() {
707
    return googlePay;
×
708
  }
709

710

711
  @JsonProperty(JSON_PROPERTY_GOOGLE_PAY)
712
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
713
  public void setGooglePay(GooglePayInfo googlePay) {
714
    this.googlePay = googlePay;
×
715
  }
×
716

717

718
  public PaymentMethod id(String id) {
719
    this.id = id;
×
720
    return this;
×
721
  }
722

723
   /**
724
   * The identifier of the resource.
725
   * @return id
726
  **/
727
  @ApiModelProperty(required = true, value = "The identifier of the resource.")
728
  @JsonProperty(JSON_PROPERTY_ID)
729
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
730

731
  public String getId() {
732
    return id;
×
733
  }
734

735

736
  @JsonProperty(JSON_PROPERTY_ID)
737
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
738
  public void setId(String id) {
739
    this.id = id;
×
740
  }
×
741

742

743
  public PaymentMethod ideal(GenericPmWithTdiInfo ideal) {
744
    this.ideal = ideal;
×
745
    return this;
×
746
  }
747

748
   /**
749
   * Get ideal
750
   * @return ideal
751
  **/
752
  @ApiModelProperty(value = "")
753
  @JsonProperty(JSON_PROPERTY_IDEAL)
754
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
755

756
  public GenericPmWithTdiInfo getIdeal() {
757
    return ideal;
×
758
  }
759

760

761
  @JsonProperty(JSON_PROPERTY_IDEAL)
762
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
763
  public void setIdeal(GenericPmWithTdiInfo ideal) {
764
    this.ideal = ideal;
×
765
  }
×
766

767

768
  public PaymentMethod interacCard(GenericPmWithTdiInfo interacCard) {
769
    this.interacCard = interacCard;
×
770
    return this;
×
771
  }
772

773
   /**
774
   * Get interacCard
775
   * @return interacCard
776
  **/
777
  @ApiModelProperty(value = "")
778
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
779
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
780

781
  public GenericPmWithTdiInfo getInteracCard() {
782
    return interacCard;
×
783
  }
784

785

786
  @JsonProperty(JSON_PROPERTY_INTERAC_CARD)
787
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
788
  public void setInteracCard(GenericPmWithTdiInfo interacCard) {
789
    this.interacCard = interacCard;
×
790
  }
×
791

792

793
  public PaymentMethod jcb(GenericPmWithTdiInfo jcb) {
794
    this.jcb = jcb;
×
795
    return this;
×
796
  }
797

798
   /**
799
   * Get jcb
800
   * @return jcb
801
  **/
802
  @ApiModelProperty(value = "")
803
  @JsonProperty(JSON_PROPERTY_JCB)
804
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
805

806
  public GenericPmWithTdiInfo getJcb() {
807
    return jcb;
×
808
  }
809

810

811
  @JsonProperty(JSON_PROPERTY_JCB)
812
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
813
  public void setJcb(GenericPmWithTdiInfo jcb) {
814
    this.jcb = jcb;
×
815
  }
×
816

817

818
  public PaymentMethod klarna(KlarnaInfo klarna) {
819
    this.klarna = klarna;
×
820
    return this;
×
821
  }
822

823
   /**
824
   * Get klarna
825
   * @return klarna
826
  **/
827
  @ApiModelProperty(value = "")
828
  @JsonProperty(JSON_PROPERTY_KLARNA)
829
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
830

831
  public KlarnaInfo getKlarna() {
832
    return klarna;
×
833
  }
834

835

836
  @JsonProperty(JSON_PROPERTY_KLARNA)
837
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
838
  public void setKlarna(KlarnaInfo klarna) {
839
    this.klarna = klarna;
×
840
  }
×
841

842

843
  public PaymentMethod maestro(GenericPmWithTdiInfo maestro) {
844
    this.maestro = maestro;
×
845
    return this;
×
846
  }
847

848
   /**
849
   * Get maestro
850
   * @return maestro
851
  **/
852
  @ApiModelProperty(value = "")
853
  @JsonProperty(JSON_PROPERTY_MAESTRO)
854
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
855

856
  public GenericPmWithTdiInfo getMaestro() {
857
    return maestro;
×
858
  }
859

860

861
  @JsonProperty(JSON_PROPERTY_MAESTRO)
862
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
863
  public void setMaestro(GenericPmWithTdiInfo maestro) {
864
    this.maestro = maestro;
×
865
  }
×
866

867

868
  public PaymentMethod mc(GenericPmWithTdiInfo mc) {
869
    this.mc = mc;
×
870
    return this;
×
871
  }
872

873
   /**
874
   * Get mc
875
   * @return mc
876
  **/
877
  @ApiModelProperty(value = "")
878
  @JsonProperty(JSON_PROPERTY_MC)
879
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
880

881
  public GenericPmWithTdiInfo getMc() {
882
    return mc;
×
883
  }
884

885

886
  @JsonProperty(JSON_PROPERTY_MC)
887
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
888
  public void setMc(GenericPmWithTdiInfo mc) {
889
    this.mc = mc;
×
890
  }
×
891

892

893
  public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
894
    this.mealVoucherFR = mealVoucherFR;
×
895
    return this;
×
896
  }
897

898
   /**
899
   * Get mealVoucherFR
900
   * @return mealVoucherFR
901
  **/
902
  @ApiModelProperty(value = "")
903
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
904
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
905

906
  public MealVoucherFRInfo getMealVoucherFR() {
907
    return mealVoucherFR;
×
908
  }
909

910

911
  @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R)
912
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
913
  public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) {
914
    this.mealVoucherFR = mealVoucherFR;
×
915
  }
×
916

917

918
  public PaymentMethod paypal(PayPalInfo paypal) {
919
    this.paypal = paypal;
×
920
    return this;
×
921
  }
922

923
   /**
924
   * Get paypal
925
   * @return paypal
926
  **/
927
  @ApiModelProperty(value = "")
928
  @JsonProperty(JSON_PROPERTY_PAYPAL)
929
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
930

931
  public PayPalInfo getPaypal() {
932
    return paypal;
×
933
  }
934

935

936
  @JsonProperty(JSON_PROPERTY_PAYPAL)
937
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
938
  public void setPaypal(PayPalInfo paypal) {
939
    this.paypal = paypal;
×
940
  }
×
941

942

943
  public PaymentMethod reference(String reference) {
944
    this.reference = reference;
×
945
    return this;
×
946
  }
947

948
   /**
949
   * Your reference for the payment method. Supported characters a-z, A-Z, 0-9.
950
   * @return reference
951
  **/
952
  @ApiModelProperty(value = "Your reference for the payment method. Supported characters a-z, A-Z, 0-9.")
953
  @JsonProperty(JSON_PROPERTY_REFERENCE)
954
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
955

956
  public String getReference() {
957
    return reference;
×
958
  }
959

960

961
  @JsonProperty(JSON_PROPERTY_REFERENCE)
962
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
963
  public void setReference(String reference) {
964
    this.reference = reference;
×
965
  }
×
966

967

968
  public PaymentMethod shopperInteraction(String shopperInteraction) {
969
    this.shopperInteraction = shopperInteraction;
×
970
    return this;
×
971
  }
972

973
   /**
974
   * The sales channel.
975
   * @return shopperInteraction
976
  **/
977
  @ApiModelProperty(value = "The sales channel.")
978
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
979
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
980

981
  public String getShopperInteraction() {
982
    return shopperInteraction;
×
983
  }
984

985

986
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
987
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
988
  public void setShopperInteraction(String shopperInteraction) {
989
    this.shopperInteraction = shopperInteraction;
×
990
  }
×
991

992

993
  public PaymentMethod sofort(SofortInfo sofort) {
994
    this.sofort = sofort;
×
995
    return this;
×
996
  }
997

998
   /**
999
   * Get sofort
1000
   * @return sofort
1001
  **/
1002
  @ApiModelProperty(value = "")
1003
  @JsonProperty(JSON_PROPERTY_SOFORT)
1004
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1005

1006
  public SofortInfo getSofort() {
1007
    return sofort;
×
1008
  }
1009

1010

1011
  @JsonProperty(JSON_PROPERTY_SOFORT)
1012
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1013
  public void setSofort(SofortInfo sofort) {
1014
    this.sofort = sofort;
×
1015
  }
×
1016

1017

1018
  public PaymentMethod storeId(String storeId) {
1019
    this.storeId = storeId;
×
1020
    return this;
×
1021
  }
1022

1023
   /**
1024
   * The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.
1025
   * @return storeId
1026
  **/
1027
  @ApiModelProperty(value = "The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.")
1028
  @JsonProperty(JSON_PROPERTY_STORE_ID)
1029
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1030

1031
  public String getStoreId() {
1032
    return storeId;
×
1033
  }
1034

1035

1036
  @JsonProperty(JSON_PROPERTY_STORE_ID)
1037
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1038
  public void setStoreId(String storeId) {
1039
    this.storeId = storeId;
×
1040
  }
×
1041

1042

1043
  public PaymentMethod swish(SwishInfo swish) {
1044
    this.swish = swish;
×
1045
    return this;
×
1046
  }
1047

1048
   /**
1049
   * Get swish
1050
   * @return swish
1051
  **/
1052
  @ApiModelProperty(value = "")
1053
  @JsonProperty(JSON_PROPERTY_SWISH)
1054
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1055

1056
  public SwishInfo getSwish() {
1057
    return swish;
×
1058
  }
1059

1060

1061
  @JsonProperty(JSON_PROPERTY_SWISH)
1062
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1063
  public void setSwish(SwishInfo swish) {
1064
    this.swish = swish;
×
1065
  }
×
1066

1067

1068
  public PaymentMethod twint(TwintInfo twint) {
1069
    this.twint = twint;
×
1070
    return this;
×
1071
  }
1072

1073
   /**
1074
   * Get twint
1075
   * @return twint
1076
  **/
1077
  @ApiModelProperty(value = "")
1078
  @JsonProperty(JSON_PROPERTY_TWINT)
1079
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1080

1081
  public TwintInfo getTwint() {
1082
    return twint;
×
1083
  }
1084

1085

1086
  @JsonProperty(JSON_PROPERTY_TWINT)
1087
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1088
  public void setTwint(TwintInfo twint) {
1089
    this.twint = twint;
×
1090
  }
×
1091

1092

1093
  public PaymentMethod type(String type) {
1094
    this.type = type;
×
1095
    return this;
×
1096
  }
1097

1098
   /**
1099
   * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
1100
   * @return type
1101
  **/
1102
  @ApiModelProperty(value = "Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).")
1103
  @JsonProperty(JSON_PROPERTY_TYPE)
1104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1105

1106
  public String getType() {
1107
    return type;
×
1108
  }
1109

1110

1111
  @JsonProperty(JSON_PROPERTY_TYPE)
1112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1113
  public void setType(String type) {
1114
    this.type = type;
×
1115
  }
×
1116

1117

1118
  public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatus) {
1119
    this.verificationStatus = verificationStatus;
×
1120
    return this;
×
1121
  }
1122

1123
   /**
1124
   * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
1125
   * @return verificationStatus
1126
  **/
1127
  @ApiModelProperty(value = "Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**")
1128
  @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS)
1129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1130

1131
  public VerificationStatusEnum getVerificationStatus() {
1132
    return verificationStatus;
×
1133
  }
1134

1135

1136
  @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS)
1137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1138
  public void setVerificationStatus(VerificationStatusEnum verificationStatus) {
1139
    this.verificationStatus = verificationStatus;
×
1140
  }
×
1141

1142

1143
  public PaymentMethod vipps(VippsInfo vipps) {
1144
    this.vipps = vipps;
×
1145
    return this;
×
1146
  }
1147

1148
   /**
1149
   * Get vipps
1150
   * @return vipps
1151
  **/
1152
  @ApiModelProperty(value = "")
1153
  @JsonProperty(JSON_PROPERTY_VIPPS)
1154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1155

1156
  public VippsInfo getVipps() {
1157
    return vipps;
×
1158
  }
1159

1160

1161
  @JsonProperty(JSON_PROPERTY_VIPPS)
1162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1163
  public void setVipps(VippsInfo vipps) {
1164
    this.vipps = vipps;
×
1165
  }
×
1166

1167

1168
  public PaymentMethod visa(GenericPmWithTdiInfo visa) {
1169
    this.visa = visa;
×
1170
    return this;
×
1171
  }
1172

1173
   /**
1174
   * Get visa
1175
   * @return visa
1176
  **/
1177
  @ApiModelProperty(value = "")
1178
  @JsonProperty(JSON_PROPERTY_VISA)
1179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1180

1181
  public GenericPmWithTdiInfo getVisa() {
1182
    return visa;
×
1183
  }
1184

1185

1186
  @JsonProperty(JSON_PROPERTY_VISA)
1187
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1188
  public void setVisa(GenericPmWithTdiInfo visa) {
1189
    this.visa = visa;
×
1190
  }
×
1191

1192

1193
  /**
1194
   * Return true if this PaymentMethod object is equal to o.
1195
   */
1196
  @Override
1197
  public boolean equals(Object o) {
1198
    if (this == o) {
×
1199
      return true;
×
1200
    }
1201
    if (o == null || getClass() != o.getClass()) {
×
1202
      return false;
×
1203
    }
1204
    PaymentMethod paymentMethod = (PaymentMethod) o;
×
1205
    return Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) &&
×
1206
        Objects.equals(this.allowed, paymentMethod.allowed) &&
×
1207
        Objects.equals(this.applePay, paymentMethod.applePay) &&
×
1208
        Objects.equals(this.bcmc, paymentMethod.bcmc) &&
×
1209
        Objects.equals(this.businessLineId, paymentMethod.businessLineId) &&
×
1210
        Objects.equals(this.cartesBancaires, paymentMethod.cartesBancaires) &&
×
1211
        Objects.equals(this.clearpay, paymentMethod.clearpay) &&
×
1212
        Objects.equals(this.countries, paymentMethod.countries) &&
×
1213
        Objects.equals(this.cup, paymentMethod.cup) &&
×
1214
        Objects.equals(this.currencies, paymentMethod.currencies) &&
×
1215
        Objects.equals(this.customRoutingFlags, paymentMethod.customRoutingFlags) &&
×
1216
        Objects.equals(this.diners, paymentMethod.diners) &&
×
1217
        Objects.equals(this.discover, paymentMethod.discover) &&
×
1218
        Objects.equals(this.eftposAustralia, paymentMethod.eftposAustralia) &&
×
1219
        Objects.equals(this.enabled, paymentMethod.enabled) &&
×
1220
        Objects.equals(this.giroPay, paymentMethod.giroPay) &&
×
1221
        Objects.equals(this.girocard, paymentMethod.girocard) &&
×
1222
        Objects.equals(this.googlePay, paymentMethod.googlePay) &&
×
1223
        Objects.equals(this.id, paymentMethod.id) &&
×
1224
        Objects.equals(this.ideal, paymentMethod.ideal) &&
×
1225
        Objects.equals(this.interacCard, paymentMethod.interacCard) &&
×
1226
        Objects.equals(this.jcb, paymentMethod.jcb) &&
×
1227
        Objects.equals(this.klarna, paymentMethod.klarna) &&
×
1228
        Objects.equals(this.maestro, paymentMethod.maestro) &&
×
1229
        Objects.equals(this.mc, paymentMethod.mc) &&
×
1230
        Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) &&
×
1231
        Objects.equals(this.paypal, paymentMethod.paypal) &&
×
1232
        Objects.equals(this.reference, paymentMethod.reference) &&
×
1233
        Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) &&
×
1234
        Objects.equals(this.sofort, paymentMethod.sofort) &&
×
1235
        Objects.equals(this.storeId, paymentMethod.storeId) &&
×
1236
        Objects.equals(this.swish, paymentMethod.swish) &&
×
1237
        Objects.equals(this.twint, paymentMethod.twint) &&
×
1238
        Objects.equals(this.type, paymentMethod.type) &&
×
1239
        Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) &&
×
1240
        Objects.equals(this.vipps, paymentMethod.vipps) &&
×
1241
        Objects.equals(this.visa, paymentMethod.visa);
×
1242
  }
1243

1244
  @Override
1245
  public int hashCode() {
1246
    return Objects.hash(afterpayTouch, allowed, 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, storeId, swish, twint, type, verificationStatus, vipps, visa);
×
1247
  }
1248

1249
  @Override
1250
  public String toString() {
1251
    StringBuilder sb = new StringBuilder();
×
1252
    sb.append("class PaymentMethod {\n");
×
1253
    sb.append("    afterpayTouch: ").append(toIndentedString(afterpayTouch)).append("\n");
×
1254
    sb.append("    allowed: ").append(toIndentedString(allowed)).append("\n");
×
1255
    sb.append("    applePay: ").append(toIndentedString(applePay)).append("\n");
×
1256
    sb.append("    bcmc: ").append(toIndentedString(bcmc)).append("\n");
×
1257
    sb.append("    businessLineId: ").append(toIndentedString(businessLineId)).append("\n");
×
1258
    sb.append("    cartesBancaires: ").append(toIndentedString(cartesBancaires)).append("\n");
×
1259
    sb.append("    clearpay: ").append(toIndentedString(clearpay)).append("\n");
×
1260
    sb.append("    countries: ").append(toIndentedString(countries)).append("\n");
×
1261
    sb.append("    cup: ").append(toIndentedString(cup)).append("\n");
×
1262
    sb.append("    currencies: ").append(toIndentedString(currencies)).append("\n");
×
1263
    sb.append("    customRoutingFlags: ").append(toIndentedString(customRoutingFlags)).append("\n");
×
1264
    sb.append("    diners: ").append(toIndentedString(diners)).append("\n");
×
1265
    sb.append("    discover: ").append(toIndentedString(discover)).append("\n");
×
1266
    sb.append("    eftposAustralia: ").append(toIndentedString(eftposAustralia)).append("\n");
×
1267
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
×
1268
    sb.append("    giroPay: ").append(toIndentedString(giroPay)).append("\n");
×
1269
    sb.append("    girocard: ").append(toIndentedString(girocard)).append("\n");
×
1270
    sb.append("    googlePay: ").append(toIndentedString(googlePay)).append("\n");
×
1271
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
1272
    sb.append("    ideal: ").append(toIndentedString(ideal)).append("\n");
×
1273
    sb.append("    interacCard: ").append(toIndentedString(interacCard)).append("\n");
×
1274
    sb.append("    jcb: ").append(toIndentedString(jcb)).append("\n");
×
1275
    sb.append("    klarna: ").append(toIndentedString(klarna)).append("\n");
×
1276
    sb.append("    maestro: ").append(toIndentedString(maestro)).append("\n");
×
1277
    sb.append("    mc: ").append(toIndentedString(mc)).append("\n");
×
1278
    sb.append("    mealVoucherFR: ").append(toIndentedString(mealVoucherFR)).append("\n");
×
1279
    sb.append("    paypal: ").append(toIndentedString(paypal)).append("\n");
×
1280
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
1281
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
1282
    sb.append("    sofort: ").append(toIndentedString(sofort)).append("\n");
×
1283
    sb.append("    storeId: ").append(toIndentedString(storeId)).append("\n");
×
1284
    sb.append("    swish: ").append(toIndentedString(swish)).append("\n");
×
1285
    sb.append("    twint: ").append(toIndentedString(twint)).append("\n");
×
1286
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
1287
    sb.append("    verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n");
×
1288
    sb.append("    vipps: ").append(toIndentedString(vipps)).append("\n");
×
1289
    sb.append("    visa: ").append(toIndentedString(visa)).append("\n");
×
1290
    sb.append("}");
×
1291
    return sb.toString();
×
1292
  }
1293

1294
  /**
1295
   * Convert the given object to string with each line indented by 4 spaces
1296
   * (except the first line).
1297
   */
1298
  private String toIndentedString(Object o) {
1299
    if (o == null) {
×
1300
      return "null";
×
1301
    }
1302
    return o.toString().replace("\n", "\n    ");
×
1303
  }
1304

1305
/**
1306
   * Create an instance of PaymentMethod given an JSON string
1307
   *
1308
   * @param jsonString JSON string
1309
   * @return An instance of PaymentMethod
1310
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethod
1311
   */
1312
  public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException {
1313
    return JSON.getMapper().readValue(jsonString, PaymentMethod.class);
×
1314
  }
1315
/**
1316
  * Convert an instance of PaymentMethod to an JSON string
1317
  *
1318
  * @return JSON string
1319
  */
1320
  public String toJson() throws JsonProcessingException {
1321
    return JSON.getMapper().writeValueAsString(this);
×
1322
  }
1323
}
1324

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