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

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

26 Apr 2024 07:03AM CUT coverage: 12.279%. First build
#3233

push

web-flow
Merge 8ff60eb2e into de2f73f19

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

12464 of 101506 relevant lines covered (12.28%)

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_ADDITIONAL_DATA,
42
  FundDestination.JSON_PROPERTY_BILLING_ADDRESS,
43
  FundDestination.JSON_PROPERTY_CARD,
44
  FundDestination.JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE,
45
  FundDestination.JSON_PROPERTY_SHOPPER_EMAIL,
46
  FundDestination.JSON_PROPERTY_SHOPPER_NAME,
47
  FundDestination.JSON_PROPERTY_SHOPPER_REFERENCE,
48
  FundDestination.JSON_PROPERTY_SUB_MERCHANT,
49
  FundDestination.JSON_PROPERTY_TELEPHONE_NUMBER,
50
  FundDestination.JSON_PROPERTY_WALLET_PURPOSE
51
})
52

53
public class FundDestination {
54
  public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
55
  private Map<String, String> additionalData = null;
×
56

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

60
  public static final String JSON_PROPERTY_CARD = "card";
61
  private Card card;
62

63
  public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference";
64
  private String selectedRecurringDetailReference;
65

66
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
67
  private String shopperEmail;
68

69
  public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
70
  private Name shopperName;
71

72
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
73
  private String shopperReference;
74

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

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

81
  public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose";
82
  private String walletPurpose;
83

84
  public FundDestination() { 
×
85
  }
×
86

87
  public FundDestination additionalData(Map<String, String> additionalData) {
88
    this.additionalData = additionalData;
×
89
    return this;
×
90
  }
91

92
  public FundDestination putAdditionalDataItem(String key, String additionalDataItem) {
93
    if (this.additionalData == null) {
×
94
      this.additionalData = new HashMap<>();
×
95
    }
96
    this.additionalData.put(key, additionalDataItem);
×
97
    return this;
×
98
  }
99

100
   /**
101
   * a map of name/value pairs for passing in additional/industry-specific data
102
   * @return additionalData
103
  **/
104
  @ApiModelProperty(value = "a map of name/value pairs for passing in additional/industry-specific data")
105
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
106
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
107

108
  public Map<String, String> getAdditionalData() {
109
    return additionalData;
×
110
  }
111

112

113
 /**
114
  * a map of name/value pairs for passing in additional/industry-specific data
115
  *
116
  * @param additionalData
117
  */ 
118
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
120
  public void setAdditionalData(Map<String, String> additionalData) {
121
    this.additionalData = additionalData;
×
122
  }
×
123

124

125
  public FundDestination billingAddress(Address billingAddress) {
126
    this.billingAddress = billingAddress;
×
127
    return this;
×
128
  }
129

130
   /**
131
   * Get billingAddress
132
   * @return billingAddress
133
  **/
134
  @ApiModelProperty(value = "")
135
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137

138
  public Address getBillingAddress() {
139
    return billingAddress;
×
140
  }
141

142

143
 /**
144
  * billingAddress
145
  *
146
  * @param billingAddress
147
  */ 
148
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
149
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150
  public void setBillingAddress(Address billingAddress) {
151
    this.billingAddress = billingAddress;
×
152
  }
×
153

154

155
  public FundDestination card(Card card) {
156
    this.card = card;
×
157
    return this;
×
158
  }
159

160
   /**
161
   * Get card
162
   * @return card
163
  **/
164
  @ApiModelProperty(value = "")
165
  @JsonProperty(JSON_PROPERTY_CARD)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167

168
  public Card getCard() {
169
    return card;
×
170
  }
171

172

173
 /**
174
  * card
175
  *
176
  * @param card
177
  */ 
178
  @JsonProperty(JSON_PROPERTY_CARD)
179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180
  public void setCard(Card card) {
181
    this.card = card;
×
182
  }
×
183

184

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

190
   /**
191
   * 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.
192
   * @return selectedRecurringDetailReference
193
  **/
194
  @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.")
195
  @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197

198
  public String getSelectedRecurringDetailReference() {
199
    return selectedRecurringDetailReference;
×
200
  }
201

202

203
 /**
204
  * 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.
205
  *
206
  * @param selectedRecurringDetailReference
207
  */ 
208
  @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE)
