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

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

16 Oct 2023 09:08AM CUT 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

18.69
/src/main/java/com/adyen/model/marketpaywebhooks/ShareholderContact.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.ViasAddress;
20
import com.adyen.model.marketpaywebhooks.ViasName;
21
import com.adyen.model.marketpaywebhooks.ViasPersonalData;
22
import com.adyen.model.marketpaywebhooks.ViasPhoneNumber;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * ShareholderContact
36
 */
37
@JsonPropertyOrder({
38
  ShareholderContact.JSON_PROPERTY_ADDRESS,
39
  ShareholderContact.JSON_PROPERTY_EMAIL,
40
  ShareholderContact.JSON_PROPERTY_FULL_PHONE_NUMBER,
41
  ShareholderContact.JSON_PROPERTY_JOB_TITLE,
42
  ShareholderContact.JSON_PROPERTY_NAME,
43
  ShareholderContact.JSON_PROPERTY_PERSONAL_DATA,
44
  ShareholderContact.JSON_PROPERTY_PHONE_NUMBER,
45
  ShareholderContact.JSON_PROPERTY_SHAREHOLDER_CODE,
46
  ShareholderContact.JSON_PROPERTY_SHAREHOLDER_REFERENCE,
47
  ShareholderContact.JSON_PROPERTY_SHAREHOLDER_TYPE,
48
  ShareholderContact.JSON_PROPERTY_WEB_ADDRESS
49
})
50

