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

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

04 Dec 2023 10:18AM UTC coverage: 12.838%. First build
#2895

push

web-flow
Merge 6c685def1 into ec0c20882

1 of 148 new or added lines in 10 files covered. (0.68%)

12463 of 97082 relevant lines covered (12.84%)

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/legalentitymanagement/Trust.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.Address;
20
import com.adyen.model.legalentitymanagement.TaxInformation;
21
import com.adyen.model.legalentitymanagement.UndefinedBeneficiary;
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.List;
31
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
import com.fasterxml.jackson.core.JsonProcessingException;
33

34

35
/**
36
 * Trust
37
 */
38
@JsonPropertyOrder({
39
  Trust.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW,
40
  Trust.JSON_PROPERTY_DATE_OF_INCORPORATION,
41
  Trust.JSON_PROPERTY_DESCRIPTION,
42
  Trust.JSON_PROPERTY_DOING_BUSINESS_AS,
43
  Trust.JSON_PROPERTY_NAME,
44
  Trust.JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS,
45
  Trust.JSON_PROPERTY_REGISTERED_ADDRESS,
46
  Trust.JSON_PROPERTY_REGISTRATION_NUMBER,
47
  Trust.JSON_PROPERTY_TAX_INFORMATION,
48
  Trust.JSON_PROPERTY_TYPE,
49
  Trust.JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO,
50
  Trust.JSON_PROPERTY_VAT_ABSENCE_REASON,
51
  Trust.JSON_PROPERTY_VAT_NUMBER
52
})
53

