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

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

10 Sep 2024 09:16AM UTC coverage: 11.824%. First build
#3510

push

web-flow
Merge abb12b03a into d7cb4ee68

19 of 132 new or added lines in 3 files covered. (14.39%)

12589 of 106472 relevant lines covered (11.82%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

13.1
/src/main/java/com/adyen/model/checkout/EftDetails.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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * EftDetails
32
 */
33
@JsonPropertyOrder({
34
  EftDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER,
35
  EftDetails.JSON_PROPERTY_BANK_CODE,
36
  EftDetails.JSON_PROPERTY_BANK_LOCATION_ID,
37
  EftDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
38
  EftDetails.JSON_PROPERTY_OWNER_NAME,
39
  EftDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
40
  EftDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
41
  EftDetails.JSON_PROPERTY_TYPE
42
})
43

44
public class EftDetails {
45
  public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber";
46
  private String bankAccountNumber;
47

48
  public static final String JSON_PROPERTY_BANK_CODE = "bankCode";
49
  private String bankCode;
50

51
  public static final String JSON_PROPERTY_BANK_LOCATION_ID = "bankLocationId";
52
  private String bankLocationId;
53

54
  public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
55
  private String checkoutAttemptId;
56

57
  public static final String JSON_PROPERTY_OWNER_NAME = "ownerName";
58
  private String ownerName;
59

60
  public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
61
  @Deprecated
62
  private String recurringDetailReference;
63

64
  public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
65
  private String storedPaymentMethodId;
66

67
  /**
68
   * **eft**
69
   */
70
  public enum TypeEnum {
1✔
71
    EFT_DIRECTDEBIT_CA("eft_directdebit_CA");
1✔
72

73
    private String value;
74

75
    TypeEnum(String value) {
1✔
76
      this.value = value;
1✔
77
    }
1✔
78

79
    @JsonValue
80
    public String getValue() {
81
      return value;
1✔
82
    }
83

84
    @Override
85
    public String toString() {
NEW
86
      return String.valueOf(value);
×
87
    }
88

89
    @JsonCreator
90
    public static TypeEnum fromValue(String value) {
91
      for (TypeEnum b : TypeEnum.values()) {
1✔
92
        if (b.value.equals(value)) {
1✔
NEW
93
          return b;
×
94
        }
95
      }
96
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
97
    }
98
  }
99

100
  public static final String JSON_PROPERTY_TYPE = "type";
101
  private TypeEnum type;
102

103
  public EftDetails() { 
1✔
104
  }
1✔
105

106
  public EftDetails bankAccountNumber(String bankAccountNumber) {
NEW
107
    this.bankAccountNumber = bankAccountNumber;
×
NEW
108
    return this;
×
109
  }
110

111
   /**
112
   * The bank account number (without separators).
113
   * @return bankAccountNumber
114
  **/
115
  @ApiModelProperty(value = "The bank account number (without separators).")
116
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER)
117
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118

119
  public String getBankAccountNumber() {
NEW
120
    return bankAccountNumber;
×
121
  }
122

123

124
 /**
125
  * The bank account number (without separators).
126
  *
127
  * @param bankAccountNumber
128
  */ 
129
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setBankAccountNumber(String bankAccountNumber) {
NEW
132
    this.bankAccountNumber = bankAccountNumber;
×
NEW
133
  }
×
134

135

136
  public EftDetails bankCode(String bankCode) {
NEW
137
    this.bankCode = bankCode;
×
NEW
138
    return this;
×
139
  }
140

141
   /**
142
   * The financial institution code.
143
   * @return bankCode
144
  **/
145
  @ApiModelProperty(value = "The financial institution code.")
146
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public String getBankCode() {
NEW
150
    return bankCode;
×
151
  }
152

153

154
 /**
155
  * The financial institution code.
156
  *
157
  * @param bankCode
158
  */ 
159
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
160
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
161
  public void setBankCode(String bankCode) {
NEW
162
    this.bankCode = bankCode;
×
NEW
163
  }
×
164

165

166
  public EftDetails bankLocationId(String bankLocationId) {
NEW
167
    this.bankLocationId = bankLocationId;
×
NEW
168
    return this;
×
169
  }
170

171
   /**
172
   * The bank routing number of the account.
173
   * @return bankLocationId
174
  **/
175
  @ApiModelProperty(value = "The bank routing number of the account.")
176
  @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID)
