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

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

07 Nov 2023 09:44AM UTC coverage: 12.837%. First build
#2811

push

web-flow
Merge 5e6962d4e into 44f3bef39

15 of 255 new or added lines in 14 files covered. (5.88%)

12393 of 96543 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_DOING_BUSINESS_AS,
42
  Trust.JSON_PROPERTY_NAME,
43
  Trust.JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS,
44
  Trust.JSON_PROPERTY_REGISTERED_ADDRESS,
45
  Trust.JSON_PROPERTY_REGISTRATION_NUMBER,
46
  Trust.JSON_PROPERTY_TAX_INFORMATION,
47
  Trust.JSON_PROPERTY_TYPE,
48
  Trust.JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO,
49
  Trust.JSON_PROPERTY_VAT_ABSENCE_REASON,
50
  Trust.JSON_PROPERTY_VAT_NUMBER
51
})
52

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

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

60
  public static final String JSON_PROPERTY_DOING_BUSINESS_AS = "doingBusinessAs";
61
  private String doingBusinessAs;
62

63
  public static final String JSON_PROPERTY_NAME = "name";
64
  private String name;
65

66
  public static final String JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS = "principalPlaceOfBusiness";
67
  private Address principalPlaceOfBusiness;
68

69
  public static final String JSON_PROPERTY_REGISTERED_ADDRESS = "registeredAddress";
70
  private Address registeredAddress;
71

72
  public static final String JSON_PROPERTY_REGISTRATION_NUMBER = "registrationNumber";
73
  private String registrationNumber;
74

75
  public static final String JSON_PROPERTY_TAX_INFORMATION = "taxInformation";
NEW
76
  private List<TaxInformation> taxInformation = null;
×
77

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

112
    private String value;
113

NEW
114
    TypeEnum(String value) {
×
NEW
115
      this.value = value;
×
NEW
116
    }
×
117

118
    @JsonValue
119
    public String getValue() {
NEW
120
      return value;
×
121
    }
122

123
    @Override
124
    public String toString() {
NEW
125
      return String.valueOf(value);
×
126
    }
127

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

139
  public static final String JSON_PROPERTY_TYPE = "type";
140
  private TypeEnum type;
141

142
  public static final String JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO = "undefinedBeneficiaryInfo";
NEW
143
  private List<UndefinedBeneficiary> undefinedBeneficiaryInfo = null;
×
144

145
  /**
146
   * The reason for not providing a VAT number.  Possible values: **industryExemption**, **belowTaxThreshold**.
147
   */
NEW
148
  public enum VatAbsenceReasonEnum {
×
NEW
149
    INDUSTRYEXEMPTION("industryExemption"),
×
150
    
NEW
151
    BELOWTAXTHRESHOLD("belowTaxThreshold");
×
152

153
    private String value;
154

NEW
155
    VatAbsenceReasonEnum(String value) {
×
NEW
156
      this.value = value;
×
NEW
157
    }
×
158

159
    @JsonValue
160
    public String getValue() {
NEW
161
      return value;
×
162
    }
163

164
    @Override
165
    public String toString() {
NEW
166
      return String.valueOf(value);
×
167
    }
168

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

180
  public static final String JSON_PROPERTY_VAT_ABSENCE_REASON = "vatAbsenceReason";
181
  private VatAbsenceReasonEnum vatAbsenceReason;
182

183
  public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber";
184
  private String vatNumber;
185

NEW
186
  public Trust() { 
×
NEW
187
  }
×
188

189
  public Trust countryOfGoverningLaw(String countryOfGoverningLaw) {
NEW
190
    this.countryOfGoverningLaw = countryOfGoverningLaw;
×
NEW
191
    return this;
×
192
  }
193

194
   /**
195
   * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.
196
   * @return countryOfGoverningLaw
197
  **/
198
  @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.")
199
  @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW)
200
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
201

202
  public String getCountryOfGoverningLaw() {
NEW
203
    return countryOfGoverningLaw;
×
204
  }
205

206

207
  @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW)
208
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
209
  public void setCountryOfGoverningLaw(String countryOfGoverningLaw) {
NEW
210
    this.countryOfGoverningLaw = countryOfGoverningLaw;
×
NEW
211
  }
×
212

213

