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

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

02 Oct 2024 01:15PM UTC coverage: 11.809%. First build
#3611

push

web-flow
Merge 42f5f2822 into 3aab4fab9

0 of 61 new or added lines in 9 files covered. (0.0%)

12578 of 106511 relevant lines covered (11.81%)

0.12 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/FundRecipient.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.adyen.model.checkout.Address;
20
import com.adyen.model.checkout.CardDetails;
21
import com.adyen.model.checkout.Name;
22
import com.adyen.model.checkout.SubMerchant;
23
import com.fasterxml.jackson.annotation.JsonInclude;
24
import com.fasterxml.jackson.annotation.JsonProperty;
25
import com.fasterxml.jackson.annotation.JsonCreator;
26
import com.fasterxml.jackson.annotation.JsonTypeName;
27
import com.fasterxml.jackson.annotation.JsonValue;
28
import io.swagger.annotations.ApiModel;
29
import io.swagger.annotations.ApiModelProperty;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * FundRecipient
36
 */
37
@JsonPropertyOrder({
38
  FundRecipient.JSON_PROPERTY_I_B_A_N,
39
  FundRecipient.JSON_PROPERTY_BILLING_ADDRESS,
40
  FundRecipient.JSON_PROPERTY_PAYMENT_METHOD,
41
  FundRecipient.JSON_PROPERTY_SHOPPER_EMAIL,
42
  FundRecipient.JSON_PROPERTY_SHOPPER_NAME,
43
  FundRecipient.JSON_PROPERTY_SHOPPER_REFERENCE,
44
  FundRecipient.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
45
  FundRecipient.JSON_PROPERTY_SUB_MERCHANT,
46
  FundRecipient.JSON_PROPERTY_TELEPHONE_NUMBER,
47
  FundRecipient.JSON_PROPERTY_WALLET_IDENTIFIER,
48
  FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID,
49
  FundRecipient.JSON_PROPERTY_WALLET_PURPOSE
50
})
51

52
public class FundRecipient {
53
  public static final String JSON_PROPERTY_I_B_A_N = "IBAN";
54
  private String IBAN;
55

56
  public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
57
  private Address billingAddress;
58

59
  public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod";
60
  private CardDetails paymentMethod;
61

62
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
63
  private String shopperEmail;
64

65
  public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
66
  private Name shopperName;
67

68
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
69
  private String shopperReference;
70

71
  public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
72
  private String storedPaymentMethodId;
73

74
  public static final String JSON_PROPERTY_SUB_MERCHANT = "subMerchant";
75
  private SubMerchant subMerchant;
76

77
  public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber";
78
  private String telephoneNumber;
79

80
  public static final String JSON_PROPERTY_WALLET_IDENTIFIER = "walletIdentifier";
81
  private String walletIdentifier;
82

83
  public static final String JSON_PROPERTY_WALLET_OWNER_TAX_ID = "walletOwnerTaxId";
84
  private String walletOwnerTaxId;
85

86
  /**
87
   * The purpose of a digital wallet transaction
88
   */
NEW
89
  public enum WalletPurposeEnum {
×
NEW
90
    IDENTIFIEDBOLETO("identifiedBoleto"),
×
91
    
NEW
92
    TRANSFERDIFFERENTWALLET("transferDifferentWallet"),
×
93
    
NEW
94
    TRANSFEROWNWALLET("transferOwnWallet"),
×
95
    
NEW
96
    TRANSFERSAMEWALLET("transferSameWallet"),
×
97
    
NEW
98
    UNIDENTIFIEDBOLETO("unidentifiedBoleto");
×
99

100
    private String value;
101

NEW
102
    WalletPurposeEnum(String value) {
×
NEW
103
      this.value = value;
×
NEW
104
    }
×
105

106
    @JsonValue
107
    public String getValue() {
NEW
108
      return value;
×
109
    }
110

111
    @Override
112
    public String toString() {
NEW
113
      return String.valueOf(value);
×
114
    }
115

116
    @JsonCreator
117
    public static WalletPurposeEnum fromValue(String value) {
NEW
118
      for (WalletPurposeEnum b : WalletPurposeEnum.values()) {
×
NEW
119
        if (b.value.equals(value)) {
×
NEW
120
          return b;
×
121
        }
122
      }
NEW
123
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
124
    }
125
  }
126

127
  public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose";
128
  private WalletPurposeEnum walletPurpose;
129

130
  public FundRecipient() { 
×
131
  }
×
132

133
  public FundRecipient IBAN(String IBAN) {
134
    this.IBAN = IBAN;
×
135
    return this;
×
136
  }
137

138
   /**
139
   * Fund Recipient Iban for C2C payments
140
   * @return IBAN
141
  **/
142
  @ApiModelProperty(value = "Fund Recipient Iban for C2C payments")
143
  @JsonProperty(JSON_PROPERTY_I_B_A_N)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145

146
  public String getIBAN() {
147
    return IBAN;
×
148
  }
149

150

151
 /**
152
  * Fund Recipient Iban for C2C payments
153
  *
154
  * @param IBAN
155
  */ 
156
  @JsonProperty(JSON_PROPERTY_I_B_A_N)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158
  public void setIBAN(String IBAN) {
159
    this.IBAN = IBAN;
×
160
  }
×
161

162

163
  public FundRecipient billingAddress(Address billingAddress) {
164
    this.billingAddress = billingAddress;
×
165
    return this;
×
166
  }
167

168
   /**
169
   * Get billingAddress
170
   * @return billingAddress
171
  **/
172
  @ApiModelProperty(value = "")
173
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
174
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
175

176
  public Address getBillingAddress() {
177
    return billingAddress;
×
178
  }
179

180

181
 /**
182
  * billingAddress
183
  *
184
  * @param billingAddress
185
  */ 
186
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
187
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
188
  public void setBillingAddress(Address billingAddress) {
189
    this.billingAddress = billingAddress;
×
190
  }
×
191

192

193
  public FundRecipient paymentMethod(CardDetails paymentMethod) {
194
    this.paymentMethod = paymentMethod;
×
195
    return this;
×
196
  }
197

198
   /**
199
   * Get paymentMethod
200
   * @return paymentMethod
201
  **/
202
  @ApiModelProperty(value = "")
203
  @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205

206
  public CardDetails getPaymentMethod() {
207
    return paymentMethod;
×
208
  }
209

210

211
 /**
212
  * paymentMethod
213
  *
214
  * @param paymentMethod
215
  */ 
216
  @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD)
