• 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/BusinessDetails.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.ShareholderContact;
21
import com.adyen.model.marketpayaccount.SignatoryContact;
22
import com.adyen.model.marketpayaccount.UltimateParentCompany;
23
import com.fasterxml.jackson.annotation.JsonInclude;
24
import com.fasterxml.jackson.annotation.JsonProperty;
25
import com.fasterxml.jackson.annotation.JsonCreator;
26
import com.fasterxml.jackson.annotation.JsonTypeName;
27
import com.fasterxml.jackson.annotation.JsonValue;
28
import io.swagger.annotations.ApiModel;
29
import io.swagger.annotations.ApiModelProperty;
30
import java.util.ArrayList;
31
import java.util.List;
32
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33
import com.fasterxml.jackson.core.JsonProcessingException;
34

35

36
/**
37
 * BusinessDetails
38
 */
39
@JsonPropertyOrder({
40
  BusinessDetails.JSON_PROPERTY_DOING_BUSINESS_AS,
41
  BusinessDetails.JSON_PROPERTY_LEGAL_BUSINESS_NAME,
42
  BusinessDetails.JSON_PROPERTY_LISTED_ULTIMATE_PARENT_COMPANY,
43
  BusinessDetails.JSON_PROPERTY_REGISTRATION_NUMBER,
44
  BusinessDetails.JSON_PROPERTY_SHAREHOLDERS,
45
  BusinessDetails.JSON_PROPERTY_SIGNATORIES,
46
  BusinessDetails.JSON_PROPERTY_STOCK_EXCHANGE,
47
  BusinessDetails.JSON_PROPERTY_STOCK_NUMBER,
48
  BusinessDetails.JSON_PROPERTY_STOCK_TICKER,
49
  BusinessDetails.JSON_PROPERTY_TAX_ID
50
})
51

