• 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

17.01
/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderDetails.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.adyen.model.marketpaywebhooks.BankAccountDetail;
20
import com.adyen.model.marketpaywebhooks.BusinessDetails;
21
import com.adyen.model.marketpaywebhooks.IndividualDetails;
22
import com.adyen.model.marketpaywebhooks.LegalArrangementDetail;
23
import com.adyen.model.marketpaywebhooks.PayoutMethod;
24
import com.adyen.model.marketpaywebhooks.StoreDetail;
25
import com.adyen.model.marketpaywebhooks.ViasAddress;
26
import com.fasterxml.jackson.annotation.JsonInclude;
27
import com.fasterxml.jackson.annotation.JsonProperty;
28
import com.fasterxml.jackson.annotation.JsonCreator;
29
import com.fasterxml.jackson.annotation.JsonTypeName;
30
import com.fasterxml.jackson.annotation.JsonValue;
31
import io.swagger.annotations.ApiModel;
32
import io.swagger.annotations.ApiModelProperty;
33
import java.util.ArrayList;
34
import java.util.HashMap;
35
import java.util.List;
36
import java.util.Map;
37
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
38
import com.fasterxml.jackson.core.JsonProcessingException;
39

40

41
/**
42
 * AccountHolderDetails
43
 */
44
@JsonPropertyOrder({
45
  AccountHolderDetails.JSON_PROPERTY_ADDRESS,
46
  AccountHolderDetails.JSON_PROPERTY_BANK_ACCOUNT_DETAILS,
47
  AccountHolderDetails.JSON_PROPERTY_BANK_AGGREGATOR_DATA_REFERENCE,
48
  AccountHolderDetails.JSON_PROPERTY_BUSINESS_DETAILS,
49
  AccountHolderDetails.JSON_PROPERTY_EMAIL,
50
  AccountHolderDetails.JSON_PROPERTY_FULL_PHONE_NUMBER,
51
  AccountHolderDetails.JSON_PROPERTY_INDIVIDUAL_DETAILS,
52
  AccountHolderDetails.JSON_PROPERTY_LAST_REVIEW_DATE,
53
  AccountHolderDetails.JSON_PROPERTY_LEGAL_ARRANGEMENTS,
54
  AccountHolderDetails.JSON_PROPERTY_MERCHANT_CATEGORY_CODE,
55
  AccountHolderDetails.JSON_PROPERTY_METADATA,
56
  AccountHolderDetails.JSON_PROPERTY_PAYOUT_METHODS,
57
  AccountHolderDetails.JSON_PROPERTY_PRINCIPAL_BUSINESS_ADDRESS,
58
  AccountHolderDetails.JSON_PROPERTY_STORE_DETAILS,
59
  AccountHolderDetails.JSON_PROPERTY_WEB_ADDRESS
60
})
61