209
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
210
  public void setSelectedRecurringDetailReference(String selectedRecurringDetailReference) {
211
    this.selectedRecurringDetailReference = selectedRecurringDetailReference;
×
212
  }
×
213

214

215
  public FundDestination shopperEmail(String shopperEmail) {
216
    this.shopperEmail = shopperEmail;
×
217
    return this;
×
218
  }
219

220
   /**
221
   * the email address of the person
222
   * @return shopperEmail
223
  **/
224
  @ApiModelProperty(value = "the email address of the person")
225
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
226
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
227

228
  public String getShopperEmail() {
229
    return shopperEmail;
×
230
  }
231

232

233
 /**
234
  * the email address of the person
235
  *
236
  * @param shopperEmail
237
  */ 
238
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
239
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240
  public void setShopperEmail(String shopperEmail) {
241
    this.shopperEmail = shopperEmail;
×
242
  }
×
243

244

245
  public FundDestination shopperName(Name shopperName) {
246
    this.shopperName = shopperName;
×
247
    return this;
×
248
  }
249

250
   /**
251
   * Get shopperName
252
   * @return shopperName
253
  **/
254
  @ApiModelProperty(value = "")
255
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
256
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
257

258
  public Name getShopperName() {
259
    return shopperName;
×
260
  }
261

262

263
 /**
264
  * shopperName
265
  *
266
  * @param shopperName
267
  */ 
268
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
269
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
270
  public void setShopperName(Name shopperName) {
271
    this.shopperName = shopperName;
×
272
  }
×
273

274

275
  public FundDestination shopperReference(String shopperReference) {
276
    this.shopperReference = shopperReference;
×
277
    return this;
×
278
  }
279

280
   /**
281
   * 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.
282
   * @return shopperReference
283
  **/
284
  @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.")
285
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
286
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
287

288
  public String getShopperReference() {
289
    return shopperReference;
×
290
  }
291

292

293
 /**
294
  * 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.
295
  *
296
  * @param shopperReference
297
  */ 
298
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
299
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
300
  public void setShopperReference(String shopperReference) {
301
    this.shopperReference = shopperReference;
×
302
  }
×
303

304

305
  public FundDestination subMerchant(SubMerchant subMerchant) {
306
    this.subMerchant = subMerchant;
×
307
    return this;
×
308
  }
309

310
   /**
311
   * Get subMerchant
312
   * @return subMerchant
313
  **/
314
  @ApiModelProperty(value = "")
315
  @JsonProperty(JSON_PROPERTY_SUB_MERCHANT)
316
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
317

318
  public SubMerchant getSubMerchant() {
319
    return subMerchant;
×
320
  }
321

322

323
 /**
324
  * subMerchant
325
  *
326
  * @param subMerchant
327
  */ 
328
  @JsonProperty(JSON_PROPERTY_SUB_MERCHANT)
329
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
330
  public void setSubMerchant(SubMerchant subMerchant) {
331
    this.subMerchant = subMerchant;
×
332
  }
×
333

334

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

340
   /**
341
   * the telephone number of the person
342
   * @return telephoneNumber
343
  **/
344
  @ApiModelProperty(value = "the telephone number of the person")
345
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347

348
  public String getTelephoneNumber() {
349
    return telephoneNumber;
×
350
  }
351

352

353
 /**
354
  * the telephone number of the person
355
  *
356
  * @param telephoneNumber
357
  */ 
358
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
359
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
360
  public void setTelephoneNumber(String telephoneNumber) {
361
    this.telephoneNumber = telephoneNumber;
×
362
  }
×
363

364

