• 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

28.95
/src/main/java/com/adyen/model/marketpayaccount/ErrorFieldType.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.FieldType;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * ErrorFieldType
34
 */
35
@JsonPropertyOrder({
36
  ErrorFieldType.JSON_PROPERTY_ERROR_CODE,
37
  ErrorFieldType.JSON_PROPERTY_ERROR_DESCRIPTION,
38
  ErrorFieldType.JSON_PROPERTY_FIELD_TYPE
39
})
40

41
public class ErrorFieldType {
42
  public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
43
  private Integer errorCode;
44

45
  public static final String JSON_PROPERTY_ERROR_DESCRIPTION = "errorDescription";
46
  private String errorDescription;
47

48
  public static final String JSON_PROPERTY_FIELD_TYPE = "fieldType";
49
  private FieldType fieldType;
50

51
  public ErrorFieldType() { 
1✔
52
  }
1✔
53

54
  public ErrorFieldType errorCode(Integer errorCode) {
55
    this.errorCode = errorCode;
×
56
    return this;
×
57
  }
58

59
   /**
60
   * The validation error code.
61
   * @return errorCode
62
  **/
63
  @ApiModelProperty(value = "The validation error code.")
64
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
65
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
66

67
  public Integer getErrorCode() {
68
    return errorCode;
1✔
69
  }
70

71

72
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
73
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
74
  public void setErrorCode(Integer errorCode) {
75
    this.errorCode = errorCode;
1✔
76
  }
1✔
77

78

79
  public ErrorFieldType errorDescription(String errorDescription) {
80
    this.errorDescription = errorDescription;
×
81
    return this;
×
82
  }
83

84
   /**
85
   * A description of the validation error.
86
   * @return errorDescription
87
  **/
88
  @ApiModelProperty(value = "A description of the validation error.")
89
  @JsonProperty(JSON_PROPERTY_ERROR_DESCRIPTION)
90
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91

92
  public String getErrorDescription() {
93
    return errorDescription;
1✔
94
  }
95

96

97
  @JsonProperty(JSON_PROPERTY_ERROR_DESCRIPTION)
98
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
99
  public void setErrorDescription(String errorDescription) {
100
    this.errorDescription = errorDescription;
1✔
101
  }
1✔
102

103

104
  public ErrorFieldType fieldType(FieldType fieldType) {
105
    this.fieldType = fieldType;
×
106
    return this;
×
107
  }
108

109
   /**
110
   * Get fieldType
111
   * @return fieldType
112
  **/
113
  @ApiModelProperty(value = "")
114
  @JsonProperty(JSON_PROPERTY_FIELD_TYPE)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116

117
  public FieldType getFieldType() {
118
    return fieldType;
1✔
119
  }
120

121

122
  @JsonProperty(JSON_PROPERTY_FIELD_TYPE)
123
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
124
  public void setFieldType(FieldType fieldType) {
125
    this.fieldType = fieldType;
1✔
126
  }
1✔
127

128

129
  /**
130
   * Return true if this ErrorFieldType object is equal to o.
131
   */
132
  @Override
133
  public boolean equals(Object o) {
134
    if (this == o) {
×
135
      return true;
×
136
    }
137
    if (o == null || getClass() != o.getClass()) {
×
138
      return false;
×
139
    }
140
    ErrorFieldType errorFieldType = (ErrorFieldType) o;
×
141
    return Objects.equals(this.errorCode, errorFieldType.errorCode) &&
×
142
        Objects.equals(this.errorDescription, errorFieldType.errorDescription) &&
×
143
        Objects.equals(this.fieldType, errorFieldType.fieldType);
×
144
  }
145

146
  @Override
147
  public int hashCode() {
148
    return Objects.hash(errorCode, errorDescription, fieldType);
×
149
  }
150

151
  @Override
152
  public String toString() {
153
    StringBuilder sb = new StringBuilder();
×
154
    sb.append("class ErrorFieldType {\n");
×
155
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
×
156
    sb.append("    errorDescription: ").append(toIndentedString(errorDescription)).append("\n");
×
157
    sb.append("    fieldType: ").append(toIndentedString(fieldType)).append("\n");
×
158
    sb.append("}");
×
159
    return sb.toString();
×
160
  }
161

162
  /**
163
   * Convert the given object to string with each line indented by 4 spaces
164
   * (except the first line).
165
   */
166
  private String toIndentedString(Object o) {
167
    if (o == null) {
×
168
      return "null";
×
169
    }
170
    return o.toString().replace("\n", "\n    ");
×
171
  }
172

173
/**
174
   * Create an instance of ErrorFieldType given an JSON string
175
   *
176
   * @param jsonString JSON string
177
   * @return An instance of ErrorFieldType
178
   * @throws JsonProcessingException if the JSON string is invalid with respect to ErrorFieldType
179
   */
180
  public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingException {
181
    return JSON.getMapper().readValue(jsonString, ErrorFieldType.class);
×
182
  }
183
/**
184
  * Convert an instance of ErrorFieldType to an JSON string
185
  *
186
  * @return JSON string
187
  */
188
  public String toJson() throws JsonProcessingException {
189
    return JSON.getMapper().writeValueAsString(this);
×
190
  }
191
}
192

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