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

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

08 Dec 2023 12:05PM UTC coverage: 12.838%. First build
#2905

push

web-flow
Merge caa3554a7 into ec0c20882

1 of 151 new or added lines in 12 files covered. (0.66%)

12463 of 97080 relevant lines covered (12.84%)

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/checkout/StoredPaymentMethod.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
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.checkout;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import java.util.ArrayList;
27
import java.util.List;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * StoredPaymentMethod
34
 */
35
@JsonPropertyOrder({
36
  StoredPaymentMethod.JSON_PROPERTY_BANK_ACCOUNT_NUMBER,
37
  StoredPaymentMethod.JSON_PROPERTY_BANK_LOCATION_ID,
38
  StoredPaymentMethod.JSON_PROPERTY_BRAND,
39
  StoredPaymentMethod.JSON_PROPERTY_EXPIRY_MONTH,
40
  StoredPaymentMethod.JSON_PROPERTY_EXPIRY_YEAR,
41
  StoredPaymentMethod.JSON_PROPERTY_HOLDER_NAME,
42
  StoredPaymentMethod.JSON_PROPERTY_IBAN,
43
  StoredPaymentMethod.JSON_PROPERTY_ID,
44
  StoredPaymentMethod.JSON_PROPERTY_LABEL,
45
  StoredPaymentMethod.JSON_PROPERTY_LAST_FOUR,
46
  StoredPaymentMethod.JSON_PROPERTY_NAME,
47
  StoredPaymentMethod.JSON_PROPERTY_NETWORK_TX_REFERENCE,
48
  StoredPaymentMethod.JSON_PROPERTY_OWNER_NAME,
49
  StoredPaymentMethod.JSON_PROPERTY_SHOPPER_EMAIL,
50
  StoredPaymentMethod.JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS,
51
  StoredPaymentMethod.JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS,
52
  StoredPaymentMethod.JSON_PROPERTY_TYPE
53
})
54