52
public class BusinessDetails {
53
  public static final String JSON_PROPERTY_DOING_BUSINESS_AS = "doingBusinessAs";
54
  private String doingBusinessAs;
55

56
  public static final String JSON_PROPERTY_LEGAL_BUSINESS_NAME = "legalBusinessName";
57
  private String legalBusinessName;
58

59
  public static final String JSON_PROPERTY_LISTED_ULTIMATE_PARENT_COMPANY = "listedUltimateParentCompany";
60
  private List<UltimateParentCompany> listedUltimateParentCompany = null;
×
61

62
  public static final String JSON_PROPERTY_REGISTRATION_NUMBER = "registrationNumber";
63
  private String registrationNumber;
64

65
  public static final String JSON_PROPERTY_SHAREHOLDERS = "shareholders";
66
  private List<ShareholderContact> shareholders = null;
×
67

68
  public static final String JSON_PROPERTY_SIGNATORIES = "signatories";
69
  private List<SignatoryContact> signatories = null;
×
70

71
  public static final String JSON_PROPERTY_STOCK_EXCHANGE = "stockExchange";
72
  private String stockExchange;
73

74
  public static final String JSON_PROPERTY_STOCK_NUMBER = "stockNumber";
75
  private String stockNumber;
76

77
  public static final String JSON_PROPERTY_STOCK_TICKER = "stockTicker";
78
  private String stockTicker;
79

80
  public static final String JSON_PROPERTY_TAX_ID = "taxId";
81
  private String taxId;
82

83
  public BusinessDetails() { 
×
84
  }
×
85

86
  public BusinessDetails doingBusinessAs(String doingBusinessAs) {
87
    this.doingBusinessAs = doingBusinessAs;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * The registered name of the company (if it differs from the legal name of the company).
93
   * @return doingBusinessAs
94
  **/
95
  @ApiModelProperty(value = "The registered name of the company (if it differs from the legal name of the company).")
96
  @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public String getDoingBusinessAs() {
100
    return doingBusinessAs;
×
101
  }
102

103

104
  @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setDoingBusinessAs(String doingBusinessAs) {
107
    this.doingBusinessAs = doingBusinessAs;
×
108
  }
×
109

110

111
  public BusinessDetails legalBusinessName(String legalBusinessName) {
112
    this.legalBusinessName = legalBusinessName;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The legal name of the company.
118
   * @return legalBusinessName
119
  **/
120
  @ApiModelProperty(value = "The legal name of the company.")
121
  @JsonProperty(JSON_PROPERTY_LEGAL_BUSINESS_NAME)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public String getLegalBusinessName() {
125
    return legalBusinessName;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_LEGAL_BUSINESS_NAME)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setLegalBusinessName(String legalBusinessName) {
132
    this.legalBusinessName = legalBusinessName;
×
133
  }
×
134

135

136
  public BusinessDetails listedUltimateParentCompany(List<UltimateParentCompany> listedUltimateParentCompany) {
137
    this.listedUltimateParentCompany = listedUltimateParentCompany;
×
138
    return this;
×
139
  }
140

141
  public BusinessDetails addListedUltimateParentCompanyItem(UltimateParentCompany listedUltimateParentCompanyItem) {
142
    if (this.listedUltimateParentCompany == null) {
×
143
      this.listedUltimateParentCompany = new ArrayList<>();
×
144
    }
145
    this.listedUltimateParentCompany.add(listedUltimateParentCompanyItem);
×
146
    return this;
×
147
  }
148

149
   /**
150
   * Information about the parent public company. Required if the account holder is 100% owned by a publicly listed company.
151
   * @return listedUltimateParentCompany
152
  **/
153
  @ApiModelProperty(value = "Information about the parent public company. Required if the account holder is 100% owned by a publicly listed company.")
154
  @JsonProperty(JSON_PROPERTY_LISTED_ULTIMATE_PARENT_COMPANY)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156

157
  public List<UltimateParentCompany> getListedUltimateParentCompany() {
158
    return listedUltimateParentCompany;
×
159
  }
160

161

162
  @JsonProperty(JSON_PROPERTY_LISTED_ULTIMATE_PARENT_COMPANY)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setListedUltimateParentCompany(List<UltimateParentCompany> listedUltimateParentCompany) {
165
    this.listedUltimateParentCompany = listedUltimateParentCompany;
×
166
  }
×
167

168

169
  public BusinessDetails registrationNumber(String registrationNumber) {
170
    this.registrationNumber = registrationNumber;
×
171
    return this;
×
172
  }
173

174
   /**
175
   * The registration number of the company.
176
   * @return registrationNumber
177
  **/
178
  @ApiModelProperty(value = "The registration number of the company.")
179
  @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181

182
  public String getRegistrationNumber() {
183
    return registrationNumber;
×
184
  }
185

186

187
  @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189
  public void setRegistrationNumber(String registrationNumber) {
190
    this.registrationNumber = registrationNumber;
×
191
  }
×
192

193

194
  public BusinessDetails shareholders(List<ShareholderContact> shareholders) {
195
    this.shareholders = shareholders;
×
196
    return this;
×
197
  }
198

199
  public BusinessDetails addShareholdersItem(ShareholderContact shareholdersItem) {
200
    if (this.shareholders == null) {
×
201
      this.shareholders = new ArrayList<>();
×
202
    }
203
    this.shareholders.add(shareholdersItem);
×
204
    return this;
×
205
  }
206

207
   /**
208
   * Array containing information about individuals associated with the account holder either through ownership or control. For details about how you can identify them, refer to [our verification guide](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process#identify-ubos).
209
   * @return shareholders
210
  **/
211
  @ApiModelProperty(value = "Array containing information about individuals associated with the account holder either through ownership or control. For details about how you can identify them, refer to [our verification guide](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process#identify-ubos).")
212
  @JsonProperty(JSON_PROPERTY_SHAREHOLDERS)
213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
214

215
  public List<ShareholderContact> getShareholders() {
216
    return shareholders;
×
217
  }
218

219

220
  @JsonProperty(JSON_PROPERTY_SHAREHOLDERS)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222
  public void setShareholders(List<ShareholderContact> shareholders) {
223
    this.shareholders = shareholders;
×
224
  }
×
225

226

227
  public BusinessDetails signatories(List<SignatoryContact> signatories) {
228
    this.signatories = signatories;
×
229
    return this;
×
230
  }
231

232
  public BusinessDetails addSignatoriesItem(SignatoryContact signatoriesItem) {
233
    if (this.signatories == null) {
×
234
      this.signatories = new ArrayList<>();
×
235
    }
236
    this.signatories.add(signatoriesItem);
×
237
    return this;
×
238
  }
239

240
   /**
241
   * Signatories associated with the company. Each array entry should represent one signatory.
242
   * @return signatories
243
  **/
244
  @ApiModelProperty(value = "Signatories associated with the company. Each array entry should represent one signatory.")
245
  @JsonProperty(JSON_PROPERTY_SIGNATORIES)
246
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
247

248
  public List<SignatoryContact> getSignatories() {
249
    return signatories;
×
250
  }
251

252

253
  @JsonProperty(JSON_PROPERTY_SIGNATORIES)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255
  public void setSignatories(List<SignatoryContact> signatories) {
256
    this.signatories = signatories;
×
257
  }
×
258

259

260
  public BusinessDetails stockExchange(String stockExchange) {
261
    this.stockExchange = stockExchange;
×
262
    return this;
×
263
  }
264

265
   /**
266
   * Market Identifier Code (MIC).
267
   * @return stockExchange
268
  **/
269
  @ApiModelProperty(value = "Market Identifier Code (MIC).")
270
  @JsonProperty(JSON_PROPERTY_STOCK_EXCHANGE)
271
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
272

273
  public String getStockExchange() {
274
    return stockExchange;
×
275
  }
276

277

278
  @JsonProperty(JSON_PROPERTY_STOCK_EXCHANGE)
279
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
280
  public void setStockExchange(String stockExchange) {
281
    this.stockExchange = stockExchange;
×
282
  }
×
283

284

285
  public BusinessDetails stockNumber(String stockNumber) {
286
    this.stockNumber = stockNumber;
×
287
    return this;
×
288
  }
289

290
   /**
291
   * International Securities Identification Number (ISIN).
292
   * @return stockNumber
293
  **/
294
  @ApiModelProperty(value = "International Securities Identification Number (ISIN).")
295
  @JsonProperty(JSON_PROPERTY_STOCK_NUMBER)
296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
297

298
  public String getStockNumber() {
299
    return stockNumber;
×
300
  }
301

302

303
  @JsonProperty(JSON_PROPERTY_STOCK_NUMBER)
304
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
305
  public void setStockNumber(String stockNumber) {
306
    this.stockNumber = stockNumber;
×
307
  }
×
308

309

310
  public BusinessDetails stockTicker(String stockTicker) {
311
    this.stockTicker = stockTicker;
×
312
    return this;
×
313
  }
314

315
   /**
316
   * Stock Ticker symbol.
317
   * @return stockTicker
318
  **/
319
  @ApiModelProperty(value = "Stock Ticker symbol.")
320
  @JsonProperty(JSON_PROPERTY_STOCK_TICKER)
321
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
322

323
  public String getStockTicker() {
324
    return stockTicker;
×
325
  }
326

327

328
  @JsonProperty(JSON_PROPERTY_STOCK_TICKER)
329
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
330
  public void setStockTicker(String stockTicker) {
331
    this.stockTicker = stockTicker;
×
332
  }
×
333

334

335
  public BusinessDetails taxId(String taxId) {
336
    this.taxId = taxId;
×
337
    return this;
×
338
  }
339

340
   /**
341
   * The tax ID of the company.
342
   * @return taxId
343
  **/
344
  @ApiModelProperty(value = "The tax ID of the company.")
345
  @JsonProperty(JSON_PROPERTY_TAX_ID)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347

348
  public String getTaxId() {
349
    return taxId;
×
350
  }
351

352

353
  @JsonProperty(JSON_PROPERTY_TAX_ID)
354
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
355
  public void setTaxId(String taxId) {
356
    this.taxId = taxId;
×
357
  }
×
358

359

360
  /**
361
   * Return true if this BusinessDetails object is equal to o.
362
   */
363
  @Override
364
  public boolean equals(Object o) {
365
    if (this == o) {
×
366
      return true;
×
367
    }
368
    if (o == null || getClass() != o.getClass()) {
×
369
      return false;
×
370
    }
371
    BusinessDetails businessDetails = (BusinessDetails) o;
×
372
    return Objects.equals(this.doingBusinessAs, businessDetails.doingBusinessAs) &&
×
373
        Objects.equals(this.legalBusinessName, businessDetails.legalBusinessName) &&
×
374
        Objects.equals(this.listedUltimateParentCompany, businessDetails.listedUltimateParentCompany) &&
×
375
        Objects.equals(this.registrationNumber, businessDetails.registrationNumber) &&
×
376
        Objects.equals(this.shareholders, businessDetails.shareholders) &&
×
377
        Objects.equals(this.signatories, businessDetails.signatories) &&
×
378
        Objects.equals(this.stockExchange, businessDetails.stockExchange) &&
×
379
        Objects.equals(this.stockNumber, businessDetails.stockNumber) &&
×
380
        Objects.equals(this.stockTicker, businessDetails.stockTicker) &&
×
381
        Objects.equals(this.taxId, businessDetails.taxId);
×
382
  }
383

384
  @Override
385
  public int hashCode() {
386
    return Objects.hash(doingBusinessAs, legalBusinessName, listedUltimateParentCompany, registrationNumber, shareholders, signatories, stockExchange, stockNumber, stockTicker, taxId);
×
387
  }
388

389
  @Override
390
  public String toString() {
391
    StringBuilder sb = new StringBuilder();
×
392
    sb.append("class BusinessDetails {\n");
×
393
    sb.append("    doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n");
×
394
    sb.append("    legalBusinessName: ").append(toIndentedString(legalBusinessName)).append("\n");
×
395
    sb.append("    listedUltimateParentCompany: ").append(toIndentedString(listedUltimateParentCompany)).append("\n");
×
396
    sb.append("    registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n");
×
397
    sb.append("    shareholders: ").append(toIndentedString(shareholders)).append("\n");
×
398
    sb.append("    signatories: ").append(toIndentedString(signatories)).append("\n");
×
399
    sb.append("    stockExchange: ").append(toIndentedString(stockExchange)).append("\n");
×
400
    sb.append("    stockNumber: ").append(toIndentedString(stockNumber)).append("\n");
×
401
    sb.append("    stockTicker: ").append(toIndentedString(stockTicker)).append("\n");
×
402
    sb.append("    taxId: ").append(toIndentedString(taxId)).append("\n");
×
403
    sb.append("}");
×
404
    return sb.toString();
×
405
  }
406

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

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

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