217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
218
  public void setPaymentMethod(CardDetails paymentMethod) {
219
    this.paymentMethod = paymentMethod;
×
220
  }
×
221

222

223
  public FundRecipient shopperEmail(String shopperEmail) {
224
    this.shopperEmail = shopperEmail;
×
225
    return this;
×
226
  }
227

228
   /**
229
   * The email address of the shopper.
230
   * @return shopperEmail
231
  **/
232
  @ApiModelProperty(value = "The email address of the shopper.")
233
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
234
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
235

236
  public String getShopperEmail() {
237
    return shopperEmail;
×
238
  }
239

240

241
 /**
242
  * The email address of the shopper.
243
  *
244
  * @param shopperEmail
245
  */ 
246
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
247
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248
  public void setShopperEmail(String shopperEmail) {
249
    this.shopperEmail = shopperEmail;
×
250
  }
×
251

252

253
  public FundRecipient shopperName(Name shopperName) {
254
    this.shopperName = shopperName;
×
255
    return this;
×
256
  }
257

258
   /**
259
   * Get shopperName
260
   * @return shopperName
261
  **/
262
  @ApiModelProperty(value = "")
263
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
264
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
265

266
  public Name getShopperName() {
267
    return shopperName;
×
268
  }
269

270

271
 /**
272
  * shopperName
273
  *
274
  * @param shopperName
275
  */ 
276
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
277
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
278
  public void setShopperName(Name shopperName) {
279
    this.shopperName = shopperName;
×
280
  }
×
281

282

283
  public FundRecipient shopperReference(String shopperReference) {
284
    this.shopperReference = shopperReference;
×
285
    return this;
×
286
  }
287

288
   /**
289
   * Required for recurring payments.  Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
290
   * @return shopperReference
291
  **/
292
  @ApiModelProperty(value = "Required for recurring payments.  Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.")
293
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
294
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
295

296
  public String getShopperReference() {
297
    return shopperReference;
×
298
  }
299

300

301
 /**
302
  * Required for recurring payments.  Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
303
  *
304
  * @param shopperReference
305
  */ 
306
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
307
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
308
  public void setShopperReference(String shopperReference) {
309
    this.shopperReference = shopperReference;
×
310
  }
×
311

312

