• 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/DocumentDetail.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.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * DocumentDetail
33
 */
34
@JsonPropertyOrder({
35
  DocumentDetail.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
36
  DocumentDetail.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
37
  DocumentDetail.JSON_PROPERTY_DESCRIPTION,
38
  DocumentDetail.JSON_PROPERTY_DOCUMENT_TYPE,
39
  DocumentDetail.JSON_PROPERTY_FILENAME,
40
  DocumentDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE,
41
  DocumentDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE,
42
  DocumentDetail.JSON_PROPERTY_SHAREHOLDER_CODE,
43
  DocumentDetail.JSON_PROPERTY_SIGNATORY_CODE
44
})
45

46
public class DocumentDetail {
47
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
48
  private String accountHolderCode;
49

50
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
51
  private String bankAccountUUID;
52

53
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
54
  private String description;
55

56
  /**
57
   * The type of the document. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when each document type should be submitted and for the accepted file formats.  Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder's legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. 
58
   */
59
  public enum DocumentTypeEnum {
×
60
    BANK_STATEMENT("BANK_STATEMENT"),
×
61
    
62
    BSN("BSN"),
×
63
    
64
    COMPANY_REGISTRATION_SCREENING("COMPANY_REGISTRATION_SCREENING"),
×
65
    
66
    CONSTITUTIONAL_DOCUMENT("CONSTITUTIONAL_DOCUMENT"),
×
67
    
68
    DRIVING_LICENCE("DRIVING_LICENCE"),
×
69
    
70
    DRIVING_LICENCE_BACK("DRIVING_LICENCE_BACK"),
×
71
    
72
    DRIVING_LICENCE_FRONT("DRIVING_LICENCE_FRONT"),
×
73
    
74
    ID_CARD("ID_CARD"),
×
75
    
76
    ID_CARD_BACK("ID_CARD_BACK"),
×
77
    
78
    ID_CARD_FRONT("ID_CARD_FRONT"),
×
79
    
80
    PASSPORT("PASSPORT"),
×
81
    
82
    PROOF_OF_RESIDENCY("PROOF_OF_RESIDENCY"),
×
83
    
84
    SSN("SSN"),
×
85
    
86
    SUPPORTING_DOCUMENTS("SUPPORTING_DOCUMENTS");
×
87

88
    private String value;
89

90
    DocumentTypeEnum(String value) {
×
91
      this.value = value;
×
92
    }
×
93

94
    @JsonValue
95
    public String getValue() {
96
      return value;
×
97
    }
98

99
    @Override
100
    public String toString() {
101
      return String.valueOf(value);
×
102
    }
103

104
    @JsonCreator
105
    public static DocumentTypeEnum fromValue(String value) {
106
      for (DocumentTypeEnum b : DocumentTypeEnum.values()) {
×
107
        if (b.value.equals(value)) {
×
108
          return b;
×
109
        }
110
      }
111
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
112
    }
113
  }
114

115
  public static final String JSON_PROPERTY_DOCUMENT_TYPE = "documentType";
116
  private DocumentTypeEnum documentType;
117

118
  public static final String JSON_PROPERTY_FILENAME = "filename";
119
  private String filename;
120

121
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE = "legalArrangementCode";
122
  private String legalArrangementCode;
123

124
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE = "legalArrangementEntityCode";
125
  private String legalArrangementEntityCode;
126

127
  public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
128
  private String shareholderCode;
129

130
  public static final String JSON_PROPERTY_SIGNATORY_CODE = "signatoryCode";
131
  private String signatoryCode;
132

133
  public DocumentDetail() { 
×
134
  }
×
135

136
  public DocumentDetail accountHolderCode(String accountHolderCode) {
137
    this.accountHolderCode = accountHolderCode;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * The code of account holder, to which the document applies.
143
   * @return accountHolderCode
144
  **/
145
  @ApiModelProperty(value = "The code of account holder, to which the document applies.")
146
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public String getAccountHolderCode() {
150
    return accountHolderCode;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setAccountHolderCode(String accountHolderCode) {
157
    this.accountHolderCode = accountHolderCode;
×
158
  }
×
159

160

161
  public DocumentDetail bankAccountUUID(String bankAccountUUID) {
162
    this.bankAccountUUID = bankAccountUUID;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * The Adyen-generated [`bankAccountUUID`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-bankAccountDetails-bankAccountUUID) to which the document must be linked. Refer to [Bank account check](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/bank-account-check#uploading-a-bank-statement) for details on when a document should be submitted. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. 
168
   * @return bankAccountUUID
169
  **/
170
  @ApiModelProperty(value = "The Adyen-generated [`bankAccountUUID`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-bankAccountDetails-bankAccountUUID) to which the document must be linked. Refer to [Bank account check](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/bank-account-check#uploading-a-bank-statement) for details on when a document should be submitted. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. ")
171
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public String getBankAccountUUID() {
175
    return bankAccountUUID;
×
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setBankAccountUUID(String bankAccountUUID) {
182
    this.bankAccountUUID = bankAccountUUID;
×
183
  }
×
184

185

186
  public DocumentDetail description(String description) {
187
    this.description = description;
×
188
    return this;
×
189
  }
190

191
   /**
192
   * Description of the document.
193
   * @return description
194
  **/
195
  @ApiModelProperty(value = "Description of the document.")
196
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198

199
  public String getDescription() {
200
    return description;
×
201
  }
202

203

204
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
205
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
206
  public void setDescription(String description) {
207
    this.description = description;
×
208
  }
×
209

210

211
  public DocumentDetail documentType(DocumentTypeEnum documentType) {
212
    this.documentType = documentType;
×
213
    return this;
×
214
  }
215

216
   /**
217
   * The type of the document. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when each document type should be submitted and for the accepted file formats.  Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder's legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. 
218
   * @return documentType
219
  **/
220
  @ApiModelProperty(required = true, value = "The type of the document. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when each document type should be submitted and for the accepted file formats.  Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder's legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. ")
221
  @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE)
222
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
223

224
  public DocumentTypeEnum getDocumentType() {
225
    return documentType;
×
226
  }
227

228

229
  @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE)
230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231
  public void setDocumentType(DocumentTypeEnum documentType) {
232
    this.documentType = documentType;
×
233
  }
×
234

235

236
  public DocumentDetail filename(String filename) {
237
    this.filename = filename;
×
238
    return this;
×
239
  }
240

241
   /**
242
   * Filename of the document.
243
   * @return filename
244
  **/
245
  @ApiModelProperty(value = "Filename of the document.")
246
  @JsonProperty(JSON_PROPERTY_FILENAME)
247
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248

249
  public String getFilename() {
250
    return filename;
×
251
  }
252

253

254
  @JsonProperty(JSON_PROPERTY_FILENAME)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256
  public void setFilename(String filename) {
257
    this.filename = filename;
×
258
  }
×
259

260

261
  public DocumentDetail legalArrangementCode(String legalArrangementCode) {
262
    this.legalArrangementCode = legalArrangementCode;
×
263
    return this;
×
264
  }
265

266
   /**
267
   * The Adyen-generated [`legalArrangementCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementCode) to which the document must be linked.
268
   * @return legalArrangementCode
269
  **/
270
  @ApiModelProperty(value = "The Adyen-generated [`legalArrangementCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementCode) to which the document must be linked.")
271
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273

274
  public String getLegalArrangementCode() {
275
    return legalArrangementCode;
×
276
  }
277

278

279
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE)
280
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281
  public void setLegalArrangementCode(String legalArrangementCode) {
282
    this.legalArrangementCode = legalArrangementCode;
×
283
  }
×
284

285

286
  public DocumentDetail legalArrangementEntityCode(String legalArrangementEntityCode) {
287
    this.legalArrangementEntityCode = legalArrangementEntityCode;
×
288
    return this;
×
289
  }
290

291
   /**
292
   * The Adyen-generated [`legalArrangementEntityCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementEntities-legalArrangementEntityCode)  to which the document must be linked.
293
   * @return legalArrangementEntityCode
294
  **/
295
  @ApiModelProperty(value = "The Adyen-generated [`legalArrangementEntityCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementEntities-legalArrangementEntityCode)  to which the document must be linked.")
296
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
297
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
298

299
  public String getLegalArrangementEntityCode() {
300
    return legalArrangementEntityCode;
×
301
  }
302

303

304
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
305
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
306
  public void setLegalArrangementEntityCode(String legalArrangementEntityCode) {
307
    this.legalArrangementEntityCode = legalArrangementEntityCode;
×
308
  }
×
309

310

311
  public DocumentDetail shareholderCode(String shareholderCode) {
312
    this.shareholderCode = shareholderCode;
×
313
    return this;
×
314
  }
315

316
   /**
317
   * The Adyen-generated [`shareholderCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-shareholders-shareholderCode) to which the document must be linked. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when a document should be submitted. >Required if the account holder has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. 
318
   * @return shareholderCode
319
  **/
320
  @ApiModelProperty(value = "The Adyen-generated [`shareholderCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-shareholders-shareholderCode) to which the document must be linked. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when a document should be submitted. >Required if the account holder has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. ")
321
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
322
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
323

324
  public String getShareholderCode() {
325
    return shareholderCode;
×
326
  }
327

328

329
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
330
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
331
  public void setShareholderCode(String shareholderCode) {
332
    this.shareholderCode = shareholderCode;
×
333
  }
×
334

335

336
  public DocumentDetail signatoryCode(String signatoryCode) {
337
    this.signatoryCode = signatoryCode;
×
338
    return this;
×
339
  }
340

341
   /**
342
   * The Adyen-generated [`signatoryCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-signatories-signatoryCode) to which the document must be linked.
343
   * @return signatoryCode
344
  **/
345
  @ApiModelProperty(value = "The Adyen-generated [`signatoryCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-signatories-signatoryCode) to which the document must be linked.")
346
  @JsonProperty(JSON_PROPERTY_SIGNATORY_CODE)
347
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
348

349
  public String getSignatoryCode() {
350
    return signatoryCode;
×
351
  }
352

353

354
  @JsonProperty(JSON_PROPERTY_SIGNATORY_CODE)
355
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
356
  public void setSignatoryCode(String signatoryCode) {
357
    this.signatoryCode = signatoryCode;
×
358
  }
×
359

360

361
  /**
362
   * Return true if this DocumentDetail object is equal to o.
363
   */
364
  @Override
365
  public boolean equals(Object o) {
366
    if (this == o) {
×
367
      return true;
×
368
    }
369
    if (o == null || getClass() != o.getClass()) {
×
370
      return false;
×
371
    }
372
    DocumentDetail documentDetail = (DocumentDetail) o;
×
373
    return Objects.equals(this.accountHolderCode, documentDetail.accountHolderCode) &&
×
374
        Objects.equals(this.bankAccountUUID, documentDetail.bankAccountUUID) &&
×
375
        Objects.equals(this.description, documentDetail.description) &&
×
376
        Objects.equals(this.documentType, documentDetail.documentType) &&
×
377
        Objects.equals(this.filename, documentDetail.filename) &&
×
378
        Objects.equals(this.legalArrangementCode, documentDetail.legalArrangementCode) &&
×
379
        Objects.equals(this.legalArrangementEntityCode, documentDetail.legalArrangementEntityCode) &&
×
380
        Objects.equals(this.shareholderCode, documentDetail.shareholderCode) &&
×
381
        Objects.equals(this.signatoryCode, documentDetail.signatoryCode);
×
382
  }
383

384
  @Override
385
  public int hashCode() {
386
    return Objects.hash(accountHolderCode, bankAccountUUID, description, documentType, filename, legalArrangementCode, legalArrangementEntityCode, shareholderCode, signatoryCode);
×
387
  }
388

389
  @Override
390
  public String toString() {
391
    StringBuilder sb = new StringBuilder();
×
392
    sb.append("class DocumentDetail {\n");
×
393
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
394
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
395
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
396
    sb.append("    documentType: ").append(toIndentedString(documentType)).append("\n");
×
397
    sb.append("    filename: ").append(toIndentedString(filename)).append("\n");
×
398
    sb.append("    legalArrangementCode: ").append(toIndentedString(legalArrangementCode)).append("\n");
×
399
    sb.append("    legalArrangementEntityCode: ").append(toIndentedString(legalArrangementEntityCode)).append("\n");
×
400
    sb.append("    shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
×
401
    sb.append("    signatoryCode: ").append(toIndentedString(signatoryCode)).append("\n");
×
402
    sb.append("}");
×
403
    return sb.toString();
×
404
  }
405

406
  /**
407
   * Convert the given object to string with each line indented by 4 spaces
408
   * (except the first line).
409
   */
410
  private String toIndentedString(Object o) {
411
    if (o == null) {
×
412
      return "null";
×
413
    }
414
    return o.toString().replace("\n", "\n    ");
×
415
  }
416

417
/**
418
   * Create an instance of DocumentDetail given an JSON string
419
   *
420
   * @param jsonString JSON string
421
   * @return An instance of DocumentDetail
422
   * @throws JsonProcessingException if the JSON string is invalid with respect to DocumentDetail
423
   */
424
  public static DocumentDetail fromJson(String jsonString) throws JsonProcessingException {
425
    return JSON.getMapper().readValue(jsonString, DocumentDetail.class);
×
426
  }
427
/**
428
  * Convert an instance of DocumentDetail to an JSON string
429
  *
430
  * @return JSON string
431
  */
432
  public String toJson() throws JsonProcessingException {
433
    return JSON.getMapper().writeValueAsString(this);
×
434
  }
435
}
436

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