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

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

21 Mar 2024 10:28AM UTC coverage: 12.294%. First build
#3177

push

web-flow
Merge 3d6ff7572 into d61048882

0 of 208 new or added lines in 10 files covered. (0.0%)

12446 of 101233 relevant lines covered (12.29%)

0.12 hits per line

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

26.74
/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.legalentitymanagement;
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.legalentitymanagement.CapabilityProblem;
20
import com.adyen.model.legalentitymanagement.DocumentReference;
21
import com.adyen.model.legalentitymanagement.EntityReference;
22
import com.adyen.model.legalentitymanagement.Individual;
23
import com.adyen.model.legalentitymanagement.LegalEntityAssociation;
24
import com.adyen.model.legalentitymanagement.LegalEntityCapability;
25
import com.adyen.model.legalentitymanagement.Organization;
26
import com.adyen.model.legalentitymanagement.SoleProprietorship;
27
import com.adyen.model.legalentitymanagement.TransferInstrumentReference;
28
import com.adyen.model.legalentitymanagement.Trust;
29
import com.adyen.model.legalentitymanagement.VerificationDeadline;
30
import com.fasterxml.jackson.annotation.JsonInclude;
31
import com.fasterxml.jackson.annotation.JsonProperty;
32
import com.fasterxml.jackson.annotation.JsonCreator;
33
import com.fasterxml.jackson.annotation.JsonTypeName;
34
import com.fasterxml.jackson.annotation.JsonValue;
35
import io.swagger.annotations.ApiModel;
36
import io.swagger.annotations.ApiModelProperty;
37
import java.util.ArrayList;
38
import java.util.HashMap;
39
import java.util.List;
40
import java.util.Map;
41
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
42
import com.fasterxml.jackson.core.JsonProcessingException;
43

44

45
/**
46
 * LegalEntity
47
 */
48
@JsonPropertyOrder({
49
  LegalEntity.JSON_PROPERTY_CAPABILITIES,
50
  LegalEntity.JSON_PROPERTY_DOCUMENT_DETAILS,
51
  LegalEntity.JSON_PROPERTY_DOCUMENTS,
52
  LegalEntity.JSON_PROPERTY_ENTITY_ASSOCIATIONS,
53
  LegalEntity.JSON_PROPERTY_ID,
54
  LegalEntity.JSON_PROPERTY_INDIVIDUAL,
55
  LegalEntity.JSON_PROPERTY_ORGANIZATION,
56
  LegalEntity.JSON_PROPERTY_PROBLEMS,
57
  LegalEntity.JSON_PROPERTY_REFERENCE,
58
  LegalEntity.JSON_PROPERTY_SOLE_PROPRIETORSHIP,
59
  LegalEntity.JSON_PROPERTY_TRANSFER_INSTRUMENTS,
60
  LegalEntity.JSON_PROPERTY_TRUST,
61
  LegalEntity.JSON_PROPERTY_TYPE,
62
  LegalEntity.JSON_PROPERTY_VERIFICATION_DEADLINES,
63
  LegalEntity.JSON_PROPERTY_VERIFICATION_PLAN
64
})
65

