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

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

16 Oct 2023 09:08AM UTC coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

0.13 hits per line

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

27.14
/src/main/java/com/adyen/model/marketpaywebhooks/BankAccountDetail.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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
 * BankAccountDetail
32
 */
33
@JsonPropertyOrder({
34
  BankAccountDetail.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  BankAccountDetail.JSON_PROPERTY_ACCOUNT_TYPE,
36
  BankAccountDetail.JSON_PROPERTY_BANK_ACCOUNT_NAME,
37
  BankAccountDetail.JSON_PROPERTY_BANK_ACCOUNT_REFERENCE,
38
  BankAccountDetail.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
39
  BankAccountDetail.JSON_PROPERTY_BANK_BIC_SWIFT,
40
  BankAccountDetail.JSON_PROPERTY_BANK_CITY,
41
  BankAccountDetail.JSON_PROPERTY_BANK_CODE,
42
  BankAccountDetail.JSON_PROPERTY_BANK_NAME,
43
  BankAccountDetail.JSON_PROPERTY_BRANCH_CODE,
44
  BankAccountDetail.JSON_PROPERTY_CHECK_CODE,
45
  BankAccountDetail.JSON_PROPERTY_COUNTRY_CODE,
46
  BankAccountDetail.JSON_PROPERTY_CURRENCY_CODE,
47
  BankAccountDetail.JSON_PROPERTY_IBAN,
48
  BankAccountDetail.JSON_PROPERTY_OWNER_CITY,
49
  BankAccountDetail.JSON_PROPERTY_OWNER_COUNTRY_CODE,
50
  BankAccountDetail.JSON_PROPERTY_OWNER_DATE_OF_BIRTH,
51
  BankAccountDetail.JSON_PROPERTY_OWNER_HOUSE_NUMBER_OR_NAME,
52
  BankAccountDetail.JSON_PROPERTY_OWNER_NAME,
53
  BankAccountDetail.JSON_PROPERTY_OWNER_NATIONALITY,
54
  BankAccountDetail.JSON_PROPERTY_OWNER_POSTAL_CODE,
55
  BankAccountDetail.JSON_PROPERTY_OWNER_STATE,
56
  BankAccountDetail.JSON_PROPERTY_OWNER_STREET,
57
  BankAccountDetail.JSON_PROPERTY_PRIMARY_ACCOUNT,
58
  BankAccountDetail.JSON_PROPERTY_TAX_ID,
59
  BankAccountDetail.JSON_PROPERTY_URL_FOR_VERIFICATION
60
})
61

62
public class BankAccountDetail {
63
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
64
  private String accountNumber;
65

66
  public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
67
  private String accountType;
68

69
  public static final String JSON_PROPERTY_BANK_ACCOUNT_NAME = "bankAccountName";
70
  private String bankAccountName;
71

72
  public static final String JSON_PROPERTY_BANK_ACCOUNT_REFERENCE = "bankAccountReference";
73
  private String bankAccountReference;
74

75
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
76
  private String bankAccountUUID;
77

78
  public static final String JSON_PROPERTY_BANK_BIC_SWIFT = "bankBicSwift";
79
  private String bankBicSwift;
80

81
  public static final String JSON_PROPERTY_BANK_CITY = "bankCity";
82
  private String bankCity;
83

84
  public static final String JSON_PROPERTY_BANK_CODE = "bankCode";
85
  private String bankCode;
86

87
  public static final String JSON_PROPERTY_BANK_NAME = "bankName";
88
  private String bankName;
89

90
  public static final String JSON_PROPERTY_BRANCH_CODE = "branchCode";
91
  private String branchCode;
92

93
  public static final String JSON_PROPERTY_CHECK_CODE = "checkCode";
94
  private String checkCode;
95

96
  public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
97
  private String countryCode;
98

99
  public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode";
100
  private String currencyCode;
101

102
  public static final String JSON_PROPERTY_IBAN = "iban";
103
  private String iban;
104

105
  public static final String JSON_PROPERTY_OWNER_CITY = "ownerCity";
106
  private String ownerCity;
107

108
  public static final String JSON_PROPERTY_OWNER_COUNTRY_CODE = "ownerCountryCode";
109
  private String ownerCountryCode;
110

111
  public static final String JSON_PROPERTY_OWNER_DATE_OF_BIRTH = "ownerDateOfBirth";
112
  private String ownerDateOfBirth;
113

114
  public static final String JSON_PROPERTY_OWNER_HOUSE_NUMBER_OR_NAME = "ownerHouseNumberOrName";
115
  private String ownerHouseNumberOrName;
116

117
  public static final String JSON_PROPERTY_OWNER_NAME = "ownerName";
118
  private String ownerName;
119

120
  public static final String JSON_PROPERTY_OWNER_NATIONALITY = "ownerNationality";
121
  private String ownerNationality;
122

123
  public static final String JSON_PROPERTY_OWNER_POSTAL_CODE = "ownerPostalCode";
124
  private String ownerPostalCode;
125

126
  public static final String JSON_PROPERTY_OWNER_STATE = "ownerState";
127
  private String ownerState;
128

129
  public static final String JSON_PROPERTY_OWNER_STREET = "ownerStreet";
130
  private String ownerStreet;
131

132
  public static final String JSON_PROPERTY_PRIMARY_ACCOUNT = "primaryAccount";
133
  private Boolean primaryAccount;
134

135
  public static final String JSON_PROPERTY_TAX_ID = "taxId";
136
  private String taxId;
137

138
  public static final String JSON_PROPERTY_URL_FOR_VERIFICATION = "urlForVerification";
139
  private String urlForVerification;
140

141
  public BankAccountDetail() { 
1✔
142
  }
1✔
143

144
  public BankAccountDetail accountNumber(String accountNumber) {
145
    this.accountNumber = accountNumber;
×
146
    return this;
×
147
  }
148

149
   /**
150
   * The bank account number (without separators). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
151
   * @return accountNumber
152
  **/
153
  @ApiModelProperty(value = "The bank account number (without separators). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
154
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156

157
  public String getAccountNumber() {
158
    return accountNumber;
×
159
  }
160

161

162
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setAccountNumber(String accountNumber) {
165
    this.accountNumber = accountNumber;
1✔
166
  }
1✔
167

168

169
  public BankAccountDetail accountType(String accountType) {
170
    this.accountType = accountType;
×
171
    return this;
×
172
  }
173

174
   /**
175
   * The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
176
   * @return accountType
177
  **/
178
  @ApiModelProperty(value = "The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
179
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181

182
  public String getAccountType() {
183
    return accountType;
×
184
  }
185

186

187
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189
  public void setAccountType(String accountType) {
190
    this.accountType = accountType;
1✔
191
  }
1✔
192

193

194
  public BankAccountDetail bankAccountName(String bankAccountName) {
195
    this.bankAccountName = bankAccountName;
×
196
    return this;
×
197
  }
198

199
   /**
200
   * The name of the bank account.
201
   * @return bankAccountName
202
  **/
203
  @ApiModelProperty(value = "The name of the bank account.")
204
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NAME)
205
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
206

207
  public String getBankAccountName() {
208
    return bankAccountName;
×
209
  }
210

211

212
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NAME)
213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
214
  public void setBankAccountName(String bankAccountName) {
215
    this.bankAccountName = bankAccountName;
1✔
216
  }
1✔
217

218

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

224
   /**
225
   * Merchant reference to the bank account.
226
   * @return bankAccountReference
227
  **/
228
  @ApiModelProperty(value = "Merchant reference to the bank account.")
229
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_REFERENCE)
230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231

232
  public String getBankAccountReference() {
233
    return bankAccountReference;
×
234
  }
235

236

237
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_REFERENCE)
238
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
239
  public void setBankAccountReference(String bankAccountReference) {
240
    this.bankAccountReference = bankAccountReference;
1✔
241
  }
1✔
242

243

244
  public BankAccountDetail bankAccountUUID(String bankAccountUUID) {
245
    this.bankAccountUUID = bankAccountUUID;
×
246
    return this;
×
247
  }
248

249
   /**
250
   * The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID.  >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue.  >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail.  >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. 
251
   * @return bankAccountUUID
252
  **/
253
  @ApiModelProperty(value = "The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID.  >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue.  >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail.  >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. ")
254
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256

257
  public String getBankAccountUUID() {
258
    return bankAccountUUID;
×
259
  }
260

261

262
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
263
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
264
  public void setBankAccountUUID(String bankAccountUUID) {
265
    this.bankAccountUUID = bankAccountUUID;
1✔
266
  }
1✔
267

268

269
  public BankAccountDetail bankBicSwift(String bankBicSwift) {
270
    this.bankBicSwift = bankBicSwift;
×
271
    return this;
×
272
  }
273

274
   /**
275
   * The bank identifier code. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
276
   * @return bankBicSwift
277
  **/
278
  @ApiModelProperty(value = "The bank identifier code. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
279
  @JsonProperty(JSON_PROPERTY_BANK_BIC_SWIFT)
280
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281

282
  public String getBankBicSwift() {
283
    return bankBicSwift;
×
284
  }
285

286

287
  @JsonProperty(JSON_PROPERTY_BANK_BIC_SWIFT)
288
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
289
  public void setBankBicSwift(String bankBicSwift) {
290
    this.bankBicSwift = bankBicSwift;
1✔
291
  }
1✔
292

293

294
  public BankAccountDetail bankCity(String bankCity) {
295
    this.bankCity = bankCity;
×
296
    return this;
×
297
  }
298

299
   /**
300
   * The city in which the bank branch is located.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
301
   * @return bankCity
302
  **/
303
  @ApiModelProperty(value = "The city in which the bank branch is located.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
304
  @JsonProperty(JSON_PROPERTY_BANK_CITY)
305
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
306

307
  public String getBankCity() {
308
    return bankCity;
×
309
  }
310

311

312
  @JsonProperty(JSON_PROPERTY_BANK_CITY)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314
  public void setBankCity(String bankCity) {
315
    this.bankCity = bankCity;
1✔
316
  }
1✔
317

318

319
  public BankAccountDetail bankCode(String bankCode) {
320
    this.bankCode = bankCode;
×
321
    return this;
×
322
  }
323

324
   /**
325
   * The bank code of the banking institution with which the bank account is registered.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
326
   * @return bankCode
327
  **/
328
  @ApiModelProperty(value = "The bank code of the banking institution with which the bank account is registered.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
329
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
330
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
331

332
  public String getBankCode() {
333
    return bankCode;
×
334
  }
335

336

337
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
338
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
339
  public void setBankCode(String bankCode) {
340
    this.bankCode = bankCode;
1✔
341
  }
1✔
342

343

344
  public BankAccountDetail bankName(String bankName) {
345
    this.bankName = bankName;
×
346
    return this;
×
347
  }
348

349
   /**
350
   * The name of the banking institution with which the bank account is held.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
351
   * @return bankName
352
  **/
353
  @ApiModelProperty(value = "The name of the banking institution with which the bank account is held.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
354
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
355
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
356

357
  public String getBankName() {
358
    return bankName;
×
359
  }
360

361

362
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
363
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
364
  public void setBankName(String bankName) {
365
    this.bankName = bankName;
1✔
366
  }
1✔
367

368

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

374
   /**
375
   * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
376
   * @return branchCode
377
  **/
378
  @ApiModelProperty(value = "The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
379
  @JsonProperty(JSON_PROPERTY_BRANCH_CODE)
380
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
381

382
  public String getBranchCode() {
383
    return branchCode;
×
384
  }
385

386

387
  @JsonProperty(JSON_PROPERTY_BRANCH_CODE)
388
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
389
  public void setBranchCode(String branchCode) {
390
    this.branchCode = branchCode;
1✔
391
  }
1✔
392

393

394
  public BankAccountDetail checkCode(String checkCode) {
395
    this.checkCode = checkCode;
×
396
    return this;
×
397
  }
398

399
   /**
400
   * The check code of the bank account.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
401
   * @return checkCode
402
  **/
403
  @ApiModelProperty(value = "The check code of the bank account.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
404
  @JsonProperty(JSON_PROPERTY_CHECK_CODE)
405
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
406

407
  public String getCheckCode() {
408
    return checkCode;
×
409
  }
410

411

412
  @JsonProperty(JSON_PROPERTY_CHECK_CODE)
413
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
414
  public void setCheckCode(String checkCode) {
415
    this.checkCode = checkCode;
1✔
416
  }
1✔
417

418

419
  public BankAccountDetail countryCode(String countryCode) {
420
    this.countryCode = countryCode;
×
421
    return this;
×
422
  }
423

424
   /**
425
   * The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
426
   * @return countryCode
427
  **/
428
  @ApiModelProperty(value = "The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
429
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
430
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
431

432
  public String getCountryCode() {
433
    return countryCode;
×
434
  }
435

436

437
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
438
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
439
  public void setCountryCode(String countryCode) {
440
    this.countryCode = countryCode;
1✔
441
  }
1✔
442

443

444
  public BankAccountDetail currencyCode(String currencyCode) {
445
    this.currencyCode = currencyCode;
×
446
    return this;
×
447
  }
448

449
   /**
450
   * The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. 'EUR'). 
451
   * @return currencyCode
452
  **/
453
  @ApiModelProperty(value = "The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. 'EUR'). ")
454
  @JsonProperty(JSON_PROPERTY_CURRENCY_CODE)
455
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
456

457
  public String getCurrencyCode() {
458
    return currencyCode;
×
459
  }
460

461

462
  @JsonProperty(JSON_PROPERTY_CURRENCY_CODE)
463
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
464
  public void setCurrencyCode(String currencyCode) {
465
    this.currencyCode = currencyCode;
1✔
466
  }
1✔
467

468

469
  public BankAccountDetail iban(String iban) {
470
    this.iban = iban;
×
471
    return this;
×
472
  }
473

474
   /**
475
   * The international bank account number. >The IBAN standard is defined in ISO-13616.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
476
   * @return iban
477
  **/
478
  @ApiModelProperty(value = "The international bank account number. >The IBAN standard is defined in ISO-13616.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
479
  @JsonProperty(JSON_PROPERTY_IBAN)
480
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
481

482
  public String getIban() {
483
    return iban;
×
484
  }
485

486

487
  @JsonProperty(JSON_PROPERTY_IBAN)
488
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
489
  public void setIban(String iban) {
490
    this.iban = iban;
1✔
491
  }
1✔
492

493

494
  public BankAccountDetail ownerCity(String ownerCity) {
495
    this.ownerCity = ownerCity;
×
496
    return this;
×
497
  }
498

499
   /**
500
   * The city of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
501
   * @return ownerCity
502
  **/
503
  @ApiModelProperty(value = "The city of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
504
  @JsonProperty(JSON_PROPERTY_OWNER_CITY)
505
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
506

507
  public String getOwnerCity() {
508
    return ownerCity;
×
509
  }
510

511

512
  @JsonProperty(JSON_PROPERTY_OWNER_CITY)
513
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
514
  public void setOwnerCity(String ownerCity) {
515
    this.ownerCity = ownerCity;
1✔
516
  }
1✔
517

518

519
  public BankAccountDetail ownerCountryCode(String ownerCountryCode) {
520
    this.ownerCountryCode = ownerCountryCode;
×
521
    return this;
×
522
  }
523

524
   /**
525
   * The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
526
   * @return ownerCountryCode
527
  **/
528
  @ApiModelProperty(value = "The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
529
  @JsonProperty(JSON_PROPERTY_OWNER_COUNTRY_CODE)
530
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
531

532
  public String getOwnerCountryCode() {
533
    return ownerCountryCode;
×
534
  }
535

536

537
  @JsonProperty(JSON_PROPERTY_OWNER_COUNTRY_CODE)
538
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
539
  public void setOwnerCountryCode(String ownerCountryCode) {
540
    this.ownerCountryCode = ownerCountryCode;
1✔
541
  }
1✔
542

543

544
  public BankAccountDetail ownerDateOfBirth(String ownerDateOfBirth) {
545
    this.ownerDateOfBirth = ownerDateOfBirth;
×
546
    return this;
×
547
  }
548

549
   /**
550
   * The date of birth of the bank account owner. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).
551
   * @return ownerDateOfBirth
552
   * @deprecated
553
  **/
554
  @Deprecated
555
  @ApiModelProperty(value = "The date of birth of the bank account owner. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).")
556
  @JsonProperty(JSON_PROPERTY_OWNER_DATE_OF_BIRTH)
557
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
558

559
  public String getOwnerDateOfBirth() {
560
    return ownerDateOfBirth;
×
561
  }
562

563

564
  @Deprecated
565
  @JsonProperty(JSON_PROPERTY_OWNER_DATE_OF_BIRTH)
566
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
567
  public void setOwnerDateOfBirth(String ownerDateOfBirth) {
568
    this.ownerDateOfBirth = ownerDateOfBirth;
1✔
569
  }
1✔
570

571

572
  public BankAccountDetail ownerHouseNumberOrName(String ownerHouseNumberOrName) {
573
    this.ownerHouseNumberOrName = ownerHouseNumberOrName;
×
574
    return this;
×
575
  }
576

577
   /**
578
   * The house name or number of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
579
   * @return ownerHouseNumberOrName
580
  **/
581
  @ApiModelProperty(value = "The house name or number of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
582
  @JsonProperty(JSON_PROPERTY_OWNER_HOUSE_NUMBER_OR_NAME)
583
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
584

585
  public String getOwnerHouseNumberOrName() {
586
    return ownerHouseNumberOrName;
×
587
  }
588

589

590
  @JsonProperty(JSON_PROPERTY_OWNER_HOUSE_NUMBER_OR_NAME)
591
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
592
  public void setOwnerHouseNumberOrName(String ownerHouseNumberOrName) {
593
    this.ownerHouseNumberOrName = ownerHouseNumberOrName;
1✔
594
  }
1✔
595

596

597
  public BankAccountDetail ownerName(String ownerName) {
598
    this.ownerName = ownerName;
×
599
    return this;
×
600
  }
601

602
   /**
603
   * The name of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
604
   * @return ownerName
605
  **/
606
  @ApiModelProperty(value = "The name of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
607
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
608
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
609

610
  public String getOwnerName() {
611
    return ownerName;
×
612
  }
613

614

615
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
616
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
617
  public void setOwnerName(String ownerName) {
618
    this.ownerName = ownerName;
1✔
619
  }
1✔
620

621

622
  public BankAccountDetail ownerNationality(String ownerNationality) {
623
    this.ownerNationality = ownerNationality;
×
624
    return this;
×
625
  }
626

627
   /**
628
   * The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
629
   * @return ownerNationality
630
  **/
631
  @ApiModelProperty(value = "The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
632
  @JsonProperty(JSON_PROPERTY_OWNER_NATIONALITY)
633
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
634

635
  public String getOwnerNationality() {
636
    return ownerNationality;
×
637
  }
638

639

640
  @JsonProperty(JSON_PROPERTY_OWNER_NATIONALITY)
641
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
642
  public void setOwnerNationality(String ownerNationality) {
643
    this.ownerNationality = ownerNationality;
1✔
644
  }
1✔
645

646

647
  public BankAccountDetail ownerPostalCode(String ownerPostalCode) {
648
    this.ownerPostalCode = ownerPostalCode;
×
649
    return this;
×
650
  }
651

652
   /**
653
   * The postal code of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
654
   * @return ownerPostalCode
655
  **/
656
  @ApiModelProperty(value = "The postal code of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
657
  @JsonProperty(JSON_PROPERTY_OWNER_POSTAL_CODE)
658
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
659

660
  public String getOwnerPostalCode() {
661
    return ownerPostalCode;
×
662
  }
663

664

665
  @JsonProperty(JSON_PROPERTY_OWNER_POSTAL_CODE)
666
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
667
  public void setOwnerPostalCode(String ownerPostalCode) {
668
    this.ownerPostalCode = ownerPostalCode;
1✔
669
  }
1✔
670

671

672
  public BankAccountDetail ownerState(String ownerState) {
673
    this.ownerState = ownerState;
×
674
    return this;
×
675
  }
676

677
   /**
678
   * The state of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
679
   * @return ownerState
680
  **/
681
  @ApiModelProperty(value = "The state of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
682
  @JsonProperty(JSON_PROPERTY_OWNER_STATE)
683
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
684

685
  public String getOwnerState() {
686
    return ownerState;
×
687
  }
688

689

690
  @JsonProperty(JSON_PROPERTY_OWNER_STATE)
691
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
692
  public void setOwnerState(String ownerState) {
693
    this.ownerState = ownerState;
1✔
694
  }
1✔
695

696

697
  public BankAccountDetail ownerStreet(String ownerStreet) {
698
    this.ownerStreet = ownerStreet;
×
699
    return this;
×
700
  }
701

702
   /**
703
   * The street name of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
704
   * @return ownerStreet
705
  **/
706
  @ApiModelProperty(value = "The street name of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
707
  @JsonProperty(JSON_PROPERTY_OWNER_STREET)
708
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
709

710
  public String getOwnerStreet() {
711
    return ownerStreet;
×
712
  }
713

714

715
  @JsonProperty(JSON_PROPERTY_OWNER_STREET)
716
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
717
  public void setOwnerStreet(String ownerStreet) {
718
    this.ownerStreet = ownerStreet;
1✔
719
  }
1✔
720

721

722
  public BankAccountDetail primaryAccount(Boolean primaryAccount) {
723
    this.primaryAccount = primaryAccount;
×
724
    return this;
×
725
  }
726

727
   /**
728
   * If set to true, the bank account is a primary account.
729
   * @return primaryAccount
730
  **/
731
  @ApiModelProperty(value = "If set to true, the bank account is a primary account.")
732
  @JsonProperty(JSON_PROPERTY_PRIMARY_ACCOUNT)
733
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
734

735
  public Boolean getPrimaryAccount() {
736
    return primaryAccount;
×
737
  }
738

739

740
  @JsonProperty(JSON_PROPERTY_PRIMARY_ACCOUNT)
741
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
742
  public void setPrimaryAccount(Boolean primaryAccount) {
743
    this.primaryAccount = primaryAccount;
1✔
744
  }
1✔
745

746

747
  public BankAccountDetail taxId(String taxId) {
748
    this.taxId = taxId;
×
749
    return this;
×
750
  }
751

752
   /**
753
   * The tax ID number.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
754
   * @return taxId
755
  **/
756
  @ApiModelProperty(value = "The tax ID number.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
757
  @JsonProperty(JSON_PROPERTY_TAX_ID)
758
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
759

760
  public String getTaxId() {
761
    return taxId;
×
762
  }
763

764

765
  @JsonProperty(JSON_PROPERTY_TAX_ID)
766
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
767
  public void setTaxId(String taxId) {
768
    this.taxId = taxId;
1✔
769
  }
1✔
770

771

772
  public BankAccountDetail urlForVerification(String urlForVerification) {
773
    this.urlForVerification = urlForVerification;
×
774
    return this;
×
775
  }
776

777
   /**
778
   * The URL to be used for bank account verification. This may be generated on bank account creation.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.
779
   * @return urlForVerification
780
  **/
781
  @ApiModelProperty(value = "The URL to be used for bank account verification. This may be generated on bank account creation.  >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements.")
782
  @JsonProperty(JSON_PROPERTY_URL_FOR_VERIFICATION)
783
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
784

785
  public String getUrlForVerification() {
786
    return urlForVerification;
×
787
  }
788

789

790
  @JsonProperty(JSON_PROPERTY_URL_FOR_VERIFICATION)
791
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
792
  public void setUrlForVerification(String urlForVerification) {
793
    this.urlForVerification = urlForVerification;
1✔
794
  }
1✔
795

796

797
  /**
798
   * Return true if this BankAccountDetail object is equal to o.
799
   */
800
  @Override
801
  public boolean equals(Object o) {
802
    if (this == o) {
×
803
      return true;
×
804
    }
805
    if (o == null || getClass() != o.getClass()) {
×
806
      return false;
×
807
    }
808
    BankAccountDetail bankAccountDetail = (BankAccountDetail) o;
×
809
    return Objects.equals(this.accountNumber, bankAccountDetail.accountNumber) &&
×
810
        Objects.equals(this.accountType, bankAccountDetail.accountType) &&
×
811
        Objects.equals(this.bankAccountName, bankAccountDetail.bankAccountName) &&
×
812
        Objects.equals(this.bankAccountReference, bankAccountDetail.bankAccountReference) &&
×
813
        Objects.equals(this.bankAccountUUID, bankAccountDetail.bankAccountUUID) &&
×
814
        Objects.equals(this.bankBicSwift, bankAccountDetail.bankBicSwift) &&
×
815
        Objects.equals(this.bankCity, bankAccountDetail.bankCity) &&
×
816
        Objects.equals(this.bankCode, bankAccountDetail.bankCode) &&
×
817
        Objects.equals(this.bankName, bankAccountDetail.bankName) &&
×
818
        Objects.equals(this.branchCode, bankAccountDetail.branchCode) &&
×
819
        Objects.equals(this.checkCode, bankAccountDetail.checkCode) &&
×
820
        Objects.equals(this.countryCode, bankAccountDetail.countryCode) &&
×
821
        Objects.equals(this.currencyCode, bankAccountDetail.currencyCode) &&
×
822
        Objects.equals(this.iban, bankAccountDetail.iban) &&
×
823
        Objects.equals(this.ownerCity, bankAccountDetail.ownerCity) &&
×
824
        Objects.equals(this.ownerCountryCode, bankAccountDetail.ownerCountryCode) &&
×
825
        Objects.equals(this.ownerDateOfBirth, bankAccountDetail.ownerDateOfBirth) &&
×
826
        Objects.equals(this.ownerHouseNumberOrName, bankAccountDetail.ownerHouseNumberOrName) &&
×
827
        Objects.equals(this.ownerName, bankAccountDetail.ownerName) &&
×
828
        Objects.equals(this.ownerNationality, bankAccountDetail.ownerNationality) &&
×
829
        Objects.equals(this.ownerPostalCode, bankAccountDetail.ownerPostalCode) &&
×
830
        Objects.equals(this.ownerState, bankAccountDetail.ownerState) &&
×
831
        Objects.equals(this.ownerStreet, bankAccountDetail.ownerStreet) &&
×
832
        Objects.equals(this.primaryAccount, bankAccountDetail.primaryAccount) &&
×
833
        Objects.equals(this.taxId, bankAccountDetail.taxId) &&
×
834
        Objects.equals(this.urlForVerification, bankAccountDetail.urlForVerification);
×
835
  }
836

837
  @Override
838
  public int hashCode() {
839
    return Objects.hash(accountNumber, accountType, bankAccountName, bankAccountReference, bankAccountUUID, bankBicSwift, bankCity, bankCode, bankName, branchCode, checkCode, countryCode, currencyCode, iban, ownerCity, ownerCountryCode, ownerDateOfBirth, ownerHouseNumberOrName, ownerName, ownerNationality, ownerPostalCode, ownerState, ownerStreet, primaryAccount, taxId, urlForVerification);
×
840
  }
841

842
  @Override
843
  public String toString() {
844
    StringBuilder sb = new StringBuilder();
×
845
    sb.append("class BankAccountDetail {\n");
×
846
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
847
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
×
848
    sb.append("    bankAccountName: ").append(toIndentedString(bankAccountName)).append("\n");
×
849
    sb.append("    bankAccountReference: ").append(toIndentedString(bankAccountReference)).append("\n");
×
850
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
851
    sb.append("    bankBicSwift: ").append(toIndentedString(bankBicSwift)).append("\n");
×
852
    sb.append("    bankCity: ").append(toIndentedString(bankCity)).append("\n");
×
853
    sb.append("    bankCode: ").append(toIndentedString(bankCode)).append("\n");
×
854
    sb.append("    bankName: ").append(toIndentedString(bankName)).append("\n");
×
855
    sb.append("    branchCode: ").append(toIndentedString(branchCode)).append("\n");
×
856
    sb.append("    checkCode: ").append(toIndentedString(checkCode)).append("\n");
×
857
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
858
    sb.append("    currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
×
859
    sb.append("    iban: ").append(toIndentedString(iban)).append("\n");
×
860
    sb.append("    ownerCity: ").append(toIndentedString(ownerCity)).append("\n");
×
861
    sb.append("    ownerCountryCode: ").append(toIndentedString(ownerCountryCode)).append("\n");
×
862
    sb.append("    ownerDateOfBirth: ").append(toIndentedString(ownerDateOfBirth)).append("\n");
×
863
    sb.append("    ownerHouseNumberOrName: ").append(toIndentedString(ownerHouseNumberOrName)).append("\n");
×
864
    sb.append("    ownerName: ").append(toIndentedString(ownerName)).append("\n");
×
865
    sb.append("    ownerNationality: ").append(toIndentedString(ownerNationality)).append("\n");
×
866
    sb.append("    ownerPostalCode: ").append(toIndentedString(ownerPostalCode)).append("\n");
×
867
    sb.append("    ownerState: ").append(toIndentedString(ownerState)).append("\n");
×
868
    sb.append("    ownerStreet: ").append(toIndentedString(ownerStreet)).append("\n");
×
869
    sb.append("    primaryAccount: ").append(toIndentedString(primaryAccount)).append("\n");
×
870
    sb.append("    taxId: ").append(toIndentedString(taxId)).append("\n");
×
871
    sb.append("    urlForVerification: ").append(toIndentedString(urlForVerification)).append("\n");
×
872
    sb.append("}");
×
873
    return sb.toString();
×
874
  }
875

876
  /**
877
   * Convert the given object to string with each line indented by 4 spaces
878
   * (except the first line).
879
   */
880
  private String toIndentedString(Object o) {
881
    if (o == null) {
×
882
      return "null";
×
883
    }
884
    return o.toString().replace("\n", "\n    ");
×
885
  }
886

887
/**
888
   * Create an instance of BankAccountDetail given an JSON string
889
   *
890
   * @param jsonString JSON string
891
   * @return An instance of BankAccountDetail
892
   * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetail
893
   */
894
  public static BankAccountDetail fromJson(String jsonString) throws JsonProcessingException {
895
    return JSON.getMapper().readValue(jsonString, BankAccountDetail.class);
×
896
  }
897
/**
898
  * Convert an instance of BankAccountDetail to an JSON string
899
  *
900
  * @return JSON string
901
  */
902
  public String toJson() throws JsonProcessingException {
903
    return JSON.getMapper().writeValueAsString(this);
×
904
  }
905
}
906

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