• 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

0.0
/src/main/java/com/adyen/model/marketpaywebhooks/SignatoryContact.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
 * SignatoryContact
36
 */
37
@JsonPropertyOrder({
38
  SignatoryContact.JSON_PROPERTY_ADDRESS,
39
  SignatoryContact.JSON_PROPERTY_EMAIL,
40
  SignatoryContact.JSON_PROPERTY_FULL_PHONE_NUMBER,
41
  SignatoryContact.JSON_PROPERTY_JOB_TITLE,
42
  SignatoryContact.JSON_PROPERTY_NAME,
43
  SignatoryContact.JSON_PROPERTY_PERSONAL_DATA,
44
  SignatoryContact.JSON_PROPERTY_PHONE_NUMBER,
45
  SignatoryContact.JSON_PROPERTY_SIGNATORY_CODE,
46
  SignatoryContact.JSON_PROPERTY_SIGNATORY_REFERENCE,
47
  SignatoryContact.JSON_PROPERTY_WEB_ADDRESS
48
})
49

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

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

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

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

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

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

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

72
  public static final String JSON_PROPERTY_SIGNATORY_CODE = "signatoryCode";
73
  private String signatoryCode;
74

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

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

81
  public SignatoryContact() { 
×
82
  }
×
83

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

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

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

101

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

108

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

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

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

126

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

133

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

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

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

151

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

158

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

164
   /**
165
   * 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**.
166
   * @return jobTitle
167
  **/
168
  @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**.")
169
  @JsonProperty(JSON_PROPERTY_JOB_TITLE)
170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
171

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

176

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

183

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

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

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

201

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

208

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

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

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

226

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

233

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

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

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

251

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

258

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

264
   /**
265
   * 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.** 
266
   * @return signatoryCode
267
  **/
268
  @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.** ")
269
  @JsonProperty(JSON_PROPERTY_SIGNATORY_CODE)
270
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
271

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

276

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

283

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

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

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

301

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

308

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

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

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

326

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

333

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

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

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

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

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

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