177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
178

179
  public String getBankLocationId() {
NEW
180
    return bankLocationId;
×
181
  }
182

183

184
 /**
185
  * The bank routing number of the account.
186
  *
187
  * @param bankLocationId
188
  */ 
189
  @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID)
190
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191
  public void setBankLocationId(String bankLocationId) {
NEW
192
    this.bankLocationId = bankLocationId;
×
NEW
193
  }
×
194

195

196
  public EftDetails checkoutAttemptId(String checkoutAttemptId) {
NEW
197
    this.checkoutAttemptId = checkoutAttemptId;
×
NEW
198
    return this;
×
199
  }
200

201
   /**
202
   * The checkout attempt identifier.
203
   * @return checkoutAttemptId
204
  **/
205
  @ApiModelProperty(value = "The checkout attempt identifier.")
206
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
207
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208

209
  public String getCheckoutAttemptId() {
NEW
210
    return checkoutAttemptId;
×
211
  }
212

213

214
 /**
215
  * The checkout attempt identifier.
216
  *
217
  * @param checkoutAttemptId
218
  */ 
219
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
220
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
221
  public void setCheckoutAttemptId(String checkoutAttemptId) {
NEW
222
    this.checkoutAttemptId = checkoutAttemptId;
×
NEW
223
  }
×
224

225

226
  public EftDetails ownerName(String ownerName) {
NEW
227
    this.ownerName = ownerName;
×
NEW
228
    return this;
×
229
  }
230

231
   /**
232
   * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.
233
   * @return ownerName
234
  **/
235
  @ApiModelProperty(value = "The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.")
236
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
237
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
238

239
  public String getOwnerName() {
NEW
240
    return ownerName;
×
241
  }
242

243

244
 /**
245
  * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.
246
  *
247
  * @param ownerName
248
  */ 
249
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
250
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
251
  public void setOwnerName(String ownerName) {
NEW
252
    this.ownerName = ownerName;
×
NEW
253
  }
×
254

255

256
  @Deprecated
257
  public EftDetails recurringDetailReference(String recurringDetailReference) {
NEW
258
    this.recurringDetailReference = recurringDetailReference;
×
NEW
259
    return this;
×
260
  }
261

262
   /**
263
   * This is the `recurringDetailReference` returned in the response when you created the token.
264
   * @return recurringDetailReference
265
   * @deprecated
266
  **/
267
  @Deprecated
268
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
269
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
270
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
271

272
  public String getRecurringDetailReference() {
NEW
273
    return recurringDetailReference;
×
274
  }
275

276

277
 /**
278
  * This is the `recurringDetailReference` returned in the response when you created the token.
279
  *
280
  * @param recurringDetailReference
281
  */ 
282
  @Deprecated
283
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
284
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
285
  public void setRecurringDetailReference(String recurringDetailReference) {
NEW
286
    this.recurringDetailReference = recurringDetailReference;
×
NEW
287
  }
×
288

289

290
  public EftDetails storedPaymentMethodId(String storedPaymentMethodId) {
NEW
291
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
292
    return this;
×
293
  }
294

295
   /**
296
   * This is the `recurringDetailReference` returned in the response when you created the token.
297
   * @return storedPaymentMethodId
298
  **/
299
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
300
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
301
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
302

303
  public String getStoredPaymentMethodId() {
NEW
304
    return storedPaymentMethodId;
×
305
  }
306

307

308
 /**
309
  * This is the `recurringDetailReference` returned in the response when you created the token.
310
  *
311
  * @param storedPaymentMethodId
312
  */ 
313
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
314
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
315
  public void setStoredPaymentMethodId(String storedPaymentMethodId) {
NEW
316
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
317
  }
×
318

319

320
  public EftDetails type(TypeEnum type) {
NEW
321
    this.type = type;
×
NEW
322
    return this;
×
323
  }
