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

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

13 Nov 2023 03:54PM UTC coverage: 12.814%. First build
#2846

push

web-flow
Merge dd57ccf8a into e27e7377f

2 of 193 new or added lines in 5 files covered. (1.04%)

12395 of 96731 relevant lines covered (12.81%)

0.13 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.UnincorporatedPartnership;
30
import com.adyen.model.legalentitymanagement.VerificationDeadline;
31
import com.fasterxml.jackson.annotation.JsonInclude;
32
import com.fasterxml.jackson.annotation.JsonProperty;
33
import com.fasterxml.jackson.annotation.JsonCreator;
34
import com.fasterxml.jackson.annotation.JsonTypeName;
35
import com.fasterxml.jackson.annotation.JsonValue;
36
import io.swagger.annotations.ApiModel;
37
import io.swagger.annotations.ApiModelProperty;
38
import java.util.ArrayList;
39
import java.util.HashMap;
40
import java.util.List;
41
import java.util.Map;
42
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
43
import com.fasterxml.jackson.core.JsonProcessingException;
44

45

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

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

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

74
  public static final String JSON_PROPERTY_DOCUMENTS = "documents";
75
  private List<EntityReference> documents = null;
1✔
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_UNINCORPORATED_PARTNERSHIP = "unincorporatedPartnership";
149
  private UnincorporatedPartnership unincorporatedPartnership;
150

151
  public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines";
152
  private List<VerificationDeadline> verificationDeadlines = null;
1✔
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
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185
  public void setCapabilities(Map<String, LegalEntityCapability> capabilities) {
186
    this.capabilities = capabilities;
1✔
187
  }
1✔
188

189

190
  public LegalEntity documentDetails(List<DocumentReference> documentDetails) {
191
    this.documentDetails = documentDetails;
×
192
    return this;
×
193
  }
194

195
  public LegalEntity addDocumentDetailsItem(DocumentReference documentDetailsItem) {
196
    if (this.documentDetails == null) {
×
197
      this.documentDetails = new ArrayList<>();
×
198
    }
199
    this.documentDetails.add(documentDetailsItem);
×
200
    return this;
×
201
  }
202

203
   /**
204
   * List of documents uploaded for the legal entity.
205
   * @return documentDetails
206
  **/
207
  @ApiModelProperty(value = "List of documents uploaded for the legal entity.")
208
  @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS)
209
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
210

211
  public List<DocumentReference> getDocumentDetails() {
212
    return documentDetails;
×
213
  }
214

215

216
  @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS)
217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
218
  public void setDocumentDetails(List<DocumentReference> documentDetails) {
219
    this.documentDetails = documentDetails;
1✔
220
  }
1✔
221

222

223
  public LegalEntity documents(List<EntityReference> documents) {
224
    this.documents = documents;
×
225
    return this;
×
226
  }
227

228
  public LegalEntity addDocumentsItem(EntityReference documentsItem) {
229
    if (this.documents == null) {
×
230
      this.documents = new ArrayList<>();
×
231
    }
232
    this.documents.add(documentsItem);
×
233
    return this;
×
234
  }
235

236
   /**
237
   * List of documents uploaded for the legal entity.
238
   * @return documents
239
   * @deprecated
240
  **/
241
  @Deprecated
242
  @ApiModelProperty(value = "List of documents uploaded for the legal entity.")
243
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
244
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
245

246
  public List<EntityReference> getDocuments() {
247
    return documents;
×
248
  }
249

250

251
  @Deprecated
252
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
253
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
254
  public void setDocuments(List<EntityReference> documents) {
255
    this.documents = documents;
×
256
  }
×
257

258

259
  public LegalEntity entityAssociations(List<LegalEntityAssociation> entityAssociations) {
260
    this.entityAssociations = entityAssociations;
×
261
    return this;
×
262
  }
263

264
  public LegalEntity addEntityAssociationsItem(LegalEntityAssociation entityAssociationsItem) {
265
    if (this.entityAssociations == null) {
×
266
      this.entityAssociations = new ArrayList<>();
×
267
    }
268
    this.entityAssociations.add(entityAssociationsItem);
×
269
    return this;
×
270
  }
271

272
   /**
273
   * 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.
274
   * @return entityAssociations
275
  **/
276
  @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.")
