• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #2676

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/KYCCheckStatusData.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.KYCCheckSummary;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import java.util.ArrayList;
29
import java.util.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * KYCCheckStatusData
36
 */
37
@JsonPropertyOrder({
38
  KYCCheckStatusData.JSON_PROPERTY_REQUIRED_FIELDS,
39
  KYCCheckStatusData.JSON_PROPERTY_STATUS,
40
  KYCCheckStatusData.JSON_PROPERTY_SUMMARY,
41
  KYCCheckStatusData.JSON_PROPERTY_TYPE
42
})
43

44
public class KYCCheckStatusData {
45
  public static final String JSON_PROPERTY_REQUIRED_FIELDS = "requiredFields";
46
  private List<String> requiredFields = null;
×
47

48
  /**
49
   * The status of the check.  Possible values: **AWAITING_DATA** , **DATA_PROVIDED**, **FAILED**, **INVALID_DATA**, **PASSED**, **PENDING**, **RETRY_LIMIT_REACHED**.
50
   */
51
  public enum StatusEnum {
×
52
    AWAITING_DATA("AWAITING_DATA"),
×
53
    
54
    DATA_PROVIDED("DATA_PROVIDED"),
×
55
    
56
    FAILED("FAILED"),
×
57
    
58
    INVALID_DATA("INVALID_DATA"),
×
59
    
60
    PASSED("PASSED"),
×
61
    
62
    PENDING("PENDING"),
×
63
    
64
    PENDING_REVIEW("PENDING_REVIEW"),
×
65
    
66
    RETRY_LIMIT_REACHED("RETRY_LIMIT_REACHED"),
×
67
    
68
    UNCHECKED("UNCHECKED");
×
69

70
    private String value;
71

72
    StatusEnum(String value) {
×
73
      this.value = value;
×
74
    }
×
75

76
    @JsonValue
77
    public String getValue() {
78
      return value;
×
79
    }
80

81
    @Override
82
    public String toString() {
83
      return String.valueOf(value);
×
84
    }
85

86
    @JsonCreator
87
    public static StatusEnum fromValue(String value) {
88
      for (StatusEnum b : StatusEnum.values()) {
×
89
        if (b.value.equals(value)) {
×
90
          return b;
×
91
        }
92
      }
93
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
94
    }
95
  }
96

97
  public static final String JSON_PROPERTY_STATUS = "status";
98
  private StatusEnum status;
99

100
  public static final String JSON_PROPERTY_SUMMARY = "summary";
101
  private KYCCheckSummary summary;
102

103
  /**
104
   * The type of check.  Possible values:   * **BANK_ACCOUNT_VERIFICATION**: Used in v5 and earlier. Replaced by **PAYOUT_METHOD_VERIFICATION** in v6 and later.   * **COMPANY_VERIFICATION**    * **CARD_VERIFICATION**  * **IDENTITY_VERIFICATION**  * **LEGAL_ARRANGEMENT_VERIFICATION**  * **NONPROFIT_VERIFICATION**   * **PASSPORT_VERIFICATION**  * **PAYOUT_METHOD_VERIFICATION**: Used in v6 and later.  * **PCI_VERIFICATION**
105
   */
106
  public enum TypeEnum {
×
107
    BANK_ACCOUNT_VERIFICATION("BANK_ACCOUNT_VERIFICATION"),
×
108
    
109
    CARD_VERIFICATION("CARD_VERIFICATION"),
×
110
    
111
    COMPANY_VERIFICATION("COMPANY_VERIFICATION"),
×
112
    
113
    IDENTITY_VERIFICATION("IDENTITY_VERIFICATION"),
×
114
    
115
    LEGAL_ARRANGEMENT_VERIFICATION("LEGAL_ARRANGEMENT_VERIFICATION"),
×
116
    
117
    NONPROFIT_VERIFICATION("NONPROFIT_VERIFICATION"),
×
118
    
119
    PASSPORT_VERIFICATION("PASSPORT_VERIFICATION"),
×
120
    
121
    PAYOUT_METHOD_VERIFICATION("PAYOUT_METHOD_VERIFICATION"),
×
122
    
123
    PCI_VERIFICATION("PCI_VERIFICATION");
×
124

125
    private String value;
126

127
    TypeEnum(String value) {
×
128
      this.value = value;
×
129
    }
×
130

131
    @JsonValue
132
    public String getValue() {
133
      return value;
×
134
    }
135

136
    @Override
137
    public String toString() {
138
      return String.valueOf(value);
×
139
    }
140

141
    @JsonCreator
142
    public static TypeEnum fromValue(String value) {
143
      for (TypeEnum b : TypeEnum.values()) {
×
144
        if (b.value.equals(value)) {
×
145
          return b;
×
146
        }
147
      }
148
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
149
    }
150
  }
151

152
  public static final String JSON_PROPERTY_TYPE = "type";
153
  private TypeEnum type;
154

155
  public KYCCheckStatusData() { 
×
156
  }
×
157

158
  public KYCCheckStatusData requiredFields(List<String> requiredFields) {
159
    this.requiredFields = requiredFields;
×
160
    return this;
×
161
  }
162

163
  public KYCCheckStatusData addRequiredFieldsItem(String requiredFieldsItem) {
164
    if (this.requiredFields == null) {
×
165
      this.requiredFields = new ArrayList<>();
×
166
    }
167
    this.requiredFields.add(requiredFieldsItem);
×
168
    return this;
×
169
  }
170

171
   /**
172
   * A list of the fields required for execution of the check.
173
   * @return requiredFields
174
  **/
175
  @ApiModelProperty(value = "A list of the fields required for execution of the check.")
176
  @JsonProperty(JSON_PROPERTY_REQUIRED_FIELDS)
177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
178

179
  public List<String> getRequiredFields() {
180
    return requiredFields;
×
181
  }
182

183

184
  @JsonProperty(JSON_PROPERTY_REQUIRED_FIELDS)
185
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
186
  public void setRequiredFields(List<String> requiredFields) {
187
    this.requiredFields = requiredFields;
×
188
  }
×
189

190

191
  public KYCCheckStatusData status(StatusEnum status) {
192
    this.status = status;
×
193
    return this;
×
194
  }
195

196
   /**
197
   * The status of the check.  Possible values: **AWAITING_DATA** , **DATA_PROVIDED**, **FAILED**, **INVALID_DATA**, **PASSED**, **PENDING**, **RETRY_LIMIT_REACHED**.
198
   * @return status
199
  **/
200
  @ApiModelProperty(required = true, value = "The status of the check.  Possible values: **AWAITING_DATA** , **DATA_PROVIDED**, **FAILED**, **INVALID_DATA**, **PASSED**, **PENDING**, **RETRY_LIMIT_REACHED**.")
201
  @JsonProperty(JSON_PROPERTY_STATUS)
202
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
203

204
  public StatusEnum getStatus() {
205
    return status;
×
206
  }
207

208

209
  @JsonProperty(JSON_PROPERTY_STATUS)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211
  public void setStatus(StatusEnum status) {
212
    this.status = status;
×
213
  }
×
214

215

216
  public KYCCheckStatusData summary(KYCCheckSummary summary) {
217
    this.summary = summary;
×
218
    return this;
×
219
  }
220

221
   /**
222
   * Get summary
223
   * @return summary
224
  **/
225
  @ApiModelProperty(value = "")
226
  @JsonProperty(JSON_PROPERTY_SUMMARY)
227
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
228

229
  public KYCCheckSummary getSummary() {
230
    return summary;
×
231
  }
232

233

234
  @JsonProperty(JSON_PROPERTY_SUMMARY)
235
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
236
  public void setSummary(KYCCheckSummary summary) {
237
    this.summary = summary;
×
238
  }
×
239

240

241
  public KYCCheckStatusData type(TypeEnum type) {
242
    this.type = type;
×
243
    return this;
×
244
  }
245

246
   /**
247
   * The type of check.  Possible values:   * **BANK_ACCOUNT_VERIFICATION**: Used in v5 and earlier. Replaced by **PAYOUT_METHOD_VERIFICATION** in v6 and later.   * **COMPANY_VERIFICATION**    * **CARD_VERIFICATION**  * **IDENTITY_VERIFICATION**  * **LEGAL_ARRANGEMENT_VERIFICATION**  * **NONPROFIT_VERIFICATION**   * **PASSPORT_VERIFICATION**  * **PAYOUT_METHOD_VERIFICATION**: Used in v6 and later.  * **PCI_VERIFICATION**
248
   * @return type
249
  **/
250
  @ApiModelProperty(required = true, value = "The type of check.  Possible values:   * **BANK_ACCOUNT_VERIFICATION**: Used in v5 and earlier. Replaced by **PAYOUT_METHOD_VERIFICATION** in v6 and later.   * **COMPANY_VERIFICATION**    * **CARD_VERIFICATION**  * **IDENTITY_VERIFICATION**  * **LEGAL_ARRANGEMENT_VERIFICATION**  * **NONPROFIT_VERIFICATION**   * **PASSPORT_VERIFICATION**  * **PAYOUT_METHOD_VERIFICATION**: Used in v6 and later.  * **PCI_VERIFICATION**")
251
  @JsonProperty(JSON_PROPERTY_TYPE)
252
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
253

254
  public TypeEnum getType() {
255
    return type;
×
256
  }
257

258

259
  @JsonProperty(JSON_PROPERTY_TYPE)
260
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
261
  public void setType(TypeEnum type) {
262
    this.type = type;
×
263
  }
×
264

265

266
  /**
267
   * Return true if this KYCCheckStatusData object is equal to o.
268
   */
269
  @Override
270
  public boolean equals(Object o) {
271
    if (this == o) {
×
272
      return true;
×
273
    }
274
    if (o == null || getClass() != o.getClass()) {
×
275
      return false;
×
276
    }
277
    KYCCheckStatusData kyCCheckStatusData = (KYCCheckStatusData) o;
×
278
    return Objects.equals(this.requiredFields, kyCCheckStatusData.requiredFields) &&
×
279
        Objects.equals(this.status, kyCCheckStatusData.status) &&
×
280
        Objects.equals(this.summary, kyCCheckStatusData.summary) &&
×
281
        Objects.equals(this.type, kyCCheckStatusData.type);
×
282
  }
283

284
  @Override
285
  public int hashCode() {
286
    return Objects.hash(requiredFields, status, summary, type);
×
287
  }
288

289
  @Override
290
  public String toString() {
291
    StringBuilder sb = new StringBuilder();
×
292
    sb.append("class KYCCheckStatusData {\n");
×
293
    sb.append("    requiredFields: ").append(toIndentedString(requiredFields)).append("\n");
×
294
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
295
    sb.append("    summary: ").append(toIndentedString(summary)).append("\n");
×
296
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
297
    sb.append("}");
×
298
    return sb.toString();
×
299
  }
300

301
  /**
302
   * Convert the given object to string with each line indented by 4 spaces
303
   * (except the first line).
304
   */
305
  private String toIndentedString(Object o) {
306
    if (o == null) {
×
307
      return "null";
×
308
    }
309
    return o.toString().replace("\n", "\n    ");
×
310
  }
311

312
/**
313
   * Create an instance of KYCCheckStatusData given an JSON string
314
   *
315
   * @param jsonString JSON string
316
   * @return An instance of KYCCheckStatusData
317
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckStatusData
318
   */
319
  public static KYCCheckStatusData fromJson(String jsonString) throws JsonProcessingException {
320
    return JSON.getMapper().readValue(jsonString, KYCCheckStatusData.class);
×
321
  }
322
/**
323
  * Convert an instance of KYCCheckStatusData to an JSON string
324
  *
325
  * @return JSON string
326
  */
327
  public String toJson() throws JsonProcessingException {
328
    return JSON.getMapper().writeValueAsString(this);
×
329
  }
330
}
331

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