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

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

17 Nov 2023 02:16PM UTC coverage: 12.793%. First build
#2864

push

web-flow
Merge eb1b44ffc into ea35deb55

5 of 428 new or added lines in 17 files covered. (1.17%)

12398 of 96913 relevant lines covered (12.79%)

0.13 hits per line

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

18.25
/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java
1
/*
2
 * Configuration webhooks
3
 *
4
 * The version of the OpenAPI document: 1
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.configurationwebhooks;
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.configurationwebhooks.AccountHolderCapability;
20
import com.adyen.model.configurationwebhooks.ContactDetails;
21
import com.adyen.model.configurationwebhooks.VerificationDeadline;
22
import com.fasterxml.jackson.annotation.JsonInclude;
23
import com.fasterxml.jackson.annotation.JsonProperty;
24
import com.fasterxml.jackson.annotation.JsonCreator;
25
import com.fasterxml.jackson.annotation.JsonTypeName;
26
import com.fasterxml.jackson.annotation.JsonValue;
27
import io.swagger.annotations.ApiModel;
28
import io.swagger.annotations.ApiModelProperty;
29
import java.util.ArrayList;
30
import java.util.HashMap;
31
import java.util.List;
32
import java.util.Map;
33
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34
import com.fasterxml.jackson.core.JsonProcessingException;
35

36

37
/**
38
 * AccountHolder
39
 */
40
@JsonPropertyOrder({
41
  AccountHolder.JSON_PROPERTY_BALANCE_PLATFORM,
42
  AccountHolder.JSON_PROPERTY_CAPABILITIES,
43
  AccountHolder.JSON_PROPERTY_CONTACT_DETAILS,
44
  AccountHolder.JSON_PROPERTY_DESCRIPTION,
45
  AccountHolder.JSON_PROPERTY_ID,
46
  AccountHolder.JSON_PROPERTY_LEGAL_ENTITY_ID,
47
  AccountHolder.JSON_PROPERTY_METADATA,
48
  AccountHolder.JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE,
49
  AccountHolder.JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT,
50
  AccountHolder.JSON_PROPERTY_REFERENCE,
51
  AccountHolder.JSON_PROPERTY_STATUS,
52
  AccountHolder.JSON_PROPERTY_TIME_ZONE,
53
  AccountHolder.JSON_PROPERTY_VERIFICATION_DEADLINES
54
})
55

56
public class AccountHolder {
57
  public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform";
58
  private String balancePlatform;
59

60
  public static final String JSON_PROPERTY_CAPABILITIES = "capabilities";
61
  private Map<String, AccountHolderCapability> capabilities = null;
1✔
62

63
  public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails";
64
  private ContactDetails contactDetails;
65

66
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
67
  private String description;
68

69
  public static final String JSON_PROPERTY_ID = "id";
70
  private String id;
71

72
  public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId";
73
  private String legalEntityId;
74

75
  public static final String JSON_PROPERTY_METADATA = "metadata";
76
  private Map<String, String> metadata = null;
1✔
77

78
  public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode";
79
  private String migratedAccountHolderCode;
80

81
  public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount";
82
  private String primaryBalanceAccount;
83

84
  public static final String JSON_PROPERTY_REFERENCE = "reference";
85
  private String reference;
86

87
  /**
88
   * The status of the account holder.  Possible values:    * **Active**: The account holder is active. This is the default status when creating an account holder.    * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details.    * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone.   * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.
89
   */
90
  public enum StatusEnum {
1✔
91
    ACTIVE("Active"),
1✔
92
    
93
    CLOSED("Closed"),
1✔
94
    
95
    INACTIVE("Inactive"),
1✔
96
    
97
    SUSPENDED("Suspended");
1✔
98

99
    private String value;
100

101
    StatusEnum(String value) {
1✔
102
      this.value = value;
1✔
103
    }
1✔
104

105
    @JsonValue
106
    public String getValue() {
107
      return value;
×
108
    }
109

110
    @Override
111
    public String toString() {
112
      return String.valueOf(value);
×
113
    }
114

115
    @JsonCreator
116
    public static StatusEnum fromValue(String value) {
117
      for (StatusEnum b : StatusEnum.values()) {
1✔
118
        if (b.value.equals(value)) {
1✔
119
          return b;
1✔
120
        }
121
      }
122
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
123
    }
124
  }
125

126
  public static final String JSON_PROPERTY_STATUS = "status";
127
  private StatusEnum status;
128

129
  public static final String JSON_PROPERTY_TIME_ZONE = "timeZone";
130
  private String timeZone;
131

132
  public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines";
133
  private List<VerificationDeadline> verificationDeadlines = null;
1✔
134

135
  public AccountHolder() { 
1✔
136
  }
1✔
137

138
  public AccountHolder balancePlatform(String balancePlatform) {
139
    this.balancePlatform = balancePlatform;
×
140
    return this;
×
141
  }
142

143
   /**
144
   * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.
145
   * @return balancePlatform
146
  **/
147
  @ApiModelProperty(value = "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.")
148
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
149
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150

151
  public String getBalancePlatform() {
152
    return balancePlatform;
×
153
  }
154

155

156
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158
  public void setBalancePlatform(String balancePlatform) {
159
    this.balancePlatform = balancePlatform;
×
160
  }
×
161

162

163
  public AccountHolder capabilities(Map<String, AccountHolderCapability> capabilities) {
164
    this.capabilities = capabilities;
×
165
    return this;
×
166
  }
167

168
  public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem) {
169
    if (this.capabilities == null) {
×
170
      this.capabilities = new HashMap<>();
×
171
    }
172
    this.capabilities.put(key, capabilitiesItem);
×
173
    return this;
×
174
  }
