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

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

23 Oct 2023 11:17AM UTC coverage: 12.828%. First build
#2732

push

web-flow
Merge c1e36748c into b98d01a7e

2569 of 2569 new or added lines in 108 files covered. (100.0%)

12356 of 96323 relevant lines covered (12.83%)

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.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_IDS,
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_IDS = "storeIds";
182
  private List<String> storeIds = null;
×
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 storeIds(List<String> storeIds) {
1019
    this.storeIds = storeIds;
×
1020
    return this;
×
1021
  }
1022

1023
  public PaymentMethod addStoreIdsItem(String storeIdsItem) {
1024
    if (this.storeIds == null) {
×
1025
      this.storeIds = new ArrayList<>();
×
1026
    }
1027
    this.storeIds.add(storeIdsItem);
×
1028
    return this;
×
1029
  }
1030

1031
   /**
1032
   * The unique identifier of the store for which to configure the payment method, if any.
1033
   * @return storeIds
1034
  **/
1035
  @ApiModelProperty(value = "The unique identifier of the store for which to configure the payment method, if any.")
1036
  @JsonProperty(JSON_PROPERTY_STORE_IDS)
1037
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1038

1039
  public List<String> getStoreIds() {
1040
    return storeIds;
×
1041
  }
1042

1043

1044
  @JsonProperty(JSON_PROPERTY_STORE_IDS)
1045
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1046
  public void setStoreIds(List<String> storeIds) {
1047
    this.storeIds = storeIds;
×
1048
  }
×
1049

1050

1051
  public PaymentMethod swish(SwishInfo swish) {
1052
    this.swish = swish;
×
1053
    return this;
×
1054
  }
1055

1056
   /**
1057
   * Get swish
1058
   * @return swish
1059
  **/
1060
  @ApiModelProperty(value = "")
1061
  @JsonProperty(JSON_PROPERTY_SWISH)
1062
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1063

1064
  public SwishInfo getSwish() {
1065
    return swish;
×
1066
  }
1067

1068

1069
  @JsonProperty(JSON_PROPERTY_SWISH)
1070
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1071
  public void setSwish(SwishInfo swish) {
1072
    this.swish = swish;
×
1073
  }
×
1074

1075

1076
  public PaymentMethod twint(TwintInfo twint) {
1077
    this.twint = twint;
×
1078
    return this;
×
1079
  }
1080

1081
   /**
1082
   * Get twint
1083
   * @return twint
1084
  **/
1085
  @ApiModelProperty(value = "")
1086
  @JsonProperty(JSON_PROPERTY_TWINT)
1087
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1088

1089
  public TwintInfo getTwint() {
1090
    return twint;
×
1091
  }
1092

1093

1094
  @JsonProperty(JSON_PROPERTY_TWINT)
1095
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1096
  public void setTwint(TwintInfo twint) {
1097
    this.twint = twint;
×
1098
  }
×
1099

1100

1101
  public PaymentMethod type(String type) {
1102
    this.type = type;
×
1103
    return this;
×
1104
  }
1105

1106
   /**
1107
   * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
1108
   * @return type
1109
  **/
1110
  @ApiModelProperty(value = "Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).")
1111
  @JsonProperty(JSON_PROPERTY_TYPE)
1112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1113

1114
  public String getType() {
1115
    return type;
×
1116
  }
1117

1118

1119
  @JsonProperty(JSON_PROPERTY_TYPE)
1120
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1121
  public void setType(String type) {
1122
    this.type = type;
×
1123
  }
×
1124

1125

1126
  public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatus) {
1127
    this.verificationStatus = verificationStatus;
×
1128
    return this;
×
1129
  }
1130

1131
   /**
1132
   * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**
1133
   * @return verificationStatus
1134
  **/
1135
  @ApiModelProperty(value = "Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**")
1136
  @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS)
1137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1138

1139
  public VerificationStatusEnum getVerificationStatus() {
1140
    return verificationStatus;
×
1141
  }
1142

1143

1144
  @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS)
1145
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1146
  public void setVerificationStatus(VerificationStatusEnum verificationStatus) {
1147
    this.verificationStatus = verificationStatus;
×
1148
  }
