-
Notifications
You must be signed in to change notification settings - Fork 136
/
LegalArrangementEntityDetail.java
538 lines (426 loc) · 18.5 KB
/
LegalArrangementEntityDetail.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
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
/*
* 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.BusinessDetails;
import com.adyen.model.marketpaywebhooks.IndividualDetails;
import com.adyen.model.marketpaywebhooks.ViasAddress;
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 java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* LegalArrangementEntityDetail
*/
@JsonPropertyOrder({
LegalArrangementEntityDetail.JSON_PROPERTY_ADDRESS,
LegalArrangementEntityDetail.JSON_PROPERTY_BUSINESS_DETAILS,
LegalArrangementEntityDetail.JSON_PROPERTY_EMAIL,
LegalArrangementEntityDetail.JSON_PROPERTY_FULL_PHONE_NUMBER,
LegalArrangementEntityDetail.JSON_PROPERTY_INDIVIDUAL_DETAILS,
LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE,
LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE,
LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS,
LegalArrangementEntityDetail.JSON_PROPERTY_LEGAL_ENTITY_TYPE,
LegalArrangementEntityDetail.JSON_PROPERTY_PHONE_NUMBER,
LegalArrangementEntityDetail.JSON_PROPERTY_WEB_ADDRESS
})
public class LegalArrangementEntityDetail {
public static final String JSON_PROPERTY_ADDRESS = "address";
private ViasAddress address;
public static final String JSON_PROPERTY_BUSINESS_DETAILS = "businessDetails";
private BusinessDetails businessDetails;
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_INDIVIDUAL_DETAILS = "individualDetails";
private IndividualDetails individualDetails;
public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE = "legalArrangementEntityCode";
private String legalArrangementEntityCode;
public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE = "legalArrangementEntityReference";
private String legalArrangementEntityReference;
/**
* Gets or Sets legalArrangementMembers
*/
public enum LegalArrangementMembersEnum {
BENEFICIARY("Beneficiary"),
CONTROLLINGPERSON("ControllingPerson"),
PARTNER("Partner"),
PROTECTOR("Protector"),
SETTLOR("Settlor"),
SHAREHOLDER("Shareholder"),
TRUSTEE("Trustee");
private String value;
LegalArrangementMembersEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static LegalArrangementMembersEnum fromValue(String value) {
for (LegalArrangementMembersEnum b : LegalArrangementMembersEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS = "legalArrangementMembers";
private List<LegalArrangementMembersEnum> legalArrangementMembers = null;
/**
* The legal entity type. Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**.
*/
public enum LegalEntityTypeEnum {
BUSINESS("Business"),
INDIVIDUAL("Individual"),
NONPROFIT("NonProfit"),
PARTNERSHIP("Partnership"),
PUBLICCOMPANY("PublicCompany");
private String value;
LegalEntityTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static LegalEntityTypeEnum fromValue(String value) {
for (LegalEntityTypeEnum b : LegalEntityTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_LEGAL_ENTITY_TYPE = "legalEntityType";
private LegalEntityTypeEnum legalEntityType;
public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber";
private ViasPhoneNumber phoneNumber;
public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
private String webAddress;
public LegalArrangementEntityDetail() {
}
public LegalArrangementEntityDetail 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 LegalArrangementEntityDetail businessDetails(BusinessDetails businessDetails) {
this.businessDetails = businessDetails;
return this;
}
/**
* Get businessDetails
* @return businessDetails
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BusinessDetails getBusinessDetails() {
return businessDetails;
}
@JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBusinessDetails(BusinessDetails businessDetails) {
this.businessDetails = businessDetails;
}
public LegalArrangementEntityDetail email(String email) {
this.email = email;
return this;
}
/**
* The e-mail address of the entity.
* @return email
**/
@ApiModelProperty(value = "The e-mail address of the entity.")
@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 LegalArrangementEntityDetail fullPhoneNumber(String fullPhoneNumber) {
this.fullPhoneNumber = fullPhoneNumber;
return this;
}
/**
* The phone number of the contact 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 contact 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 LegalArrangementEntityDetail individualDetails(IndividualDetails individualDetails) {
this.individualDetails = individualDetails;
return this;
}
/**
* Get individualDetails
* @return individualDetails
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public IndividualDetails getIndividualDetails() {
return individualDetails;
}
@JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIndividualDetails(IndividualDetails individualDetails) {
this.individualDetails = individualDetails;
}
public LegalArrangementEntityDetail legalArrangementEntityCode(String legalArrangementEntityCode) {
this.legalArrangementEntityCode = legalArrangementEntityCode;
return this;
}
/**
* Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Use only when updating an account holder. If you include this field when creating an account holder, the request will fail.
* @return legalArrangementEntityCode
**/
@ApiModelProperty(value = "Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Use only when updating an account holder. If you include this field when creating an account holder, the request will fail.")
@JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLegalArrangementEntityCode() {
return legalArrangementEntityCode;
}
@JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegalArrangementEntityCode(String legalArrangementEntityCode) {
this.legalArrangementEntityCode = legalArrangementEntityCode;
}
public LegalArrangementEntityDetail legalArrangementEntityReference(String legalArrangementEntityReference) {
this.legalArrangementEntityReference = legalArrangementEntityReference;
return this;
}
/**
* Your reference for the legal arrangement entity.
* @return legalArrangementEntityReference
**/
@ApiModelProperty(value = "Your reference for the legal arrangement entity.")
@JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLegalArrangementEntityReference() {
return legalArrangementEntityReference;
}
@JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegalArrangementEntityReference(String legalArrangementEntityReference) {
this.legalArrangementEntityReference = legalArrangementEntityReference;
}
public LegalArrangementEntityDetail legalArrangementMembers(List<LegalArrangementMembersEnum> legalArrangementMembers) {
this.legalArrangementMembers = legalArrangementMembers;
return this;
}
public LegalArrangementEntityDetail addLegalArrangementMembersItem(LegalArrangementMembersEnum legalArrangementMembersItem) {
if (this.legalArrangementMembers == null) {
this.legalArrangementMembers = new ArrayList<>();
}
this.legalArrangementMembers.add(legalArrangementMembersItem);
return this;
}
/**
* An array containing the roles of the entity in the legal arrangement. The possible values depend on the legal arrangement `type`. - For `type` **Association**: **ControllingPerson** and **Shareholder**. - For `type` **Partnership**: **Partner** and **Shareholder**. - For `type` **Trust**: **Trustee**, **Settlor**, **Protector**, **Beneficiary**, and **Shareholder**.
* @return legalArrangementMembers
**/
@ApiModelProperty(value = "An array containing the roles of the entity in the legal arrangement. The possible values depend on the legal arrangement `type`. - For `type` **Association**: **ControllingPerson** and **Shareholder**. - For `type` **Partnership**: **Partner** and **Shareholder**. - For `type` **Trust**: **Trustee**, **Settlor**, **Protector**, **Beneficiary**, and **Shareholder**. ")
@JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<LegalArrangementMembersEnum> getLegalArrangementMembers() {
return legalArrangementMembers;
}
@JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_MEMBERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegalArrangementMembers(List<LegalArrangementMembersEnum> legalArrangementMembers) {
this.legalArrangementMembers = legalArrangementMembers;
}
public LegalArrangementEntityDetail legalEntityType(LegalEntityTypeEnum legalEntityType) {
this.legalEntityType = legalEntityType;
return this;
}
/**
* The legal entity type. Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**.
* @return legalEntityType
**/
@ApiModelProperty(value = "The legal entity type. Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**. ")
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LegalEntityTypeEnum getLegalEntityType() {
return legalEntityType;
}
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegalEntityType(LegalEntityTypeEnum legalEntityType) {
this.legalEntityType = legalEntityType;
}
public LegalArrangementEntityDetail 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 LegalArrangementEntityDetail webAddress(String webAddress) {
this.webAddress = webAddress;
return this;
}
/**
* The URL of the website of the contact.
* @return webAddress
**/
@ApiModelProperty(value = "The URL of the website of the contact.")
@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 LegalArrangementEntityDetail object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LegalArrangementEntityDetail legalArrangementEntityDetail = (LegalArrangementEntityDetail) o;
return Objects.equals(this.address, legalArrangementEntityDetail.address) &&
Objects.equals(this.businessDetails, legalArrangementEntityDetail.businessDetails) &&
Objects.equals(this.email, legalArrangementEntityDetail.email) &&
Objects.equals(this.fullPhoneNumber, legalArrangementEntityDetail.fullPhoneNumber) &&
Objects.equals(this.individualDetails, legalArrangementEntityDetail.individualDetails) &&
Objects.equals(this.legalArrangementEntityCode, legalArrangementEntityDetail.legalArrangementEntityCode) &&
Objects.equals(this.legalArrangementEntityReference, legalArrangementEntityDetail.legalArrangementEntityReference) &&
Objects.equals(this.legalArrangementMembers, legalArrangementEntityDetail.legalArrangementMembers) &&
Objects.equals(this.legalEntityType, legalArrangementEntityDetail.legalEntityType) &&
Objects.equals(this.phoneNumber, legalArrangementEntityDetail.phoneNumber) &&
Objects.equals(this.webAddress, legalArrangementEntityDetail.webAddress);
}
@Override
public int hashCode() {
return Objects.hash(address, businessDetails, email, fullPhoneNumber, individualDetails, legalArrangementEntityCode, legalArrangementEntityReference, legalArrangementMembers, legalEntityType, phoneNumber, webAddress);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LegalArrangementEntityDetail {\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" businessDetails: ").append(toIndentedString(businessDetails)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
sb.append(" individualDetails: ").append(toIndentedString(individualDetails)).append("\n");
sb.append(" legalArrangementEntityCode: ").append(toIndentedString(legalArrangementEntityCode)).append("\n");
sb.append(" legalArrangementEntityReference: ").append(toIndentedString(legalArrangementEntityReference)).append("\n");
sb.append(" legalArrangementMembers: ").append(toIndentedString(legalArrangementMembers)).append("\n");
sb.append(" legalEntityType: ").append(toIndentedString(legalEntityType)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).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 LegalArrangementEntityDetail given an JSON string
*
* @param jsonString JSON string
* @return An instance of LegalArrangementEntityDetail
* @throws JsonProcessingException if the JSON string is invalid with respect to LegalArrangementEntityDetail
*/
public static LegalArrangementEntityDetail fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, LegalArrangementEntityDetail.class);
}
/**
* Convert an instance of LegalArrangementEntityDetail to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}