51
public class ShareholderContact {
52
  public static final String JSON_PROPERTY_ADDRESS = "address";
53
  private ViasAddress address;
54

55
  public static final String JSON_PROPERTY_EMAIL = "email";
56
  private String email;
57

58
  public static final String JSON_PROPERTY_FULL_PHONE_NUMBER = "fullPhoneNumber";
59
  private String fullPhoneNumber;
60

61
  public static final String JSON_PROPERTY_JOB_TITLE = "jobTitle";
62
  private String jobTitle;
63

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

67
  public static final String JSON_PROPERTY_PERSONAL_DATA = "personalData";
68
  private ViasPersonalData personalData;
69

70
  public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber";
71
  private ViasPhoneNumber phoneNumber;
72

73
  public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
74
  private String shareholderCode;
75

76
  public static final String JSON_PROPERTY_SHAREHOLDER_REFERENCE = "shareholderReference";
77
  private String shareholderReference;
78

79
  /**
80
   * Specifies how the person is associated with the account holder.   Possible values:   * **Owner**: Individuals who directly or indirectly own 25% or more of a company.  * **Controller**: Individuals who are members of senior management staff responsible for managing a company or organization.
81
   */
82
  public enum ShareholderTypeEnum {
×
83
    CONTROLLER("Controller"),
×
84
    
85
    OWNER("Owner"),
×
86
    
87
    SIGNATORY("Signatory");
×
88

89
    private String value;
90

91
    ShareholderTypeEnum(String value) {
×
92
      this.value = value;
×
93
    }
×
94

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

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

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

116
  public static final String JSON_PROPERTY_SHAREHOLDER_TYPE = "shareholderType";
117
  private ShareholderTypeEnum shareholderType;
118

119
  public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
120
  private String webAddress;
121

122
  public ShareholderContact() { 
1✔
123
  }
1✔
124

125
  public ShareholderContact address(ViasAddress address) {
126
    this.address = address;
×
127
    return this;
×
128
  }
129

130
   /**
131
   * Get address
132
   * @return address
133
  **/
134
  @ApiModelProperty(value = "")
135
  @JsonProperty(JSON_PROPERTY_ADDRESS)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137

138
  public ViasAddress getAddress() {
139
    return address;
×
140
  }
141

142

143
  @JsonProperty(JSON_PROPERTY_ADDRESS)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145
  public void setAddress(ViasAddress address) {
146
    this.address = address;
1✔
147
  }
1✔
148

149

150
  public ShareholderContact email(String email) {
151
    this.email = email;
×
152
    return this;
×
153
  }
154

155
   /**
156
   * The e-mail address of the person.
157
   * @return email
158
  **/
159
  @ApiModelProperty(value = "The e-mail address of the person.")
160
  @JsonProperty(JSON_PROPERTY_EMAIL)
161
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
162

163
  public String getEmail() {
164
    return email;
×
165
  }
166

167

168
  @JsonProperty(JSON_PROPERTY_EMAIL)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170
  public void setEmail(String email) {
171
    this.email = email;
1✔
172
  }
1✔
173

174

175
  public ShareholderContact fullPhoneNumber(String fullPhoneNumber) {
176
    this.fullPhoneNumber = fullPhoneNumber;
×
177
    return this;
×
178
  }
179

180
   /**
181
   * The phone number of the person 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\"
182
   * @return fullPhoneNumber
183
  **/
184
  @ApiModelProperty(value = "The phone number of the person 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\"")
185
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
186
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
187

188
  public String getFullPhoneNumber() {
189
    return fullPhoneNumber;
×
190
  }
191

192

193
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
195
  public void setFullPhoneNumber(String fullPhoneNumber) {
196
    this.fullPhoneNumber = fullPhoneNumber;
1✔
197
  }
1✔
198

199

200
  public ShareholderContact jobTitle(String jobTitle) {
201
    this.jobTitle = jobTitle;
×
202
    return this;
×
203
  }
204

205
   /**
206
   * Job title of the person. Required when the `shareholderType` is **Controller**.  Example values: **Chief Executive Officer**, **Chief Financial Officer**, **Chief Operating Officer**, **President**, **Vice President**, **Executive President**, **Managing Member**, **Partner**, **Treasurer**, **Director**, or **Other**.
207
   * @return jobTitle
208
  **/
209
  @ApiModelProperty(value = "Job title of the person. Required when the `shareholderType` is **Controller**.  Example values: **Chief Executive Officer**, **Chief Financial Officer**, **Chief Operating Officer**, **President**, **Vice President**, **Executive President**, **Managing Member**, **Partner**, **Treasurer**, **Director**, or **Other**.")
210
  @JsonProperty(JSON_PROPERTY_JOB_TITLE)
211
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212

213
  public String getJobTitle() {
214
    return jobTitle;
×
215
  }
216

217

218
  @JsonProperty(JSON_PROPERTY_JOB_TITLE)
219
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
220
  public void setJobTitle(String jobTitle) {
221
    this.jobTitle = jobTitle;
×
222
  }
×
223

224

225
  public ShareholderContact name(ViasName name) {
226
    this.name = name;
×
227
    return this;
×
228
  }
229

230
   /**
231
   * Get name
232
   * @return name
233
  **/
234
  @ApiModelProperty(value = "")
235
  @JsonProperty(JSON_PROPERTY_NAME)
236
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
237

238
  public ViasName getName() {
239
    return name;
×
240
  }
241

242

243
  @JsonProperty(JSON_PROPERTY_NAME)
244
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
245
  public void setName(ViasName name) {
246
    this.name = name;
1✔
247
  }
1✔
248

249

250
  public ShareholderContact personalData(ViasPersonalData personalData) {
251
    this.personalData = personalData;
×
252
    return this;
×
253
  }
254

255
   /**
256
   * Get personalData
257
   * @return personalData
258
  **/
259
  @ApiModelProperty(value = "")
260
  @JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
261
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
262

263
  public ViasPersonalData getPersonalData() {
264
    return personalData;
×
265
  }
266

267

268
  @JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
269
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
270
  public void setPersonalData(ViasPersonalData personalData) {
271
    this.personalData = personalData;
1✔
272
  }
1✔
273

274

275
  public ShareholderContact phoneNumber(ViasPhoneNumber phoneNumber) {
276
    this.phoneNumber = phoneNumber;
×
277
    return this;
×
278
  }
279

280
   /**
281
   * Get phoneNumber
282
   * @return phoneNumber
283
  **/
284
  @ApiModelProperty(value = "")
285
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
286
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
287

288
  public ViasPhoneNumber getPhoneNumber() {
289
    return phoneNumber;
×
290
  }
291

292

293
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
294
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
295
  public void setPhoneNumber(ViasPhoneNumber phoneNumber) {
296
    this.phoneNumber = phoneNumber;
1✔
297
  }
1✔
298

299

300
  public ShareholderContact shareholderCode(String shareholderCode) {
301
    this.shareholderCode = shareholderCode;
×
302
    return this;
×
303
  }
304

305
   /**
306
   * The unique identifier (UUID) of the shareholder entry. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.**  >**If, during an Account Holder create request, a UUID is provided, the creation of Account Holder will fail with a validation Error..**  >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.**  >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** 
307
   * @return shareholderCode
308
  **/
309
  @ApiModelProperty(value = "The unique identifier (UUID) of the shareholder entry. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.**  >**If, during an Account Holder create request, a UUID is provided, the creation of Account Holder will fail with a validation Error..**  >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.**  >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** ")
310
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
311
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
312

313
  public String getShareholderCode() {
314
    return shareholderCode;
×
315
  }
316

317

318
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
319
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
320
  public void setShareholderCode(String shareholderCode) {
321
    this.shareholderCode = shareholderCode;
1✔
322
  }
1✔
323

324

325
  public ShareholderContact shareholderReference(String shareholderReference) {
326
    this.shareholderReference = shareholderReference;
×
327
    return this;
×
328
  }
329

330
   /**
331
   * Your reference for the shareholder entry.
332
   * @return shareholderReference
333
  **/
334
  @ApiModelProperty(value = "Your reference for the shareholder entry.")
335
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_REFERENCE)
336
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
337

338
  public String getShareholderReference() {
339
    return shareholderReference;
×
340
  }
341

342

343
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_REFERENCE)
344
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
345
  public void setShareholderReference(String shareholderReference) {
346
    this.shareholderReference = shareholderReference;
1✔
347
  }
1✔
348

349

350
  public ShareholderContact shareholderType(ShareholderTypeEnum shareholderType) {
351
    this.shareholderType = shareholderType;
×
352
    return this;
×
353
  }