62
public class AccountHolderDetails {
63
  public static final String JSON_PROPERTY_ADDRESS = "address";
64
  private ViasAddress address;
65

66
  public static final String JSON_PROPERTY_BANK_ACCOUNT_DETAILS = "bankAccountDetails";
67
  private List<BankAccountDetail> bankAccountDetails = null;
1✔
68

69
  public static final String JSON_PROPERTY_BANK_AGGREGATOR_DATA_REFERENCE = "bankAggregatorDataReference";
70
  private String bankAggregatorDataReference;
71

72
  public static final String JSON_PROPERTY_BUSINESS_DETAILS = "businessDetails";
73
  private BusinessDetails businessDetails;
74

75
  public static final String JSON_PROPERTY_EMAIL = "email";
76
  private String email;
77

78
  public static final String JSON_PROPERTY_FULL_PHONE_NUMBER = "fullPhoneNumber";
79
  private String fullPhoneNumber;
80

81
  public static final String JSON_PROPERTY_INDIVIDUAL_DETAILS = "individualDetails";
82
  private IndividualDetails individualDetails;
83

84
  public static final String JSON_PROPERTY_LAST_REVIEW_DATE = "lastReviewDate";
85
  private String lastReviewDate;
86

87
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENTS = "legalArrangements";
88
  private List<LegalArrangementDetail> legalArrangements = null;
1✔
89

90
  public static final String JSON_PROPERTY_MERCHANT_CATEGORY_CODE = "merchantCategoryCode";
91
  private String merchantCategoryCode;
92

93
  public static final String JSON_PROPERTY_METADATA = "metadata";
94
  private Map<String, String> metadata = null;
1✔
95

96
  public static final String JSON_PROPERTY_PAYOUT_METHODS = "payoutMethods";
97
  private List<PayoutMethod> payoutMethods = null;
1✔
98

99
  public static final String JSON_PROPERTY_PRINCIPAL_BUSINESS_ADDRESS = "principalBusinessAddress";
100
  private ViasAddress principalBusinessAddress;
101

102
  public static final String JSON_PROPERTY_STORE_DETAILS = "storeDetails";
103
  private List<StoreDetail> storeDetails = null;
1✔
104

105
  public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
106
  private String webAddress;
107

108
  public AccountHolderDetails() { 
1✔
109
  }
1✔
110

111
  public AccountHolderDetails address(ViasAddress address) {
112
    this.address = address;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * Get address
118
   * @return address
119
  **/
120
  @ApiModelProperty(required = true, value = "")
121
  @JsonProperty(JSON_PROPERTY_ADDRESS)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public ViasAddress getAddress() {
125
    return address;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_ADDRESS)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setAddress(ViasAddress address) {
132
    this.address = address;
1✔
133
  }
1✔
134

135

136
  public AccountHolderDetails bankAccountDetails(List<BankAccountDetail> bankAccountDetails) {
137
    this.bankAccountDetails = bankAccountDetails;
×
138
    return this;
×
139
  }
140

141
  public AccountHolderDetails addBankAccountDetailsItem(BankAccountDetail bankAccountDetailsItem) {
142
    if (this.bankAccountDetails == null) {
×
143
      this.bankAccountDetails = new ArrayList<>();
×
144
    }
145
    this.bankAccountDetails.add(bankAccountDetailsItem);
×
146
    return this;
×
147
  }
148

149
   /**
150
   * Array of bank accounts associated with the account holder. For details about the required &#x60;bankAccountDetail&#x60; fields, see [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information).
151
   * @return bankAccountDetails
152
  **/
153
  @ApiModelProperty(value = "Array of bank accounts associated with the account holder. For details about the required `bankAccountDetail` fields, see [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information).")
154
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_DETAILS)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156

157
  public List<BankAccountDetail> getBankAccountDetails() {
158
    return bankAccountDetails;
×
159
  }
160

161

162
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_DETAILS)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setBankAccountDetails(List<BankAccountDetail> bankAccountDetails) {
165
    this.bankAccountDetails = bankAccountDetails;
1✔
166
  }
1✔
167

168

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

174
   /**
175
   * The opaque reference value returned by the Adyen API during bank account login.
176
   * @return bankAggregatorDataReference
177
  **/
178
  @ApiModelProperty(value = "The opaque reference value returned by the Adyen API during bank account login.")
179
  @JsonProperty(JSON_PROPERTY_BANK_AGGREGATOR_DATA_REFERENCE)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181

182
  public String getBankAggregatorDataReference() {
183
    return bankAggregatorDataReference;
×
184
  }
185

186

187
  @JsonProperty(JSON_PROPERTY_BANK_AGGREGATOR_DATA_REFERENCE)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189
  public void setBankAggregatorDataReference(String bankAggregatorDataReference) {
190
    this.bankAggregatorDataReference = bankAggregatorDataReference;
×
191
  }
×
192

193

