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

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

26 Aug 2024 09:19AM CUT coverage: 11.857%. First build
#3453

push

web-flow
Merge 064fd042f into c29fdef07

0 of 9 new or added lines in 1 file covered. (0.0%)

12546 of 105813 relevant lines covered (11.86%)

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/payment/FundDestination.java
1
/*
2
 * Adyen Payment API
3
 *
4
 * The version of the OpenAPI document: 68
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.payment;
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.payment.Address;
20
import com.adyen.model.payment.Card;
21
import com.adyen.model.payment.Name;
22
import com.adyen.model.payment.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 java.util.HashMap;
31
import java.util.List;
32
import java.util.Map;
33
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34
import com.fasterxml.jackson.core.JsonProcessingException;
35

36

37
/**
38
 * FundDestination
39
 */
40
@JsonPropertyOrder({
41
  FundDestination.JSON_PROPERTY_I_B_A_N,
42
  FundDestination.JSON_PROPERTY_ADDITIONAL_DATA,
43
  FundDestination.JSON_PROPERTY_BILLING_ADDRESS,
44
  FundDestination.JSON_PROPERTY_CARD,
45
  FundDestination.JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE,
46
  FundDestination.JSON_PROPERTY_SHOPPER_EMAIL,
47
  FundDestination.JSON_PROPERTY_SHOPPER_NAME,
48
  FundDestination.JSON_PROPERTY_SHOPPER_REFERENCE,
49
  FundDestination.JSON_PROPERTY_SUB_MERCHANT,
50
  FundDestination.JSON_PROPERTY_TELEPHONE_NUMBER,
51
  FundDestination.JSON_PROPERTY_WALLET_PURPOSE
52
})
53

54
public class FundDestination {
55
  public static final String JSON_PROPERTY_I_B_A_N = "IBAN";
56
  private String IBAN;
57

58
  public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
59
  private Map<String, String> additionalData = null;
×
60

61
  public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
62
  private Address billingAddress;
63

64
  public static final String JSON_PROPERTY_CARD = "card";
65
  private Card card;
66

67
  public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference";
68
  private String selectedRecurringDetailReference;
69

70
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
71
  private String shopperEmail;
72

73
  public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
74
  private Name shopperName;
75

76
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
77
  private String shopperReference;
78

79
  public static final String JSON_PROPERTY_SUB_MERCHANT = "subMerchant";
80
  private SubMerchant subMerchant;
81

82
  public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber";
83
  private String telephoneNumber;
84

85
  public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose";
86
  private String walletPurpose;
87

88
  public FundDestination() { 
×
89
  }
×
90

91
  public FundDestination IBAN(String IBAN) {
NEW
92
    this.IBAN = IBAN;
×
NEW
93
    return this;
×
94
  }
95

96
   /**
97
   * Bank Account Number of the recipient
98
   * @return IBAN
99
  **/
100
  @ApiModelProperty(value = "Bank Account Number of the recipient")
101
  @JsonProperty(JSON_PROPERTY_I_B_A_N)
102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103

104
  public String getIBAN() {
NEW
105
    return IBAN;
×
106
  }
107

108

109
 /**
110
  * Bank Account Number of the recipient
111
  *
112
  * @param IBAN
113
  */ 
114
  @JsonProperty(JSON_PROPERTY_I_B_A_N)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116
  public void setIBAN(String IBAN) {
NEW
117
    this.IBAN = IBAN;
×
NEW
118
  }
×
119

120

121
  public FundDestination additionalData(Map<String, String> additionalData) {
122
    this.additionalData = additionalData;
×
123
    return this;
×
124
  }
125

126
  public FundDestination putAdditionalDataItem(String key, String additionalDataItem) {
127
    if (this.additionalData == null) {
×
128
      this.additionalData = new HashMap<>();
×
129
    }
130
    this.additionalData.put(key, additionalDataItem);
×
131
    return this;
×
132
  }
133

134
   /**
135
   * a map of name/value pairs for passing in additional/industry-specific data
136
   * @return additionalData
137
  **/
138
  @ApiModelProperty(value = "a map of name/value pairs for passing in additional/industry-specific data")
139
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
140
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141

142
  public Map<String, String> getAdditionalData() {
143
    return additionalData;
×
144
  }
145

146

147
 /**
148
  * a map of name/value pairs for passing in additional/industry-specific data
149
  *
150
  * @param additionalData
151
  */ 
152
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
153
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
154
  public void setAdditionalData(Map<String, String> additionalData) {
155
    this.additionalData = additionalData;
×
156
  }
×
157

158

159
  public FundDestination billingAddress(Address billingAddress) {
160
    this.billingAddress = billingAddress;
×
161
    return this;
×
162
  }
163

164
   /**
165
   * Get billingAddress
166
   * @return billingAddress
167
  **/
168
  @ApiModelProperty(value = "")
169
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
171

172
  public Address getBillingAddress() {
173
    return billingAddress;
×
174
  }
175

176

177
 /**
178
  * billingAddress
179
  *
180
  * @param billingAddress
181
  */ 
182
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184
  public void setBillingAddress(Address billingAddress) {
185
    this.billingAddress = billingAddress;
×
186
  }
×
187

188

189
  public FundDestination card(Card card) {
190
    this.card = card;
×
191
    return this;
×
192
  }
193

194
   /**
195
   * Get card
196
   * @return card
197
  **/
198
  @ApiModelProperty(value = "")
199
  @JsonProperty(JSON_PROPERTY_CARD)
200
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
201

202
  public Card getCard() {
203
    return card;
×
204
  }
205

206

207
 /**
208
  * card
209
  *
210
  * @param card
211
  */ 
212
  @JsonProperty(JSON_PROPERTY_CARD)
213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
214
  public void setCard(Card card) {
215
    this.card = card;
×
216
  }
×
217

218

219
  public FundDestination selectedRecurringDetailReference(String selectedRecurringDetailReference) {
220
    this.selectedRecurringDetailReference = selectedRecurringDetailReference;
×
221
    return this;
×
222
  }
223

224
   /**
225
   * The &#x60;recurringDetailReference&#x60; you want to use for this payment. The value &#x60;LATEST&#x60; can be used to select the most recently stored recurring detail.
226
   * @return selectedRecurringDetailReference
227
  **/
228
  @ApiModelProperty(value = "The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.")
229
  @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE)
