• 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/KYCVerificationResult.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.KYCCheckResult;
21
import com.adyen.model.marketpayaccount.KYCLegalArrangementCheckResult;
22
import com.adyen.model.marketpayaccount.KYCLegalArrangementEntityCheckResult;
23
import com.adyen.model.marketpayaccount.KYCPayoutMethodCheckResult;
24
import com.adyen.model.marketpayaccount.KYCShareholderCheckResult;
25
import com.adyen.model.marketpayaccount.KYCSignatoryCheckResult;
26
import com.adyen.model.marketpayaccount.KYCUltimateParentCompanyCheckResult;
27
import com.fasterxml.jackson.annotation.JsonInclude;
28
import com.fasterxml.jackson.annotation.JsonProperty;
29
import com.fasterxml.jackson.annotation.JsonCreator;
30
import com.fasterxml.jackson.annotation.JsonTypeName;
31
import com.fasterxml.jackson.annotation.JsonValue;
32
import io.swagger.annotations.ApiModel;
33
import io.swagger.annotations.ApiModelProperty;
34
import java.util.ArrayList;
35
import java.util.List;
36
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
37
import com.fasterxml.jackson.core.JsonProcessingException;
38

39

40
/**
41
 * KYCVerificationResult
42
 */
43
@JsonPropertyOrder({
44
  KYCVerificationResult.JSON_PROPERTY_ACCOUNT_HOLDER,
45
  KYCVerificationResult.JSON_PROPERTY_LEGAL_ARRANGEMENTS,
46
  KYCVerificationResult.JSON_PROPERTY_LEGAL_ARRANGEMENTS_ENTITIES,
47
  KYCVerificationResult.JSON_PROPERTY_PAYOUT_METHODS,
48
  KYCVerificationResult.JSON_PROPERTY_SHAREHOLDERS,
49
  KYCVerificationResult.JSON_PROPERTY_SIGNATORIES,
50
  KYCVerificationResult.JSON_PROPERTY_ULTIMATE_PARENT_COMPANY
51
})
52

53
public class KYCVerificationResult {
54
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder";
55
  private KYCCheckResult accountHolder;
56

57
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENTS = "legalArrangements";
58
  private List<KYCLegalArrangementCheckResult> legalArrangements = null;
×
59

60
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENTS_ENTITIES = "legalArrangementsEntities";
61
  private List<KYCLegalArrangementEntityCheckResult> legalArrangementsEntities = null;
×
62

63
  public static final String JSON_PROPERTY_PAYOUT_METHODS = "payoutMethods";
64
  private List<KYCPayoutMethodCheckResult> payoutMethods = null;
×
65

66
  public static final String JSON_PROPERTY_SHAREHOLDERS = "shareholders";
67
  private List<KYCShareholderCheckResult> shareholders = null;
×
68

69
  public static final String JSON_PROPERTY_SIGNATORIES = "signatories";
70
  private List<KYCSignatoryCheckResult> signatories = null;
×
71

72
  public static final String JSON_PROPERTY_ULTIMATE_PARENT_COMPANY = "ultimateParentCompany";
73
  private List<KYCUltimateParentCompanyCheckResult> ultimateParentCompany = null;
×
74

75
  public KYCVerificationResult() { 
×
76
  }
×
77

78
  public KYCVerificationResult accountHolder(KYCCheckResult accountHolder) {
79
    this.accountHolder = accountHolder;
×
80
    return this;
×
81
  }
82

83
   /**
84
   * Get accountHolder
85
   * @return accountHolder
86
  **/
87
  @ApiModelProperty(value = "")
88
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90

91
  public KYCCheckResult getAccountHolder() {
92
    return accountHolder;
×
93
  }
94

95

96
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98
  public void setAccountHolder(KYCCheckResult accountHolder) {
99
    this.accountHolder = accountHolder;
×
100
  }
×
101

102

103
  public KYCVerificationResult legalArrangements(List<KYCLegalArrangementCheckResult> legalArrangements) {
104
    this.legalArrangements = legalArrangements;
×
105
    return this;
×
106
  }
107

108
  public KYCVerificationResult addLegalArrangementsItem(KYCLegalArrangementCheckResult legalArrangementsItem) {
109
    if (this.legalArrangements == null) {
×
110
      this.legalArrangements = new ArrayList<>();
×
111
    }
112
    this.legalArrangements.add(legalArrangementsItem);
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The results of the checks on the legal arrangements.
118
   * @return legalArrangements
119
  **/
120
  @ApiModelProperty(value = "The results of the checks on the legal arrangements.")
121
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENTS)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public List<KYCLegalArrangementCheckResult> getLegalArrangements() {
125
    return legalArrangements;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENTS)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setLegalArrangements(List<KYCLegalArrangementCheckResult> legalArrangements) {
132
    this.legalArrangements = legalArrangements;
×
133
  }
×
134

135

136
  public KYCVerificationResult legalArrangementsEntities(List<KYCLegalArrangementEntityCheckResult> legalArrangementsEntities) {
137
    this.legalArrangementsEntities = legalArrangementsEntities;
×
138
    return this;
×
139
  }
140

141
  public KYCVerificationResult addLegalArrangementsEntitiesItem(KYCLegalArrangementEntityCheckResult legalArrangementsEntitiesItem) {
142
    if (this.legalArrangementsEntities == null) {
×
143
      this.legalArrangementsEntities = new ArrayList<>();
×
144
    }
145
    this.legalArrangementsEntities.add(legalArrangementsEntitiesItem);
×
146
    return this;
×
147
  }
148

149
   /**
150
   * The results of the checks on the legal arrangement entities.
151
   * @return legalArrangementsEntities
152
  **/
153
  @ApiModelProperty(value = "The results of the checks on the legal arrangement entities.")
154
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENTS_ENTITIES)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156