354

355
   /**
356
   * Specifies how the person is associated with the account holder.   Possible values:   * **Owner**: Individuals who directly or indirectly own 25% or more of a company.  * **Controller**: Individuals who are members of senior management staff responsible for managing a company or organization.
357
   * @return shareholderType
358
  **/
359
  @ApiModelProperty(value = "Specifies how the person is associated with the account holder.   Possible values:   * **Owner**: Individuals who directly or indirectly own 25% or more of a company.  * **Controller**: Individuals who are members of senior management staff responsible for managing a company or organization.")
360
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_TYPE)
361
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
362

363
  public ShareholderTypeEnum getShareholderType() {
364
    return shareholderType;
×
365
  }
366

367

368
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_TYPE)
369
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
370
  public void setShareholderType(ShareholderTypeEnum shareholderType) {
371
    this.shareholderType = shareholderType;
×
372
  }
×
373

374

375
  public ShareholderContact webAddress(String webAddress) {
376
    this.webAddress = webAddress;
×
377
    return this;
×
378
  }
379

380
   /**
381
   * The URL of the person's website.
382
   * @return webAddress
383
  **/
384
  @ApiModelProperty(value = "The URL of the person's website.")
385
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
386
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
387

388
  public String getWebAddress() {
389
    return webAddress;
×
390
  }
391

392

393
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
394
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
395
  public void setWebAddress(String webAddress) {
396
    this.webAddress = webAddress;
1✔
397
  }
1✔
398

399

400
  /**
401
   * Return true if this ShareholderContact object is equal to o.
402
   */
403
  @Override
404
  public boolean equals(Object o) {
405
    if (this == o) {
×
406
      return true;
×
407
    }
408
    if (o == null || getClass() != o.getClass()) {
×
409
      return false;
×
410
    }
411
    ShareholderContact shareholderContact = (ShareholderContact) o;
×
412
    return Objects.equals(this.address, shareholderContact.address) &&
×
413
        Objects.equals(this.email, shareholderContact.email) &&
×
414
        Objects.equals(this.fullPhoneNumber, shareholderContact.fullPhoneNumber) &&
×
415
        Objects.equals(this.jobTitle, shareholderContact.jobTitle) &&
×
416
        Objects.equals(this.name, shareholderContact.name) &&
×
417
        Objects.equals(this.personalData, shareholderContact.personalData) &&
×
418
        Objects.equals(this.phoneNumber, shareholderContact.phoneNumber) &&
×
419
        Objects.equals(this.shareholderCode, shareholderContact.shareholderCode) &&
×
420
        Objects.equals(this.shareholderReference, shareholderContact.shareholderReference) &&
×
421
        Objects.equals(this.shareholderType, shareholderContact.shareholderType) &&
×
422
        Objects.equals(this.webAddress, shareholderContact.webAddress);
×
423
  }
424

425
  @Override
426
  public int hashCode() {
427
    return Objects.hash(address, email, fullPhoneNumber, jobTitle, name, personalData, phoneNumber, shareholderCode, shareholderReference, shareholderType, webAddress);
×
428
  }
429

430
  @Override
431
  public String toString() {
432
    StringBuilder sb = new StringBuilder();
×
433
    sb.append("class ShareholderContact {\n");
×
434
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
435
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
×
436
    sb.append("    fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
×
437
    sb.append("    jobTitle: ").append(toIndentedString(jobTitle)).append("\n");
×
438
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
439
    sb.append("    personalData: ").append(toIndentedString(personalData)).append("\n");
×
440
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
×
441
    sb.append("    shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
×
442
    sb.append("    shareholderReference: ").append(toIndentedString(shareholderReference)).append("\n");
×
443
    sb.append("    shareholderType: ").append(toIndentedString(shareholderType)).append("\n");
×
444
    sb.append("    webAddress: ").append(toIndentedString(webAddress)).append("\n");
×
445
    sb.append("}");
×
446
    return sb.toString();
×
447
  }
448

449
  /**
450
   * Convert the given object to string with each line indented by 4 spaces
451
   * (except the first line).
452
   */
453
  private String toIndentedString(Object o) {
454
    if (o == null) {
×
455
      return "null";
×
456
    }
457
    return o.toString().replace("\n", "\n    ");
×
458
  }
459

460
/**
461
   * Create an instance of ShareholderContact given an JSON string
462
   *
463
   * @param jsonString JSON string
464
   * @return An instance of ShareholderContact
465
   * @throws JsonProcessingException if the JSON string is invalid with respect to ShareholderContact
466
   */
467
  public static ShareholderContact fromJson(String jsonString) throws JsonProcessingException {
468
    return JSON.getMapper().readValue(jsonString, ShareholderContact.class);
×
469
  }
470
/**
471
  * Convert an instance of ShareholderContact to an JSON string
472
  *
473
  * @return JSON string
474
  */
475
  public String toJson() throws JsonProcessingException {
476
    return JSON.getMapper().writeValueAsString(this);
×
477
  }
478
}
479

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