• 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/GetAccountHolderResponse.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.adyen.model.marketpayaccount.Account;
21
import com.adyen.model.marketpayaccount.AccountHolderDetails;
22
import com.adyen.model.marketpayaccount.AccountHolderStatus;
23
import com.adyen.model.marketpayaccount.ErrorFieldType;
24
import com.adyen.model.marketpayaccount.KYCVerificationResult;
25
import com.adyen.model.marketpayaccount.MigrationData;
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.time.OffsetDateTime;
34
import java.util.ArrayList;
35
import java.util.List;
36
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
37
import com.fasterxml.jackson.core.JsonProcessingException;
38

39

40
/**
41
 * GetAccountHolderResponse
42
 */
43
@JsonPropertyOrder({
44
  GetAccountHolderResponse.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
45
  GetAccountHolderResponse.JSON_PROPERTY_ACCOUNT_HOLDER_DETAILS,
46
  GetAccountHolderResponse.JSON_PROPERTY_ACCOUNT_HOLDER_STATUS,
47
  GetAccountHolderResponse.JSON_PROPERTY_ACCOUNTS,
48
  GetAccountHolderResponse.JSON_PROPERTY_DESCRIPTION,
49
  GetAccountHolderResponse.JSON_PROPERTY_INVALID_FIELDS,
50
  GetAccountHolderResponse.JSON_PROPERTY_LEGAL_ENTITY,
51
  GetAccountHolderResponse.JSON_PROPERTY_MIGRATION_DATA,
52
  GetAccountHolderResponse.JSON_PROPERTY_PRIMARY_CURRENCY,
53
  GetAccountHolderResponse.JSON_PROPERTY_PSP_REFERENCE,
54
  GetAccountHolderResponse.JSON_PROPERTY_RESULT_CODE,
55
  GetAccountHolderResponse.JSON_PROPERTY_SYSTEM_UP_TO_DATE_TIME,
56
  GetAccountHolderResponse.JSON_PROPERTY_VERIFICATION,
57
  GetAccountHolderResponse.JSON_PROPERTY_VERIFICATION_PROFILE
58
})
59