175

176
   /**
177
   * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
178
   * @return capabilities
179
  **/
180
  @ApiModelProperty(value = "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.")
181
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
182
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183

184
  public Map<String, AccountHolderCapability> getCapabilities() {
185
    return capabilities;
×
186
  }
187

188

189
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
190
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191
  public void setCapabilities(Map<String, AccountHolderCapability> capabilities) {
192
    this.capabilities = capabilities;
×
193
  }
×
194

195

196
  public AccountHolder contactDetails(ContactDetails contactDetails) {
197
    this.contactDetails = contactDetails;
×
198
    return this;
×
199
  }
200

201
   /**
202
   * Get contactDetails
203
   * @return contactDetails
204
  **/
205
  @ApiModelProperty(value = "")
206
  @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
207
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208

209
  public ContactDetails getContactDetails() {
210
    return contactDetails;
×
211
  }
212

213

214
  @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
215
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
216
  public void setContactDetails(ContactDetails contactDetails) {
217
    this.contactDetails = contactDetails;
1✔
218
  }
1✔
219

220

221
  public AccountHolder description(String description) {
222
    this.description = description;
×
223
    return this;
×
224
  }
225

226
   /**
227
   * Your description for the account holder, maximum 300 characters.
228
   * @return description
229
  **/
230
  @ApiModelProperty(value = "Your description for the account holder, maximum 300 characters.")
231
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
232
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
233

234
  public String getDescription() {
235
    return description;
×
236
  }
237

238

239
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
240
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
241
  public void setDescription(String description) {
242
    this.description = description;
1✔
243
  }
1✔
244

245

246
  public AccountHolder id(String id) {
247
    this.id = id;
×
248
    return this;
×
249
  }
250

251
   /**
252
   * The unique identifier of the account holder.
253
   * @return id
254
  **/
255
  @ApiModelProperty(required = true, value = "The unique identifier of the account holder.")
256
  @JsonProperty(JSON_PROPERTY_ID)
257
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
258

259
  public String getId() {
260
    return id;
1✔
261
  }
262

263

264
  @JsonProperty(JSON_PROPERTY_ID)
265
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
266
  public void setId(String id) {
267
    this.id = id;
1✔
268
  }
1✔
269

270

271
  public AccountHolder legalEntityId(String legalEntityId) {
272
    this.legalEntityId = legalEntityId;
×
273
    return this;
×
274
  }
275

276
   /**
277
   * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
278
   * @return legalEntityId
279
  **/
280
  @ApiModelProperty(required = true, value = "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.")
281
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID)
282
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
283

284
  public String getLegalEntityId() {
285
    return legalEntityId;
×
286
  }
287

288

289
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID)
290
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
291
  public void setLegalEntityId(String legalEntityId) {
292
    this.legalEntityId = legalEntityId;
×
293
  }
×
294

295

296
  public AccountHolder metadata(Map<String, String> metadata) {
297
    this.metadata = metadata;
×
298
    return this;
×
299
  }