55
public class StoredPaymentMethod {
56
  public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber";
57
  private String bankAccountNumber;
58

59
  public static final String JSON_PROPERTY_BANK_LOCATION_ID = "bankLocationId";
60
  private String bankLocationId;
61

62
  public static final String JSON_PROPERTY_BRAND = "brand";
63
  private String brand;
64

65
  public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth";
66
  private String expiryMonth;
67

68
  public static final String JSON_PROPERTY_EXPIRY_YEAR = "expiryYear";
69
  private String expiryYear;
70

71
  public static final String JSON_PROPERTY_HOLDER_NAME = "holderName";
72
  private String holderName;
73

74
  public static final String JSON_PROPERTY_IBAN = "iban";
75
  private String iban;
76

77
  public static final String JSON_PROPERTY_ID = "id";
78
  private String id;
79

80
  public static final String JSON_PROPERTY_LABEL = "label";
81
  private String label;
82

83
  public static final String JSON_PROPERTY_LAST_FOUR = "lastFour";
84
  private String lastFour;
85

86
  public static final String JSON_PROPERTY_NAME = "name";
87
  private String name;
88

89
  public static final String JSON_PROPERTY_NETWORK_TX_REFERENCE = "networkTxReference";
90
  private String networkTxReference;
91

92
  public static final String JSON_PROPERTY_OWNER_NAME = "ownerName";
93
  private String ownerName;
94

95
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
96
  private String shopperEmail;
97

98
  public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = "supportedRecurringProcessingModels";
99
  private List<String> supportedRecurringProcessingModels = null;
×
100

101
  public static final String JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS = "supportedShopperInteractions";
102
  private List<String> supportedShopperInteractions = null;
×
103

104
  public static final String JSON_PROPERTY_TYPE = "type";
105
  private String type;
106

107
  public StoredPaymentMethod() { 
×
108
  }
×
109

110
  public StoredPaymentMethod bankAccountNumber(String bankAccountNumber) {
NEW
111
    this.bankAccountNumber = bankAccountNumber;
×
NEW
112
    return this;
×
113
  }
114

115
   /**
116
   * The bank account number (without separators).
117
   * @return bankAccountNumber
118
  **/
119
  @ApiModelProperty(value = "The bank account number (without separators).")
120
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122

123
  public String getBankAccountNumber() {
NEW
124
    return bankAccountNumber;
×
125
  }
126

127

128
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130
  public void setBankAccountNumber(String bankAccountNumber) {
NEW
131
    this.bankAccountNumber = bankAccountNumber;
×
NEW
132
  }
×
133

134

135
  public StoredPaymentMethod bankLocationId(String bankLocationId) {
NEW
136
    this.bankLocationId = bankLocationId;
×
NEW
137
    return this;
×
138
  }
139

140
   /**
141
   * The location id of the bank. The field value is &#x60;nil&#x60; in most cases.
142
   * @return bankLocationId
143
  **/
144
  @ApiModelProperty(value = "The location id of the bank. The field value is `nil` in most cases.")
145
  @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147

148
  public String getBankLocationId() {
NEW
149
    return bankLocationId;
×
150
  }
151

152

153
  @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155
  public void setBankLocationId(String bankLocationId) {
NEW
156
    this.bankLocationId = bankLocationId;
×
NEW
157
  }
×
158

159

160
  public StoredPaymentMethod brand(String brand) {
161
    this.brand = brand;
×
162
    return this;
×
163
  }
164

165
   /**
166
   * The brand of the card.
167
   * @return brand
168
  **/
169
  @ApiModelProperty(value = "The brand of the card.")
170
  @JsonProperty(JSON_PROPERTY_BRAND)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172

173
  public String getBrand() {
174
    return brand;
×
175
  }
176

177

178
  @JsonProperty(JSON_PROPERTY_BRAND)
179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180
  public void setBrand(String brand) {
181
    this.brand = brand;
×
182
  }
×
183

184

185
  public StoredPaymentMethod expiryMonth(String expiryMonth) {
186
    this.expiryMonth = expiryMonth;
×
187
    return this;
×
188
  }
189

190
   /**
191
   * The month the card expires.
192
   * @return expiryMonth
193
  **/
194
  @ApiModelProperty(value = "The month the card expires.")
195
  @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197

198
  public String getExpiryMonth() {
199
    return expiryMonth;
×
200
  }
201

202

203
  @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205
  public void setExpiryMonth(String expiryMonth) {
206
    this.expiryMonth = expiryMonth;
×
207
  }
×
208

209

210
  public StoredPaymentMethod expiryYear(String expiryYear) {
211
    this.expiryYear = expiryYear;
×
212
    return this;
×
213
  }
214

215
   /**
216
   * The last two digits of the year the card expires. For example, **22** for the year 2022.
217
   * @return expiryYear
218
  **/
219
  @ApiModelProperty(value = "The last two digits of the year the card expires. For example, **22** for the year 2022.")
220
  @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222

223
  public String getExpiryYear() {
224
    return expiryYear;
×
225
  }
226

227

228
  @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230
  public void setExpiryYear(String expiryYear) {
231
    this.expiryYear = expiryYear;
×
232
  }
×
233

234

235
  public StoredPaymentMethod holderName(String holderName) {
236
    this.holderName = holderName;
×
237
    return this;
×
238
  }
239

240
   /**
241
   * The unique payment method code.
242
   * @return holderName
243
  **/
244
  @ApiModelProperty(value = "The unique payment method code.")
245
  @JsonProperty(JSON_PROPERTY_HOLDER_NAME)
246
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
247

248
  public String getHolderName() {
249
    return holderName;
×
250
  }
251

252

253
  @JsonProperty(JSON_PROPERTY_HOLDER_NAME)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255
  public void setHolderName(String holderName) {
256
    this.holderName = holderName;
×
257
  }
×
258

259

260
  public StoredPaymentMethod iban(String iban) {
261
    this.iban = iban;
×
262
    return this;
×
263
  }
264

265
   /**
266
   * The IBAN of the bank account.
267
   * @return iban
268
  **/
269
  @ApiModelProperty(value = "The IBAN of the bank account.")
270
  @JsonProperty(JSON_PROPERTY_IBAN)
271
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
272

273
  public String getIban() {
274
    return iban;
×
275
  }
276

277

278
  @JsonProperty(JSON_PROPERTY_IBAN)
279
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
280
  public void setIban(String iban) {
281
    this.iban = iban;
×
282
  }
×
283

284

285
  public StoredPaymentMethod id(String id) {
286
    this.id = id;
×
287
    return this;
×
288
  }
289

290
   /**
291
   * A unique identifier of this stored payment method.
292
   * @return id
293
  **/
294
  @ApiModelProperty(value = "A unique identifier of this stored payment method.")
295
  @JsonProperty(JSON_PROPERTY_ID)
296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
297

298
  public String getId() {
299
    return id;
×
300
  }
301

302

303
  @JsonProperty(JSON_PROPERTY_ID)
304
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
305
  public void setId(String id) {
306
    this.id = id;
×
307
  }
×
308

309

310
  public StoredPaymentMethod label(String label) {
NEW
311
    this.label = label;
×
NEW
312
    return this;
×
313
  }
314

315
   /**
316
   * The shopper’s issuer account label
317
   * @return label
318
  **/
319
  @ApiModelProperty(value = "The shopper’s issuer account label")
320
  @JsonProperty(JSON_PROPERTY_LABEL)
321
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
322

323
  public String getLabel() {
NEW
324
    return label;
×
325
  }
326

327

328
  @JsonProperty(JSON_PROPERTY_LABEL)
329
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
330
  public void setLabel(String label) {
NEW
331
    this.label = label;
×
NEW
332
  }
×
333

334

335
  public StoredPaymentMethod lastFour(String lastFour) {
336
    this.lastFour = lastFour;
×
337
    return this;
×
338
  }
339

340
   /**
341
   * The last four digits of the PAN.
342
   * @return lastFour
343
  **/
344
  @ApiModelProperty(value = "The last four digits of the PAN.")
345
  @JsonProperty(JSON_PROPERTY_LAST_FOUR)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347

348
  public String getLastFour() {
349
    return lastFour;
×
350
  }
351

352

353
  @JsonProperty(JSON_PROPERTY_LAST_FOUR)
354
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
355
  public void setLastFour(String lastFour) {
356
    this.lastFour = lastFour;
×
357
  }
×
358

359

360
  public StoredPaymentMethod name(String name) {
361
    this.name = name;
×
362
    return this;
×
363
  }
364

365
   /**
366
   * The display name of the stored payment method.
367
   * @return name
368
  **/
369
  @ApiModelProperty(value = "The display name of the stored payment method.")
370
  @JsonProperty(JSON_PROPERTY_NAME)
371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
372

373
  public String getName() {
374
    return name;
×
375
  }
376

377

378
  @JsonProperty(JSON_PROPERTY_NAME)
379
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
380
  public void setName(String name) {
381
    this.name = name;
×
382
  }
×
383

384

385
  public StoredPaymentMethod networkTxReference(String networkTxReference) {
386
    this.networkTxReference = networkTxReference;
×
387
    return this;
×
388
  }
389

390
   /**
391
   * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa.  This contains either the Mastercard Trace ID or the Visa Transaction ID.
392
   * @return networkTxReference
393
  **/
394
  @ApiModelProperty(value = "Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa.  This contains either the Mastercard Trace ID or the Visa Transaction ID.")
395
  @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE)
