-
Notifications
You must be signed in to change notification settings - Fork 136
/
ShareholderContact.java
479 lines (382 loc) · 16.5 KB
/
ShareholderContact.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
/*
* Classic Platforms - Notifications
*
* The version of the OpenAPI document: 6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.marketpaywebhooks;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.marketpaywebhooks.ViasAddress;
import com.adyen.model.marketpaywebhooks.ViasName;
import com.adyen.model.marketpaywebhooks.ViasPersonalData;
import com.adyen.model.marketpaywebhooks.ViasPhoneNumber;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* ShareholderContact
*/
@JsonPropertyOrder({
ShareholderContact.JSON_PROPERTY_ADDRESS,
ShareholderContact.JSON_PROPERTY_EMAIL,
ShareholderContact.JSON_PROPERTY_FULL_PHONE_NUMBER,
ShareholderContact.JSON_PROPERTY_JOB_TITLE,
ShareholderContact.JSON_PROPERTY_NAME,
ShareholderContact.JSON_PROPERTY_PERSONAL_DATA,
ShareholderContact.JSON_PROPERTY_PHONE_NUMBER,
ShareholderContact.JSON_PROPERTY_SHAREHOLDER_CODE,
ShareholderContact.JSON_PROPERTY_SHAREHOLDER_REFERENCE,
ShareholderContact.JSON_PROPERTY_SHAREHOLDER_TYPE,
ShareholderContact.JSON_PROPERTY_WEB_ADDRESS
})
public class ShareholderContact {
public static final String JSON_PROPERTY_ADDRESS = "address";
private ViasAddress address;
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public static final String JSON_PROPERTY_FULL_PHONE_NUMBER = "fullPhoneNumber";
private String fullPhoneNumber;
public static final String JSON_PROPERTY_JOB_TITLE = "jobTitle";
private String jobTitle;
public static final String JSON_PROPERTY_NAME = "name";
private ViasName name;
public static final String JSON_PROPERTY_PERSONAL_DATA = "personalData";
private ViasPersonalData personalData;
public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber";
private ViasPhoneNumber phoneNumber;
public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
private String shareholderCode;
public static final String JSON_PROPERTY_SHAREHOLDER_REFERENCE = "shareholderReference";
private String shareholderReference;
/**
* 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.
*/
public enum ShareholderTypeEnum {
CONTROLLER("Controller"),
OWNER("Owner"),
SIGNATORY("Signatory");
private String value;
ShareholderTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ShareholderTypeEnum fromValue(String value) {
for (ShareholderTypeEnum b : ShareholderTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SHAREHOLDER_TYPE = "shareholderType";
private ShareholderTypeEnum shareholderType;
public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
private String webAddress;
public ShareholderContact() {
}
public ShareholderContact address(ViasAddress address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ViasAddress getAddress() {
return address;
}
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddress(ViasAddress address) {
this.address = address;
}
public ShareholderContact email(String email) {
this.email = email;
return this;
}
/**
* The e-mail address of the person.
* @return email
**/
@ApiModelProperty(value = "The e-mail address of the person.")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() {
return email;
}
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmail(String email) {
this.email = email;
}
public ShareholderContact fullPhoneNumber(String fullPhoneNumber) {
this.fullPhoneNumber = fullPhoneNumber;
return this;
}
/**
* 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\"
* @return fullPhoneNumber
**/
@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\"")
@JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFullPhoneNumber() {
return fullPhoneNumber;
}
@JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFullPhoneNumber(String fullPhoneNumber) {
this.fullPhoneNumber = fullPhoneNumber;
}
public ShareholderContact jobTitle(String jobTitle) {
this.jobTitle = jobTitle;
return this;
}
/**
* 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**.
* @return jobTitle
**/
@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**.")
@JsonProperty(JSON_PROPERTY_JOB_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getJobTitle() {
return jobTitle;
}
@JsonProperty(JSON_PROPERTY_JOB_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
public ShareholderContact name(ViasName name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ViasName getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(ViasName name) {
this.name = name;
}
public ShareholderContact personalData(ViasPersonalData personalData) {
this.personalData = personalData;
return this;
}
/**
* Get personalData
* @return personalData
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ViasPersonalData getPersonalData() {
return personalData;
}
@JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPersonalData(ViasPersonalData personalData) {
this.personalData = personalData;
}
public ShareholderContact phoneNumber(ViasPhoneNumber phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* Get phoneNumber
* @return phoneNumber
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ViasPhoneNumber getPhoneNumber() {
return phoneNumber;
}
@JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPhoneNumber(ViasPhoneNumber phoneNumber) {
this.phoneNumber = phoneNumber;
}
public ShareholderContact shareholderCode(String shareholderCode) {
this.shareholderCode = shareholderCode;
return this;
}
/**
* 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.**
* @return shareholderCode
**/
@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.** ")
@JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getShareholderCode() {
return shareholderCode;
}
@JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShareholderCode(String shareholderCode) {
this.shareholderCode = shareholderCode;
}
public ShareholderContact shareholderReference(String shareholderReference) {
this.shareholderReference = shareholderReference;
return this;
}
/**
* Your reference for the shareholder entry.
* @return shareholderReference
**/
@ApiModelProperty(value = "Your reference for the shareholder entry.")
@JsonProperty(JSON_PROPERTY_SHAREHOLDER_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getShareholderReference() {
return shareholderReference;
}
@JsonProperty(JSON_PROPERTY_SHAREHOLDER_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShareholderReference(String shareholderReference) {
this.shareholderReference = shareholderReference;
}
public ShareholderContact shareholderType(ShareholderTypeEnum shareholderType) {
this.shareholderType = shareholderType;
return this;
}
/**
* 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.
* @return shareholderType
**/
@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.")
@JsonProperty(JSON_PROPERTY_SHAREHOLDER_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ShareholderTypeEnum getShareholderType() {
return shareholderType;
}
@JsonProperty(JSON_PROPERTY_SHAREHOLDER_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShareholderType(ShareholderTypeEnum shareholderType) {
this.shareholderType = shareholderType;
}
public ShareholderContact webAddress(String webAddress) {
this.webAddress = webAddress;
return this;
}
/**
* The URL of the person's website.
* @return webAddress
**/
@ApiModelProperty(value = "The URL of the person's website.")
@JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWebAddress() {
return webAddress;
}
@JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWebAddress(String webAddress) {
this.webAddress = webAddress;
}
/**
* Return true if this ShareholderContact object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ShareholderContact shareholderContact = (ShareholderContact) o;
return Objects.equals(this.address, shareholderContact.address) &&
Objects.equals(this.email, shareholderContact.email) &&
Objects.equals(this.fullPhoneNumber, shareholderContact.fullPhoneNumber) &&
Objects.equals(this.jobTitle, shareholderContact.jobTitle) &&
Objects.equals(this.name, shareholderContact.name) &&
Objects.equals(this.personalData, shareholderContact.personalData) &&
Objects.equals(this.phoneNumber, shareholderContact.phoneNumber) &&
Objects.equals(this.shareholderCode, shareholderContact.shareholderCode) &&
Objects.equals(this.shareholderReference, shareholderContact.shareholderReference) &&
Objects.equals(this.shareholderType, shareholderContact.shareholderType) &&
Objects.equals(this.webAddress, shareholderContact.webAddress);
}
@Override
public int hashCode() {
return Objects.hash(address, email, fullPhoneNumber, jobTitle, name, personalData, phoneNumber, shareholderCode, shareholderReference, shareholderType, webAddress);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShareholderContact {\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" personalData: ").append(toIndentedString(personalData)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
sb.append(" shareholderReference: ").append(toIndentedString(shareholderReference)).append("\n");
sb.append(" shareholderType: ").append(toIndentedString(shareholderType)).append("\n");
sb.append(" webAddress: ").append(toIndentedString(webAddress)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Create an instance of ShareholderContact given an JSON string
*
* @param jsonString JSON string
* @return An instance of ShareholderContact
* @throws JsonProcessingException if the JSON string is invalid with respect to ShareholderContact
*/
public static ShareholderContact fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, ShareholderContact.class);
}
/**
* Convert an instance of ShareholderContact to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}