• 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/SignatoryContact.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.ViasAddress;
21
import com.adyen.model.marketpayaccount.ViasName;
22
import com.adyen.model.marketpayaccount.ViasPersonalData;
23
import com.adyen.model.marketpayaccount.ViasPhoneNumber;
24
import com.fasterxml.jackson.annotation.JsonInclude;
25
import com.fasterxml.jackson.annotation.JsonProperty;
26
import com.fasterxml.jackson.annotation.JsonCreator;
27
import com.fasterxml.jackson.annotation.JsonTypeName;
28
import com.fasterxml.jackson.annotation.JsonValue;
29
import io.swagger.annotations.ApiModel;
30
import io.swagger.annotations.ApiModelProperty;
31
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
import com.fasterxml.jackson.core.JsonProcessingException;
33

34

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

51
public class SignatoryContact {
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_SIGNATORY_CODE = "signatoryCode";
74
  private String signatoryCode;
75

76
  public static final String JSON_PROPERTY_SIGNATORY_REFERENCE = "signatoryReference";
77
  private String signatoryReference;
78

79
  public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
80
  private String webAddress;
81

82
  public SignatoryContact() { 
×
83
  }
×
84

85
  public SignatoryContact address(ViasAddress address) {
86
    this.address = address;
×
87
    return this;
×
88
  }
89

90
   /**
91
   * Get address
92
   * @return address
93
  **/
94
  @ApiModelProperty(value = "")
95
  @JsonProperty(JSON_PROPERTY_ADDRESS)
96
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
97

98
  public ViasAddress getAddress() {
99
    return address;
×
100
  }
101

102

103
  @JsonProperty(JSON_PROPERTY_ADDRESS)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105
  public void setAddress(ViasAddress address) {
106
    this.address = address;
×
107
  }
×
108

109

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

115
   /**
116
   * The e-mail address of the person.
117
   * @return email
118
  **/
119
  @ApiModelProperty(value = "The e-mail address of the person.")
120
  @JsonProperty(JSON_PROPERTY_EMAIL)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122

123
  public String getEmail() {
124
    return email;
×
125
  }
126

127

128
  @JsonProperty(JSON_PROPERTY_EMAIL)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130
  public void setEmail(String email) {
131
    this.email = email;
×
132
  }
×
133

134

135
  public SignatoryContact fullPhoneNumber(String fullPhoneNumber) {
136
    this.fullPhoneNumber = fullPhoneNumber;
×
137
    return this;
×
138
  }
139

140
   /**
141
   * 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\"
142
   * @return fullPhoneNumber
143
  **/
144
  @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\"")
145
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147

148
  public String getFullPhoneNumber() {
149
    return fullPhoneNumber;
×
150
  }
151

152

153
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155
  public void setFullPhoneNumber(String fullPhoneNumber) {
156
    this.fullPhoneNumber = fullPhoneNumber;
×
157
  }
×
158

159

160
  public SignatoryContact jobTitle(String jobTitle) {
161
    this.jobTitle = jobTitle;
×
162
    return this;
×
163
  }
164

165
   /**
166
   * Job title of the signatory.  Example values: **Chief Executive Officer**, **Chief Financial Officer**, **Chief Operating Officer**, **President**, **Vice President**, **Executive President**, **Managing Member**, **Partner**, **Treasurer**, **Director**, or **Other**.
167
   * @return jobTitle
168
  **/
169
  @ApiModelProperty(value = "Job title of the signatory.  Example values: **Chief Executive Officer**, **Chief Financial Officer**, **Chief Operating Officer**, **President**, **Vice President**, **Executive President**, **Managing Member**, **Partner**, **Treasurer**, **Director**, or **Other**.")
170
  @JsonProperty(JSON_PROPERTY_JOB_TITLE)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172

173
  public String getJobTitle() {
174
    return jobTitle;
×
175
  }
176

177

178
  @JsonProperty(JSON_PROPERTY_JOB_TITLE)
179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180
  public void setJobTitle(String jobTitle) {
181
    this.jobTitle = jobTitle;
×
182
  }
×
183

184

185
  public SignatoryContact name(ViasName name) {
186
    this.name = name;
×
187
    return this;
×
188
  }
189

190
   /**
191
   * Get name
192
   * @return name
193
  **/
194
  @ApiModelProperty(value = "")
195
  @JsonProperty(JSON_PROPERTY_NAME)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197

198
  public ViasName getName() {
199
    return name;
×
200
  }
201

202

203
  @JsonProperty(JSON_PROPERTY_NAME)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205
  public void setName(ViasName name) {
206
    this.name = name;
×
207
  }
×
208

209

210
  public SignatoryContact personalData(ViasPersonalData personalData) {
211
    this.personalData = personalData;
×
212
    return this;
×
213
  }
214

215
   /**
216
   * Get personalData
217
   * @return personalData
218
  **/
219
  @ApiModelProperty(value = "")
220
  @JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222

223
  public ViasPersonalData getPersonalData() {
224
    return personalData;
×
225
  }
226

227

228
  @JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230
  public void setPersonalData(ViasPersonalData personalData) {
231
    this.personalData = personalData;
×
232
  }
×
233

234