365
  public FundDestination walletPurpose(String walletPurpose) {
NEW
366
    this.walletPurpose = walletPurpose;
×
NEW
367
    return this;
×
368
  }
369

370
   /**
371
   * The purpose of a digital wallet transaction.
372
   * @return walletPurpose
373
  **/
374
  @ApiModelProperty(value = "The purpose of a digital wallet transaction.")
375
  @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
376
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
377

378
  public String getWalletPurpose() {
NEW
379
    return walletPurpose;
×
380
  }
381

382

383
 /**
384
  * The purpose of a digital wallet transaction.
385
  *
386
  * @param walletPurpose
387
  */ 
388
  @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
389
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
390
  public void setWalletPurpose(String walletPurpose) {
NEW
391
    this.walletPurpose = walletPurpose;
×
NEW
392
  }
×
393

394

395
  /**
396
   * Return true if this FundDestination object is equal to o.
397
   */
398
  @Override
399
  public boolean equals(Object o) {
400
    if (this == o) {
×
401
      return true;
×
402
    }
403
    if (o == null || getClass() != o.getClass()) {
×
404
      return false;
×
405
    }
406
    FundDestination fundDestination = (FundDestination) o;
×
407
    return Objects.equals(this.additionalData, fundDestination.additionalData) &&
×
408
        Objects.equals(this.billingAddress, fundDestination.billingAddress) &&
×
409
        Objects.equals(this.card, fundDestination.card) &&
×
410
        Objects.equals(this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) &&
×
411
        Objects.equals(this.shopperEmail, fundDestination.shopperEmail) &&
×
412
        Objects.equals(this.shopperName, fundDestination.shopperName) &&
×
413
        Objects.equals(this.shopperReference, fundDestination.shopperReference) &&
×
414
        Objects.equals(this.subMerchant, fundDestination.subMerchant) &&
×
NEW
415
        Objects.equals(this.telephoneNumber, fundDestination.telephoneNumber) &&
×
NEW
416
        Objects.equals(this.walletPurpose, fundDestination.walletPurpose);
×
417
  }
418

419
  @Override
420
  public int hashCode() {
NEW
421
    return Objects.hash(additionalData, billingAddress, card, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, subMerchant, telephoneNumber, walletPurpose);
×
422
  }
423

424
  @Override
425
  public String toString() {
426
    StringBuilder sb = new StringBuilder();
×
427
    sb.append("class FundDestination {\n");
×
428
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
429
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
430
    sb.append("    card: ").append(toIndentedString(card)).append("\n");
×
431
    sb.append("    selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n");
×
432
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
433
    sb.append("    shopperName: ").append(toIndentedString(shopperName)).append("\n");
×
434
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
435
    sb.append("    subMerchant: ").append(toIndentedString(subMerchant)).append("\n");
×
436
    sb.append("    telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
×
NEW
437
    sb.append("    walletPurpose: ").append(toIndentedString(walletPurpose)).append("\n");
×
438
    sb.append("}");
×
439
    return sb.toString();
×
440
  }
441

442
  /**
443
   * Convert the given object to string with each line indented by 4 spaces
444
   * (except the first line).
445
   */
446
  private String toIndentedString(Object o) {
447
    if (o == null) {
×
448
      return "null";
×
449
    }
450
    return o.toString().replace("\n", "\n    ");
×
451
  }
452

453
/**
454
   * Create an instance of FundDestination given an JSON string
455
   *
456
   * @param jsonString JSON string
457
   * @return An instance of FundDestination
458
   * @throws JsonProcessingException if the JSON string is invalid with respect to FundDestination
459
   */
460
  public static FundDestination fromJson(String jsonString) throws JsonProcessingException {
461
    return JSON.getMapper().readValue(jsonString, FundDestination.class);
×
462
  }
463
/**
464
  * Convert an instance of FundDestination to an JSON string
465
  *
466
  * @return JSON string
467
  */
468
  public String toJson() throws JsonProcessingException {
469
    return JSON.getMapper().writeValueAsString(this);
×
470
  }
471
}
472

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