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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

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/marketpayaccount/LegalArrangementEntityDetail.java
1
/*
2
 * Account API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayaccount;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayaccount.BusinessDetails;
21
import com.adyen.model.marketpayaccount.IndividualDetails;
22
import com.adyen.model.marketpayaccount.ViasAddress;
23
import com.adyen.model.marketpayaccount.ViasPhoneNumber;
24
import com.fasterxml.jackson.annotation.JsonInclude;
25
import com.fasterxml.jackson.annotation.JsonProperty;
26
import com.fasterxml.jackson.annotation.JsonCreator;
27
import com.fasterxml.jackson.annotation.JsonTypeName;
28
import com.fasterxml.jackson.annotation.JsonValue;
29
import io.swagger.annotations.ApiModel;
30
import io.swagger.annotations.ApiModelProperty;
31
import java.util.ArrayList;
32
import java.util.List;
33
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34
import com.fasterxml.jackson.core.JsonProcessingException;
35

36

37
/**
38
 * LegalArrangementEntityDetail
39
 */
40
@JsonPropertyOrder({
41
  LegalArrangementEntityDetail.JSON_PROPERTY_ADDRESS,
42
  LegalArrangementEntityDetail.JSON_PROPERTY_BUSINESS_DETAILS,
43
  LegalArrangementEntityDetail.JSON_PROPERTY_EMAIL,
44
  LegalArrangementEntityDetail.JSON_PROPERTY_FULL_PHONE_NUMBER,
45
  LegalArrangementEntityDetail.JSON_PROPERTY_INDIVIDUAL_DETAILS,
46
  LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE,
47
  LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE,
48
  LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS,
49
  LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ENTITY_TYPE,
50
  LegalArrangementEntityDetail.JSON_PROPERTY_PHONE_NUMBER,
51
  LegalArrangementEntityDetail.JSON_PROPERTY_WEB_ADDRESS
52
})
53