313
  public FundRecipient storedPaymentMethodId(String storedPaymentMethodId) {
314
    this.storedPaymentMethodId = storedPaymentMethodId;
×
315
    return this;
×
316
  }
317

318
   /**
319
   * This is the `recurringDetailReference` returned in the response when you created the token.
320
   * @return storedPaymentMethodId
321
  **/
322
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
323
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
324
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
325

326
  public String getStoredPaymentMethodId() {
327
    return storedPaymentMethodId;
×
328
  }
329

330

331
 /**
332
  * This is the `recurringDetailReference` returned in the response when you created the token.
333
  *
334
  * @param storedPaymentMethodId
335
  */ 
336
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
337
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
338
  public void setStoredPaymentMethodId(String storedPaymentMethodId) {
339
    this.storedPaymentMethodId = storedPaymentMethodId;
×
340
  }
×
341

342

343
  public FundRecipient subMerchant(SubMerchant subMerchant) {
344
    this.subMerchant = subMerchant;
×
345
    return this;
×
346
  }
347

348
   /**
349
   * Get subMerchant
350
   * @return subMerchant
351
  **/
352
  @ApiModelProperty(value = "")
353
  @JsonProperty(JSON_PROPERTY_SUB_MERCHANT)
354
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
355

356
  public SubMerchant getSubMerchant() {
357
    return subMerchant;
×
358
  }
359

360

361
 /**
362
  * subMerchant
363
  *
364
  * @param subMerchant
365
  */ 
366
  @JsonProperty(JSON_PROPERTY_SUB_MERCHANT)
367
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
368
  public void setSubMerchant(SubMerchant subMerchant) {
369
    this.subMerchant = subMerchant;
×
370
  }
×
371

372

373
  public FundRecipient telephoneNumber(String telephoneNumber) {
374
    this.telephoneNumber = telephoneNumber;
×
375
    return this;
×
376
  }
377

378
   /**
379
   * The telephone number of the shopper.
380
   * @return telephoneNumber
381
  **/
382
  @ApiModelProperty(value = "The telephone number of the shopper.")
383
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
384
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
385

386
  public String getTelephoneNumber() {
387
    return telephoneNumber;
×
388
  }
389

390

391
 /**
392
  * The telephone number of the shopper.
393
  *
394
  * @param telephoneNumber
395
  */ 
396
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
397
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
398
  public void setTelephoneNumber(String telephoneNumber) {
399
    this.telephoneNumber = telephoneNumber;
×
400
  }
×
401

402

403
  public FundRecipient walletIdentifier(String walletIdentifier) {
404
    this.walletIdentifier = walletIdentifier;
×
405
    return this;
×
406
  }
407

408
   /**
409
   * Indicates where the money is going.
410
   * @return walletIdentifier
411
  **/
412
  @ApiModelProperty(value = "Indicates where the money is going.")
413
  @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER)
414
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
415

416
  public String getWalletIdentifier() {
417
    return walletIdentifier;
×
418
  }
419

420

421
 /**
422
  * Indicates where the money is going.
423
  *
424
  * @param walletIdentifier
425
  */ 
426
  @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER)
427
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
428
  public void setWalletIdentifier(String walletIdentifier) {
429
    this.walletIdentifier = walletIdentifier;
×
430
  }
×
431

432

433
  public FundRecipient walletOwnerTaxId(String walletOwnerTaxId) {
434
    this.walletOwnerTaxId = walletOwnerTaxId;
×
435
    return this;
×
436
  }
437

438
   /**
439
   * Indicates the tax identifier of the fund recipient
440
   * @return walletOwnerTaxId
441
  **/
442
  @ApiModelProperty(value = "Indicates the tax identifier of the fund recipient")
443
  @JsonProperty(JSON_PROPERTY_WALLET_OWNER_TAX_ID)
444
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
445

446
  public String getWalletOwnerTaxId() {
447
    return walletOwnerTaxId;
×
448
  }
449

450

451
 /**
452
  * Indicates the tax identifier of the fund recipient
453
  *
454
  * @param walletOwnerTaxId
455
  */ 
456
  @JsonProperty(JSON_PROPERTY_WALLET_OWNER_TAX_ID)
457
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
458
  public void setWalletOwnerTaxId(String walletOwnerTaxId) {
459
    this.walletOwnerTaxId = walletOwnerTaxId;
×
460
  }
×
461

462