×
1149

1150

1151
  public PaymentMethod vipps(VippsInfo vipps) {
1152
    this.vipps = vipps;
×
1153
    return this;
×
1154
  }
1155

1156
   /**
1157
   * Get vipps
1158
   * @return vipps
1159
  **/
1160
  @ApiModelProperty(value = "")
1161
  @JsonProperty(JSON_PROPERTY_VIPPS)
1162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1163

1164
  public VippsInfo getVipps() {
1165
    return vipps;
×
1166
  }
1167

1168

1169
  @JsonProperty(JSON_PROPERTY_VIPPS)
1170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1171
  public void setVipps(VippsInfo vipps) {
1172
    this.vipps = vipps;
×
1173
  }
×
1174

1175

1176
  public PaymentMethod visa(GenericPmWithTdiInfo visa) {
1177
    this.visa = visa;
×
1178
    return this;
×
1179
  }
1180

1181
   /**
1182
   * Get visa
1183
   * @return visa
1184
  **/
1185
  @ApiModelProperty(value = "")
1186
  @JsonProperty(JSON_PROPERTY_VISA)
1187
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1188

1189
  public GenericPmWithTdiInfo getVisa() {
1190
    return visa;
×
1191
  }
1192

1193

1194
  @JsonProperty(JSON_PROPERTY_VISA)
1195
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1196
  public void setVisa(GenericPmWithTdiInfo visa) {
1197
    this.visa = visa;
×
1198
  }
×
1199

1200

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

1252
  @Override
1253
  public int hashCode() {
1254
    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, storeIds, swish, twint, type, verificationStatus, vipps, visa);
×
1255
  }
1256

1257
  @Override
1258
  public String toString() {
1259
    StringBuilder sb = new StringBuilder();
×
1260
    sb.append("class PaymentMethod {\n");
×
1261
    sb.append("    afterpayTouch: ").append(toIndentedString(afterpayTouch)).append("\n");
×
1262
    sb.append("    allowed: ").append(toIndentedString(allowed)).append("\n");
×
1263
    sb.append("    applePay: ").append(toIndentedString(applePay)).append("\n");
×
1264
    sb.append("    bcmc: ").append(toIndentedString(bcmc)).append("\n");
×
1265
    sb.append("    businessLineId: ").append(toIndentedString(businessLineId)).append("\n");
×
1266
    sb.append("    cartesBancaires: ").append(toIndentedString(cartesBancaires)).append("\n");
×
1267
    sb.append("    clearpay: ").append(toIndentedString(clearpay)).append("\n");
×
1268
    sb.append("    countries: ").append(toIndentedString(countries)).append("\n");
×
1269
    sb.append("    cup: ").append(toIndentedString(cup)).append("\n");
×
1270
    sb.append("    currencies: ").append(toIndentedString(currencies)).append("\n");
×
1271
    sb.append("    customRoutingFlags: ").append(toIndentedString(customRoutingFlags)).append("\n");
×
1272
    sb.append("    diners: ").append(toIndentedString(diners)).append("\n");
×
1273
    sb.append("    discover: ").append(toIndentedString(discover)).append("\n");
×
1274
    sb.append("    eftposAustralia: ").append(toIndentedString(eftposAustralia)).append("\n");
×
1275
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
×
1276
    sb.append("    giroPay: ").append(toIndentedString(giroPay)).append("\n");
×
1277
    sb.append("    girocard: ").append(toIndentedString(girocard)).append("\n");
×
1278
    sb.append("    googlePay: ").append(toIndentedString(googlePay)).append("\n");
×
1279
    sb.append("    id: ").append(toIndentedString(id)).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("    storeIds: ").append(toIndentedString(storeIds)).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("    verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n");
×
1296
    sb.append("    vipps: ").append(toIndentedString(vipps)).append("\n");
×
1297
    sb.append("    visa: ").append(toIndentedString(visa)).append("\n");
×
1298
    sb.append("}");
×
1299
    return sb.toString();
×
1300
  }
1301

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

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

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