194
  public AccountHolderDetails businessDetails(BusinessDetails businessDetails) {
195
    this.businessDetails = businessDetails;
×
196
    return this;
×
197
  }
198

199
   /**
200
   * Get businessDetails
201
   * @return businessDetails
202
  **/
203
  @ApiModelProperty(value = "")
204
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
205
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
206

207
  public BusinessDetails getBusinessDetails() {
208
    return businessDetails;
×
209
  }
210

211

212
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
214
  public void setBusinessDetails(BusinessDetails businessDetails) {
215
    this.businessDetails = businessDetails;
1✔
216
  }
1✔
217

218

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

224
   /**
225
   * The email address of the account holder.
226
   * @return email
227
  **/
228
  @ApiModelProperty(value = "The email address of the account holder.")
229
  @JsonProperty(JSON_PROPERTY_EMAIL)
230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231

232
  public String getEmail() {
233
    return email;
×
234
  }
235

236

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

243

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

249
   /**
250
   * The phone number of the account holder provided as a single string. It will be handled as a landline phone. **Examples:** \&quot;0031 6 11 22 33 44\&quot;, \&quot;+316/1122-3344\&quot;, \&quot;(0031) 611223344\&quot;
251
   * @return fullPhoneNumber
252
  **/
253
  @ApiModelProperty(value = "The phone number of the account holder provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"")
254
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256

257
  public String getFullPhoneNumber() {
258
    return fullPhoneNumber;
×
259
  }
260

261

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

268

269
  public AccountHolderDetails individualDetails(IndividualDetails individualDetails) {
270
    this.individualDetails = individualDetails;
×
271
    return this;
×
272
  }
273

274
   /**
275
   * Get individualDetails
276
   * @return individualDetails
277
  **/
278
  @ApiModelProperty(value = "")
279
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
280
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281

282
  public IndividualDetails getIndividualDetails() {
283
    return individualDetails;
×
284
  }
285

286

287
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
288
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
289
  public void setIndividualDetails(IndividualDetails individualDetails) {
290
    this.individualDetails = individualDetails;
1✔
291
  }
1✔
292

293

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

299
   /**
300
   * Date when you last reviewed the account holder&#39;s information, in ISO-8601 YYYY-MM-DD format. For example, **2020-01-31**.
301
   * @return lastReviewDate
302
  **/
303
  @ApiModelProperty(value = "Date when you last reviewed the account holder's information, in ISO-8601 YYYY-MM-DD format. For example, **2020-01-31**.")
304
  @JsonProperty(JSON_PROPERTY_LAST_REVIEW_DATE)
305
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
306

307
  public String getLastReviewDate() {
308
    return lastReviewDate;
×
309
  }
310

311

312
  @JsonProperty(JSON_PROPERTY_LAST_REVIEW_DATE)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314
  public void setLastReviewDate(String lastReviewDate) {
315
    this.lastReviewDate = lastReviewDate;
×
316
  }
×
317

318

319
  public AccountHolderDetails legalArrangements(List<LegalArrangementDetail> legalArrangements) {
320
    this.legalArrangements = legalArrangements;
×
321
    return this;
×
322
  }
323

324
  public AccountHolderDetails addLegalArrangementsItem(LegalArrangementDetail legalArrangementsItem) {
325
    if (this.legalArrangements == null) {
×
326
      this.legalArrangements = new ArrayList<>();
×
327
    }
328
    this.legalArrangements.add(legalArrangementsItem);
×
329
    return this;
×
330
  }
331

332
   /**
333
   * An array containing information about the account holder&#39;s [legal arrangements](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/legal-arrangements).
334
   * @return legalArrangements
335
  **/
336
  @ApiModelProperty(value = "An array containing information about the account holder's [legal arrangements](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/legal-arrangements).")
337
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENTS)
338
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
339

340
  public List<LegalArrangementDetail> getLegalArrangements() {
341
    return legalArrangements;
×
342
  }