463
  public FundRecipient walletPurpose(WalletPurposeEnum walletPurpose) {
NEW
464
    this.walletPurpose = walletPurpose;
×
NEW
465
    return this;
×
466
  }
467

468
   /**
469
   * The purpose of a digital wallet transaction
470
   * @return walletPurpose
471
  **/
472
  @ApiModelProperty(value = "The purpose of a digital wallet transaction")
473
  @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
474
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
475

476
  public WalletPurposeEnum getWalletPurpose() {
NEW
477
    return walletPurpose;
×
478
  }
479

480

481
 /**
482
  * The purpose of a digital wallet transaction
483
  *
484
  * @param walletPurpose
485
  */ 
486
  @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
487
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
488
  public void setWalletPurpose(WalletPurposeEnum walletPurpose) {
NEW
489
    this.walletPurpose = walletPurpose;
×
NEW
490
  }
×
491

492

493
  /**
494
   * Return true if this FundRecipient object is equal to o.
495
   */
496
  @Override
497
  public boolean equals(Object o) {
498
    if (this == o) {
×
499
      return true;
×
500
    }
501
    if (o == null || getClass() != o.getClass()) {
×
502
      return false;
×
503
    }
504
    FundRecipient fundRecipient = (FundRecipient) o;
×
505
    return Objects.equals(this.IBAN, fundRecipient.IBAN) &&
×
506
        Objects.equals(this.billingAddress, fundRecipient.billingAddress) &&
×
507
        Objects.equals(this.paymentMethod, fundRecipient.paymentMethod) &&
×
508
        Objects.equals(this.shopperEmail, fundRecipient.shopperEmail) &&
×
509
        Objects.equals(this.shopperName, fundRecipient.shopperName) &&
×
510
        Objects.equals(this.shopperReference, fundRecipient.shopperReference) &&
×
511
        Objects.equals(this.storedPaymentMethodId, fundRecipient.storedPaymentMethodId) &&
×
512
        Objects.equals(this.subMerchant, fundRecipient.subMerchant) &&
×
513
        Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) &&
×
514
        Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) &&
×
NEW
515
        Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) &&
×
NEW
516
        Objects.equals(this.walletPurpose, fundRecipient.walletPurpose);
×
517
  }
518

519
  @Override
520
  public int hashCode() {
NEW
521
    return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId, walletPurpose);
×
522
  }
523

524
  @Override
525
  public String toString() {
526
    StringBuilder sb = new StringBuilder();
×
527
    sb.append("class FundRecipient {\n");
×
528
    sb.append("    IBAN: ").append(toIndentedString(IBAN)).append("\n");
×
529
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
530
    sb.append("    paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n");
×
531
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
532
    sb.append("    shopperName: ").append(toIndentedString(shopperName)).append("\n");
×
533
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
534
    sb.append("    storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
×
535
    sb.append("    subMerchant: ").append(toIndentedString(subMerchant)).append("\n");
×
536
    sb.append("    telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
×
537
    sb.append("    walletIdentifier: ").append(toIndentedString(walletIdentifier)).append("\n");
×
538
    sb.append("    walletOwnerTaxId: ").append(toIndentedString(walletOwnerTaxId)).append("\n");
×
NEW
539
    sb.append("    walletPurpose: ").append(toIndentedString(walletPurpose)).append("\n");
×
540
    sb.append("}");
×
541
    return sb.toString();
×
542
  }
543

544
  /**
545
   * Convert the given object to string with each line indented by 4 spaces
546
   * (except the first line).
547
   */
548
  private String toIndentedString(Object o) {
549
    if (o == null) {
×
550
      return "null";
×
551
    }
552
    return o.toString().replace("\n", "\n    ");
×
553
  }
554

555
/**
556
   * Create an instance of FundRecipient given an JSON string
557
   *
558
   * @param jsonString JSON string
559
   * @return An instance of FundRecipient
560
   * @throws JsonProcessingException if the JSON string is invalid with respect to FundRecipient
561
   */
562
  public static FundRecipient fromJson(String jsonString) throws JsonProcessingException {
563
    return JSON.getMapper().readValue(jsonString, FundRecipient.class);
×
564
  }
565
/**
566
  * Convert an instance of FundRecipient to an JSON string
567
  *
568
  * @return JSON string
569
  */
570
  public String toJson() throws JsonProcessingException {
571
    return JSON.getMapper().writeValueAsString(this);
×
572
  }
573
}
574

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

© 2026 Coveralls, Inc