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

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

07 Jun 2024 06:58AM UTC coverage: 11.998%. First build
#3310

push

web-flow
Merge 37b699498 into 42e533062

0 of 49 new or added lines in 2 files covered. (0.0%)

12486 of 104068 relevant lines covered (12.0%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/management/AndroidAppError.java
1
/*
2
 * Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.management;
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 java.util.ArrayList;
27
import java.util.List;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * AndroidAppError
34
 */
35
@JsonPropertyOrder({
36
  AndroidAppError.JSON_PROPERTY_ERROR_CODE,
37
  AndroidAppError.JSON_PROPERTY_TERMINAL_MODELS
38
})
39

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

44
  public static final String JSON_PROPERTY_TERMINAL_MODELS = "terminalModels";
NEW
45
  private List<String> terminalModels = null;
×
46

NEW
47
  public AndroidAppError() { 
×
NEW
48
  }
×
49

50
  public AndroidAppError errorCode(String errorCode) {
NEW
51
    this.errorCode = errorCode;
×
NEW
52
    return this;
×
53
  }
54

55
   /**
56
   * The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
57
   * @return errorCode
58
  **/
59
  @ApiModelProperty(value = "The error code of the Android app with the `status` of either **error** or **invalid**.")
60
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
61
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
62

63
  public String getErrorCode() {
NEW
64
    return errorCode;
×
65
  }
66

67

68
 /**
69
  * The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
70
  *
71
  * @param errorCode
72
  */ 
73
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75
  public void setErrorCode(String errorCode) {
NEW
76
    this.errorCode = errorCode;
×
NEW
77
  }
×
78

79

80
  public AndroidAppError terminalModels(List<String> terminalModels) {
NEW
81
    this.terminalModels = terminalModels;
×
NEW
82
    return this;
×
83
  }
84

85
  public AndroidAppError addTerminalModelsItem(String terminalModelsItem) {
NEW
86
    if (this.terminalModels == null) {
×
NEW
87
      this.terminalModels = new ArrayList<>();
×
88
    }
NEW
89
    this.terminalModels.add(terminalModelsItem);
×
NEW
90
    return this;
×
91
  }
92

93
   /**
94
   * The list of payment terminal models to which the returned &#x60;errorCode&#x60; applies.
95
   * @return terminalModels
96
  **/
97
  @ApiModelProperty(value = "The list of payment terminal models to which the returned `errorCode` applies.")
98
  @JsonProperty(JSON_PROPERTY_TERMINAL_MODELS)
99
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100

101
  public List<String> getTerminalModels() {
NEW
102
    return terminalModels;
×
103
  }
104

105

106
 /**
107
  * The list of payment terminal models to which the returned &#x60;errorCode&#x60; applies.
108
  *
109
  * @param terminalModels
110
  */ 
111
  @JsonProperty(JSON_PROPERTY_TERMINAL_MODELS)
112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113
  public void setTerminalModels(List<String> terminalModels) {
NEW
114
    this.terminalModels = terminalModels;
×
NEW
115
  }
×
116

117

118
  /**
119
   * Return true if this AndroidAppError object is equal to o.
120
   */
121
  @Override
122
  public boolean equals(Object o) {
NEW
123
    if (this == o) {
×
NEW
124
      return true;
×
125
    }
NEW
126
    if (o == null || getClass() != o.getClass()) {
×
NEW
127
      return false;
×
128
    }
NEW
129
    AndroidAppError androidAppError = (AndroidAppError) o;
×
NEW
130
    return Objects.equals(this.errorCode, androidAppError.errorCode) &&
×
NEW
131
        Objects.equals(this.terminalModels, androidAppError.terminalModels);
×
132
  }
133

134
  @Override
135
  public int hashCode() {
NEW
136
    return Objects.hash(errorCode, terminalModels);
×
137
  }
138

139
  @Override
140
  public String toString() {
NEW
141
    StringBuilder sb = new StringBuilder();
×
NEW
142
    sb.append("class AndroidAppError {\n");
×
NEW
143
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
×
NEW
144
    sb.append("    terminalModels: ").append(toIndentedString(terminalModels)).append("\n");
×
NEW
145
    sb.append("}");
×
NEW
146
    return sb.toString();
×
147
  }
148

149
  /**
150
   * Convert the given object to string with each line indented by 4 spaces
151
   * (except the first line).
152
   */
153
  private String toIndentedString(Object o) {
NEW
154
    if (o == null) {
×
NEW
155
      return "null";
×
156
    }
NEW
157
    return o.toString().replace("\n", "\n    ");
×
158
  }
159

160
/**
161
   * Create an instance of AndroidAppError given an JSON string
162
   *
163
   * @param jsonString JSON string
164
   * @return An instance of AndroidAppError
165
   * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidAppError
166
   */
167
  public static AndroidAppError fromJson(String jsonString) throws JsonProcessingException {
NEW
168
    return JSON.getMapper().readValue(jsonString, AndroidAppError.class);
×
169
  }
170
/**
171
  * Convert an instance of AndroidAppError to an JSON string
172
  *
173
  * @return JSON string
174
  */
175
  public String toJson() throws JsonProcessingException {
NEW
176
    return JSON.getMapper().writeValueAsString(this);
×
177
  }
178
}
179

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