343

344

345
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENTS)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347
  public void setLegalArrangements(List<LegalArrangementDetail> legalArrangements) {
348
    this.legalArrangements = legalArrangements;
×
349
  }
×
350

351

352
  public AccountHolderDetails merchantCategoryCode(String merchantCategoryCode) {
353
    this.merchantCategoryCode = merchantCategoryCode;
×
354
    return this;
×
355
  }
356

357
   /**
358
   * The Merchant Category Code of the account holder. &gt; If not specified in the request, this will be derived from the platform account (which is configured by Adyen).
359
   * @return merchantCategoryCode
360
  **/
361
  @ApiModelProperty(value = "The Merchant Category Code of the account holder. > If not specified in the request, this will be derived from the platform account (which is configured by Adyen).")
362
  @JsonProperty(JSON_PROPERTY_MERCHANT_CATEGORY_CODE)
363
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
364

365
  public String getMerchantCategoryCode() {
366
    return merchantCategoryCode;
×
367
  }
368

369

370
  @JsonProperty(JSON_PROPERTY_MERCHANT_CATEGORY_CODE)
371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
372
  public void setMerchantCategoryCode(String merchantCategoryCode) {
373
    this.merchantCategoryCode = merchantCategoryCode;
1✔
374
  }
1✔
375

376

377
  public AccountHolderDetails metadata(Map<String, String> metadata) {
378
    this.metadata = metadata;
×
379
    return this;
×
380
  }
381

382
  public AccountHolderDetails putMetadataItem(String key, String metadataItem) {
383
    if (this.metadata == null) {
×
384
      this.metadata = new HashMap<>();
×
385
    }
386
    this.metadata.put(key, metadataItem);
×
387
    return this;
×
388
  }
389

390
   /**
391
   * A set of key and value pairs for general use by the account holder or merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; The values being stored have a maximum length of eighty (80) characters and will be truncated if necessary. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
392
   * @return metadata
393
  **/
394
  @ApiModelProperty(value = "A set of key and value pairs for general use by the account holder or merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > The values being stored have a maximum length of eighty (80) characters and will be truncated if necessary. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
395
  @JsonProperty(JSON_PROPERTY_METADATA)
396
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
397

398
  public Map<String, String> getMetadata() {
399
    return metadata;
×
400
  }
401

402

403
  @JsonProperty(JSON_PROPERTY_METADATA)
404
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
405
  public void setMetadata(Map<String, String> metadata) {
406
    this.metadata = metadata;
1✔
407
  }
1✔
408

409

410
  public AccountHolderDetails payoutMethods(List<PayoutMethod> payoutMethods) {
411
    this.payoutMethods = payoutMethods;
×
412
    return this;
×
413
  }
414

415
  public AccountHolderDetails addPayoutMethodsItem(PayoutMethod payoutMethodsItem) {
416
    if (this.payoutMethods == null) {
×
417
      this.payoutMethods = new ArrayList<>();
×
418
    }
419
    this.payoutMethods.add(payoutMethodsItem);
×
420
    return this;
×
421
  }
422

423
   /**
424
   * Array of tokenized card details associated with the account holder. For details about how you can use the tokens to pay out, refer to [Pay out to cards](https://docs.adyen.com/marketplaces-and-platforms/classic/payout-to-cards).
425
   * @return payoutMethods
426
  **/
427
  @ApiModelProperty(value = "Array of tokenized card details associated with the account holder. For details about how you can use the tokens to pay out, refer to [Pay out to cards](https://docs.adyen.com/marketplaces-and-platforms/classic/payout-to-cards).")
428
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHODS)
429
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
430

431
  public List<PayoutMethod> getPayoutMethods() {
432
    return payoutMethods;
×
433
  }
434

435

436
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHODS)
437
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
438
  public void setPayoutMethods(List<PayoutMethod> payoutMethods) {
439
    this.payoutMethods = payoutMethods;
×
440
  }