54
public class Trust {
55
  public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw";
56
  private String countryOfGoverningLaw;
57

58
  public static final String JSON_PROPERTY_DATE_OF_INCORPORATION = "dateOfIncorporation";
59
  private String dateOfIncorporation;
60

61
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
62
  private String description;
63

64
  public static final String JSON_PROPERTY_DOING_BUSINESS_AS = "doingBusinessAs";
65
  private String doingBusinessAs;
66

67
  public static final String JSON_PROPERTY_NAME = "name";
68
  private String name;
69

70
  public static final String JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS = "principalPlaceOfBusiness";
71
  private Address principalPlaceOfBusiness;
72

73
  public static final String JSON_PROPERTY_REGISTERED_ADDRESS = "registeredAddress";
74
  private Address registeredAddress;
75

76
  public static final String JSON_PROPERTY_REGISTRATION_NUMBER = "registrationNumber";
77
  private String registrationNumber;
78

79
  public static final String JSON_PROPERTY_TAX_INFORMATION = "taxInformation";
80
  private List<TaxInformation> taxInformation = null;
×
81

82
  /**
83
   * Type of trust.  Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
84
   */
85
  public enum TypeEnum {
×
86
    CASHMANAGEMENTTRUST("cashManagementTrust"),
×
87
    
88
    CORPORATEUNITTRUST("corporateUnitTrust"),
×
89
    
90
    DECEASEDESTATE("deceasedEstate"),
×
91
    
92
    DISCRETIONARYINVESTMENTTRUST("discretionaryInvestmentTrust"),
×
93
    
94
    DISCRETIONARYSERVICESMANAGEMENTTRUST("discretionaryServicesManagementTrust"),
×
95
    
96
    DISCRETIONARYTRADINGTRUST("discretionaryTradingTrust"),
×
97
    
98
    FIRSTHOMESAVERACCOUNTSTRUST("firstHomeSaverAccountsTrust"),
×
99
    
100
    FIXEDTRUST("fixedTrust"),
×
101
    
102
    FIXEDUNITTRUST("fixedUnitTrust"),
×
103
    
104
    HYBRIDTRUST("hybridTrust"),
×
105
    
106
    LISTEDPUBLICUNITTRUST("listedPublicUnitTrust"),
×
107
    
108
    OTHERTRUST("otherTrust"),
×
109
    
110
    POOLEDSUPERANNUATIONTRUST("pooledSuperannuationTrust"),
×
111
    
112
    PUBLICTRADINGTRUST("publicTradingTrust"),
×
113
    
114
    UNLISTEDPUBLICUNITTRUST("unlistedPublicUnitTrust");
×
115

116
    private String value;
117

118
    TypeEnum(String value) {
×
119
      this.value = value;
×
120
    }
×
121

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

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

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

143
  public static final String JSON_PROPERTY_TYPE = "type";
144
  private TypeEnum type;
145

146
  public static final String JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO = "undefinedBeneficiaryInfo";
147
  private List<UndefinedBeneficiary> undefinedBeneficiaryInfo = null;
×
148

149
  /**
150
   * The reason for not providing a VAT number.  Possible values: **industryExemption**, **belowTaxThreshold**.
151
   */
152
  public enum VatAbsenceReasonEnum {
×
153
    INDUSTRYEXEMPTION("industryExemption"),
×
154
    
155
    BELOWTAXTHRESHOLD("belowTaxThreshold");
×
156

157
    private String value;
158

159
    VatAbsenceReasonEnum(String value) {
×
160
      this.value = value;
×
161
    }
×
162

163
    @JsonValue
164
    public String getValue() {
165
      return value;
×
166
    }
167

168
    @Override
169
    public String toString() {
170
      return String.valueOf(value);
×
171
    }
172

173
    @JsonCreator
174
    public static VatAbsenceReasonEnum fromValue(String value) {
175
      for (VatAbsenceReasonEnum b : VatAbsenceReasonEnum.values()) {
×
176
        if (b.value.equals(value)) {
×
177
          return b;
×
178
        }
179
      }
180
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
181
    }
182
  }
183

184
  public static final String JSON_PROPERTY_VAT_ABSENCE_REASON = "vatAbsenceReason";
185
  private VatAbsenceReasonEnum vatAbsenceReason;
186

187
  public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber";
188
  private String vatNumber;
189

190
  public Trust() { 
×
191
  }
×
192

193
  public Trust countryOfGoverningLaw(String countryOfGoverningLaw) {
194
    this.countryOfGoverningLaw = countryOfGoverningLaw;
×
195
    return this;
×
196
  }
197

198
   /**
199
   * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.
200
   * @return countryOfGoverningLaw
201
  **/
202
  @ApiModelProperty(required = true, value = "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.")
203
  @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205

206
  public String getCountryOfGoverningLaw() {
207
    return countryOfGoverningLaw;
×
208
  }
209

210

211
  @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213
  public void setCountryOfGoverningLaw(String countryOfGoverningLaw) {
214
    this.countryOfGoverningLaw = countryOfGoverningLaw;
×
215
  }
×
216

217

218
  public Trust dateOfIncorporation(String dateOfIncorporation) {
219
    this.dateOfIncorporation = dateOfIncorporation;
×
220
    return this;
×
221
  }
222

223
   /**
224
   * The date when the legal arrangement was incorporated in YYYY-MM-DD format.
225
   * @return dateOfIncorporation
226
  **/
227
  @ApiModelProperty(value = "The date when the legal arrangement was incorporated in YYYY-MM-DD format.")
228
  @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230

231
  public String getDateOfIncorporation() {
232
    return dateOfIncorporation;
×
233
  }
234

235

236
  @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION)
237
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
238
  public void setDateOfIncorporation(String dateOfIncorporation) {
239
    this.dateOfIncorporation = dateOfIncorporation;
×
240
  }
×
241

242

243
  public Trust description(String description) {
NEW
244
    this.description = description;
×
NEW
245
    return this;
×
246
  }
247

248
   /**
249
   * Short description about the trust.
250
   * @return description
251
  **/
252
  @ApiModelProperty(value = "Short description about the trust.")
253
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255

256
  public String getDescription() {
NEW
257
    return description;
×
258
  }
259

260

261
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
262
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
263
  public void setDescription(String description) {
NEW
264
    this.description = description;
×
NEW
265
  }
×
266

267

268
  public Trust doingBusinessAs(String doingBusinessAs) {
269
    this.doingBusinessAs = doingBusinessAs;
×
270
    return this;
×
271
  }
272

273
   /**
274
   * The registered name, if different from the &#x60;name&#x60;.
275
   * @return doingBusinessAs
276
  **/
277
  @ApiModelProperty(value = "The registered name, if different from the `name`.")
278
  @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS)
279
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
280

281
  public String getDoingBusinessAs() {
282
    return doingBusinessAs;
×
283
  }
284

285

286
  @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS)
287
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
288
  public void setDoingBusinessAs(String doingBusinessAs) {
289
    this.doingBusinessAs = doingBusinessAs;
×
290
  }
×
291

292

293
  public Trust name(String name) {
294
    this.name = name;
×
295
    return this;
×
296
  }
297

298
   /**
299
   * The legal name.
300
   * @return name
301
  **/
302
  @ApiModelProperty(required = true, value = "The legal name.")
303
  @JsonProperty(JSON_PROPERTY_NAME)
304
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
305

306
  public String getName() {
307
    return name;
×
308
  }
309

310

311
  @JsonProperty(JSON_PROPERTY_NAME)
312
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
313
  public void setName(String name) {
314
    this.name = name;
×
315
  }
×
316

317