230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231

232
  public String getSelectedRecurringDetailReference() {
233
    return selectedRecurringDetailReference;
×
234
  }
235

236

237
 /**
238
  * The &#x60;recurringDetailReference&#x60; you want to use for this payment. The value &#x60;LATEST&#x60; can be used to select the most recently stored recurring detail.
239
  *
240
  * @param selectedRecurringDetailReference
241
  */ 
242
  @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE)
243
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
244
  public void setSelectedRecurringDetailReference(String selectedRecurringDetailReference) {
245
    this.selectedRecurringDetailReference = selectedRecurringDetailReference;
×
246
  }
×
247

248

249
  public FundDestination shopperEmail(String shopperEmail) {
250
    this.shopperEmail = shopperEmail;
×
251
    return this;
×
252
  }
253

254
   /**
255
   * the email address of the person
256
   * @return shopperEmail
257
  **/
258
  @ApiModelProperty(value = "the email address of the person")
259
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
260
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
261

262
  public String getShopperEmail() {
263
    return shopperEmail;
×
264
  }
265

266

267
 /**
268
  * the email address of the person
269
  *
270
  * @param shopperEmail
271
  */ 
272
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
273
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
274
  public void setShopperEmail(String shopperEmail) {
275
    this.shopperEmail = shopperEmail;
×
276
  }
×
277

278

279
  public FundDestination shopperName(Name shopperName) {
280
    this.shopperName = shopperName;
×
281
    return this;
×
282
  }
283

284
   /**
285
   * Get shopperName
286
   * @return shopperName
287
  **/
288
  @ApiModelProperty(value = "")
289
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
290
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
291

292
  public Name getShopperName() {
293
    return shopperName;
×
294
  }
295

296

297
 /**
298
  * shopperName
299
  *
300
  * @param shopperName
301
  */ 
302
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
303
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
304
  public void setShopperName(Name shopperName) {
305
    this.shopperName = shopperName;
×
306
  }
×
307

308

309
  public FundDestination shopperReference(String shopperReference) {
310
    this.shopperReference = shopperReference;
×
311
    return this;
×
312
  }
313

314
   /**
315
   * Required for recurring payments.  Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. &gt; Your reference must not include personally identifiable information (PII), for example name or email address.
316
   * @return shopperReference
317
  **/
318
  @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.")
319
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
320
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
321

322
  public String getShopperReference() {
323
    return shopperReference;
×
324
  }
325

326

327
 /**
328
  * Required for recurring payments.  Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. &gt; Your reference must not include personally identifiable information (PII), for example name or email address.
329
  *
330
  * @param shopperReference
331
  */ 
332
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
333
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
334
  public void setShopperReference(String shopperReference) {
335
    this.shopperReference = shopperReference;
×
336
  }
×
337

338

339
  public FundDestination subMerchant(SubMerchant subMerchant) {
340
    this.subMerchant = subMerchant;
×
341
    return this;
×
342
  }
343

344
   /**
345
   * Get subMerchant
346
   * @return subMerchant
347
  **/
348
  @ApiModelProperty(value = "")
349
  @JsonProperty(JSON_PROPERTY_SUB_MERCHANT)
350
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
351

352
  public SubMerchant getSubMerchant() {
353
    return subMerchant;
×
354
  }
355

356

357
 /**
358
  * subMerchant
359
  *
360
  * @param subMerchant
361
  */ 
362
  @JsonProperty(JSON_PROPERTY_SUB_MERCHANT)
363
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
364
  public void setSubMerchant(SubMerchant subMerchant) {
365
    this.subMerchant = subMerchant;
×
366
  }
