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

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

08 Nov 2023 09:16AM CUT coverage: 12.837%. First build
#2829

push

web-flow
Merge 828273160 into b96088175

114 of 864 new or added lines in 50 files covered. (13.19%)

12393 of 96543 relevant lines covered (12.84%)

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/checkout/ServiceErrorDetails.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.checkout;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * ServiceErrorDetails
32
 */
33
@JsonPropertyOrder({
34
  ServiceErrorDetails.JSON_PROPERTY_ERROR_CODE,
35
  ServiceErrorDetails.JSON_PROPERTY_ERROR_TYPE,
36
  ServiceErrorDetails.JSON_PROPERTY_MESSAGE,
37
  ServiceErrorDetails.JSON_PROPERTY_PSP_REFERENCE
38
})
39

40
public class ServiceErrorDetails {
41
  public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
42
  private String errorCode;
43

44
  public static final String JSON_PROPERTY_ERROR_TYPE = "errorType";
45
  private String errorType;
46

47
  public static final String JSON_PROPERTY_MESSAGE = "message";
48
  private String message;
49

50
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
51
  private String pspReference;
52

NEW
53
  public ServiceErrorDetails() { 
×
54
  }
×
55

56
  public ServiceErrorDetails errorCode(String errorCode) {
57
    this.errorCode = errorCode;
×
58
    return this;
×
59
  }
60

61
   /**
62
   * Get errorCode
63
   * @return errorCode
64
  **/
65
  @ApiModelProperty(value = "")
66
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68

69
  public String getErrorCode() {
70
    return errorCode;
×
71
  }
72

73

74
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
75
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76
  public void setErrorCode(String errorCode) {
77
    this.errorCode = errorCode;
×
78
  }
×
79

80

81
  public ServiceErrorDetails errorType(String errorType) {
82
    this.errorType = errorType;
×
83
    return this;
×
84
  }
85

86
   /**
87
   * Get errorType
88
   * @return errorType
89
  **/
90
  @ApiModelProperty(value = "")
91
  @JsonProperty(JSON_PROPERTY_ERROR_TYPE)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93

94
  public String getErrorType() {
95
    return errorType;
×
96
  }
97

98

99
  @JsonProperty(JSON_PROPERTY_ERROR_TYPE)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101
  public void setErrorType(String errorType) {
102
    this.errorType = errorType;
×
103
  }
×
104

105

106
  public ServiceErrorDetails message(String message) {
107
    this.message = message;
×
108
    return this;
×
109
  }
110

111
   /**
112
   * Get message
113
   * @return message
114
  **/
115
  @ApiModelProperty(value = "")
116
  @JsonProperty(JSON_PROPERTY_MESSAGE)
117
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118

119
  public String getMessage() {
120
    return message;
×
121
  }
122

123

124
  @JsonProperty(JSON_PROPERTY_MESSAGE)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126
  public void setMessage(String message) {
127
    this.message = message;
×
128
  }
×
129

130

131
  public ServiceErrorDetails pspReference(String pspReference) {
132
    this.pspReference = pspReference;
×
133
    return this;
×
134
  }
135

136
   /**
137
   * Get pspReference
138
   * @return pspReference
139
  **/
140
  @ApiModelProperty(value = "")
141
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143

144
  public String getPspReference() {
145
    return pspReference;
×
146
  }
147

148

149
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
150
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151
  public void setPspReference(String pspReference) {
152
    this.pspReference = pspReference;
×
153
  }
×
154

155

156
  /**
157
   * Return true if this ServiceErrorDetails object is equal to o.
158
   */
159
  @Override
160
  public boolean equals(Object o) {
161
    if (this == o) {
×
162
      return true;
×
163
    }
164
    if (o == null || getClass() != o.getClass()) {
×
165
      return false;
×
166
    }
NEW
167
    ServiceErrorDetails serviceErrorDetails = (ServiceErrorDetails) o;
×
NEW
168
    return Objects.equals(this.errorCode, serviceErrorDetails.errorCode) &&
×
NEW
169
        Objects.equals(this.errorType, serviceErrorDetails.errorType) &&
×
NEW
170
        Objects.equals(this.message, serviceErrorDetails.message) &&
×
NEW
171
        Objects.equals(this.pspReference, serviceErrorDetails.pspReference);
×
172
  }
173

174
  @Override
175
  public int hashCode() {
176
    return Objects.hash(errorCode, errorType, message, pspReference);
×
177
  }
178

179
  @Override
180
  public String toString() {
181
    StringBuilder sb = new StringBuilder();
×
NEW
182
    sb.append("class ServiceErrorDetails {\n");
×
183
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
×
184
    sb.append("    errorType: ").append(toIndentedString(errorType)).append("\n");
×
185
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
×
186
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
187
    sb.append("}");
×
188
    return sb.toString();
×
189
  }
190

191
  /**
192
   * Convert the given object to string with each line indented by 4 spaces
193
   * (except the first line).
194
   */
195
  private String toIndentedString(Object o) {
196
    if (o == null) {
×
197
      return "null";
×
198
    }
199
    return o.toString().replace("\n", "\n    ");
×
200
  }
201

202
/**
203
   * Create an instance of ServiceErrorDetails given an JSON string
204
   *
205
   * @param jsonString JSON string
206
   * @return An instance of ServiceErrorDetails
207
   * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceErrorDetails
208
   */
209
  public static ServiceErrorDetails fromJson(String jsonString) throws JsonProcessingException {
NEW
210
    return JSON.getMapper().readValue(jsonString, ServiceErrorDetails.class);
×
211
  }
212
/**
213
  * Convert an instance of ServiceErrorDetails to an JSON string
214
  *
215
  * @return JSON string
216
  */
217
  public String toJson() throws JsonProcessingException {
218
    return JSON.getMapper().writeValueAsString(this);
×
219
  }
220
}
221

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