277
  @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS)
278
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
279

280
  public List<LegalEntityAssociation> getEntityAssociations() {
281
    return entityAssociations;
×
282
  }
283

284

285
  @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS)
286
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
287
  public void setEntityAssociations(List<LegalEntityAssociation> entityAssociations) {
288
    this.entityAssociations = entityAssociations;
1✔
289
  }
1✔
290

291

292
  public LegalEntity id(String id) {
293
    this.id = id;
×
294
    return this;
×
295
  }
296

297
   /**
298
   * The unique identifier of the legal entity.
299
   * @return id
300
  **/
301
  @ApiModelProperty(required = true, value = "The unique identifier of the legal entity.")
302
  @JsonProperty(JSON_PROPERTY_ID)
303
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
304

305
  public String getId() {
306
    return id;
1✔
307
  }
308

309

310
  @JsonProperty(JSON_PROPERTY_ID)
311
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
312
  public void setId(String id) {
313
    this.id = id;
1✔
314
  }
1✔
315

316

317
  public LegalEntity individual(Individual individual) {
318
    this.individual = individual;
×
319
    return this;
×
320
  }
321

322
   /**
323
   * Get individual
324
   * @return individual
325
  **/
326
  @ApiModelProperty(value = "")
327
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL)
328
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
329

330
  public Individual getIndividual() {
331
    return individual;
×
332
  }
333

334

335
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL)
336
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
337
  public void setIndividual(Individual individual) {
338
    this.individual = individual;
1✔
339
  }
1✔
340

341

342
  public LegalEntity organization(Organization organization) {
343
    this.organization = organization;
×
344
    return this;
×
345
  }
346

347
   /**
348
   * Get organization
349
   * @return organization
350
  **/
351
  @ApiModelProperty(value = "")
352
  @JsonProperty(JSON_PROPERTY_ORGANIZATION)
353
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
354

355
  public Organization getOrganization() {
356
    return organization;
×
357
  }
358

359

360
  @JsonProperty(JSON_PROPERTY_ORGANIZATION)
361
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
362
  public void setOrganization(Organization organization) {
363
    this.organization = organization;
1✔
364
  }
1✔
365

366

367
  public LegalEntity problems(List<CapabilityProblem> problems) {
368
    this.problems = problems;
×
369
    return this;
×
370
  }
371

372
  public LegalEntity addProblemsItem(CapabilityProblem problemsItem) {
373
    if (this.problems == null) {
×
374
      this.problems = new ArrayList<>();
×
375
    }
376
    this.problems.add(problemsItem);
×
377
    return this;
×
378
  }
379

380
   /**
381
   * List of verification errors related to capabilities for the legal entity.
382
   * @return problems
383
  **/
384
  @ApiModelProperty(value = "List of verification errors related to capabilities for the legal entity.")
385
  @JsonProperty(JSON_PROPERTY_PROBLEMS)
386
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
387

388
  public List<CapabilityProblem> getProblems() {
389
    return problems;
×
390
  }
391

392

393
  @JsonProperty(JSON_PROPERTY_PROBLEMS)
394
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
395
  public void setProblems(List<CapabilityProblem> problems) {
396
    this.problems = problems;
1✔
397
  }
1✔
398

399

400
  public LegalEntity reference(String reference) {
401
    this.reference = reference;
×
402
    return this;
×
403
  }
404

405
   /**
406
   * Your reference for the legal entity, maximum 150 characters.
407
   * @return reference
408
  **/
409
  @ApiModelProperty(value = "Your reference for the legal entity, maximum 150 characters.")
410
  @JsonProperty(JSON_PROPERTY_REFERENCE)
411
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
412

413
  public String getReference() {
414
    return reference;
×
415
  }
416

417

418
  @JsonProperty(JSON_PROPERTY_REFERENCE)
419
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
420
  public void setReference(String reference) {
421
    this.reference = reference;
1✔
422
  }
1✔
423

424

425
  public LegalEntity soleProprietorship(SoleProprietorship soleProprietorship) {
426
    this.soleProprietorship = soleProprietorship;
×
427
    return this;
×
428
  }
429

430
   /**
431
   * Get soleProprietorship
432
   * @return soleProprietorship
433
  **/
434
  @ApiModelProperty(value = "")