157
  public List<KYCLegalArrangementEntityCheckResult> getLegalArrangementsEntities() {
158
    return legalArrangementsEntities;
×
159
  }
160

161

162
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENTS_ENTITIES)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setLegalArrangementsEntities(List<KYCLegalArrangementEntityCheckResult> legalArrangementsEntities) {
165
    this.legalArrangementsEntities = legalArrangementsEntities;
×
166
  }
×
167

168

169
  public KYCVerificationResult payoutMethods(List<KYCPayoutMethodCheckResult> payoutMethods) {
170
    this.payoutMethods = payoutMethods;
×
171
    return this;
×
172
  }
173

174
  public KYCVerificationResult addPayoutMethodsItem(KYCPayoutMethodCheckResult payoutMethodsItem) {
175
    if (this.payoutMethods == null) {
×
176
      this.payoutMethods = new ArrayList<>();
×
177
    }
178
    this.payoutMethods.add(payoutMethodsItem);
×
179
    return this;
×
180
  }
181

182
   /**
183
   * The results of the checks on the payout methods.
184
   * @return payoutMethods
185
  **/
186
  @ApiModelProperty(value = "The results of the checks on the payout methods.")
187
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHODS)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189

190
  public List<KYCPayoutMethodCheckResult> getPayoutMethods() {
191
    return payoutMethods;
×
192
  }
193

194

195
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHODS)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197
  public void setPayoutMethods(List<KYCPayoutMethodCheckResult> payoutMethods) {
198
    this.payoutMethods = payoutMethods;
×
199
  }
×
200

201

202
  public KYCVerificationResult shareholders(List<KYCShareholderCheckResult> shareholders) {
203
    this.shareholders = shareholders;
×
204
    return this;
×
205
  }
206

207
  public KYCVerificationResult addShareholdersItem(KYCShareholderCheckResult shareholdersItem) {
208
    if (this.shareholders == null) {
×
209
      this.shareholders = new ArrayList<>();
×
210
    }
211
    this.shareholders.add(shareholdersItem);
×
212
    return this;
×
213
  }
214

215
   /**
216
   * The results of the checks on the shareholders.
217
   * @return shareholders
218
  **/
219
  @ApiModelProperty(value = "The results of the checks on the shareholders.")
220
  @JsonProperty(JSON_PROPERTY_SHAREHOLDERS)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222

223
  public List<KYCShareholderCheckResult> getShareholders() {
224
    return shareholders;
×
225
  }
226

227

228
  @JsonProperty(JSON_PROPERTY_SHAREHOLDERS)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230
  public void setShareholders(List<KYCShareholderCheckResult> shareholders) {
231
    this.shareholders = shareholders;
×
232
  }
×
233

234

235
  public KYCVerificationResult signatories(List<KYCSignatoryCheckResult> signatories) {
236
    this.signatories = signatories;
×
237
    return this;
×
238
  }
239

240
  public KYCVerificationResult addSignatoriesItem(KYCSignatoryCheckResult signatoriesItem) {
241
    if (this.signatories == null) {
×
242
      this.signatories = new ArrayList<>();
×
243
    }
244
    this.signatories.add(signatoriesItem);
×
245
    return this;
×
246
  }
247

248
   /**
249
   * The results of the checks on the signatories.
250
   * @return signatories
251
  **/
252
  @ApiModelProperty(value = "The results of the checks on the signatories.")
253
  @JsonProperty(JSON_PROPERTY_SIGNATORIES)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255

256
  public List<KYCSignatoryCheckResult> getSignatories() {
257
    return signatories;
×
258
  }
259

260

261
  @JsonProperty(JSON_PROPERTY_SIGNATORIES)
262
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
263
  public void setSignatories(List<KYCSignatoryCheckResult> signatories) {
264
    this.signatories = signatories;
×
265
  }