×
441

442

443
  public AccountHolderDetails principalBusinessAddress(ViasAddress principalBusinessAddress) {
444
    this.principalBusinessAddress = principalBusinessAddress;
×
445
    return this;
×
446
  }
447

448
   /**
449
   * Get principalBusinessAddress
450
   * @return principalBusinessAddress
451
  **/
452
  @ApiModelProperty(value = "")
453
  @JsonProperty(JSON_PROPERTY_PRINCIPAL_BUSINESS_ADDRESS)
454
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
455

456
  public ViasAddress getPrincipalBusinessAddress() {
457
    return principalBusinessAddress;
×
458
  }
459

460

461
  @JsonProperty(JSON_PROPERTY_PRINCIPAL_BUSINESS_ADDRESS)
462
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
463
  public void setPrincipalBusinessAddress(ViasAddress principalBusinessAddress) {
464
    this.principalBusinessAddress = principalBusinessAddress;
×
465
  }
×
466

467

468
  public AccountHolderDetails storeDetails(List<StoreDetail> storeDetails) {
469
    this.storeDetails = storeDetails;
×
470
    return this;
×
471
  }
472

473
  public AccountHolderDetails addStoreDetailsItem(StoreDetail storeDetailsItem) {
474
    if (this.storeDetails == null) {
×
475
      this.storeDetails = new ArrayList<>();
×
476
    }
477
    this.storeDetails.add(storeDetailsItem);
×
478
    return this;
×
479
  }
480

481
   /**
482
   * Array of stores associated with the account holder. Required when onboarding account holders that have an Adyen [point of sale](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-pos).
483
   * @return storeDetails
484
  **/
485
  @ApiModelProperty(value = "Array of stores associated with the account holder. Required when onboarding account holders that have an Adyen [point of sale](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-pos).")
486
  @JsonProperty(JSON_PROPERTY_STORE_DETAILS)
487
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
488

489
  public List<StoreDetail> getStoreDetails() {
490
    return storeDetails;
×
491
  }
492

493

494
  @JsonProperty(JSON_PROPERTY_STORE_DETAILS)
495
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
496
  public void setStoreDetails(List<StoreDetail> storeDetails) {
497
    this.storeDetails = storeDetails;
×
498
  }
×
499

500

501
  public AccountHolderDetails webAddress(String webAddress) {
502
    this.webAddress = webAddress;
×
503
    return this;
×
504
  }
505

506
   /**
507
   * The URL of the website of the account holder.
508
   * @return webAddress
509
  **/
510
  @ApiModelProperty(value = "The URL of the website of the account holder.")
511
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
512
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
513

514
  public String getWebAddress() {
515
    return webAddress;
×
516
  }
517

518

519
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
520
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
521
  public void setWebAddress(String webAddress) {
522
    this.webAddress = webAddress;
1✔
523
  }
1✔
524

525

526
  /**
527
   * Return true if this AccountHolderDetails object is equal to o.
528
   */
529
  @Override
