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

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

16 Oct 2023 09:08AM UTC coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

14.71
/src/main/java/com/adyen/model/marketpaywebhooks/BusinessDetails.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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.marketpaywebhooks.ShareholderContact;
20
import com.adyen.model.marketpaywebhooks.SignatoryContact;
21
import com.adyen.model.marketpaywebhooks.UltimateParentCompany;
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
 * BusinessDetails
37
 */
38
@JsonPropertyOrder({
39
  BusinessDetails.JSON_PROPERTY_DOING_BUSINESS_AS,
40
  BusinessDetails.JSON_PROPERTY_LEGAL_BUSINESS_NAME,
41
  BusinessDetails.JSON_PROPERTY_LISTED_ULTIMATE_PARENT_COMPANY,
42
  BusinessDetails.JSON_PROPERTY_REGISTRATION_NUMBER,
43
  BusinessDetails.JSON_PROPERTY_SHAREHOLDERS,
44
  BusinessDetails.JSON_PROPERTY_SIGNATORIES,
45
  BusinessDetails.JSON_PROPERTY_STOCK_EXCHANGE,
46
  BusinessDetails.JSON_PROPERTY_STOCK_NUMBER,
47
  BusinessDetails.JSON_PROPERTY_STOCK_TICKER,
48
  BusinessDetails.JSON_PROPERTY_TAX_ID
49
})
50

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

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

58
  public static final String JSON_PROPERTY_LISTED_ULTIMATE_PARENT_COMPANY = "listedUltimateParentCompany";
59
  private List<UltimateParentCompany> listedUltimateParentCompany = null;
1✔
60

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

64
  public static final String JSON_PROPERTY_SHAREHOLDERS = "shareholders";
65
  private List<ShareholderContact> shareholders = null;
1✔
66

67
  public static final String JSON_PROPERTY_SIGNATORIES = "signatories";
68
  private List<SignatoryContact> signatories = null;
1✔
69

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

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

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

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

82
  public BusinessDetails() { 
1✔
83
  }
1✔
84

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

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

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

102

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

109

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

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

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

127

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

134

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

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

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

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

160

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

167

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

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

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

185

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

192

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

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

206
   /**
207
   * 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).
208
   * @return shareholders
209
  **/
210
  @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).")
211
  @JsonProperty(JSON_PROPERTY_SHAREHOLDERS)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213

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

218

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

225

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

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

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

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

251

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

258

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

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

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

276

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

283

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

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

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

301

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

308

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

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

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

326

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

333

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

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

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

351

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

358

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

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

388
  @Override
389
  public String toString() {
390
    StringBuilder sb = new StringBuilder();
×
391
    sb.append("class BusinessDetails {\n");
×
392
    sb.append("    doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n");
×
393
    sb.append("    legalBusinessName: ").append(toIndentedString(legalBusinessName)).append("\n");
×
394
    sb.append("    listedUltimateParentCompany: ").append(toIndentedString(listedUltimateParentCompany)).append("\n");
×
395
    sb.append("    registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n");
×
396
    sb.append("    shareholders: ").append(toIndentedString(shareholders)).append("\n");
×
397
    sb.append("    signatories: ").append(toIndentedString(signatories)).append("\n");
×
398
    sb.append("    stockExchange: ").append(toIndentedString(stockExchange)).append("\n");
×
399
    sb.append("    stockNumber: ").append(toIndentedString(stockNumber)).append("\n");
×
400
    sb.append("    stockTicker: ").append(toIndentedString(stockTicker)).append("\n");
×
401
    sb.append("    taxId: ").append(toIndentedString(taxId)).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 BusinessDetails given an JSON string
419
   *
420
   * @param jsonString JSON string
421
   * @return An instance of BusinessDetails
422
   * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessDetails
423
   */
424
  public static BusinessDetails fromJson(String jsonString) throws JsonProcessingException {
425
    return JSON.getMapper().readValue(jsonString, BusinessDetails.class);
×
426
  }
427
/**
428
  * Convert an instance of BusinessDetails 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