66
public class LegalEntity {
67
  public static final String JSON_PROPERTY_CAPABILITIES = "capabilities";
68
  private Map<String, LegalEntityCapability> capabilities = null;
1✔
69

70
  public static final String JSON_PROPERTY_DOCUMENT_DETAILS = "documentDetails";
71
  private List<DocumentReference> documentDetails = null;
1✔
72

73
  public static final String JSON_PROPERTY_DOCUMENTS = "documents";
74
  @Deprecated
1✔
75
  private List<EntityReference> documents = null;
76

77
  public static final String JSON_PROPERTY_ENTITY_ASSOCIATIONS = "entityAssociations";
78
  private List<LegalEntityAssociation> entityAssociations = null;
1✔
79

80
  public static final String JSON_PROPERTY_ID = "id";
81
  private String id;
82

83
  public static final String JSON_PROPERTY_INDIVIDUAL = "individual";
84
  private Individual individual;
85

86
  public static final String JSON_PROPERTY_ORGANIZATION = "organization";
87
  private Organization organization;
88

89
  public static final String JSON_PROPERTY_PROBLEMS = "problems";
90
  private List<CapabilityProblem> problems = null;
1✔
91

92
  public static final String JSON_PROPERTY_REFERENCE = "reference";
93
  private String reference;
94

95
  public static final String JSON_PROPERTY_SOLE_PROPRIETORSHIP = "soleProprietorship";
96
  private SoleProprietorship soleProprietorship;
97

98
  public static final String JSON_PROPERTY_TRANSFER_INSTRUMENTS = "transferInstruments";
99
  private List<TransferInstrumentReference> transferInstruments = null;
1✔
100

101
  public static final String JSON_PROPERTY_TRUST = "trust";
102
  private Trust trust;
103

104
  /**
105
   * The type of legal entity.  Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
106
   */
107
  public enum TypeEnum {
1✔
108
    INDIVIDUAL("individual"),
1✔
109
    
110
    ORGANIZATION("organization"),
1✔
111
    
112
    SOLEPROPRIETORSHIP("soleProprietorship"),
1✔
113
    
114
    TRUST("trust"),
1✔
115
    
116
    UNINCORPORATEDPARTNERSHIP("unincorporatedPartnership");
1✔
117

118
    private String value;
119

120
    TypeEnum(String value) {
1✔
121
      this.value = value;
1✔
122
    }
1✔
123

124
    @JsonValue
125
    public String getValue() {
126
      return value;
×
127
    }
128

129
    @Override
130
    public String toString() {
131
      return String.valueOf(value);
×
132
    }
133

134
    @JsonCreator
135
    public static TypeEnum fromValue(String value) {
136
      for (TypeEnum b : TypeEnum.values()) {
1✔
137
        if (b.value.equals(value)) {
1✔
138
          return b;
1✔
139
        }
140
      }
141
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
142
    }
143
  }
144

145
  public static final String JSON_PROPERTY_TYPE = "type";
146
  private TypeEnum type;
147

148
  public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines";
149
  private List<VerificationDeadline> verificationDeadlines = null;
1✔
150

151
  public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan";
152
  private String verificationPlan;
153

154
  public LegalEntity() { 
1✔
155
  }
1✔
156

157
  public LegalEntity capabilities(Map<String, LegalEntityCapability> capabilities) {
158
    this.capabilities = capabilities;
×
159
    return this;
×
160
  }
161

162
  public LegalEntity putCapabilitiesItem(String key, LegalEntityCapability capabilitiesItem) {
163
    if (this.capabilities == null) {
×
164
      this.capabilities = new HashMap<>();
×
165
    }
166
    this.capabilities.put(key, capabilitiesItem);
×
167
    return this;
×
168
  }
169

170
   /**
171
   * Contains key-value pairs that specify the actions that the legal entity 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.
172
   * @return capabilities
173
  **/
174
  @ApiModelProperty(value = "Contains key-value pairs that specify the actions that the legal entity 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.")
175
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
176
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
177

178
  public Map<String, LegalEntityCapability> getCapabilities() {
179
    return capabilities;
×
180
  }
181

182

183
 /**
184
  * Contains key-value pairs that specify the actions that the legal entity 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.
185
  *
186
  * @param capabilities
187
  */ 
188
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
189
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
190
  public void setCapabilities(Map<String, LegalEntityCapability> capabilities) {
191
    this.capabilities = capabilities;
1✔
192
  }
1✔
193

194

195
  public LegalEntity documentDetails(List<DocumentReference> documentDetails) {
196
    this.documentDetails = documentDetails;
×
197
    return this;
×
198
  }
199

200
  public LegalEntity addDocumentDetailsItem(DocumentReference documentDetailsItem) {
201
    if (this.documentDetails == null) {
×
202
      this.documentDetails = new ArrayList<>();
×
203
    }
204
    this.documentDetails.add(documentDetailsItem);
×
205
    return this;
×
206
  }
207

208
   /**
209
   * List of documents uploaded for the legal entity.
210
   * @return documentDetails
211
  **/
212
  @ApiModelProperty(value = "List of documents uploaded for the legal entity.")
213
  @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS)