214
  public Trust dateOfIncorporation(String dateOfIncorporation) {
NEW
215
    this.dateOfIncorporation = dateOfIncorporation;
×
NEW
216
    return this;
×
217
  }
218

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

227
  public String getDateOfIncorporation() {
NEW
228
    return dateOfIncorporation;
×
229
  }
230

231

232
  @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION)
233
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
234
  public void setDateOfIncorporation(String dateOfIncorporation) {
NEW
235
    this.dateOfIncorporation = dateOfIncorporation;
×
NEW
236
  }
×
237

238

239
  public Trust doingBusinessAs(String doingBusinessAs) {
NEW
240
    this.doingBusinessAs = doingBusinessAs;
×
NEW
241
    return this;
×
242
  }
243

244
   /**
245
   * The registered name, if different from the &#x60;name&#x60;.
246
   * @return doingBusinessAs
247
  **/
248
  @ApiModelProperty(value = "The registered name, if different from the `name`.")
249
  @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS)
250
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
251

252
  public String getDoingBusinessAs() {
NEW
253
    return doingBusinessAs;
×
254
  }
255

256

257
  @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS)
258
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
259
  public void setDoingBusinessAs(String doingBusinessAs) {
NEW
260
    this.doingBusinessAs = doingBusinessAs;
×
NEW
261
  }
×
262

263

264
  public Trust name(String name) {
NEW
265
    this.name = name;
×
NEW
266
    return this;
×
267
  }
268

269
   /**
270
   * The legal name.
271
   * @return name
272
  **/
273
  @ApiModelProperty(required = true, value = "The legal name.")
274
  @JsonProperty(JSON_PROPERTY_NAME)
275
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
276

277
  public String getName() {
NEW
278
    return name;
×
279
  }
280

281

282
  @JsonProperty(JSON_PROPERTY_NAME)
283
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
284
  public void setName(String name) {
NEW
285
    this.name = name;
×
NEW
286
  }
×
287

288

289
  public Trust principalPlaceOfBusiness(Address principalPlaceOfBusiness) {
NEW
290
    this.principalPlaceOfBusiness = principalPlaceOfBusiness;
×
NEW
291
    return this;
×
292
  }
293

294
   /**
295
   * Get principalPlaceOfBusiness
296
   * @return principalPlaceOfBusiness
297
  **/
298
  @ApiModelProperty(value = "")
299
  @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS)
300
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
301

302
  public Address getPrincipalPlaceOfBusiness() {
NEW
303
    return principalPlaceOfBusiness;
×
304
  }
305

306

307
  @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS)
308
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
309
  public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) {
NEW
310
    this.principalPlaceOfBusiness = principalPlaceOfBusiness;
×
NEW
311
  }
×
312

313

314
  public Trust registeredAddress(Address registeredAddress) {
NEW
315
    this.registeredAddress = registeredAddress;
×
NEW
316
    return this;
×
317
  }
318

319
   /**
320
   * Get registeredAddress
321
   * @return registeredAddress
322
  **/
323
  @ApiModelProperty(required = true, value = "")
324
  @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS)
325
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
326

327
  public Address getRegisteredAddress() {
NEW
328
    return registeredAddress;
×
329
  }
330

331

332
  @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS)
333
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
334
  public void setRegisteredAddress(Address registeredAddress) {
NEW
335
    this.registeredAddress = registeredAddress;
×
NEW
336
  }
×
337

338

339
  public Trust registrationNumber(String registrationNumber) {
NEW
340
    this.registrationNumber = registrationNumber;
×
NEW
341
    return this;
×
342
  }
343

344
   /**
345
   * The registration number.
346
   * @return registrationNumber
347
  **/
348
  @ApiModelProperty(value = "The registration number.")
349
  @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER)
350
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
351

352
  public String getRegistrationNumber() {
NEW
353
    return registrationNumber;
×
354
  }
355

356

357
  @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER)
358
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
359
  public void setRegistrationNumber(String registrationNumber) {
NEW
360
    this.registrationNumber = registrationNumber;
×
NEW
361
  }
×
362

363

364
  public Trust taxInformation(List<TaxInformation> taxInformation) {
NEW
365
    this.taxInformation = taxInformation;
×
NEW
366
    return this;
×
367
  }
368