54
public class LegalArrangementEntityDetail {
55
  public static final String JSON_PROPERTY_ADDRESS = "address";
56
  private ViasAddress address;
57

58
  public static final String JSON_PROPERTY_BUSINESS_DETAILS = "businessDetails";
59
  private BusinessDetails businessDetails;
60

61
  public static final String JSON_PROPERTY_EMAIL = "email";
62
  private String email;
63

64
  public static final String JSON_PROPERTY_FULL_PHONE_NUMBER = "fullPhoneNumber";
65
  private String fullPhoneNumber;
66

67
  public static final String JSON_PROPERTY_INDIVIDUAL_DETAILS = "individualDetails";
68
  private IndividualDetails individualDetails;
69

70
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE = "legalArrangementEntityCode";
71
  private String legalArrangementEntityCode;
72

73
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE = "legalArrangementEntityReference";
74
  private String legalArrangementEntityReference;
75

76
  /**
77
   * Gets or Sets legalArrangementMembers
78
   */
79
  public enum LegalArrangementMembersEnum {
×
80
    BENEFICIARY("Beneficiary"),
×
81
    
82
    CONTROLLINGPERSON("ControllingPerson"),
×
83
    
84
    PARTNER("Partner"),
×
85
    
86
    PROTECTOR("Protector"),
×
87
    
88
    SETTLOR("Settlor"),
×
89
    
90
    SHAREHOLDER("Shareholder"),
×
91
    
92
    TRUSTEE("Trustee");
×
93

94
    private String value;
95

96
    LegalArrangementMembersEnum(String value) {
×
97
      this.value = value;
×
98
    }
×
99

100
    @JsonValue
101
    public String getValue() {
102
      return value;
×
103
    }
104

105
    @Override
106
    public String toString() {
107
      return String.valueOf(value);
×
108
    }
109

110
    @JsonCreator
111
    public static LegalArrangementMembersEnum fromValue(String value) {
112
      for (LegalArrangementMembersEnum b : LegalArrangementMembersEnum.values()) {
×
113
        if (b.value.equals(value)) {
×
114
          return b;
×
115
        }
116
      }
117
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
118
    }
119
  }
120

121
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS = "legalArrangementMembers";
122
  private List<LegalArrangementMembersEnum> legalArrangementMembers = null;
×
123

124
  /**
125
   * The legal entity type.  Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**. 
126
   */
127
  public enum LegalEntityTypeEnum {
×
128
    BUSINESS("Business"),
×
129
    
130
    INDIVIDUAL("Individual"),
×
131
    
132
    NONPROFIT("NonProfit"),
×
133
    
134
    PARTNERSHIP("Partnership"),
×
135
    
136
    PUBLICCOMPANY("PublicCompany");
×
137

138
    private String value;
139

140
    LegalEntityTypeEnum(String value) {
×
141
      this.value = value;
×
142
    }
×
143

144
    @JsonValue
145
    public String getValue() {
146
      return value;
×
147
    }
148

149
    @Override
150
    public String toString() {
151
      return String.valueOf(value);
×
152
    }
153

154
    @JsonCreator
155
    public static LegalEntityTypeEnum fromValue(String value) {
156
      for (LegalEntityTypeEnum b : LegalEntityTypeEnum.values()) {
×
157
        if (b.value.equals(value)) {
×
158
          return b;
×
159
        }
160
      }
161
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
162
    }
163
  }
164

165
  public static final String JSON_PROPERTY_LEGAL_ENTITY_TYPE = "legalEntityType";
166
  private LegalEntityTypeEnum legalEntityType;
167

168
  public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber";
169
  private ViasPhoneNumber phoneNumber;
170

171
  public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
172
  private String webAddress;
173

174
  public LegalArrangementEntityDetail() { 
×
175
  }
×
176

177
  public LegalArrangementEntityDetail address(ViasAddress address) {
178
    this.address = address;
×
179
    return this;
×
180
  }
181

182
   /**
183
   * Get address
184
   * @return address
185
  **/
186
  @ApiModelProperty(value = "")
187
  @JsonProperty(JSON_PROPERTY_ADDRESS)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189

190
  public ViasAddress getAddress() {
191
    return address;
×
192
  }
193

194

195
  @JsonProperty(JSON_PROPERTY_ADDRESS)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197
  public void setAddress(ViasAddress address) {
198
    this.address = address;
×
199
  }
×
200

201

202
  public LegalArrangementEntityDetail businessDetails(BusinessDetails businessDetails) {
203
    this.businessDetails = businessDetails;
×
204
    return this;
×
205
  }
206

207
   /**
208
   * Get businessDetails
209
   * @return businessDetails
210
  **/
211
  @ApiModelProperty(value = "")
212
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
214

215
  public BusinessDetails getBusinessDetails() {
216
    return businessDetails;
×
217
  }
218

219

220
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222
  public void setBusinessDetails(BusinessDetails businessDetails) {
223
    this.businessDetails = businessDetails;
×
224
  }
×
225

226

227
  public LegalArrangementEntityDetail email(String email) {
228
    this.email = email;
×
229
    return this;
×
230
  }
231

232
   /**
233
   * The e-mail address of the entity.
234
   * @return email
235
  **/
236
  @ApiModelProperty(value = "The e-mail address of the entity.")
237
  @JsonProperty(JSON_PROPERTY_EMAIL)
238
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
239

240
  public String getEmail() {
241
    return email;
×
242
  }
243

244

245
  @JsonProperty(JSON_PROPERTY_EMAIL)
246
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
247
  public void setEmail(String email) {
248
    this.email = email;
×
249
  }
×
250

251

252
  public LegalArrangementEntityDetail fullPhoneNumber(String fullPhoneNumber) {
253
    this.fullPhoneNumber = fullPhoneNumber;
×
254
    return this;
×
255
  }
256

257
   /**
258
   * The phone number of the contact provided as a single string.  It will be handled as a landline phone. **Examples:** \&quot;0031 6 11 22 33 44\&quot;, \&quot;+316/1122-3344\&quot;, \&quot;(0031) 611223344\&quot;
259
   * @return fullPhoneNumber
260
  **/
261
  @ApiModelProperty(value = "The phone number of the contact provided as a single string.  It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"")
262
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
263
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
264

265
  public String getFullPhoneNumber() {
266
    return fullPhoneNumber;
×
267
  }
268

269

270
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
271
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
272
  public void setFullPhoneNumber(String fullPhoneNumber) {
273
    this.fullPhoneNumber = fullPhoneNumber;
×
274
  }
×
275

276

277
  public LegalArrangementEntityDetail individualDetails(IndividualDetails individualDetails) {
278
    this.individualDetails = individualDetails;
×
279
    return this;
×
280
  }
281

282
   /**
283
   * Get individualDetails
284
   * @return individualDetails
285
  **/
286
  @ApiModelProperty(value = "")
287
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
288
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
289

290
  public IndividualDetails getIndividualDetails() {
291
    return individualDetails;
×
292
  }
293

294

295
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
297
  public void setIndividualDetails(IndividualDetails individualDetails) {
298
    this.individualDetails = individualDetails;
×
299
  }
×
300

301

302
  public LegalArrangementEntityDetail legalArrangementEntityCode(String legalArrangementEntityCode) {
303
    this.legalArrangementEntityCode = legalArrangementEntityCode;
×
304
    return this;
×
305
  }
306

307
   /**
308
   * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Use only when updating an account holder. If you include this field when creating an account holder, the request will fail.
309
   * @return legalArrangementEntityCode
310
  **/
311
  @ApiModelProperty(value = "Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Use only when updating an account holder. If you include this field when creating an account holder, the request will fail.")
312
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314

315
  public String getLegalArrangementEntityCode() {
316
    return legalArrangementEntityCode;
×
317
  }
318

319

320
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
321
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
322
  public void setLegalArrangementEntityCode(String legalArrangementEntityCode) {
323
    this.legalArrangementEntityCode = legalArrangementEntityCode;
×
324
  }
×
325

326

327
  public LegalArrangementEntityDetail legalArrangementEntityReference(String legalArrangementEntityReference) {
328
    this.legalArrangementEntityReference = legalArrangementEntityReference;
×
329
    return this;
×
330
  }
331

332
   /**
333
   * Your reference for the legal arrangement entity.
334
   * @return legalArrangementEntityReference
335
  **/
336
  @ApiModelProperty(value = "Your reference for the legal arrangement entity.")
337
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE)
338
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
339

340
  public String getLegalArrangementEntityReference() {
341
    return legalArrangementEntityReference;
×
342
  }
343

344

345
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347
  public void setLegalArrangementEntityReference(String legalArrangementEntityReference) {
348
    this.legalArrangementEntityReference = legalArrangementEntityReference;
×
349
  }
×
350

351

352
  public LegalArrangementEntityDetail legalArrangementMembers(List<LegalArrangementMembersEnum> legalArrangementMembers) {
353
    this.legalArrangementMembers = legalArrangementMembers;
×
354
    return this;
×
355
  }
356

357
  public LegalArrangementEntityDetail addLegalArrangementMembersItem(LegalArrangementMembersEnum legalArrangementMembersItem) {
358
    if (this.legalArrangementMembers == null) {
×
359
      this.legalArrangementMembers = new ArrayList<>();
×
360
    }
361
    this.legalArrangementMembers.add(legalArrangementMembersItem);
×
362
    return this;
×
363
  }
364

365
   /**
366
   * An array containing the roles of the entity in the legal arrangement.  The possible values depend on the legal arrangement &#x60;type&#x60;.  - For &#x60;type&#x60; **Association**: **ControllingPerson** and **Shareholder**.  - For &#x60;type&#x60; **Partnership**: **Partner** and **Shareholder**.  - For &#x60;type&#x60; **Trust**: **Trustee**, **Settlor**, **Protector**, **Beneficiary**,  and **Shareholder**.  
367
   * @return legalArrangementMembers
368
  **/
369
  @ApiModelProperty(value = "An array containing the roles of the entity in the legal arrangement.  The possible values depend on the legal arrangement `type`.  - For `type` **Association**: **ControllingPerson** and **Shareholder**.  - For `type` **Partnership**: **Partner** and **Shareholder**.  - For `type` **Trust**: **Trustee**, **Settlor**, **Protector**, **Beneficiary**,  and **Shareholder**.  ")
370
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS)
371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
372