300

301
  public AccountHolder putMetadataItem(String key, String metadataItem) {
302
    if (this.metadata == null) {
×
303
      this.metadata = new HashMap<>();
×
304
    }
305
    this.metadata.put(key, metadataItem);
×
306
    return this;
×
307
  }
308

309
   /**
310
   * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. &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.
311
   * @return metadata
312
  **/
313
  @ApiModelProperty(value = "A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
314
  @JsonProperty(JSON_PROPERTY_METADATA)
315
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
316

317
  public Map<String, String> getMetadata() {
318
    return metadata;
×
319
  }
320

321

322
  @JsonProperty(JSON_PROPERTY_METADATA)
323
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
324
  public void setMetadata(Map<String, String> metadata) {
325
    this.metadata = metadata;
×
326
  }
×
327

328

329
  public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) {
330
    this.migratedAccountHolderCode = migratedAccountHolderCode;
×
331
    return this;
×
332
  }
333

334
   /**
335
   * The unique identifier of the migrated account holder in the classic integration.
336
   * @return migratedAccountHolderCode
337
  **/
338
  @ApiModelProperty(value = "The unique identifier of the migrated account holder in the classic integration.")
339
  @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
340
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
341

342
  public String getMigratedAccountHolderCode() {
343
    return migratedAccountHolderCode;
×
344
  }
345

346

347
  @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
348
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
349
  public void setMigratedAccountHolderCode(String migratedAccountHolderCode) {
350
    this.migratedAccountHolderCode = migratedAccountHolderCode;
×
351
  }
×
352

353

354
  public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) {
355
    this.primaryBalanceAccount = primaryBalanceAccount;
×
356
    return this;
×
357
  }
358

359
   /**
360
   * The ID of the account holder&#39;s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.
361
   * @return primaryBalanceAccount
362
  **/
363
  @ApiModelProperty(value = "The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.")
364
  @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT)
365
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
366

367
  public String getPrimaryBalanceAccount() {
368
    return primaryBalanceAccount;
×
369
  }
370

371

372
  @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT)
373
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
374
  public void setPrimaryBalanceAccount(String primaryBalanceAccount) {
375
    this.primaryBalanceAccount = primaryBalanceAccount;
×
376
  }
×
377

378

379
  public AccountHolder reference(String reference) {
380
    this.reference = reference;
×
381
    return this;
×
382
  }
383

384
   /**
385
   * Your reference for the account holder, maximum 150 characters.
386
   * @return reference
387
  **/
388
  @ApiModelProperty(value = "Your reference for the account holder, maximum 150 characters.")
389
  @JsonProperty(JSON_PROPERTY_REFERENCE)
390
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
391

392
  public String getReference() {
393
    return reference;
×
394
  }
395

396

397
  @JsonProperty(JSON_PROPERTY_REFERENCE)
398
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
399
  public void setReference(String reference) {
400
    this.reference = reference;
×
401
  }
×
402

403

404
  public AccountHolder status(StatusEnum status) {
405
    this.status = status;
×
406
    return this;
×
407
  }
408

409
   /**
410
   * The status of the account holder.  Possible values:    * **Active**: The account holder is active. This is the default status when creating an account holder.    * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details.    * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone.   * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.
411
   * @return status
412
  **/
413
  @ApiModelProperty(value = "The status of the account holder.  Possible values:    * **Active**: The account holder is active. This is the default status when creating an account holder.    * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details.    * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone.   * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.")
414
  @JsonProperty(JSON_PROPERTY_STATUS)
415
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
416

417
  public StatusEnum getStatus() {
418
    return status;
×
419
  }
420

421

422
  @JsonProperty(JSON_PROPERTY_STATUS)
423
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
424
  public void setStatus(StatusEnum status) {
425
    this.status = status;
1✔
426
  }
1✔
427

428

429
  public AccountHolder timeZone(String timeZone) {
430
    this.timeZone = timeZone;
×
431
    return this;
×
432
  }
433

434
   /**
435
   * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
436
   * @return timeZone
437
  **/
438
  @ApiModelProperty(value = "The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).")
439
  @JsonProperty(JSON_PROPERTY_TIME_ZONE)
440
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
441

442
  public String getTimeZone() {
443
    return timeZone;
×
444
  }
445

446