214
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
215

216
  public List<DocumentReference> getDocumentDetails() {
217
    return documentDetails;
×
218
  }
219

220

221
 /**
222
  * List of documents uploaded for the legal entity.
223
  *
224
  * @param documentDetails
225
  */ 
226
  @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS)
227
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
228
  public void setDocumentDetails(List<DocumentReference> documentDetails) {
229
    this.documentDetails = documentDetails;
1✔
230
  }
1✔
231

232

233
  @Deprecated
234
  public LegalEntity documents(List<EntityReference> documents) {
235
    this.documents = documents;
×
236
    return this;
×
237
  }
238

239
  public LegalEntity addDocumentsItem(EntityReference documentsItem) {
240
    if (this.documents == null) {
×
241
      this.documents = new ArrayList<>();
×
242
    }
243
    this.documents.add(documentsItem);
×
244
    return this;
×
245
  }
246

247
   /**
248
   * List of documents uploaded for the legal entity.
249
   * @return documents
250
   * @deprecated
251
  **/
252
  @Deprecated
253
  @ApiModelProperty(value = "List of documents uploaded for the legal entity.")
254
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256

257
  public List<EntityReference> getDocuments() {
258
    return documents;
×
259
  }
260

261

262
 /**
263
  * List of documents uploaded for the legal entity.
264
  *
265
  * @param documents
266
  */ 
267
  @Deprecated
268
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
269
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
270
  public void setDocuments(List<EntityReference> documents) {
271
    this.documents = documents;
×
272
  }
×
273

274

275
  public LegalEntity entityAssociations(List<LegalEntityAssociation> entityAssociations) {
276
    this.entityAssociations = entityAssociations;
×
277
    return this;
×
278
  }
279

280
  public LegalEntity addEntityAssociationsItem(LegalEntityAssociation entityAssociationsItem) {
281
    if (this.entityAssociations == null) {
×
282
      this.entityAssociations = new ArrayList<>();
×
283
    }
284
    this.entityAssociations.add(entityAssociationsItem);
×
285
    return this;
×
286
  }
287

288
   /**
289
   * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
290
   * @return entityAssociations
291
  **/
292
  @ApiModelProperty(value = "List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.")
293
  @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS)
294
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
295

296
  public List<LegalEntityAssociation> getEntityAssociations() {
297
    return entityAssociations;
×
298
  }
299

300

301
 /**
302
  * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
303
  *
304
  * @param entityAssociations
305
  */ 
306
  @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS)
307
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
308
  public void setEntityAssociations(List<LegalEntityAssociation> entityAssociations) {
309
    this.entityAssociations = entityAssociations;
1✔
310
  }
1✔
311

312

313
  public LegalEntity id(String id) {
314
    this.id = id;
×
315
    return this;
×
316
  }
317

318
   /**
319
   * The unique identifier of the legal entity.
320
   * @return id
321
  **/
322
  @ApiModelProperty(required = true, value = "The unique identifier of the legal entity.")
323
  @JsonProperty(JSON_PROPERTY_ID)
324
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
325

326
  public String getId() {
327
    return id;
1✔
328
  }
329

330

331
 /**
332
  * The unique identifier of the legal entity.
333
  *
334
  * @param id
335
  */ 
336
  @JsonProperty(JSON_PROPERTY_ID)
337
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
338
  public void setId(String id) {
339
    this.id = id;
1✔
340
  }
1✔
341

342

343
  public LegalEntity individual(Individual individual) {
344
    this.individual = individual;
×
345
    return this;
×
346
  }
347

348
   /**
349
   * Get individual
350
   * @return individual
351
  **/
352
  @ApiModelProperty(value = "")
353
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL)
354
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
355

356
  public Individual getIndividual() {
357
    return individual;
×
358
  }
359

360

361
 /**
362
  * individual
363
  *
364
  * @param individual
365
  */ 