369
  public Trust addTaxInformationItem(TaxInformation taxInformationItem) {
NEW
370
    if (this.taxInformation == null) {
×
NEW
371
      this.taxInformation = new ArrayList<>();
×
372
    }
NEW
373
    this.taxInformation.add(taxInformationItem);
×
NEW
374
    return this;
×
375
  }
376

377
   /**
378
   * The tax information of the entity.
379
   * @return taxInformation
380
  **/
381
  @ApiModelProperty(value = "The tax information of the entity.")
382
  @JsonProperty(JSON_PROPERTY_TAX_INFORMATION)
383
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
384

385
  public List<TaxInformation> getTaxInformation() {
NEW
386
    return taxInformation;
×
387
  }
388

389

390
  @JsonProperty(JSON_PROPERTY_TAX_INFORMATION)
391
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
392
  public void setTaxInformation(List<TaxInformation> taxInformation) {
NEW
393
    this.taxInformation = taxInformation;
×
NEW
394
  }
×
395

396

397
  public Trust type(TypeEnum type) {
NEW
398
    this.type = type;
×
NEW
399
    return this;
×
400
  }
401

402
   /**
403
   * Type of trust.  Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
404
   * @return type
405
  **/
406
  @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**.")
407
  @JsonProperty(JSON_PROPERTY_TYPE)
408
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
409

410
  public TypeEnum getType() {
NEW
411
    return type;
×
412
  }
413

414

415
  @JsonProperty(JSON_PROPERTY_TYPE)
416
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
417
  public void setType(TypeEnum type) {
NEW
418
    this.type = type;
×
NEW
419
  }
×
420

421

422
  public Trust undefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo) {
NEW
423
    this.undefinedBeneficiaryInfo = undefinedBeneficiaryInfo;
×
NEW
424
    return this;
×
425
  }
426

427
  public Trust addUndefinedBeneficiaryInfoItem(UndefinedBeneficiary undefinedBeneficiaryInfoItem) {
NEW
428
    if (this.undefinedBeneficiaryInfo == null) {
×
NEW
429
      this.undefinedBeneficiaryInfo = new ArrayList<>();
×
430
    }
NEW
431
    this.undefinedBeneficiaryInfo.add(undefinedBeneficiaryInfoItem);
×
NEW
432
    return this;
×
433
  }
434

435
   /**
436
   * The undefined beneficiary information of the entity.
437
   * @return undefinedBeneficiaryInfo
438
  **/
439
  @ApiModelProperty(value = "The undefined beneficiary information of the entity.")
440
  @JsonProperty(JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO)
441
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
442

443
  public List<UndefinedBeneficiary> getUndefinedBeneficiaryInfo() {
NEW
444
    return undefinedBeneficiaryInfo;
×
445
  }
446

447

448
  @JsonProperty(JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO)
449
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
450
  public void setUndefinedBeneficiaryInfo(List<UndefinedBeneficiary> undefinedBeneficiaryInfo) {
NEW
451
    this.undefinedBeneficiaryInfo = undefinedBeneficiaryInfo;
×
NEW
452
  }
×
453

454

455
  public Trust vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) {
NEW
456
    this.vatAbsenceReason = vatAbsenceReason;
×
NEW
457
    return this;
×
458
  }
459

460
   /**
461
   * The reason for not providing a VAT number.  Possible values: **industryExemption**, **belowTaxThreshold**.
462
   * @return vatAbsenceReason
463
  **/
464
  @ApiModelProperty(value = "The reason for not providing a VAT number.  Possible values: **industryExemption**, **belowTaxThreshold**.")
465
  @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON)
466
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
467

468
  public VatAbsenceReasonEnum getVatAbsenceReason() {
NEW
469
    return vatAbsenceReason;
×
470
  }
471

472

473
  @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON)
474
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
475
  public void setVatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) {
NEW
476
    this.vatAbsenceReason = vatAbsenceReason;
×
NEW
477
  }
×
478

479

480
  public Trust vatNumber(String vatNumber) {
NEW
481
    this.vatNumber = vatNumber;
×
NEW
482
    return this;
×
483
  }
484

485
   /**
486
   * The VAT number.
487
   * @return vatNumber
488
  **/
489
  @ApiModelProperty(value = "The VAT number.")
490
  @JsonProperty(JSON_PROPERTY_VAT_NUMBER)
491
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
492

493
  public String getVatNumber() {
NEW
494
    return vatNumber;
×
495
  }