447
  @JsonProperty(JSON_PROPERTY_TIME_ZONE)
448
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
449
  public void setTimeZone(String timeZone) {
450
    this.timeZone = timeZone;
×
451
  }
×
452

453

454
  public AccountHolder verificationDeadlines(List<VerificationDeadline> verificationDeadlines) {
NEW
455
    this.verificationDeadlines = verificationDeadlines;
×
NEW
456
    return this;
×
457
  }
458

459
  public AccountHolder addVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem) {
NEW
460
    if (this.verificationDeadlines == null) {
×
NEW
461
      this.verificationDeadlines = new ArrayList<>();
×
462
    }
NEW
463
    this.verificationDeadlines.add(verificationDeadlinesItem);
×
NEW
464
    return this;
×
465
  }
466

467
   /**
468
   * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
469
   * @return verificationDeadlines
470
  **/
471
  @ApiModelProperty(value = "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.")
472
  @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES)
473
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
474

475
  public List<VerificationDeadline> getVerificationDeadlines() {
NEW
476
    return verificationDeadlines;
×
477
  }
478

479

480
  @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES)
481
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
482
  public void setVerificationDeadlines(List<VerificationDeadline> verificationDeadlines) {
NEW
483
    this.verificationDeadlines = verificationDeadlines;
×
NEW
484
  }
×
485

486

487
  /**
488
   * Return true if this AccountHolder object is equal to o.
489
   */
490
  @Override
491
  public boolean equals(Object o) {
492
    if (this == o) {
×
493
      return true;
×
494
    }
495
    if (o == null || getClass() != o.getClass()) {
×
496
      return false;
×
497
    }
498
    AccountHolder accountHolder = (AccountHolder) o;
×
499
    return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) &&
×
500
        Objects.equals(this.capabilities, accountHolder.capabilities) &&
×
501
        Objects.equals(this.contactDetails, accountHolder.contactDetails) &&
×
502
        Objects.equals(this.description, accountHolder.description) &&
×
503
        Objects.equals(this.id, accountHolder.id) &&
×
504
        Objects.equals(this.legalEntityId, accountHolder.legalEntityId) &&
×
505
        Objects.equals(this.metadata, accountHolder.metadata) &&
×
506
        Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) &&
×
507
        Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) &&
×
508
        Objects.equals(this.reference, accountHolder.reference) &&
×
509
        Objects.equals(this.status, accountHolder.status) &&
×
NEW
510
        Objects.equals(this.timeZone, accountHolder.timeZone) &&
×
NEW
511
        Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines);
×
512
  }
513

514
  @Override
515
  public int hashCode() {
NEW
516
    return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines);
×
517
  }
518

519
  @Override
520
  public String toString() {
521
    StringBuilder sb = new StringBuilder();
×
522
    sb.append("class AccountHolder {\n");
×
523
    sb.append("    balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n");
×
524
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
525
    sb.append("    contactDetails: ").append(toIndentedString(contactDetails)).append("\n");
×
526
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
527
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
528
    sb.append("    legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n");
×
529
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
×
530
    sb.append("    migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n");
×
531
    sb.append("    primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n");
×
532
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
533
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
534
    sb.append("    timeZone: ").append(toIndentedString(timeZone)).append("\n");
×
NEW
535
    sb.append("    verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n");
×
536
    sb.append("}");
×
537
    return sb.toString();
×
538
  }
539

540
  /**
541
   * Convert the given object to string with each line indented by 4 spaces
542
   * (except the first line).
543
   */
544
  private String toIndentedString(Object o) {
545
    if (o == null) {
×
546
      return "null";
×
547
    }
548
    return o.toString().replace("\n", "\n    ");
×
549
  }
550

551
/**
552
   * Create an instance of AccountHolder given an JSON string
553
   *
554
   * @param jsonString JSON string
555
   * @return An instance of AccountHolder
556
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolder
557
   */
558
  public static AccountHolder fromJson(String jsonString) throws JsonProcessingException {
559
    return JSON.getMapper().readValue(jsonString, AccountHolder.class);
×
560
  }
561
/**
562
  * Convert an instance of AccountHolder to an JSON string
563
  *
564
  * @return JSON string
565
  */
566
  public String toJson() throws JsonProcessingException {
567
    return JSON.getMapper().writeValueAsString(this);
×
568
  }
569
}
570

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