• 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/KYCCheckResult.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.KYCCheckStatusData;
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
 * KYCCheckResult
36
 */
37
@JsonPropertyOrder({
38
  KYCCheckResult.JSON_PROPERTY_CHECKS
39
})
40

41
public class KYCCheckResult {
42
  public static final String JSON_PROPERTY_CHECKS = "checks";
43
  private List<KYCCheckStatusData> checks = null;
×
44

45
  public KYCCheckResult() { 
×
46
  }
×
47

48
  public KYCCheckResult checks(List<KYCCheckStatusData> checks) {
49
    this.checks = checks;
×
50
    return this;
×
51
  }
52

53
  public KYCCheckResult addChecksItem(KYCCheckStatusData checksItem) {
54
    if (this.checks == null) {
×
55
      this.checks = new ArrayList<>();
×
56
    }
57
    this.checks.add(checksItem);
×
58
    return this;
×
59
  }
60

61
   /**
62
   * A list of the checks and their statuses.
63
   * @return checks
64
  **/
65
  @ApiModelProperty(value = "A list of the checks and their statuses.")
66
  @JsonProperty(JSON_PROPERTY_CHECKS)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68

69
  public List<KYCCheckStatusData> getChecks() {
70
    return checks;
×
71
  }
72

73

74
  @JsonProperty(JSON_PROPERTY_CHECKS)
75
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76
  public void setChecks(List<KYCCheckStatusData> checks) {
77
    this.checks = checks;
×
78
  }
×
79

80

81
  /**
82
   * Return true if this KYCCheckResult object is equal to o.
83
   */
84
  @Override
85
  public boolean equals(Object o) {
86
    if (this == o) {
×
87
      return true;
×
88
    }
89
    if (o == null || getClass() != o.getClass()) {
×
90
      return false;
×
91
    }
92
    KYCCheckResult kyCCheckResult = (KYCCheckResult) o;
×
93
    return Objects.equals(this.checks, kyCCheckResult.checks);
×
94
  }
95

96
  @Override
97
  public int hashCode() {
98
    return Objects.hash(checks);
×
99
  }
100

101
  @Override
102
  public String toString() {
103
    StringBuilder sb = new StringBuilder();
×
104
    sb.append("class KYCCheckResult {\n");
×
105
    sb.append("    checks: ").append(toIndentedString(checks)).append("\n");
×
106
    sb.append("}");
×
107
    return sb.toString();
×
108
  }
109

110
  /**
111
   * Convert the given object to string with each line indented by 4 spaces
112
   * (except the first line).
113
   */
114
  private String toIndentedString(Object o) {
115
    if (o == null) {
×
116
      return "null";
×
117
    }
118
    return o.toString().replace("\n", "\n    ");
×
119
  }
120

121
/**
122
   * Create an instance of KYCCheckResult given an JSON string
123
   *
124
   * @param jsonString JSON string
125
   * @return An instance of KYCCheckResult
126
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckResult
127
   */
128
  public static KYCCheckResult fromJson(String jsonString) throws JsonProcessingException {
129
    return JSON.getMapper().readValue(jsonString, KYCCheckResult.class);
×
130
  }
131
/**
132
  * Convert an instance of KYCCheckResult to an JSON string
133
  *
134
  * @return JSON string
135
  */
136
  public String toJson() throws JsonProcessingException {
137
    return JSON.getMapper().writeValueAsString(this);
×
138
  }
139
}
140

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