366
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL)
367
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
368
  public void setIndividual(Individual individual) {
369
    this.individual = individual;
1✔
370
  }
1✔
371

372

373
  public LegalEntity organization(Organization organization) {
374
    this.organization = organization;
×
375
    return this;
×
376
  }
377

378
   /**
379
   * Get organization
380
   * @return organization
381
  **/
382
  @ApiModelProperty(value = "")
383
  @JsonProperty(JSON_PROPERTY_ORGANIZATION)
384
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
385

386
  public Organization getOrganization() {
387
    return organization;
×
388
  }
389

390

391
 /**
392
  * organization
393
  *
394
  * @param organization
395
  */ 
396
  @JsonProperty(JSON_PROPERTY_ORGANIZATION)
397
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
398
  public void setOrganization(Organization organization) {
399
    this.organization = organization;
1✔
400
  }
1✔
401

402

403
  public LegalEntity problems(List<CapabilityProblem> problems) {
404
    this.problems = problems;
×
405
    return this;
×
406
  }
407

408
  public LegalEntity addProblemsItem(CapabilityProblem problemsItem) {
409
    if (this.problems == null) {
×
410
      this.problems = new ArrayList<>();
×
411
    }
412
    this.problems.add(problemsItem);
×
413
    return this;
×
414
  }
415

416
   /**
417
   * List of verification errors related to capabilities for the legal entity.
418
   * @return problems
419
  **/
420
  @ApiModelProperty(value = "List of verification errors related to capabilities for the legal entity.")
421
  @JsonProperty(JSON_PROPERTY_PROBLEMS)
422
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
423

424
  public List<CapabilityProblem> getProblems() {
425
    return problems;
×
426
  }
427

428

429
 /**
430
  * List of verification errors related to capabilities for the legal entity.
431
  *
432
  * @param problems
433
  */ 
434
  @JsonProperty(JSON_PROPERTY_PROBLEMS)
435
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
436
  public void setProblems(List<CapabilityProblem> problems) {
437
    this.problems = problems;
1✔
438
  }
1✔
439

440

441
  public LegalEntity reference(String reference) {
442
    this.reference = reference;
×
443
    return this;
×
444
  }
445

446
   /**
447
   * Your reference for the legal entity, maximum 150 characters.
448
   * @return reference
449
  **/
450
  @ApiModelProperty(value = "Your reference for the legal entity, maximum 150 characters.")
451
  @JsonProperty(JSON_PROPERTY_REFERENCE)
452
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
453

454
  public String getReference() {
455
    return reference;
×
456
  }
457

458

459
 /**
460
  * Your reference for the legal entity, maximum 150 characters.
461
  *
462
  * @param reference
463
  */ 
464
  @JsonProperty(JSON_PROPERTY_REFERENCE)
465
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
466
  public void setReference(String reference) {
467
    this.reference = reference;
1✔
468
  }
1✔
469

470

471
  public LegalEntity soleProprietorship(SoleProprietorship soleProprietorship) {
472
    this.soleProprietorship = soleProprietorship;
×
473
    return this;
×
474
  }
475

476
   /**
477
   * Get soleProprietorship
478
   * @return soleProprietorship
479
  **/
480
  @ApiModelProperty(value = "")
481
  @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP)
482
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
483

484
  public SoleProprietorship getSoleProprietorship() {
485
    return soleProprietorship;
×
486
  }
487

488

489
 /**
490
  * soleProprietorship
491
  *
492
  * @param soleProprietorship
493
  */ 
494
  @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP)
495
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
496
  public void setSoleProprietorship(SoleProprietorship soleProprietorship) {
497
    this.soleProprietorship = soleProprietorship;
1✔
498
  }
1✔
499

500

501
  public LegalEntity transferInstruments(List<TransferInstrumentReference> transferInstruments) {
502
    this.transferInstruments = transferInstruments;
×
503
    return this;
×
504
  }
505

506
  public LegalEntity addTransferInstrumentsItem(TransferInstrumentReference transferInstrumentsItem) {
507
    if (this.transferInstruments == null) {
×
508
      this.transferInstruments = new ArrayList<>();
×
509
    }
510
    this.transferInstruments.add(transferInstrumentsItem);
×
511
    return this;
×
512
  }