324

325
   /**
326
   * **eft**
327
   * @return type
328
  **/
329
  @ApiModelProperty(value = "**eft**")
330
  @JsonProperty(JSON_PROPERTY_TYPE)
331
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
332

333
  public TypeEnum getType() {
NEW
334
    return type;
×
335
  }
336

337

338
 /**
339
  * **eft**
340
  *
341
  * @param type
342
  */ 
343
  @JsonProperty(JSON_PROPERTY_TYPE)
344
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
345
  public void setType(TypeEnum type) {
NEW
346
    this.type = type;
×
NEW
347
  }
×
348

349

350
  /**
351
   * Return true if this EftDetails object is equal to o.
352
   */
353
  @Override
354
  public boolean equals(Object o) {
NEW
355
    if (this == o) {
×
NEW
356
      return true;
×
357
    }
NEW
358
    if (o == null || getClass() != o.getClass()) {
×
NEW
359
      return false;
×
360
    }
NEW
361
    EftDetails eftDetails = (EftDetails) o;
×
NEW
362
    return Objects.equals(this.bankAccountNumber, eftDetails.bankAccountNumber) &&
×
NEW
363
        Objects.equals(this.bankCode, eftDetails.bankCode) &&
×
NEW
364
        Objects.equals(this.bankLocationId, eftDetails.bankLocationId) &&
×
NEW
365
        Objects.equals(this.checkoutAttemptId, eftDetails.checkoutAttemptId) &&
×
NEW
366
        Objects.equals(this.ownerName, eftDetails.ownerName) &&
×
NEW
367
        Objects.equals(this.recurringDetailReference, eftDetails.recurringDetailReference) &&
×
NEW
368
        Objects.equals(this.storedPaymentMethodId, eftDetails.storedPaymentMethodId) &&
×
NEW
369
        Objects.equals(this.type, eftDetails.type);
×
370
  }
371

372
  @Override
373
  public int hashCode() {
NEW
374
    return Objects.hash(bankAccountNumber, bankCode, bankLocationId, checkoutAttemptId, ownerName, recurringDetailReference, storedPaymentMethodId, type);
×
375
  }
376

377
  @Override
378
  public String toString() {
NEW
379
    StringBuilder sb = new StringBuilder();
×
NEW
380
    sb.append("class EftDetails {\n");
×
NEW
381
    sb.append("    bankAccountNumber: ").append(toIndentedString(bankAccountNumber)).append("\n");
×
NEW
382
    sb.append("    bankCode: ").append(toIndentedString(bankCode)).append("\n");
×
NEW
383
    sb.append("    bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n");
×
NEW
384
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
NEW
385
    sb.append("    ownerName: ").append(toIndentedString(ownerName)).append("\n");
×
NEW
386
    sb.append("    recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
×
NEW
387
    sb.append("    storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
×
NEW
388
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
NEW
389
    sb.append("}");
×
NEW
390
    return sb.toString();
×
391
  }
392

393
  /**
394
   * Convert the given object to string with each line indented by 4 spaces
395
   * (except the first line).
396
   */
397
  private String toIndentedString(Object o) {
NEW
398
    if (o == null) {
×
NEW
399
      return "null";
×
400
    }
NEW
401
    return o.toString().replace("\n", "\n    ");
×
402
  }
403

404
/**
405
   * Create an instance of EftDetails given an JSON string
406
   *
407
   * @param jsonString JSON string
408
   * @return An instance of EftDetails
409
   * @throws JsonProcessingException if the JSON string is invalid with respect to EftDetails
410
   */
411
  public static EftDetails fromJson(String jsonString) throws JsonProcessingException {
NEW
412
    return JSON.getMapper().readValue(jsonString, EftDetails.class);
×
413
  }
414
/**
415
  * Convert an instance of EftDetails to an JSON string
416
  *
417
  * @return JSON string
418
  */
419
  public String toJson() throws JsonProcessingException {
NEW
420
    return JSON.getMapper().writeValueAsString(this);
×
421
  }
422
}
423

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