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

30

31
/**
32
 * KYCCheckSummary
33
 */
34
@JsonPropertyOrder({
35
  KYCCheckSummary.JSON_PROPERTY_KYC_CHECK_CODE,
36
  KYCCheckSummary.JSON_PROPERTY_KYC_CHECK_DESCRIPTION
37
})
38

39
public class KYCCheckSummary {
40
  public static final String JSON_PROPERTY_KYC_CHECK_CODE = "kycCheckCode";
41
  private Integer kycCheckCode;
42

43
  public static final String JSON_PROPERTY_KYC_CHECK_DESCRIPTION = "kycCheckDescription";
44
  private String kycCheckDescription;
45

46
  public KYCCheckSummary() { 
×
47
  }
×
48

49
  public KYCCheckSummary kycCheckCode(Integer kycCheckCode) {
50
    this.kycCheckCode = kycCheckCode;
×
51
    return this;
×
52
  }
53

54
   /**
55
   * The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/verification-codes).
56
   * @return kycCheckCode
57
  **/
58
  @ApiModelProperty(value = "The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/verification-codes).")
59
  @JsonProperty(JSON_PROPERTY_KYC_CHECK_CODE)
60
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61

62
  public Integer getKycCheckCode() {
63
    return kycCheckCode;
×
64
  }
65

66

67
  @JsonProperty(JSON_PROPERTY_KYC_CHECK_CODE)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setKycCheckCode(Integer kycCheckCode) {
70
    this.kycCheckCode = kycCheckCode;
×
71
  }
×
72

73

74
  public KYCCheckSummary kycCheckDescription(String kycCheckDescription) {
75
    this.kycCheckDescription = kycCheckDescription;
×
76
    return this;
×
77
  }
78

79
   /**
80
   * A description of the check.
81
   * @return kycCheckDescription
82
  **/
83
  @ApiModelProperty(value = "A description of the check.")
84
  @JsonProperty(JSON_PROPERTY_KYC_CHECK_DESCRIPTION)
85
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86

87
  public String getKycCheckDescription() {
88
    return kycCheckDescription;
×
89
  }
90

91

92
  @JsonProperty(JSON_PROPERTY_KYC_CHECK_DESCRIPTION)
93
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94
  public void setKycCheckDescription(String kycCheckDescription) {
95
    this.kycCheckDescription = kycCheckDescription;
×
96
  }
×
97

98

99
  /**
100
   * Return true if this KYCCheckSummary object is equal to o.
101
   */
102
  @Override
103
  public boolean equals(Object o) {
104
    if (this == o) {
×
105
      return true;
×
106
    }
107
    if (o == null || getClass() != o.getClass()) {
×
108
      return false;
×
109
    }
110
    KYCCheckSummary kyCCheckSummary = (KYCCheckSummary) o;
×
111
    return Objects.equals(this.kycCheckCode, kyCCheckSummary.kycCheckCode) &&
×
112
        Objects.equals(this.kycCheckDescription, kyCCheckSummary.kycCheckDescription);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(kycCheckCode, kycCheckDescription);
×
118
  }
119

120
  @Override
121
  public String toString() {
122
    StringBuilder sb = new StringBuilder();
×
123
    sb.append("class KYCCheckSummary {\n");
×
124
    sb.append("    kycCheckCode: ").append(toIndentedString(kycCheckCode)).append("\n");
×
125
    sb.append("    kycCheckDescription: ").append(toIndentedString(kycCheckDescription)).append("\n");
×
126
    sb.append("}");
×
127
    return sb.toString();
×
128
  }
129

130
  /**
131
   * Convert the given object to string with each line indented by 4 spaces
132
   * (except the first line).
133
   */
134
  private String toIndentedString(Object o) {
135
    if (o == null) {
×
136
      return "null";
×
137
    }
138
    return o.toString().replace("\n", "\n    ");
×
139
  }
140

141
/**
142
   * Create an instance of KYCCheckSummary given an JSON string
143
   *
144
   * @param jsonString JSON string
145
   * @return An instance of KYCCheckSummary
146
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckSummary
147
   */
148
  public static KYCCheckSummary fromJson(String jsonString) throws JsonProcessingException {
149
    return JSON.getMapper().readValue(jsonString, KYCCheckSummary.class);
×
150
  }
151
/**
152
  * Convert an instance of KYCCheckSummary to an JSON string
153
  *
154
  * @return JSON string
155
  */
156
  public String toJson() throws JsonProcessingException {
157
    return JSON.getMapper().writeValueAsString(this);
×
158
  }
159
}
160

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