318
  public Trust principalPlaceOfBusiness(Address principalPlaceOfBusiness) {
319
    this.principalPlaceOfBusiness = principalPlaceOfBusiness;
×
320
    return this;
×
321
  }
322

323
   /**
324
   * Get principalPlaceOfBusiness
325
   * @return principalPlaceOfBusiness
326
  **/
327
  @ApiModelProperty(value = "")
328
  @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS)
329
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
330

331
  public Address getPrincipalPlaceOfBusiness() {
332
    return principalPlaceOfBusiness;
×
333
  }
334

335

336
  @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS)
337
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
338
  public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) {
339
    this.principalPlaceOfBusiness = principalPlaceOfBusiness;
×
340
  }
×
341

342

343
  public Trust registeredAddress(Address registeredAddress) {
344
    this.registeredAddress = registeredAddress;
×
345
    return this;
×
346
  }
347

348
   /**
349
   * Get registeredAddress
350
   * @return registeredAddress
351
  **/
352
  @ApiModelProperty(required = true, value = "")
353
  @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS)
354
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
355

356
  public Address getRegisteredAddress() {
357
    return registeredAddress;
×
358
  }
359

360

361
  @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS)
362
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
363
  public void setRegisteredAddress(Address registeredAddress) {
364
    this.registeredAddress = registeredAddress;
×
365
  }
×
366

367

368
  public Trust registrationNumber(String registrationNumber) {
369
    this.registrationNumber = registrationNumber;
×
370
    return this;
×
371
  }
372

373
   /**
374
   * The registration number.
375
   * @return registrationNumber
376
  **/
377
  @ApiModelProperty(value = "The registration number.")
378
  @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER)
379
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
380

381
  public String getRegistrationNumber() {
382
    return registrationNumber;
×
383
  }
384

385

386
  @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER)
387
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
388
  public void setRegistrationNumber(String registrationNumber) {
389
    this.registrationNumber = registrationNumber;
×
390
  }
×
391

392

393
  public Trust taxInformation(List<TaxInformation> taxInformation) {
394
    this.taxInformation = taxInformation;
×
395
    return this;
×
396
  }
397

398
  public Trust addTaxInformationItem(TaxInformation taxInformationItem) {
399
    if (this.taxInformation == null) {
×
400
      this.taxInformation = new ArrayList<>();
×
401
    }
402
    this.taxInformation.add(taxInformationItem);
×
403
    return this;
×
404
  }
405

406
   /**
407
   * The tax information of the entity.
408
   * @return taxInformation
409
  **/
410
  @ApiModelProperty(value = "The tax information of the entity.")
411
  @JsonProperty(JSON_PROPERTY_TAX_INFORMATION)
412
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
413

414
  public List<TaxInformation> getTaxInformation() {
415
    return taxInformation;
×
416
  }
417

418

419
  @JsonProperty(JSON_PROPERTY_TAX_INFORMATION)
420
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
421
  public void setTaxInformation(List<TaxInformation> taxInformation) {
422
    this.taxInformation = taxInformation;
×
423
  }
×
424

425

426
  public Trust type(TypeEnum type) {
427
    this.type = type;
×
428
    return this;
×
429
  }
430

431
   /**
432
   * Type of trust.  Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
433
   * @return type
434
  **/
435
  @ApiModelProperty(required = true, value = "Type of trust.  Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.")
436
  @JsonProperty(JSON_PROPERTY_TYPE)
437
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
438

439
  public TypeEnum getType() {
440
    return type;
×
441
  }
442

443

444
  @JsonProperty(JSON_PROPERTY_TYPE)
445
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
446
  public void setType(TypeEnum type) {
447
    this.type = type;
×
448
  }
×
449

450

451
  public Trust undefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo) {
452
    this.undefinedBeneficiaryInfo = undefinedBeneficiaryInfo;
×
453
    return this;
×
454
  }
455

456
  public Trust addUndefinedBeneficiaryInfoItem(UndefinedBeneficiary undefinedBeneficiaryInfoItem) {
457
    if (this.undefinedBeneficiaryInfo == null) {
×
458
      this.undefinedBeneficiaryInfo = new ArrayList<>();
×
459
    }
460
    this.undefinedBeneficiaryInfo.add(undefinedBeneficiaryInfoItem);
×
461
    return this;
×
462
  }
463

464
   /**
465
   * The undefined beneficiary information of the entity.
466
   * @return undefinedBeneficiaryInfo
467
  **/
468
  @ApiModelProperty(value = "The undefined beneficiary information of the entity.")
469
  @JsonProperty(JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO)
470
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
471

