16
16
import java .util .Arrays ;
17
17
import java .util .Map ;
18
18
import java .util .HashMap ;
19
+ import com .adyen .model .management .AndroidAppError ;
19
20
import com .fasterxml .jackson .annotation .JsonInclude ;
20
21
import com .fasterxml .jackson .annotation .JsonProperty ;
21
22
import com .fasterxml .jackson .annotation .JsonCreator ;
22
23
import com .fasterxml .jackson .annotation .JsonTypeName ;
23
24
import com .fasterxml .jackson .annotation .JsonValue ;
24
25
import io .swagger .annotations .ApiModel ;
25
26
import io .swagger .annotations .ApiModelProperty ;
27
+ import java .util .ArrayList ;
28
+ import java .util .List ;
26
29
import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
27
30
import com .fasterxml .jackson .core .JsonProcessingException ;
28
31
33
36
@ JsonPropertyOrder ({
34
37
AndroidApp .JSON_PROPERTY_DESCRIPTION ,
35
38
AndroidApp .JSON_PROPERTY_ERROR_CODE ,
39
+ AndroidApp .JSON_PROPERTY_ERRORS ,
36
40
AndroidApp .JSON_PROPERTY_ID ,
37
41
AndroidApp .JSON_PROPERTY_LABEL ,
38
42
AndroidApp .JSON_PROPERTY_PACKAGE_NAME ,
@@ -46,8 +50,12 @@ public class AndroidApp {
46
50
private String description ;
47
51
48
52
public static final String JSON_PROPERTY_ERROR_CODE = "errorCode" ;
53
+ @ Deprecated
49
54
private String errorCode ;
50
55
56
+ public static final String JSON_PROPERTY_ERRORS = "errors" ;
57
+ private List <AndroidAppError > errors = null ;
58
+
51
59
public static final String JSON_PROPERTY_ID = "id" ;
52
60
private String id ;
53
61
@@ -99,16 +107,19 @@ public void setDescription(String description) {
99
107
}
100
108
101
109
110
+ @ Deprecated
102
111
public AndroidApp errorCode (String errorCode ) {
103
112
this .errorCode = errorCode ;
104
113
return this ;
105
114
}
106
115
107
116
/**
108
- * The error code of the app. It exists if the status is error or invalid.
117
+ * The error code of the Android app with the ` status` of either ** error** or ** invalid** .
109
118
* @return errorCode
119
+ * @deprecated
110
120
**/
111
- @ ApiModelProperty (value = "The error code of the app. It exists if the status is error or invalid." )
121
+ @ Deprecated
122
+ @ ApiModelProperty (value = "The error code of the Android app with the `status` of either **error** or **invalid**." )
112
123
@ JsonProperty (JSON_PROPERTY_ERROR_CODE )
113
124
@ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
114
125
@@ -118,17 +129,56 @@ public String getErrorCode() {
118
129
119
130
120
131
/**
121
- * The error code of the app. It exists if the status is error or invalid.
132
+ * The error code of the Android app with the ` status` of either ** error** or ** invalid** .
122
133
*
123
134
* @param errorCode
124
135
*/
136
+ @ Deprecated
125
137
@ JsonProperty (JSON_PROPERTY_ERROR_CODE )
126
138
@ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
127
139
public void setErrorCode (String errorCode ) {
128
140
this .errorCode = errorCode ;
129
141
}
130
142
131
143
144
+ public AndroidApp errors (List <AndroidAppError > errors ) {
145
+ this .errors = errors ;
146
+ return this ;
147
+ }
148
+
149
+ public AndroidApp addErrorsItem (AndroidAppError errorsItem ) {
150
+ if (this .errors == null ) {
151
+ this .errors = new ArrayList <>();
152
+ }
153
+ this .errors .add (errorsItem );
154
+ return this ;
155
+ }
156
+
157
+ /**
158
+ * The list of errors of the Android app.
159
+ * @return errors
160
+ **/
161
+ @ ApiModelProperty (value = "The list of errors of the Android app." )
162
+ @ JsonProperty (JSON_PROPERTY_ERRORS )
163
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
164
+
165
+ public List <AndroidAppError > getErrors () {
166
+ return errors ;
167
+ }
168
+
169
+
170
+ /**
171
+ * The list of errors of the Android app.
172
+ *
173
+ * @param errors
174
+ */
175
+ @ JsonProperty (JSON_PROPERTY_ERRORS )
176
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
177
+ public void setErrors (List <AndroidAppError > errors ) {
178
+ this .errors = errors ;
179
+ }
180
+
181
+
132
182
public AndroidApp id (String id ) {
133
183
this .id = id ;
134
184
return this ;
@@ -323,6 +373,7 @@ public boolean equals(Object o) {
323
373
AndroidApp androidApp = (AndroidApp ) o ;
324
374
return Objects .equals (this .description , androidApp .description ) &&
325
375
Objects .equals (this .errorCode , androidApp .errorCode ) &&
376
+ Objects .equals (this .errors , androidApp .errors ) &&
326
377
Objects .equals (this .id , androidApp .id ) &&
327
378
Objects .equals (this .label , androidApp .label ) &&
328
379
Objects .equals (this .packageName , androidApp .packageName ) &&
@@ -333,7 +384,7 @@ public boolean equals(Object o) {
333
384
334
385
@ Override
335
386
public int hashCode () {
336
- return Objects .hash (description , errorCode , id , label , packageName , status , versionCode , versionName );
387
+ return Objects .hash (description , errorCode , errors , id , label , packageName , status , versionCode , versionName );
337
388
}
338
389
339
390
@ Override
@@ -342,6 +393,7 @@ public String toString() {
342
393
sb .append ("class AndroidApp {\n " );
343
394
sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
344
395
sb .append (" errorCode: " ).append (toIndentedString (errorCode )).append ("\n " );
396
+ sb .append (" errors: " ).append (toIndentedString (errors )).append ("\n " );
345
397
sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
346
398
sb .append (" label: " ).append (toIndentedString (label )).append ("\n " );
347
399
sb .append (" packageName: " ).append (toIndentedString (packageName )).append ("\n " );
0 commit comments