530
  public boolean equals(Object o) {
531
    if (this == o) {
×
532
      return true;
×
533
    }
534
    if (o == null || getClass() != o.getClass()) {
×
535
      return false;
×
536
    }
537
    AccountHolderDetails accountHolderDetails = (AccountHolderDetails) o;
×
538
    return Objects.equals(this.address, accountHolderDetails.address) &&
×
539
        Objects.equals(this.bankAccountDetails, accountHolderDetails.bankAccountDetails) &&
×
540
        Objects.equals(this.bankAggregatorDataReference, accountHolderDetails.bankAggregatorDataReference) &&
×
541
        Objects.equals(this.businessDetails, accountHolderDetails.businessDetails) &&
×
542
        Objects.equals(this.email, accountHolderDetails.email) &&
×
543
        Objects.equals(this.fullPhoneNumber, accountHolderDetails.fullPhoneNumber) &&
×
544
        Objects.equals(this.individualDetails, accountHolderDetails.individualDetails) &&
×
545
        Objects.equals(this.lastReviewDate, accountHolderDetails.lastReviewDate) &&
×
546
        Objects.equals(this.legalArrangements, accountHolderDetails.legalArrangements) &&
×
547
        Objects.equals(this.merchantCategoryCode, accountHolderDetails.merchantCategoryCode) &&
×
548
        Objects.equals(this.metadata, accountHolderDetails.metadata) &&
×
549
        Objects.equals(this.payoutMethods, accountHolderDetails.payoutMethods) &&
×
550
        Objects.equals(this.principalBusinessAddress, accountHolderDetails.principalBusinessAddress) &&
×
551
        Objects.equals(this.storeDetails, accountHolderDetails.storeDetails) &&
×
552
        Objects.equals(this.webAddress, accountHolderDetails.webAddress);
×
553
  }
554

555
  @Override
556
  public int hashCode() {
557
    return Objects.hash(address, bankAccountDetails, bankAggregatorDataReference, businessDetails, email, fullPhoneNumber, individualDetails, lastReviewDate, legalArrangements, merchantCategoryCode, metadata, payoutMethods, principalBusinessAddress, storeDetails, webAddress);
×
558
  }
559

560
  @Override
561
  public String toString() {
562
    StringBuilder sb = new StringBuilder();
×
563
    sb.append("class AccountHolderDetails {\n");
×
564
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
565
    sb.append("    bankAccountDetails: ").append(toIndentedString(bankAccountDetails)).append("\n");
×
566
    sb.append("    bankAggregatorDataReference: ").append(toIndentedString(bankAggregatorDataReference)).append("\n");
×
567
    sb.append("    businessDetails: ").append(toIndentedString(businessDetails)).append("\n");
×
568
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
×
569
    sb.append("    fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
×
570
    sb.append("    individualDetails: ").append(toIndentedString(individualDetails)).append("\n");
×
571
    sb.append("    lastReviewDate: ").append(toIndentedString(lastReviewDate)).append("\n");
×
572
    sb.append("    legalArrangements: ").append(toIndentedString(legalArrangements)).append("\n");
×
573
    sb.append("    merchantCategoryCode: ").append(toIndentedString(merchantCategoryCode)).append("\n");
×
574
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
×
575
    sb.append("    payoutMethods: ").append(toIndentedString(payoutMethods)).append("\n");
×
576
    sb.append("    principalBusinessAddress: ").append(toIndentedString(principalBusinessAddress)).append("\n");
×
577
    sb.append("    storeDetails: ").append(toIndentedString(storeDetails)).append("\n");
×
578
    sb.append("    webAddress: ").append(toIndentedString(webAddress)).append("\n");
×
579
    sb.append("}");
×
580
    return sb.toString();
×
581
  }
582

583
  /**
584
   * Convert the given object to string with each line indented by 4 spaces
585
   * (except the first line).
586
   */
587
  private String toIndentedString(Object o) {
588
    if (o == null) {
×
589
      return "null";
×
590
    }
591
    return o.toString().replace("\n", "\n    ");
×
592
  }
593

594
/**
595
   * Create an instance of AccountHolderDetails given an JSON string
596
   *
597
   * @param jsonString JSON string
598
   * @return An instance of AccountHolderDetails
599
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderDetails
600
   */
601
  public static AccountHolderDetails fromJson(String jsonString) throws JsonProcessingException {
602
    return JSON.getMapper().readValue(jsonString, AccountHolderDetails.class);
×
603
  }
604
/**
605
  * Convert an instance of AccountHolderDetails to an JSON string
606
  *
607
  * @return JSON string
608
  */
609
  public String toJson() throws JsonProcessingException {
610
    return JSON.getMapper().writeValueAsString(this);
×
611
  }
612
}
613

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