472
  public List<UndefinedBeneficiary> getUndefinedBeneficiaryInfo() {
473
    return undefinedBeneficiaryInfo;
×
474
  }
475

476

477
  @JsonProperty(JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO)
478
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
479
  public void setUndefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo) {
480
    this.undefinedBeneficiaryInfo = undefinedBeneficiaryInfo;
×
481
  }
×
482

483

484
  public Trust vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) {
485
    this.vatAbsenceReason = vatAbsenceReason;
×
486
    return this;
×
487
  }
488

489
   /**
490
   * The reason for not providing a VAT number.  Possible values: **industryExemption**, **belowTaxThreshold**.
491
   * @return vatAbsenceReason
492
  **/
493
  @ApiModelProperty(value = "The reason for not providing a VAT number.  Possible values: **industryExemption**, **belowTaxThreshold**.")
494
  @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON)
495
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
496

497
  public VatAbsenceReasonEnum getVatAbsenceReason() {
498
    return vatAbsenceReason;
×
499
  }
500

501

502
  @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON)
503
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
504
  public void setVatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) {
505
    this.vatAbsenceReason = vatAbsenceReason;
×
506
  }
×
507

508

509
  public Trust vatNumber(String vatNumber) {
510
    this.vatNumber = vatNumber;
×
511
    return this;
×
512
  }
513

514
   /**
515
   * The VAT number.
516
   * @return vatNumber
517
  **/
518
  @ApiModelProperty(value = "The VAT number.")
519
  @JsonProperty(JSON_PROPERTY_VAT_NUMBER)
520
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
521

522
  public String getVatNumber() {
523
    return vatNumber;
×
524
  }
525

526

527
  @JsonProperty(JSON_PROPERTY_VAT_NUMBER)
528
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
529
  public void setVatNumber(String vatNumber) {
530
    this.vatNumber = vatNumber;
×
531
  }
×
532

533

534
  /**
535
   * Return true if this Trust object is equal to o.
536
   */
537
  @Override
538
  public boolean equals(Object o) {
539
    if (this == o) {
×
540
      return true;
×
541
    }
542
    if (o == null || getClass() != o.getClass()) {
×
543
      return false;
×
544
    }
545
    Trust trust = (Trust) o;
×
546
    return Objects.equals(this.countryOfGoverningLaw, trust.countryOfGoverningLaw) &&
×
547
        Objects.equals(this.dateOfIncorporation, trust.dateOfIncorporation) &&
×
NEW
548
        Objects.equals(this.description, trust.description) &&
×
549
        Objects.equals(this.doingBusinessAs, trust.doingBusinessAs) &&
×
550
        Objects.equals(this.name, trust.name) &&
×
551
        Objects.equals(this.principalPlaceOfBusiness, trust.principalPlaceOfBusiness) &&
×
552
        Objects.equals(this.registeredAddress, trust.registeredAddress) &&
×
553
        Objects.equals(this.registrationNumber, trust.registrationNumber) &&
×
554
        Objects.equals(this.taxInformation, trust.taxInformation) &&
×
555
        Objects.equals(this.type, trust.type) &&
×
556
        Objects.equals(this.undefinedBeneficiaryInfo, trust.undefinedBeneficiaryInfo) &&
×
557
        Objects.equals(this.vatAbsenceReason, trust.vatAbsenceReason) &&
×
558
        Objects.equals(this.vatNumber, trust.vatNumber);
×
559
  }
560

561
  @Override
562
  public int hashCode() {
NEW
563
    return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxInformation, type, undefinedBeneficiaryInfo, vatAbsenceReason, vatNumber);
×
564
  }
565

566
  @Override
567
  public String toString() {
568
    StringBuilder sb = new StringBuilder();
×
569
    sb.append("class Trust {\n");
×
570
    sb.append("    countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n");
×
571
    sb.append("    dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n");
×
NEW
572
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
573
    sb.append("    doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n");
×
574
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
575
    sb.append("    principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n");
×
576
    sb.append("    registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n");
×
577
    sb.append("    registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n");
×
578
    sb.append("    taxInformation: ").append(toIndentedString(taxInformation)).append("\n");
×
579
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
580
    sb.append("    undefinedBeneficiaryInfo: ").append(toIndentedString(undefinedBeneficiaryInfo)).append("\n");
×
581
    sb.append("    vatAbsenceReason: ").append(toIndentedString(vatAbsenceReason)).append("\n");
×
582
    sb.append("    vatNumber: ").append(toIndentedString(vatNumber)).append("\n");
×
583
    sb.append("}");
×
584
    return sb.toString();
×
585
  }
586

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

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

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