396
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
397

398
  public String getNetworkTxReference() {
399
    return networkTxReference;
×
400
  }
401

402

403
  @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE)
404
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
405
  public void setNetworkTxReference(String networkTxReference) {
406
    this.networkTxReference = networkTxReference;
×
407
  }
×
408

409

410
  public StoredPaymentMethod ownerName(String ownerName) {
411
    this.ownerName = ownerName;
×
412
    return this;
×
413
  }
414

415
   /**
416
   * The name of the bank account holder.
417
   * @return ownerName
418
  **/
419
  @ApiModelProperty(value = "The name of the bank account holder.")
420
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
421
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
422

423
  public String getOwnerName() {
424
    return ownerName;
×
425
  }
426

427

428
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
429
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
430
  public void setOwnerName(String ownerName) {
431
    this.ownerName = ownerName;
×
432
  }
×
433

434

435
  public StoredPaymentMethod shopperEmail(String shopperEmail) {
436
    this.shopperEmail = shopperEmail;
×
437
    return this;
×
438
  }
439

440
   /**
441
   * The shopper’s email address.
442
   * @return shopperEmail
443
  **/
444
  @ApiModelProperty(value = "The shopper’s email address.")
445
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
446
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
447

448
  public String getShopperEmail() {
449
    return shopperEmail;
×
450
  }