373
  public List<LegalArrangementMembersEnum> getLegalArrangementMembers() {
374
    return legalArrangementMembers;
×
375
  }
376

377

378
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS)
379
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
380
  public void setLegalArrangementMembers(List<LegalArrangementMembersEnum> legalArrangementMembers) {
381
    this.legalArrangementMembers = legalArrangementMembers;
×
382
  }
×
383

384

385
  public LegalArrangementEntityDetail legalEntityType(LegalEntityTypeEnum legalEntityType) {
386
    this.legalEntityType = legalEntityType;
×
387
    return this;
×
388
  }
389

390
   /**
391
   * The legal entity type.  Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**. 
392
   * @return legalEntityType
393
  **/
394
  @ApiModelProperty(value = "The legal entity type.  Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**. ")
395
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_TYPE)
396
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
397

398
  public LegalEntityTypeEnum getLegalEntityType() {
399
    return legalEntityType;
×
400
  }
401

402

403
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_TYPE)
404
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
405
  public void setLegalEntityType(LegalEntityTypeEnum legalEntityType) {
406
    this.legalEntityType = legalEntityType;
×
407
  }
×
408

409

410
  public LegalArrangementEntityDetail phoneNumber(ViasPhoneNumber phoneNumber) {
411
    this.phoneNumber = phoneNumber;
×
412
    return this;
×
413
  }
414

415
   /**
416
   * Get phoneNumber
417
   * @return phoneNumber
418
  **/
419
  @ApiModelProperty(value = "")
420
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
421
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
422

423
  public ViasPhoneNumber getPhoneNumber() {
424
    return phoneNumber;
×
425
  }
426

427

428
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
429
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
430
  public void setPhoneNumber(ViasPhoneNumber phoneNumber) {
431
    this.phoneNumber = phoneNumber;
×
432
  }
×
433

434

435
  public LegalArrangementEntityDetail webAddress(String webAddress) {
436
    this.webAddress = webAddress;
×
437
    return this;
×
438
  }