×
266

267

268
  public KYCVerificationResult ultimateParentCompany(List<KYCUltimateParentCompanyCheckResult> ultimateParentCompany) {
269
    this.ultimateParentCompany = ultimateParentCompany;
×
270
    return this;
×
271
  }
272

273
  public KYCVerificationResult addUltimateParentCompanyItem(KYCUltimateParentCompanyCheckResult ultimateParentCompanyItem) {
274
    if (this.ultimateParentCompany == null) {
×
275
      this.ultimateParentCompany = new ArrayList<>();
×
276
    }
277
    this.ultimateParentCompany.add(ultimateParentCompanyItem);
×
278
    return this;
×
279
  }
280

281
   /**
282
   * The result of the check on the Ultimate Parent Company.
283
   * @return ultimateParentCompany
284
  **/
285
  @ApiModelProperty(value = "The result of the check on the Ultimate Parent Company.")
286
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARENT_COMPANY)
287
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
288

289
  public List<KYCUltimateParentCompanyCheckResult> getUltimateParentCompany() {
290
    return ultimateParentCompany;
×
291
  }
292

293

294
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARENT_COMPANY)
295
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
296
  public void setUltimateParentCompany(List<KYCUltimateParentCompanyCheckResult> ultimateParentCompany) {
297
    this.ultimateParentCompany = ultimateParentCompany;
×
298
  }
×
299

300

301
  /**
302
   * Return true if this KYCVerificationResult object is equal to o.
303
   */
304
  @Override
305
  public boolean equals(Object o) {
306
    if (this == o) {
×
307
      return true;
×
308
    }
309
    if (o == null || getClass() != o.getClass()) {
×
310
      return false;
×
311
    }
312
    KYCVerificationResult kyCVerificationResult = (KYCVerificationResult) o;
×
313
    return Objects.equals(this.accountHolder, kyCVerificationResult.accountHolder) &&
×
314
        Objects.equals(this.legalArrangements, kyCVerificationResult.legalArrangements) &&
×
315
        Objects.equals(this.legalArrangementsEntities, kyCVerificationResult.legalArrangementsEntities) &&
×
316
        Objects.equals(this.payoutMethods, kyCVerificationResult.payoutMethods) &&
×
317
        Objects.equals(this.shareholders, kyCVerificationResult.shareholders) &&
×
318
        Objects.equals(this.signatories, kyCVerificationResult.signatories) &&
×
319
        Objects.equals(this.ultimateParentCompany, kyCVerificationResult.ultimateParentCompany);
×
320
  }
321

322
  @Override
323
  public int hashCode() {
324
    return Objects.hash(accountHolder, legalArrangements, legalArrangementsEntities, payoutMethods, shareholders, signatories, ultimateParentCompany);
×
325
  }
326

327
  @Override
328
  public String toString() {
329
    StringBuilder sb = new StringBuilder();
×
330
    sb.append("class KYCVerificationResult {\n");
×
331
    sb.append("    accountHolder: ").append(toIndentedString(accountHolder)).append("\n");
×
332
    sb.append("    legalArrangements: ").append(toIndentedString(legalArrangements)).append("\n");
×
333
    sb.append("    legalArrangementsEntities: ").append(toIndentedString(legalArrangementsEntities)).append("\n");
×
334
    sb.append("    payoutMethods: ").append(toIndentedString(payoutMethods)).append("\n");
×
335
    sb.append("    shareholders: ").append(toIndentedString(shareholders)).append("\n");
×
336
    sb.append("    signatories: ").append(toIndentedString(signatories)).append("\n");
×
337
    sb.append("    ultimateParentCompany: ").append(toIndentedString(ultimateParentCompany)).append("\n");
×
338
    sb.append("}");
×
339
    return sb.toString();
×
340
  }
341

342
  /**
343
   * Convert the given object to string with each line indented by 4 spaces
344
   * (except the first line).
345
   */
346
  private String toIndentedString(Object o) {
347
    if (o == null) {
×
348
      return "null";
×
349
    }
350
    return o.toString().replace("\n", "\n    ");
×
351
  }
352

353
/**
354
   * Create an instance of KYCVerificationResult given an JSON string
355
   *
356
   * @param jsonString JSON string
357
   * @return An instance of KYCVerificationResult
358
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCVerificationResult
359
   */
360
  public static KYCVerificationResult fromJson(String jsonString) throws JsonProcessingException {
361
    return JSON.getMapper().readValue(jsonString, KYCVerificationResult.class);
×
362
  }
363
/**
364
  * Convert an instance of KYCVerificationResult to an JSON string
365
  *
366
  * @return JSON string
367
  */
368
  public String toJson() throws JsonProcessingException {
369
    return JSON.getMapper().writeValueAsString(this);
×
370
  }
371
}
372

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

© 2026 Coveralls, Inc