435
  @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP)
436
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
437

438
  public SoleProprietorship getSoleProprietorship() {
439
    return soleProprietorship;
×
440
  }
441

442

443
  @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP)
444
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
445
  public void setSoleProprietorship(SoleProprietorship soleProprietorship) {
446
    this.soleProprietorship = soleProprietorship;
1✔
447
  }
1✔
448

449

450
  public LegalEntity transferInstruments(List<TransferInstrumentReference> transferInstruments) {
451
    this.transferInstruments = transferInstruments;
×
452
    return this;
×
453
  }
454

455
  public LegalEntity addTransferInstrumentsItem(TransferInstrumentReference transferInstrumentsItem) {
456
    if (this.transferInstruments == null) {
×
457
      this.transferInstruments = new ArrayList<>();
×
458
    }
459
    this.transferInstruments.add(transferInstrumentsItem);
×
460
    return this;
×
461
  }
462

463
   /**
464
   * List of transfer instruments that the legal entity owns.
465
   * @return transferInstruments
466
  **/
467
  @ApiModelProperty(value = "List of transfer instruments that the legal entity owns.")
468
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS)
469
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
470

471
  public List<TransferInstrumentReference> getTransferInstruments() {
472
    return transferInstruments;
×
473
  }
474

475

476
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS)
477
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
478
  public void setTransferInstruments(List<TransferInstrumentReference> transferInstruments) {
479
    this.transferInstruments = transferInstruments;
1✔
480
  }
1✔
481

482

483
  public LegalEntity trust(Trust trust) {
484
    this.trust = trust;
×
485
    return this;
×
486
  }
487

488
   /**
489
   * Get trust
490
   * @return trust
491
  **/
492
  @ApiModelProperty(value = "")
493
  @JsonProperty(JSON_PROPERTY_TRUST)
494
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
495

496
  public Trust getTrust() {
497
    return trust;
×
498
  }
499

500

501
  @JsonProperty(JSON_PROPERTY_TRUST)
502
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
503
  public void setTrust(Trust trust) {
504
    this.trust = trust;
×
505
  }
×
506

507

508
  public LegalEntity type(TypeEnum type) {
509
    this.type = type;
×
510
    return this;
×
511
  }
512

513
   /**
514
   * The type of legal entity.  Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
515
   * @return type
516
  **/
517
  @ApiModelProperty(value = "The type of legal entity.  Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.")
518
  @JsonProperty(JSON_PROPERTY_TYPE)
519
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
520

521
  public TypeEnum getType() {
522
    return type;
1✔
523
  }
524

525

526
  @JsonProperty(JSON_PROPERTY_TYPE)
527
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
528
  public void setType(TypeEnum type) {
529
    this.type = type;
1✔
530
  }
1✔
531

532

533
  public LegalEntity unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) {
NEW
534
    this.unincorporatedPartnership = unincorporatedPartnership;
×
NEW
535
    return this;
×
536
  }
537

538
   /**
539
   * Get unincorporatedPartnership
540
   * @return unincorporatedPartnership
541
  **/
542
  @ApiModelProperty(value = "")
543
  @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP)
544
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
545

546
  public UnincorporatedPartnership getUnincorporatedPartnership() {
NEW
547
    return unincorporatedPartnership;
×
548
  }
549

550

551
  @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP)
552
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
553
  public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) {
NEW
554
    this.unincorporatedPartnership = unincorporatedPartnership;
×
NEW
555
  }
×
556

557

558
  public LegalEntity verificationDeadlines(List<VerificationDeadline> verificationDeadlines) {
559
    this.verificationDeadlines = verificationDeadlines;
×
560
    return this;
×
561
  }
562

563
  public LegalEntity addVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem) {
564
    if (this.verificationDeadlines == null) {
×
565
      this.verificationDeadlines = new ArrayList<>();
×
566
    }
567
    this.verificationDeadlines.add(verificationDeadlinesItem);
×
568
    return this;
×
569
  }
570

571
   /**
572
   * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
573
   * @return verificationDeadlines
574
  **/
575
  @ApiModelProperty(value = "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.")
576
  @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES)
577
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
578

579
  public List<VerificationDeadline> getVerificationDeadlines() {
580
    return verificationDeadlines;
×
581
  }
582

583