439

440
   /**
441
   * The URL of the website of the contact.
442
   * @return webAddress
443
  **/
444
  @ApiModelProperty(value = "The URL of the website of the contact.")
445
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
446
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
447

448
  public String getWebAddress() {
449
    return webAddress;
×
450
  }
451

452

453
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
454
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
455
  public void setWebAddress(String webAddress) {
456
    this.webAddress = webAddress;
×
457
  }
×
458

459

460
  /**
461
   * Return true if this LegalArrangementEntityDetail object is equal to o.
462
   */
463
  @Override
464
  public boolean equals(Object o) {
465
    if (this == o) {
×
466
      return true;
×
467
    }
468
    if (o == null || getClass() != o.getClass()) {
×
469
      return false;
×
470
    }
471
    LegalArrangementEntityDetail legalArrangementEntityDetail = (LegalArrangementEntityDetail) o;
×
472
    return Objects.equals(this.address, legalArrangementEntityDetail.address) &&
×
473
        Objects.equals(this.businessDetails, legalArrangementEntityDetail.businessDetails) &&
×
474
        Objects.equals(this.email, legalArrangementEntityDetail.email) &&
×
475
        Objects.equals(this.fullPhoneNumber, legalArrangementEntityDetail.fullPhoneNumber) &&
×
476
        Objects.equals(this.individualDetails, legalArrangementEntityDetail.individualDetails) &&
×
477
        Objects.equals(this.legalArrangementEntityCode, legalArrangementEntityDetail.legalArrangementEntityCode) &&
×
478
        Objects.equals(this.legalArrangementEntityReference, legalArrangementEntityDetail.legalArrangementEntityReference) &&
×
479
        Objects.equals(this.legalArrangementMembers, legalArrangementEntityDetail.legalArrangementMembers) &&
×
480
        Objects.equals(this.legalEntityType, legalArrangementEntityDetail.legalEntityType) &&
×
481
        Objects.equals(this.phoneNumber, legalArrangementEntityDetail.phoneNumber) &&
×
482
        Objects.equals(this.webAddress, legalArrangementEntityDetail.webAddress);
×
483
  }
484

485
  @Override
486
  public int hashCode() {
487
    return Objects.hash(address, businessDetails, email, fullPhoneNumber, individualDetails, legalArrangementEntityCode, legalArrangementEntityReference, legalArrangementMembers, legalEntityType, phoneNumber, webAddress);
×
488
  }
489

490
  @Override
491
  public String toString() {
492
    StringBuilder sb = new StringBuilder();
×
493
    sb.append("class LegalArrangementEntityDetail {\n");
×
494
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
495
    sb.append("    businessDetails: ").append(toIndentedString(businessDetails)).append("\n");
×
496
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
×
497
    sb.append("    fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
×
498
    sb.append("    individualDetails: ").append(toIndentedString(individualDetails)).append("\n");
×
499
    sb.append("    legalArrangementEntityCode: ").append(toIndentedString(legalArrangementEntityCode)).append("\n");
×
500
    sb.append("    legalArrangementEntityReference: ").append(toIndentedString(legalArrangementEntityReference)).append("\n");
×
501
    sb.append("    legalArrangementMembers: ").append(toIndentedString(legalArrangementMembers)).append("\n");
×
502
    sb.append("    legalEntityType: ").append(toIndentedString(legalEntityType)).append("\n");
×
503
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
×
504
    sb.append("    webAddress: ").append(toIndentedString(webAddress)).append("\n");
×
505
    sb.append("}");
×
506
    return sb.toString();
×
507
  }
508

509
  /**
510
   * Convert the given object to string with each line indented by 4 spaces
511
   * (except the first line).
512
   */
513
  private String toIndentedString(Object o) {
514
    if (o == null) {
×
515
      return "null";
×
516
    }
517
    return o.toString().replace("\n", "\n    ");
×
518
  }
519

520
/**
521
   * Create an instance of LegalArrangementEntityDetail given an JSON string
522
   *
523
   * @param jsonString JSON string
524
   * @return An instance of LegalArrangementEntityDetail
525
   * @throws JsonProcessingException if the JSON string is invalid with respect to LegalArrangementEntityDetail
526
   */
527
  public static LegalArrangementEntityDetail fromJson(String jsonString) throws JsonProcessingException {
528
    return JSON.getMapper().readValue(jsonString, LegalArrangementEntityDetail.class);
×
529
  }
530
/**
531
  * Convert an instance of LegalArrangementEntityDetail to an JSON string
532
  *
533
  * @return JSON string
534
  */
535
  public String toJson() throws JsonProcessingException {
536
    return JSON.getMapper().writeValueAsString(this);
×
537
  }
538
}
539

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc