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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/marketpayaccount/BankAccountDetail.java
1
/*
2
 * Account API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayaccount;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * BankAccountDetail
33
 */
34
@JsonPropertyOrder({
35
  BankAccountDetail.JSON_PROPERTY_ACCOUNT_NUMBER,
36
  BankAccountDetail.JSON_PROPERTY_ACCOUNT_TYPE,
37
  BankAccountDetail.JSON_PROPERTY_BANK_ACCOUNT_NAME,
38
  BankAccountDetail.JSON_PROPERTY_BANK_ACCOUNT_REFERENCE,
39
  BankAccountDetail.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
40
  BankAccountDetail.JSON_PROPERTY_BANK_BIC_SWIFT,
41
  BankAccountDetail.JSON_PROPERTY_BANK_CITY,
42
  BankAccountDetail.JSON_PROPERTY_BANK_CODE,
43
  BankAccountDetail.JSON_PROPERTY_BANK_NAME,
44
  BankAccountDetail.JSON_PROPERTY_BRANCH_CODE,
45
  BankAccountDetail.JSON_PROPERTY_CHECK_CODE,
46
  BankAccountDetail.JSON_PROPERTY_COUNTRY_CODE,
47
  BankAccountDetail.JSON_PROPERTY_CURRENCY_CODE,
48
  BankAccountDetail.JSON_PROPERTY_IBAN,
49
  BankAccountDetail.JSON_PROPERTY_OWNER_CITY,
50
  BankAccountDetail.JSON_PROPERTY_OWNER_COUNTRY_CODE,
51
  BankAccountDetail.JSON_PROPERTY_OWNER_DATE_OF_BIRTH,
52
  BankAccountDetail.JSON_PROPERTY_OWNER_HOUSE_NUMBER_OR_NAME,
53
  BankAccountDetail.JSON_PROPERTY_OWNER_NAME,
54
  BankAccountDetail.JSON_PROPERTY_OWNER_NATIONALITY,
55
  BankAccountDetail.JSON_PROPERTY_OWNER_POSTAL_CODE,
56
  BankAccountDetail.JSON_PROPERTY_OWNER_STATE,
57
  BankAccountDetail.JSON_PROPERTY_OWNER_STREET,
58
  BankAccountDetail.JSON_PROPERTY_PRIMARY_ACCOUNT,
59
  BankAccountDetail.JSON_PROPERTY_TAX_ID,
60
  BankAccountDetail.JSON_PROPERTY_URL_FOR_VERIFICATION
61
})
62

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

142
  public BankAccountDetail() { 
×
143
  }
×
144

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

150
   /**
151
   * 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.
152
   * @return accountNumber
153
  **/
154
  @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.")
155
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
156
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
157

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

162

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

169

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

175
   /**
176
   * 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.
177
   * @return accountType
178
  **/
179
  @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.")
180
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
181
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
182

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

187

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

194

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

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

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

212

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

219

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

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

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

237

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

244

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

250
   /**
251
   * 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. 
252
   * @return bankAccountUUID
253
  **/
254
  @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. ")
255
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
256
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
257

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

262

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

269

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

275
   /**
276
   * 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.
277
   * @return bankBicSwift
278
  **/
279
  @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.")
280
  @JsonProperty(JSON_PROPERTY_BANK_BIC_SWIFT)
281
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
282

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

287

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

294

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

300
   /**
301
   * 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.
302
   * @return bankCity
303
  **/
304
  @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.")
305
  @JsonProperty(JSON_PROPERTY_BANK_CITY)
306
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
307

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

312

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

319

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

325
   /**
326
   * 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.
327
   * @return bankCode
328
  **/
329
  @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.")
330
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
331
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
332

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

337

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

344

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

350
   /**
351
   * 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.
352
   * @return bankName
353
  **/
354
  @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.")
355
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
356
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
357

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

362

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

369

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

375
   /**
376
   * 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.
377
   * @return branchCode
378
  **/
379
  @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.")
380
  @JsonProperty(JSON_PROPERTY_BRANCH_CODE)
381
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
382

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

387

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

394

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

400
   /**
401
   * 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.
402
   * @return checkCode
403
  **/
404
  @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.")
405
  @JsonProperty(JSON_PROPERTY_CHECK_CODE)
406
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
407

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

412

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

419

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

425
   /**
426
   * 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.
427
   * @return countryCode
428
  **/
429
  @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.")
430
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
431
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
432

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

437

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

444

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

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

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

462

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

469

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

475
   /**
476
   * 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.
477
   * @return iban
478
  **/
479
  @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.")
480
  @JsonProperty(JSON_PROPERTY_IBAN)
481
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
482

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

487

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

494

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

500
   /**
501
   * 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.
502
   * @return ownerCity
503
  **/
504
  @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.")
505
  @JsonProperty(JSON_PROPERTY_OWNER_CITY)
506
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
507

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

512

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

519

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

525
   /**
526
   * 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.
527
   * @return ownerCountryCode
528
  **/
529
  @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.")
530
  @JsonProperty(JSON_PROPERTY_OWNER_COUNTRY_CODE)
531
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
532

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

537

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

544

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

550
   /**
551
   * 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).
552
   * @return ownerDateOfBirth
553
   * @deprecated
554
  **/
555
  @Deprecated
556
  @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).")
557
  @JsonProperty(JSON_PROPERTY_OWNER_DATE_OF_BIRTH)
558
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
559

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

564

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

572

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

578
   /**
579
   * 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.
580
   * @return ownerHouseNumberOrName
581
  **/
582
  @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.")
583
  @JsonProperty(JSON_PROPERTY_OWNER_HOUSE_NUMBER_OR_NAME)
584
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
585

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

590

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

597

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

603
   /**
604
   * 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.
605
   * @return ownerName
606
  **/
607
  @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.")
608
  @JsonProperty(JSON_PROPERTY_OWNER_NAME)
609
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
610

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

615

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

622

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

628
   /**
629
   * 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.
630
   * @return ownerNationality
631
  **/
632
  @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.")
633
  @JsonProperty(JSON_PROPERTY_OWNER_NATIONALITY)
634
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
635

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

640

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

647

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

653
   /**
654
   * 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.
655
   * @return ownerPostalCode
656
  **/
657
  @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.")
658
  @JsonProperty(JSON_PROPERTY_OWNER_POSTAL_CODE)
659
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
660

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

665

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

672

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

678
   /**
679
   * 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.
680
   * @return ownerState
681
  **/
682
  @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.")
683
  @JsonProperty(JSON_PROPERTY_OWNER_STATE)
684
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
685

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

690

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

697

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

703
   /**
704
   * 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.
705
   * @return ownerStreet
706
  **/
707
  @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.")
708
  @JsonProperty(JSON_PROPERTY_OWNER_STREET)
709
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
710

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

715

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

722

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

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

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

740

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

747

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

753
   /**
754
   * 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.
755
   * @return taxId
756
  **/
757
  @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.")
758
  @JsonProperty(JSON_PROPERTY_TAX_ID)
759
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
760

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

765

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

772

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

778
   /**
779
   * 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.
780
   * @return urlForVerification
781
  **/
782
  @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.")
783
  @JsonProperty(JSON_PROPERTY_URL_FOR_VERIFICATION)
784
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
785

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

790

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

797

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

838
  @Override
839
  public int hashCode() {
840
    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);
×
841
  }
842

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

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

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

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