451

452

453
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
454
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
455
  public void setShopperEmail(String shopperEmail) {
456
    this.shopperEmail = shopperEmail;
×
457
  }
×
458

459

460
  public StoredPaymentMethod supportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels) {
461
    this.supportedRecurringProcessingModels = supportedRecurringProcessingModels;
×
462
    return this;
×
463
  }
464

465
  public StoredPaymentMethod addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem) {
466
    if (this.supportedRecurringProcessingModels == null) {
×
467
      this.supportedRecurringProcessingModels = new ArrayList<>();
×
468
    }
469
    this.supportedRecurringProcessingModels.add(supportedRecurringProcessingModelsItem);
×
470
    return this;
×
471
  }
472

473
   /**
474
   * The supported recurring processing models for this stored payment method.
475
   * @return supportedRecurringProcessingModels
476
  **/
477
  @ApiModelProperty(value = "The supported recurring processing models for this stored payment method.")
478
  @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS)
479
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
480

481
  public List<String> getSupportedRecurringProcessingModels() {
482
    return supportedRecurringProcessingModels;
×
483
  }
484

485

486
  @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS)
487
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
488
  public void setSupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels) {
489
    this.supportedRecurringProcessingModels = supportedRecurringProcessingModels;
×
490
  }
×
491

492

493
  public StoredPaymentMethod supportedShopperInteractions(List<String> supportedShopperInteractions) {
494
    this.supportedShopperInteractions = supportedShopperInteractions;
×
495
    return this;
×
496
  }
497

498
  public StoredPaymentMethod addSupportedShopperInteractionsItem(String supportedShopperInteractionsItem) {
499
    if (this.supportedShopperInteractions == null) {
×
500
      this.supportedShopperInteractions = new ArrayList<>();
×
501
    }
502
    this.supportedShopperInteractions.add(supportedShopperInteractionsItem);
×
503
    return this;
×
504
  }
505

506
   /**
507
   * The supported shopper interactions for this stored payment method.
508
   * @return supportedShopperInteractions
509
  **/
510
  @ApiModelProperty(value = "The supported shopper interactions for this stored payment method.")
511
  @JsonProperty(JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS)
512
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
513

514
  public List<String> getSupportedShopperInteractions() {
515
    return supportedShopperInteractions;
×
516
  }
517

518

519
  @JsonProperty(JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS)
520
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
521
  public void setSupportedShopperInteractions(List<String> supportedShopperInteractions) {
522
    this.supportedShopperInteractions = supportedShopperInteractions;
×
523
  }
×
524

525

526
  public StoredPaymentMethod type(String type) {
527
    this.type = type;
×
528
    return this;
×
529
  }
530

531
   /**
532
   * The type of payment method.
533
   * @return type
534
  **/
535
  @ApiModelProperty(value = "The type of payment method.")
536
  @JsonProperty(JSON_PROPERTY_TYPE)
537
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
538

539
  public String getType() {
540
    return type;
×
541
  }
542

543

544
  @JsonProperty(JSON_PROPERTY_TYPE)
545
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
546
  public void setType(String type) {
547
    this.type = type;
×
548
  }
×
549

550

551
  /**
552
   * Return true if this StoredPaymentMethod object is equal to o.
553
   */
554
  @Override