496

497

498
  @JsonProperty(JSON_PROPERTY_VAT_NUMBER)
499
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
500
  public void setVatNumber(String vatNumber) {
NEW
501
    this.vatNumber = vatNumber;
×
NEW
502
  }
×
503

504

505
  /**
506
   * Return true if this Trust object is equal to o.
507
   */
508
  @Override
509
  public boolean equals(Object o) {
NEW
510
    if (this == o) {
×
NEW
511
      return true;
×
512
    }
NEW
513
    if (o == null || getClass() != o.getClass()) {
×
NEW
514
      return false;
×
515
    }
NEW
516
    Trust trust = (Trust) o;
×
NEW
517
    return Objects.equals(this.countryOfGoverningLaw, trust.countryOfGoverningLaw) &&
×
NEW
518
        Objects.equals(this.dateOfIncorporation, trust.dateOfIncorporation) &&
×
NEW
519
        Objects.equals(this.doingBusinessAs, trust.doingBusinessAs) &&
×
NEW
520
        Objects.equals(this.name, trust.name) &&
×
NEW
521
        Objects.equals(this.principalPlaceOfBusiness, trust.principalPlaceOfBusiness) &&
×
NEW
522
        Objects.equals(this.registeredAddress, trust.registeredAddress) &&
×
NEW
523
        Objects.equals(this.registrationNumber, trust.registrationNumber) &&
×
NEW
524
        Objects.equals(this.taxInformation, trust.taxInformation) &&
×
NEW
525
        Objects.equals(this.type, trust.type) &&
×
NEW
526
        Objects.equals(this.undefinedBeneficiaryInfo, trust.undefinedBeneficiaryInfo) &&
×
NEW
527
        Objects.equals(this.vatAbsenceReason, trust.vatAbsenceReason) &&
×
NEW
528
        Objects.equals(this.vatNumber, trust.vatNumber);
×
529
  }
530

531
  @Override
532
  public int hashCode() {
NEW
533
    return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, doingBusinessAs, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxInformation, type, undefinedBeneficiaryInfo, vatAbsenceReason, vatNumber);
×
534
  }
535

536
  @Override
537
  public String toString() {
NEW
538
    StringBuilder sb = new StringBuilder();
×
NEW
539
    sb.append("class Trust {\n");
×
NEW
540
    sb.append("    countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n");
×
NEW
541
    sb.append("    dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n");
×
NEW
542
    sb.append("    doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n");
×
NEW
543
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
NEW
544
    sb.append("    principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n");
×
NEW
545
    sb.append("    registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n");
×
NEW
546
    sb.append("    registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n");
×
NEW
547
    sb.append("    taxInformation: ").append(toIndentedString(taxInformation)).append("\n");
×
NEW
548
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
NEW
549
    sb.append("    undefinedBeneficiaryInfo: ").append(toIndentedString(undefinedBeneficiaryInfo)).append("\n");
×
NEW
550
    sb.append("    vatAbsenceReason: ").append(toIndentedString(vatAbsenceReason)).append("\n");
×
NEW
551
    sb.append("    vatNumber: ").append(toIndentedString(vatNumber)).append("\n");
×
NEW
552
    sb.append("}");
×
NEW
553
    return sb.toString();
×
554
  }
555

556
  /**
557
   * Convert the given object to string with each line indented by 4 spaces
558
   * (except the first line).
559
   */
560
  private String toIndentedString(Object o) {
NEW
561
    if (o == null) {
×
NEW
562
      return "null";
×
563
    }
NEW
564
    return o.toString().replace("\n", "\n    ");
×
565
  }
566

567
/**
568
   * Create an instance of Trust given an JSON string
569
   *
570
   * @param jsonString JSON string
571
   * @return An instance of Trust
572
   * @throws JsonProcessingException if the JSON string is invalid with respect to Trust
573
   */
574
  public static Trust fromJson(String jsonString) throws JsonProcessingException {
NEW
575
    return JSON.getMapper().readValue(jsonString, Trust.class);
×
576
  }
577
/**
578
  * Convert an instance of Trust to an JSON string
579
  *
580
  * @return JSON string
581
  */
582
  public String toJson() throws JsonProcessingException {
NEW
583
    return JSON.getMapper().writeValueAsString(this);
×
584
  }
585
}
586

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