513

514
   /**
515
   * List of transfer instruments that the legal entity owns.
516
   * @return transferInstruments
517
  **/
518
  @ApiModelProperty(value = "List of transfer instruments that the legal entity owns.")
519
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS)
520
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
521

522
  public List<TransferInstrumentReference> getTransferInstruments() {
523
    return transferInstruments;
×
524
  }
525

526

527
 /**
528
  * List of transfer instruments that the legal entity owns.
529
  *
530
  * @param transferInstruments
531
  */ 
532
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS)
533
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
534
  public void setTransferInstruments(List<TransferInstrumentReference> transferInstruments) {
535
    this.transferInstruments = transferInstruments;
1✔
536
  }
1✔
537

538

539
  public LegalEntity trust(Trust trust) {
540
    this.trust = trust;
×
541
    return this;
×
542
  }
543

544
   /**
545
   * Get trust
546
   * @return trust
547
  **/
548
  @ApiModelProperty(value = "")
549
  @JsonProperty(JSON_PROPERTY_TRUST)
550
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
551

552
  public Trust getTrust() {
553
    return trust;
×
554
  }
555

556

557
 /**
558
  * trust
559
  *
560
  * @param trust
561
  */ 
562
  @JsonProperty(JSON_PROPERTY_TRUST)
563
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
564
  public void setTrust(Trust trust) {
565
    this.trust = trust;
×
566
  }
×
567

568

569
  public LegalEntity type(TypeEnum type) {
570
    this.type = type;
×
571
    return this;
×
572
  }
573

574
   /**
575
   * The type of legal entity.  Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
576
   * @return type
577
  **/
578
  @ApiModelProperty(value = "The type of legal entity.  Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.")
579
  @JsonProperty(JSON_PROPERTY_TYPE)
580
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
581

582
  public TypeEnum getType() {
583
    return type;
1✔
584
  }
585

586

587
 /**
588
  * The type of legal entity.  Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
589
  *
590
  * @param type
591
  */ 
592
  @JsonProperty(JSON_PROPERTY_TYPE)
593
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
594
  public void setType(TypeEnum type) {
595
    this.type = type;
1✔
596
  }
1✔
597

598

599
  public LegalEntity verificationDeadlines(List<VerificationDeadline> verificationDeadlines) {
600
    this.verificationDeadlines = verificationDeadlines;
×
601
    return this;
×
602
  }
603

604
  public LegalEntity addVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem) {
605
    if (this.verificationDeadlines == null) {
×
606
      this.verificationDeadlines = new ArrayList<>();
×
607
    }
608
    this.verificationDeadlines.add(verificationDeadlinesItem);
×
609
    return this;
×
610
  }
611

612
   /**
613
   * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
614
   * @return verificationDeadlines
615
  **/
616
  @ApiModelProperty(value = "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.")
617
  @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES)
618
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
619

620
  public List<VerificationDeadline> getVerificationDeadlines() {
621
    return verificationDeadlines;
×
622
  }
623

624

625
 /**
626
  * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
627
  *
628
  * @param verificationDeadlines
629
  */ 
630
  @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES)
631
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
632
  public void setVerificationDeadlines(List<VerificationDeadline> verificationDeadlines) {
633
    this.verificationDeadlines = verificationDeadlines;
×
634
  }
×
635

636

637
  public LegalEntity verificationPlan(String verificationPlan) {
638
    this.verificationPlan = verificationPlan;
×
639
    return this;
×
640
  }
641

642
   /**
643
   * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
644
   * @return verificationPlan
645
  **/
646
  @ApiModelProperty(value = "A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).")
647
  @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN)
648
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
649

650
  public String getVerificationPlan() {
651
    return verificationPlan;
×
652
  }
653

654

655
 /**
656
  * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
657
  *
658
  * @param verificationPlan
659
  */ 
660
  @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN)
661
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
662
  public void setVerificationPlan(String verificationPlan) {
663
    this.verificationPlan = verificationPlan;
×
664
  }