60
public class GetAccountHolderResponse {
61
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
62
  private String accountHolderCode;
63

64
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_DETAILS = "accountHolderDetails";
65
  private AccountHolderDetails accountHolderDetails;
66

67
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_STATUS = "accountHolderStatus";
68
  private AccountHolderStatus accountHolderStatus;
69

70
  public static final String JSON_PROPERTY_ACCOUNTS = "accounts";
71
  private List<Account> accounts = null;
×
72

73
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
74
  private String description;
75

76
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
77
  private List<ErrorFieldType> invalidFields = null;
×
78

79
  /**
80
   * The legal entity of the account holder.
81
   */
82
  public enum LegalEntityEnum {
×
83
    BUSINESS("Business"),
×
84
    
85
    INDIVIDUAL("Individual"),
×
86
    
87
    NONPROFIT("NonProfit"),
×
88
    
89
    PARTNERSHIP("Partnership"),
×
90
    
91
    PUBLICCOMPANY("PublicCompany");
×
92

93
    private String value;
94

95
    LegalEntityEnum(String value) {
×
96
      this.value = value;
×
97
    }
×
98

99
    @JsonValue
100
    public String getValue() {
101
      return value;
×
102
    }
103

104
    @Override
105
    public String toString() {
106
      return String.valueOf(value);
×
107
    }
108

109
    @JsonCreator
110
    public static LegalEntityEnum fromValue(String value) {
111
      for (LegalEntityEnum b : LegalEntityEnum.values()) {
×
112
        if (b.value.equals(value)) {
×
113
          return b;
×
114
        }
115
      }
116
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
117
    }
118
  }
119

120
  public static final String JSON_PROPERTY_LEGAL_ENTITY = "legalEntity";
121
  private LegalEntityEnum legalEntity;
122

123
  public static final String JSON_PROPERTY_MIGRATION_DATA = "migrationData";
124
  private MigrationData migrationData;
125

126
  public static final String JSON_PROPERTY_PRIMARY_CURRENCY = "primaryCurrency";
127
  private String primaryCurrency;
128

129
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
130
  private String pspReference;
131

132
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
133
  private String resultCode;
134

135
  public static final String JSON_PROPERTY_SYSTEM_UP_TO_DATE_TIME = "systemUpToDateTime";
136
  private OffsetDateTime systemUpToDateTime;
137

138
  public static final String JSON_PROPERTY_VERIFICATION = "verification";
139
  private KYCVerificationResult verification;
140

141
  public static final String JSON_PROPERTY_VERIFICATION_PROFILE = "verificationProfile";
142
  private String verificationProfile;
143

144
  public GetAccountHolderResponse() { 
×
145
  }
×
146

147
  public GetAccountHolderResponse accountHolderCode(String accountHolderCode) {
148
    this.accountHolderCode = accountHolderCode;
×
149
    return this;
×
150
  }
151

152
   /**
153
   * The code of the account holder.
154
   * @return accountHolderCode
155
  **/
156
  @ApiModelProperty(value = "The code of the account holder.")
157
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159

160
  public String getAccountHolderCode() {
161
    return accountHolderCode;
×
162
  }
163

164

165
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167
  public void setAccountHolderCode(String accountHolderCode) {
168
    this.accountHolderCode = accountHolderCode;
×
169
  }
×
170

171

172
  public GetAccountHolderResponse accountHolderDetails(AccountHolderDetails accountHolderDetails) {
173
    this.accountHolderDetails = accountHolderDetails;
×
174
    return this;
×
175
  }
176

177
   /**
178
   * Get accountHolderDetails
179
   * @return accountHolderDetails
180
  **/
181
  @ApiModelProperty(value = "")
182
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_DETAILS)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184

185
  public AccountHolderDetails getAccountHolderDetails() {
186
    return accountHolderDetails;
×
187
  }
188

189

190
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_DETAILS)
191
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
192
  public void setAccountHolderDetails(AccountHolderDetails accountHolderDetails) {
193
    this.accountHolderDetails = accountHolderDetails;
×
194
  }
×
195

196

197
  public GetAccountHolderResponse accountHolderStatus(AccountHolderStatus accountHolderStatus) {
198
    this.accountHolderStatus = accountHolderStatus;
×
199
    return this;
×
200
  }
201

202
   /**
203
   * Get accountHolderStatus
204
   * @return accountHolderStatus
205
  **/
206
  @ApiModelProperty(value = "")
207
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_STATUS)
208
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
209

210
  public AccountHolderStatus getAccountHolderStatus() {
211
    return accountHolderStatus;
×
212
  }
213

214

215
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_STATUS)
216
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
217
  public void setAccountHolderStatus(AccountHolderStatus accountHolderStatus) {
218
    this.accountHolderStatus = accountHolderStatus;
×
219
  }
×
220

221

222
  public GetAccountHolderResponse accounts(List<Account> accounts) {
223
    this.accounts = accounts;
×
224
    return this;
×
225
  }
226

227
  public GetAccountHolderResponse addAccountsItem(Account accountsItem) {
228
    if (this.accounts == null) {
×
229
      this.accounts = new ArrayList<>();
×
230
    }
231
    this.accounts.add(accountsItem);
×
232
    return this;
×
233
  }
234

235
   /**
236
   * A list of the accounts under the account holder.
237
   * @return accounts
238
  **/
239
  @ApiModelProperty(value = "A list of the accounts under the account holder.")
240
  @JsonProperty(JSON_PROPERTY_ACCOUNTS)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242

243
  public List<Account> getAccounts() {
244
    return accounts;
×
245
  }
246

247

248
  @JsonProperty(JSON_PROPERTY_ACCOUNTS)