555
  public boolean equals(Object o) {
556
    if (this == o) {
×
557
      return true;
×
558
    }
559
    if (o == null || getClass() != o.getClass()) {
×
560
      return false;
×
561
    }
562
    StoredPaymentMethod storedPaymentMethod = (StoredPaymentMethod) o;
×
NEW
563
    return Objects.equals(this.bankAccountNumber, storedPaymentMethod.bankAccountNumber) &&
×
NEW
564
        Objects.equals(this.bankLocationId, storedPaymentMethod.bankLocationId) &&
×
NEW
565
        Objects.equals(this.brand, storedPaymentMethod.brand) &&
×
566
        Objects.equals(this.expiryMonth, storedPaymentMethod.expiryMonth) &&
×
567
        Objects.equals(this.expiryYear, storedPaymentMethod.expiryYear) &&
×
568
        Objects.equals(this.holderName, storedPaymentMethod.holderName) &&
×
569
        Objects.equals(this.iban, storedPaymentMethod.iban) &&
×
570
        Objects.equals(this.id, storedPaymentMethod.id) &&
×
NEW
571
        Objects.equals(this.label, storedPaymentMethod.label) &&
×
572
        Objects.equals(this.lastFour, storedPaymentMethod.lastFour) &&
×
573
        Objects.equals(this.name, storedPaymentMethod.name) &&
×
574
        Objects.equals(this.networkTxReference, storedPaymentMethod.networkTxReference) &&
×
575
        Objects.equals(this.ownerName, storedPaymentMethod.ownerName) &&
×
576
        Objects.equals(this.shopperEmail, storedPaymentMethod.shopperEmail) &&
×
577
        Objects.equals(this.supportedRecurringProcessingModels, storedPaymentMethod.supportedRecurringProcessingModels) &&
×
578
        Objects.equals(this.supportedShopperInteractions, storedPaymentMethod.supportedShopperInteractions) &&
×
579
        Objects.equals(this.type, storedPaymentMethod.type);
×
580
  }
581

582
  @Override
583
  public int hashCode() {
NEW
584
    return Objects.hash(bankAccountNumber, bankLocationId, brand, expiryMonth, expiryYear, holderName, iban, id, label, lastFour, name, networkTxReference, ownerName, shopperEmail, supportedRecurringProcessingModels, supportedShopperInteractions, type);
×
585
  }
586

587
  @Override
588
  public String toString() {
589
    StringBuilder sb = new StringBuilder();
×
590
    sb.append("class StoredPaymentMethod {\n");
×
NEW
591
    sb.append("    bankAccountNumber: ").append(toIndentedString(bankAccountNumber)).append("\n");
×
NEW
592
    sb.append("    bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n");
×
593
    sb.append("    brand: ").append(toIndentedString(brand)).append("\n");
×
594
    sb.append("    expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n");
×
595
    sb.append("    expiryYear: ").append(toIndentedString(expiryYear)).append("\n");
×
596
    sb.append("    holderName: ").append(toIndentedString(holderName)).append("\n");
×
597
    sb.append("    iban: ").append(toIndentedString(iban)).append("\n");
×
598
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
NEW
599
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
×
600
    sb.append("    lastFour: ").append(toIndentedString(lastFour)).append("\n");
×
601
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
602
    sb.append("    networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n");
×
603
    sb.append("    ownerName: ").append(toIndentedString(ownerName)).append("\n");
×
604
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
605
    sb.append("    supportedRecurringProcessingModels: ").append(toIndentedString(supportedRecurringProcessingModels)).append("\n");
×
606
    sb.append("    supportedShopperInteractions: ").append(toIndentedString(supportedShopperInteractions)).append("\n");
×
607
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
608
    sb.append("}");
×
609
    return sb.toString();
×
610
  }
611

612
  /**
613
   * Convert the given object to string with each line indented by 4 spaces
614
   * (except the first line).
615
   */
616
  private String toIndentedString(Object o) {
617
    if (o == null) {
×
618
      return "null";
×
619
    }
620
    return o.toString().replace("\n", "\n    ");
×
621
  }
622

623
/**
624
   * Create an instance of StoredPaymentMethod given an JSON string
625
   *
626
   * @param jsonString JSON string
627
   * @return An instance of StoredPaymentMethod
628
   * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethod
629
   */
630
  public static StoredPaymentMethod fromJson(String jsonString) throws JsonProcessingException {
631
    return JSON.getMapper().readValue(jsonString, StoredPaymentMethod.class);
×
632
  }
633
/**
634
  * Convert an instance of StoredPaymentMethod to an JSON string
635
  *
636
  * @return JSON string
637
  */
638
  public String toJson() throws JsonProcessingException {
639
    return JSON.getMapper().writeValueAsString(this);
×
640
  }
641
}
642

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