×
665

666

667
  /**
668
   * Return true if this LegalEntity object is equal to o.
669
   */
670
  @Override
671
  public boolean equals(Object o) {
672
    if (this == o) {
×
673
      return true;
×
674
    }
675
    if (o == null || getClass() != o.getClass()) {
×
676
      return false;
×
677
    }
678
    LegalEntity legalEntity = (LegalEntity) o;
×
679
    return Objects.equals(this.capabilities, legalEntity.capabilities) &&
×
680
        Objects.equals(this.documentDetails, legalEntity.documentDetails) &&
×
681
        Objects.equals(this.documents, legalEntity.documents) &&
×
682
        Objects.equals(this.entityAssociations, legalEntity.entityAssociations) &&
×
683
        Objects.equals(this.id, legalEntity.id) &&
×
684
        Objects.equals(this.individual, legalEntity.individual) &&
×
685
        Objects.equals(this.organization, legalEntity.organization) &&
×
686
        Objects.equals(this.problems, legalEntity.problems) &&
×
687
        Objects.equals(this.reference, legalEntity.reference) &&
×
688
        Objects.equals(this.soleProprietorship, legalEntity.soleProprietorship) &&
×
689
        Objects.equals(this.transferInstruments, legalEntity.transferInstruments) &&
×
690
        Objects.equals(this.trust, legalEntity.trust) &&
×
691
        Objects.equals(this.type, legalEntity.type) &&
×
692
        Objects.equals(this.verificationDeadlines, legalEntity.verificationDeadlines) &&
×
693
        Objects.equals(this.verificationPlan, legalEntity.verificationPlan);
×
694
  }
695

696
  @Override
697
  public int hashCode() {
NEW
698
    return Objects.hash(capabilities, documentDetails, documents, entityAssociations, id, individual, organization, problems, reference, soleProprietorship, transferInstruments, trust, type, verificationDeadlines, verificationPlan);
×
699
  }
700

701
  @Override
702
  public String toString() {
703
    StringBuilder sb = new StringBuilder();
×
704
    sb.append("class LegalEntity {\n");
×
705
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
706
    sb.append("    documentDetails: ").append(toIndentedString(documentDetails)).append("\n");
×
707
    sb.append("    documents: ").append(toIndentedString(documents)).append("\n");
×
708
    sb.append("    entityAssociations: ").append(toIndentedString(entityAssociations)).append("\n");
×
709
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
710
    sb.append("    individual: ").append(toIndentedString(individual)).append("\n");
×
711
    sb.append("    organization: ").append(toIndentedString(organization)).append("\n");
×
712
    sb.append("    problems: ").append(toIndentedString(problems)).append("\n");
×
713
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
714
    sb.append("    soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n");
×
715
    sb.append("    transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n");
×
716
    sb.append("    trust: ").append(toIndentedString(trust)).append("\n");
×
717
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
718
    sb.append("    verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n");
×
719
    sb.append("    verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n");
×
720
    sb.append("}");
×
721
    return sb.toString();
×
722
  }
723

724
  /**
725
   * Convert the given object to string with each line indented by 4 spaces
726
   * (except the first line).
727
   */
728
  private String toIndentedString(Object o) {
729
    if (o == null) {
×
730
      return "null";
×
731
    }
732
    return o.toString().replace("\n", "\n    ");
×
733
  }
734

735
/**
736
   * Create an instance of LegalEntity given an JSON string
737
   *
738
   * @param jsonString JSON string
739
   * @return An instance of LegalEntity
740
   * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntity
741
   */
742
  public static LegalEntity fromJson(String jsonString) throws JsonProcessingException {
743
    return JSON.getMapper().readValue(jsonString, LegalEntity.class);
1✔
744
  }
745
/**
746
  * Convert an instance of LegalEntity to an JSON string
747
  *
748
  * @return JSON string
749
  */
750
  public String toJson() throws JsonProcessingException {
751
    return JSON.getMapper().writeValueAsString(this);
×
752
  }
753
}
754

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