584
  @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES)
585
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
586
  public void setVerificationDeadlines(List<VerificationDeadline> verificationDeadlines) {
587
    this.verificationDeadlines = verificationDeadlines;
×
588
  }
×
589

590

591
  /**
592
   * Return true if this LegalEntity object is equal to o.
593
   */
594
  @Override
595
  public boolean equals(Object o) {
596
    if (this == o) {
×
597
      return true;
×
598
    }
599
    if (o == null || getClass() != o.getClass()) {
×
600
      return false;
×
601
    }
602
    LegalEntity legalEntity = (LegalEntity) o;
×
603
    return Objects.equals(this.capabilities, legalEntity.capabilities) &&
×
604
        Objects.equals(this.documentDetails, legalEntity.documentDetails) &&
×
605
        Objects.equals(this.documents, legalEntity.documents) &&
×
606
        Objects.equals(this.entityAssociations, legalEntity.entityAssociations) &&
×
607
        Objects.equals(this.id, legalEntity.id) &&
×
608
        Objects.equals(this.individual, legalEntity.individual) &&
×
609
        Objects.equals(this.organization, legalEntity.organization) &&
×
610
        Objects.equals(this.problems, legalEntity.problems) &&
×
611
        Objects.equals(this.reference, legalEntity.reference) &&
×
612
        Objects.equals(this.soleProprietorship, legalEntity.soleProprietorship) &&
×
613
        Objects.equals(this.transferInstruments, legalEntity.transferInstruments) &&
×
614
        Objects.equals(this.trust, legalEntity.trust) &&
×
615
        Objects.equals(this.type, legalEntity.type) &&
×
NEW
616
        Objects.equals(this.unincorporatedPartnership, legalEntity.unincorporatedPartnership) &&
×
617
        Objects.equals(this.verificationDeadlines, legalEntity.verificationDeadlines);
×
618
  }
619

620
  @Override
621
  public int hashCode() {
NEW
622
    return Objects.hash(capabilities, documentDetails, documents, entityAssociations, id, individual, organization, problems, reference, soleProprietorship, transferInstruments, trust, type, unincorporatedPartnership, verificationDeadlines);
×
623
  }
624

625
  @Override
626
  public String toString() {
627
    StringBuilder sb = new StringBuilder();
×
628
    sb.append("class LegalEntity {\n");
×
629
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
630
    sb.append("    documentDetails: ").append(toIndentedString(documentDetails)).append("\n");
×
631
    sb.append("    documents: ").append(toIndentedString(documents)).append("\n");
×
632
    sb.append("    entityAssociations: ").append(toIndentedString(entityAssociations)).append("\n");
×
633
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
634
    sb.append("    individual: ").append(toIndentedString(individual)).append("\n");
×
635
    sb.append("    organization: ").append(toIndentedString(organization)).append("\n");
×
636
    sb.append("    problems: ").append(toIndentedString(problems)).append("\n");
×
637
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
638
    sb.append("    soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n");
×
639
    sb.append("    transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n");
×
640
    sb.append("    trust: ").append(toIndentedString(trust)).append("\n");
×
641
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
NEW
642
    sb.append("    unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n");
×
643
    sb.append("    verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n");
×
644
    sb.append("}");
×
645
    return sb.toString();
×
646
  }
647

648
  /**
649
   * Convert the given object to string with each line indented by 4 spaces
650
   * (except the first line).
651
   */
652
  private String toIndentedString(Object o) {
653
    if (o == null) {
×
654
      return "null";
×
655
    }
656
    return o.toString().replace("\n", "\n    ");
×
657
  }
658

659
/**
660
   * Create an instance of LegalEntity given an JSON string
661
   *
662
   * @param jsonString JSON string
663
   * @return An instance of LegalEntity
664
   * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntity
665
   */
666
  public static LegalEntity fromJson(String jsonString) throws JsonProcessingException {
667
    return JSON.getMapper().readValue(jsonString, LegalEntity.class);
1✔
668
  }
669
/**
670
  * Convert an instance of LegalEntity to an JSON string
671
  *
672
  * @return JSON string
673
  */
674
  public String toJson() throws JsonProcessingException {
675
    return JSON.getMapper().writeValueAsString(this);
×
676
  }
677
}
678

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