235
  public SignatoryContact phoneNumber(ViasPhoneNumber phoneNumber) {
236
    this.phoneNumber = phoneNumber;
×
237
    return this;
×
238
  }
239

240
   /**
241
   * Get phoneNumber
242
   * @return phoneNumber
243
  **/
244
  @ApiModelProperty(value = "")
245
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
246
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
247

248
  public ViasPhoneNumber getPhoneNumber() {
249
    return phoneNumber;
×
250
  }
251

252

253
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255
  public void setPhoneNumber(ViasPhoneNumber phoneNumber) {
256
    this.phoneNumber = phoneNumber;
×
257
  }
×
258

259

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

265
   /**
266
   * The unique identifier (UUID) of the signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.**  >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.**  >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.**  >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.** 
267
   * @return signatoryCode
268
  **/
269
  @ApiModelProperty(value = "The unique identifier (UUID) of the signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.**  >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.**  >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.**  >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.** ")
270
  @JsonProperty(JSON_PROPERTY_SIGNATORY_CODE)
271
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
272

273
  public String getSignatoryCode() {
274
    return signatoryCode;
×
275
  }
276

277

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

284

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

290
   /**
291
   * Your reference for the signatory.
292
   * @return signatoryReference
293
  **/
294
  @ApiModelProperty(value = "Your reference for the signatory.")
295
  @JsonProperty(JSON_PROPERTY_SIGNATORY_REFERENCE)
296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
297

298
  public String getSignatoryReference() {
299
    return signatoryReference;
×
300
  }
301

302

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

309

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

315
   /**
316
   * The URL of the person's website.
317
   * @return webAddress
318
  **/
319
  @ApiModelProperty(value = "The URL of the person's website.")
320
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
321
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
322

323
  public String getWebAddress() {
324
    return webAddress;
×
325
  }
326

327

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

334

335
  /**
336
   * Return true if this SignatoryContact object is equal to o.
337
   */
338
  @Override
339
  public boolean equals(Object o) {
340
    if (this == o) {
×
341
      return true;
×
342
    }
343
    if (o == null || getClass() != o.getClass()) {
×
344
      return false;
×
345
    }
346
    SignatoryContact signatoryContact = (SignatoryContact) o;
×
347
    return Objects.equals(this.address, signatoryContact.address) &&
×
348
        Objects.equals(this.email, signatoryContact.email) &&
×
349
        Objects.equals(this.fullPhoneNumber, signatoryContact.fullPhoneNumber) &&
×
350
        Objects.equals(this.jobTitle, signatoryContact.jobTitle) &&
×
351
        Objects.equals(this.name, signatoryContact.name) &&
×
352
        Objects.equals(this.personalData, signatoryContact.personalData) &&
×
353
        Objects.equals(this.phoneNumber, signatoryContact.phoneNumber) &&
×
354
        Objects.equals(this.signatoryCode, signatoryContact.signatoryCode) &&
×
355
        Objects.equals(this.signatoryReference, signatoryContact.signatoryReference) &&
×
356
        Objects.equals(this.webAddress, signatoryContact.webAddress);
×
357
  }
358

359
  @Override
360
  public int hashCode() {
361
    return Objects.hash(address, email, fullPhoneNumber, jobTitle, name, personalData, phoneNumber, signatoryCode, signatoryReference, webAddress);
×
362
  }
363

364
  @Override
365
  public String toString() {
366
    StringBuilder sb = new StringBuilder();
×
367
    sb.append("class SignatoryContact {\n");
×
368
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
369
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
×
370
    sb.append("    fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
×
371
    sb.append("    jobTitle: ").append(toIndentedString(jobTitle)).append("\n");
×
372
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
373
    sb.append("    personalData: ").append(toIndentedString(personalData)).append("\n");
×
374
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
×
375
    sb.append("    signatoryCode: ").append(toIndentedString(signatoryCode)).append("\n");
×
376
    sb.append("    signatoryReference: ").append(toIndentedString(signatoryReference)).append("\n");
×
377
    sb.append("    webAddress: ").append(toIndentedString(webAddress)).append("\n");
×
378
    sb.append("}");
×
379
    return sb.toString();
×
380
  }
381

382
  /**
383
   * Convert the given object to string with each line indented by 4 spaces
384
   * (except the first line).
385
   */
386
  private String toIndentedString(Object o) {
387
    if (o == null) {
×
388
      return "null";
×
389
    }
390
    return o.toString().replace("\n", "\n    ");
×
391
  }
392

393
/**
394
   * Create an instance of SignatoryContact given an JSON string
395
   *
396
   * @param jsonString JSON string
397
   * @return An instance of SignatoryContact
398
   * @throws JsonProcessingException if the JSON string is invalid with respect to SignatoryContact
399
   */
400
  public static SignatoryContact fromJson(String jsonString) throws JsonProcessingException {
401
    return JSON.getMapper().readValue(jsonString, SignatoryContact.class);
×
402
  }
403
/**
404
  * Convert an instance of SignatoryContact to an JSON string
405
  *
406
  * @return JSON string
407
  */
408
  public String toJson() throws JsonProcessingException {
409
    return JSON.getMapper().writeValueAsString(this);
×
410
  }
411
}
412

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