×
367

368

369
  public FundDestination telephoneNumber(String telephoneNumber) {
370
    this.telephoneNumber = telephoneNumber;
×
371
    return this;
×
372
  }
373

374
   /**
375
   * the telephone number of the person
376
   * @return telephoneNumber
377
  **/
378
  @ApiModelProperty(value = "the telephone number of the person")
379
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
380
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
381

382
  public String getTelephoneNumber() {
383
    return telephoneNumber;
×
384
  }
385

386

387
 /**
388
  * the telephone number of the person
389
  *
390
  * @param telephoneNumber
391
  */ 
392
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
393
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
394
  public void setTelephoneNumber(String telephoneNumber) {
395
    this.telephoneNumber = telephoneNumber;
×
396
  }
×
397

398

399
  public FundDestination walletPurpose(String walletPurpose) {
400
    this.walletPurpose = walletPurpose;
×
401
    return this;
×
402
  }
403

404
   /**
405
   * The purpose of a digital wallet transaction.
406
   * @return walletPurpose
407
  **/
408
  @ApiModelProperty(value = "The purpose of a digital wallet transaction.")
409
  @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
410
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
411

412
  public String getWalletPurpose() {
413
    return walletPurpose;
×
414
  }
415

416

417
 /**
418
  * The purpose of a digital wallet transaction.
419
  *
420
  * @param walletPurpose
421
  */ 
422
  @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
423
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
424
  public void setWalletPurpose(String walletPurpose) {
425
    this.walletPurpose = walletPurpose;
×
426
  }
×
427

428

429
  /**
430
   * Return true if this FundDestination object is equal to o.
431
   */
432
  @Override
433
  public boolean equals(Object o) {
434
    if (this == o) {
×
435
      return true;
×
436
    }
437
    if (o == null || getClass() != o.getClass()) {
×
438
      return false;
×
439
    }
440
    FundDestination fundDestination = (FundDestination) o;
×
NEW
441
    return Objects.equals(this.IBAN, fundDestination.IBAN) &&
×
NEW
442
        Objects.equals(this.additionalData, fundDestination.additionalData) &&
×
443
        Objects.equals(this.billingAddress, fundDestination.billingAddress) &&
×
444
        Objects.equals(this.card, fundDestination.card) &&
×
445
        Objects.equals(this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) &&
×
446
        Objects.equals(this.shopperEmail, fundDestination.shopperEmail) &&
×
447
        Objects.equals(this.shopperName, fundDestination.shopperName) &&
×
448
        Objects.equals(this.shopperReference, fundDestination.shopperReference) &&
×
449
        Objects.equals(this.subMerchant, fundDestination.subMerchant) &&
×
450
        Objects.equals(this.telephoneNumber, fundDestination.telephoneNumber) &&
×
451
        Objects.equals(this.walletPurpose, fundDestination.walletPurpose);
×
452
  }
453

454
  @Override
455
  public int hashCode() {
NEW
456
    return Objects.hash(IBAN, additionalData, billingAddress, card, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, subMerchant, telephoneNumber, walletPurpose);
×
457
  }
458

459
  @Override
460
  public String toString() {
461
    StringBuilder sb = new StringBuilder();
×
462
    sb.append("class FundDestination {\n");
×
NEW
463
    sb.append("    IBAN: ").append(toIndentedString(IBAN)).append("\n");
×
464
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
465
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
466
    sb.append("    card: ").append(toIndentedString(card)).append("\n");
×
467
    sb.append("    selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n");
×
468
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
469
    sb.append("    shopperName: ").append(toIndentedString(shopperName)).append("\n");
×
470
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
471
    sb.append("    subMerchant: ").append(toIndentedString(subMerchant)).append("\n");
×
472
    sb.append("    telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
×
473
    sb.append("    walletPurpose: ").append(toIndentedString(walletPurpose)).append("\n");
×
474
    sb.append("}");
×
475
    return sb.toString();
×
476
  }
477

478
  /**
479
   * Convert the given object to string with each line indented by 4 spaces
480
   * (except the first line).
481
   */
482
  private String toIndentedString(Object o) {
483
    if (o == null) {
×
484
      return "null";
×
485
    }
486
    return o.toString().replace("\n", "\n    ");
×
487
  }
488

489
/**
490
   * Create an instance of FundDestination given an JSON string
491
   *
492
   * @param jsonString JSON string
493
   * @return An instance of FundDestination
494
   * @throws JsonProcessingException if the JSON string is invalid with respect to FundDestination
495
   */
496
  public static FundDestination fromJson(String jsonString) throws JsonProcessingException {
497
    return JSON.getMapper().readValue(jsonString, FundDestination.class);
×
498
  }
499
/**
500
  * Convert an instance of FundDestination to an JSON string
501
  *
502
  * @return JSON string
503
  */
504
  public String toJson() throws JsonProcessingException {
505
    return JSON.getMapper().writeValueAsString(this);
×
506
  }
507
}
508

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