• 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/KYCShareholderCheckResult.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
 * KYCShareholderCheckResult
36
 */
37
@JsonPropertyOrder({
38
  KYCShareholderCheckResult.JSON_PROPERTY_CHECKS,
39
  KYCShareholderCheckResult.JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE,
40
  KYCShareholderCheckResult.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE,
41
  KYCShareholderCheckResult.JSON_PROPERTY_SHAREHOLDER_CODE
42
})
43

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

48
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE = "legalArrangementCode";
49
  private String legalArrangementCode;
50

51
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE = "legalArrangementEntityCode";
52
  private String legalArrangementEntityCode;
53

54
  public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
55
  private String shareholderCode;
56

57
  public KYCShareholderCheckResult() { 
×
58
  }
×
59

60
  public KYCShareholderCheckResult checks(List<KYCCheckStatusData> checks) {
61
    this.checks = checks;
×
62
    return this;
×
63
  }
64

65
  public KYCShareholderCheckResult addChecksItem(KYCCheckStatusData checksItem) {
66
    if (this.checks == null) {
×
67
      this.checks = new ArrayList<>();
×
68
    }
69
    this.checks.add(checksItem);
×
70
    return this;
×
71
  }
72

73
   /**
74
   * A list of the checks and their statuses.
75
   * @return checks
76
  **/
77
  @ApiModelProperty(value = "A list of the checks and their statuses.")
78
  @JsonProperty(JSON_PROPERTY_CHECKS)
79
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
80

81
  public List<KYCCheckStatusData> getChecks() {
82
    return checks;
×
83
  }
84

85

86
  @JsonProperty(JSON_PROPERTY_CHECKS)
87
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88
  public void setChecks(List<KYCCheckStatusData> checks) {
89
    this.checks = checks;
×
90
  }
×
91

92

93
  public KYCShareholderCheckResult legalArrangementCode(String legalArrangementCode) {
94
    this.legalArrangementCode = legalArrangementCode;
×
95
    return this;
×
96
  }
97

98
   /**
99
   * The unique ID of the legal arrangement to which the shareholder belongs, if applicable.
100
   * @return legalArrangementCode
101
  **/
102
  @ApiModelProperty(value = "The unique ID of the legal arrangement to which the shareholder belongs, if applicable.")
103
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105

106
  public String getLegalArrangementCode() {
107
    return legalArrangementCode;
×
108
  }
109

110

111
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE)
112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113
  public void setLegalArrangementCode(String legalArrangementCode) {
114
    this.legalArrangementCode = legalArrangementCode;
×
115
  }
×
116

117

118
  public KYCShareholderCheckResult legalArrangementEntityCode(String legalArrangementEntityCode) {
119
    this.legalArrangementEntityCode = legalArrangementEntityCode;
×
120
    return this;
×
121
  }
122

123
   /**
124
   * The unique ID of the legal arrangement entity to which the shareholder belongs, if applicable.
125
   * @return legalArrangementEntityCode
126
  **/
127
  @ApiModelProperty(value = "The unique ID of the legal arrangement entity to which the shareholder belongs, if applicable.")
128
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130

131
  public String getLegalArrangementEntityCode() {
132
    return legalArrangementEntityCode;
×
133
  }
134

135

136
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODE)
137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138
  public void setLegalArrangementEntityCode(String legalArrangementEntityCode) {
139
    this.legalArrangementEntityCode = legalArrangementEntityCode;
×
140
  }
×
141

142

143
  public KYCShareholderCheckResult shareholderCode(String shareholderCode) {
144
    this.shareholderCode = shareholderCode;
×
145
    return this;
×
146
  }
147

148
   /**
149
   * The code of the shareholder to which the check applies.
150
   * @return shareholderCode
151
  **/
152
  @ApiModelProperty(value = "The code of the shareholder to which the check applies.")
153
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155

156
  public String getShareholderCode() {
157
    return shareholderCode;
×
158
  }
159

160

161
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163
  public void setShareholderCode(String shareholderCode) {
164
    this.shareholderCode = shareholderCode;
×
165
  }
×
166

167

168
  /**
169
   * Return true if this KYCShareholderCheckResult object is equal to o.
170
   */
171
  @Override
172
  public boolean equals(Object o) {
173
    if (this == o) {
×
174
      return true;
×
175
    }
176
    if (o == null || getClass() != o.getClass()) {
×
177
      return false;
×
178
    }
179
    KYCShareholderCheckResult kyCShareholderCheckResult = (KYCShareholderCheckResult) o;
×
180
    return Objects.equals(this.checks, kyCShareholderCheckResult.checks) &&
×
181
        Objects.equals(this.legalArrangementCode, kyCShareholderCheckResult.legalArrangementCode) &&
×
182
        Objects.equals(this.legalArrangementEntityCode, kyCShareholderCheckResult.legalArrangementEntityCode) &&
×
183
        Objects.equals(this.shareholderCode, kyCShareholderCheckResult.shareholderCode);
×
184
  }
185

186
  @Override
187
  public int hashCode() {
188
    return Objects.hash(checks, legalArrangementCode, legalArrangementEntityCode, shareholderCode);
×
189
  }
190

191
  @Override
192
  public String toString() {
193
    StringBuilder sb = new StringBuilder();
×
194
    sb.append("class KYCShareholderCheckResult {\n");
×
195
    sb.append("    checks: ").append(toIndentedString(checks)).append("\n");
×
196
    sb.append("    legalArrangementCode: ").append(toIndentedString(legalArrangementCode)).append("\n");
×
197
    sb.append("    legalArrangementEntityCode: ").append(toIndentedString(legalArrangementEntityCode)).append("\n");
×
198
    sb.append("    shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
×
199
    sb.append("}");
×
200
    return sb.toString();
×
201
  }
202

203
  /**
204
   * Convert the given object to string with each line indented by 4 spaces
205
   * (except the first line).
206
   */
207
  private String toIndentedString(Object o) {
208
    if (o == null) {
×
209
      return "null";
×
210
    }
211
    return o.toString().replace("\n", "\n    ");
×
212
  }
213

214
/**
215
   * Create an instance of KYCShareholderCheckResult given an JSON string
216
   *
217
   * @param jsonString JSON string
218
   * @return An instance of KYCShareholderCheckResult
219
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCShareholderCheckResult
220
   */
221
  public static KYCShareholderCheckResult fromJson(String jsonString) throws JsonProcessingException {
222
    return JSON.getMapper().readValue(jsonString, KYCShareholderCheckResult.class);
×
223
  }
224
/**
225
  * Convert an instance of KYCShareholderCheckResult to an JSON string
226
  *
227
  * @return JSON string
228
  */
229
  public String toJson() throws JsonProcessingException {
230
    return JSON.getMapper().writeValueAsString(this);
×
231
  }
232
}
233

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