249
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
250
  public void setAccounts(List<Account> accounts) {
251
    this.accounts = accounts;
×
252
  }
×
253

254

255
  public GetAccountHolderResponse description(String description) {
256
    this.description = description;
×
257
    return this;
×
258
  }
259

260
   /**
261
   * The description of the account holder.
262
   * @return description
263
  **/
264
  @ApiModelProperty(value = "The description of the account holder.")
265
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
266
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
267

268
  public String getDescription() {
269
    return description;
×
270
  }
271

272

273
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
274
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
275
  public void setDescription(String description) {
276
    this.description = description;
×
277
  }
×
278

279

280
  public GetAccountHolderResponse invalidFields(List<ErrorFieldType> invalidFields) {
281
    this.invalidFields = invalidFields;
×
282
    return this;
×
283
  }
284

285
  public GetAccountHolderResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
286
    if (this.invalidFields == null) {
×
287
      this.invalidFields = new ArrayList<>();
×
288
    }
289
    this.invalidFields.add(invalidFieldsItem);
×
290
    return this;
×
291
  }
292

293
   /**
294
   * Contains field validation errors that would prevent requests from being processed.
295
   * @return invalidFields
296
  **/
297
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
298
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
299
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
300

301
  public List<ErrorFieldType> getInvalidFields() {
302
    return invalidFields;
×
303
  }
304

305

306
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
307
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
308
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
309
    this.invalidFields = invalidFields;
×
310
  }
×
311

312

313
  public GetAccountHolderResponse legalEntity(LegalEntityEnum legalEntity) {
314
    this.legalEntity = legalEntity;
×
315
    return this;
×
316
  }
317

318
   /**
319
   * The legal entity of the account holder.
320
   * @return legalEntity
321
  **/
322
  @ApiModelProperty(value = "The legal entity of the account holder.")
323
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY)
324
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
325

326
  public LegalEntityEnum getLegalEntity() {
327
    return legalEntity;
×
328
  }
329

330

331
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY)
332
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
333
  public void setLegalEntity(LegalEntityEnum legalEntity) {
334
    this.legalEntity = legalEntity;
×
335
  }
×
336

337

338
  public GetAccountHolderResponse migrationData(MigrationData migrationData) {
339
    this.migrationData = migrationData;
×
340
    return this;
×
341
  }
342

343
   /**
344
   * Get migrationData
345
   * @return migrationData
346
  **/
347
  @ApiModelProperty(value = "")
348
  @JsonProperty(JSON_PROPERTY_MIGRATION_DATA)
349
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
350

351
  public MigrationData getMigrationData() {
352
    return migrationData;
×
353
  }
354

355

356
  @JsonProperty(JSON_PROPERTY_MIGRATION_DATA)
357
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
358
  public void setMigrationData(MigrationData migrationData) {
359
    this.migrationData = migrationData;
×
360
  }
×
361

362

363
  public GetAccountHolderResponse primaryCurrency(String primaryCurrency) {
364
    this.primaryCurrency = primaryCurrency;
×
365
    return this;
×
366
  }
367

368
   /**
369
   * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.
370
   * @return primaryCurrency
371
  **/
372
  @ApiModelProperty(value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.")
373
  @JsonProperty(JSON_PROPERTY_PRIMARY_CURRENCY)
374
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
375

376
  public String getPrimaryCurrency() {
377
    return primaryCurrency;
×
378
  }
379

380

381
  @JsonProperty(JSON_PROPERTY_PRIMARY_CURRENCY)
382
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
383
  public void setPrimaryCurrency(String primaryCurrency) {
384
    this.primaryCurrency = primaryCurrency;
×
385
  }
×
386

387

388
  public GetAccountHolderResponse pspReference(String pspReference) {
389
    this.pspReference = pspReference;
×
390
    return this;
×
391
  }
392

393
   /**
394
   * The reference of a request. Can be used to uniquely identify the request.
395
   * @return pspReference
396
  **/
397
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
398
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
399
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
400

401
  public String getPspReference() {
402
    return pspReference;
×
403
  }
404

405

406
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
407
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
408
  public void setPspReference(String pspReference) {
409
    this.pspReference = pspReference;
×
410
  }
×
411

412

413
  public GetAccountHolderResponse resultCode(String resultCode) {
414
    this.resultCode = resultCode;
×
415
    return this;
×
416
  }
417

418
   /**
419
   * The result code.
420
   * @return resultCode
421
  **/
422
  @ApiModelProperty(value = "The result code.")
423
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
424
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
425

426
  public String getResultCode() {
427
    return resultCode;
×
428
  }
429

430

431
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
432
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
433
  public void setResultCode(String resultCode) {
434
    this.resultCode = resultCode;
×
435
  }
×
436

437

438
  public GetAccountHolderResponse systemUpToDateTime(OffsetDateTime systemUpToDateTime) {
439
    this.systemUpToDateTime = systemUpToDateTime;
×
440
    return this;
×
441
  }
442

443
   /**
444
   * The time that shows how up to date is the information in the response.
445
   * @return systemUpToDateTime
446
  **/
447
  @ApiModelProperty(value = "The time that shows how up to date is the information in the response.")
448
  @JsonProperty(JSON_PROPERTY_SYSTEM_UP_TO_DATE_TIME)
449
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
450

451
  public OffsetDateTime getSystemUpToDateTime() {
452
    return systemUpToDateTime;
×
453
  }
454

455

456
  @JsonProperty(JSON_PROPERTY_SYSTEM_UP_TO_DATE_TIME)
457
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
458
  public void setSystemUpToDateTime(OffsetDateTime systemUpToDateTime) {
459
    this.systemUpToDateTime = systemUpToDateTime;
×
460
  }
×
461

462

463
  public GetAccountHolderResponse verification(KYCVerificationResult verification) {
464
    this.verification = verification;
×
465
    return this;
×
466
  }
467

468
   /**
469
   * Get verification
470
   * @return verification
471
  **/
472
  @ApiModelProperty(value = "")
473
  @JsonProperty(JSON_PROPERTY_VERIFICATION)
474
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
475

476
  public KYCVerificationResult getVerification() {
477
    return verification;
×
478
  }
479

480

481
  @JsonProperty(JSON_PROPERTY_VERIFICATION)
482
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
483
  public void setVerification(KYCVerificationResult verification) {
484
    this.verification = verification;
×
485
  }
×
486

487

488
  public GetAccountHolderResponse verificationProfile(String verificationProfile) {
489
    this.verificationProfile = verificationProfile;
×
490
    return this;
×
491
  }
492

493
   /**
494
   * The identifier of the profile that applies to this entity.
495
   * @return verificationProfile
496
  **/
497
  @ApiModelProperty(value = "The identifier of the profile that applies to this entity.")
498
  @JsonProperty(JSON_PROPERTY_VERIFICATION_PROFILE)
499
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
500

501
  public String getVerificationProfile() {
502
    return verificationProfile;
×
503
  }
504

505

506
  @JsonProperty(JSON_PROPERTY_VERIFICATION_PROFILE)
507
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
508
  public void setVerificationProfile(String verificationProfile) {
509
    this.verificationProfile = verificationProfile;
×
510
  }
×
511

512

513
  /**
514
   * Return true if this GetAccountHolderResponse object is equal to o.
515
   */
516
  @Override
517
  public boolean equals(Object o) {
518
    if (this == o) {
×
519
      return true;
×
520
    }
521
    if (o == null || getClass() != o.getClass()) {
×
522
      return false;
×
523
    }
524
    GetAccountHolderResponse getAccountHolderResponse = (GetAccountHolderResponse) o;
×
525
    return Objects.equals(this.accountHolderCode, getAccountHolderResponse.accountHolderCode) &&
×
526
        Objects.equals(this.accountHolderDetails, getAccountHolderResponse.accountHolderDetails) &&
×
527
        Objects.equals(this.accountHolderStatus, getAccountHolderResponse.accountHolderStatus) &&
×
528
        Objects.equals(this.accounts, getAccountHolderResponse.accounts) &&
×
529
        Objects.equals(this.description, getAccountHolderResponse.description) &&
×
530
        Objects.equals(this.invalidFields, getAccountHolderResponse.invalidFields) &&
×
531
        Objects.equals(this.legalEntity, getAccountHolderResponse.legalEntity) &&
×
532
        Objects.equals(this.migrationData, getAccountHolderResponse.migrationData) &&
×
533
        Objects.equals(this.primaryCurrency, getAccountHolderResponse.primaryCurrency) &&
×
534
        Objects.equals(this.pspReference, getAccountHolderResponse.pspReference) &&
×
535
        Objects.equals(this.resultCode, getAccountHolderResponse.resultCode) &&
×
536
        Objects.equals(this.systemUpToDateTime, getAccountHolderResponse.systemUpToDateTime) &&
×
537
        Objects.equals(this.verification, getAccountHolderResponse.verification) &&
×
538
        Objects.equals(this.verificationProfile, getAccountHolderResponse.verificationProfile);
×
539
  }
540

541
  @Override
542
  public int hashCode() {
543
    return Objects.hash(accountHolderCode, accountHolderDetails, accountHolderStatus, accounts, description, invalidFields, legalEntity, migrationData, primaryCurrency, pspReference, resultCode, systemUpToDateTime, verification, verificationProfile);
×
544
  }
545

546
  @Override
547
  public String toString() {
548
    StringBuilder sb = new StringBuilder();
×
549
    sb.append("class GetAccountHolderResponse {\n");
×
550
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
551
    sb.append("    accountHolderDetails: ").append(toIndentedString(accountHolderDetails)).append("\n");
×
552
    sb.append("    accountHolderStatus: ").append(toIndentedString(accountHolderStatus)).append("\n");
×
553
    sb.append("    accounts: ").append(toIndentedString(accounts)).append("\n");
×
554
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
555
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
556
    sb.append("    legalEntity: ").append(toIndentedString(legalEntity)).append("\n");
×
557
    sb.append("    migrationData: ").append(toIndentedString(migrationData)).append("\n");
×
558
    sb.append("    primaryCurrency: ").append(toIndentedString(primaryCurrency)).append("\n");
×
559
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
560
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
561
    sb.append("    systemUpToDateTime: ").append(toIndentedString(systemUpToDateTime)).append("\n");
×
562
    sb.append("    verification: ").append(toIndentedString(verification)).append("\n");
×
563
    sb.append("    verificationProfile: ").append(toIndentedString(verificationProfile)).append("\n");
×
564
    sb.append("}");
×
565
    return sb.toString();
×
566
  }
567

568
  /**
569
   * Convert the given object to string with each line indented by 4 spaces
570
   * (except the first line).
571
   */
572
  private String toIndentedString(Object o) {
573
    if (o == null) {
×
574
      return "null";
×
575
    }
576
    return o.toString().replace("\n", "\n    ");
×
577
  }
578

579
/**
580
   * Create an instance of GetAccountHolderResponse given an JSON string
581
   *
582
   * @param jsonString JSON string
583
   * @return An instance of GetAccountHolderResponse
584
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetAccountHolderResponse
585
   */
586
  public static GetAccountHolderResponse fromJson(String jsonString) throws JsonProcessingException {
587
    return JSON.getMapper().readValue(jsonString, GetAccountHolderResponse.class);
×
588
  }
589
/**
590
  * Convert an instance of GetAccountHolderResponse to an JSON string
591
  *
592
  * @return JSON string
593
  */
594
  public String toJson() throws JsonProcessingException {
595
    return JSON.getMapper().writeValueAsString(this);
×
596
  }
597
}
598

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

© 2026 Coveralls, Inc