1616import java .util .Arrays ;
1717import java .util .Map ;
1818import java .util .HashMap ;
19+ import com .adyen .model .management .AndroidAppError ;
1920import com .fasterxml .jackson .annotation .JsonInclude ;
2021import com .fasterxml .jackson .annotation .JsonProperty ;
2122import com .fasterxml .jackson .annotation .JsonCreator ;
2223import com .fasterxml .jackson .annotation .JsonTypeName ;
2324import com .fasterxml .jackson .annotation .JsonValue ;
2425import io .swagger .annotations .ApiModel ;
2526import io .swagger .annotations .ApiModelProperty ;
27+ import java .util .ArrayList ;
28+ import java .util .List ;
2629import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
2730import com .fasterxml .jackson .core .JsonProcessingException ;
2831
3336@ JsonPropertyOrder ({
3437 AndroidApp .JSON_PROPERTY_DESCRIPTION ,
3538 AndroidApp .JSON_PROPERTY_ERROR_CODE ,
39+ AndroidApp .JSON_PROPERTY_ERRORS ,
3640 AndroidApp .JSON_PROPERTY_ID ,
3741 AndroidApp .JSON_PROPERTY_LABEL ,
3842 AndroidApp .JSON_PROPERTY_PACKAGE_NAME ,
@@ -46,8 +50,12 @@ public class AndroidApp {
4650 private String description ;
4751
4852 public static final String JSON_PROPERTY_ERROR_CODE = "errorCode" ;
53+ @ Deprecated
4954 private String errorCode ;
5055
56+ public static final String JSON_PROPERTY_ERRORS = "errors" ;
57+ private List <AndroidAppError > errors = null ;
58+
5159 public static final String JSON_PROPERTY_ID = "id" ;
5260 private String id ;
5361
@@ -99,16 +107,19 @@ public void setDescription(String description) {
99107 }
100108
101109
110+ @ Deprecated
102111 public AndroidApp errorCode (String errorCode ) {
103112 this .errorCode = errorCode ;
104113 return this ;
105114 }
106115
107116 /**
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** .
109118 * @return errorCode
119+ * @deprecated
110120 **/
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**." )
112123 @ JsonProperty (JSON_PROPERTY_ERROR_CODE )
113124 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
114125
@@ -118,17 +129,56 @@ public String getErrorCode() {
118129
119130
120131 /**
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** .
122133 *
123134 * @param errorCode
124135 */
136+ @ Deprecated
125137 @ JsonProperty (JSON_PROPERTY_ERROR_CODE )
126138 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
127139 public void setErrorCode (String errorCode ) {
128140 this .errorCode = errorCode ;
129141 }
130142
131143
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+
132182 public AndroidApp id (String id ) {
133183 this .id = id ;
134184 return this ;
@@ -323,6 +373,7 @@ public boolean equals(Object o) {
323373 AndroidApp androidApp = (AndroidApp ) o ;
324374 return Objects .equals (this .description , androidApp .description ) &&
325375 Objects .equals (this .errorCode , androidApp .errorCode ) &&
376+ Objects .equals (this .errors , androidApp .errors ) &&
326377 Objects .equals (this .id , androidApp .id ) &&
327378 Objects .equals (this .label , androidApp .label ) &&
328379 Objects .equals (this .packageName , androidApp .packageName ) &&
@@ -333,7 +384,7 @@ public boolean equals(Object o) {
333384
334385 @ Override
335386 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 );
337388 }
338389
339390 @ Override
@@ -342,6 +393,7 @@ public String toString() {
342393 sb .append ("class AndroidApp {\n " );
343394 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
344395 sb .append (" errorCode: " ).append (toIndentedString (errorCode )).append ("\n " );
396+ sb .append (" errors: " ).append (toIndentedString (errors )).append ("\n " );
345397 sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
346398 sb .append (" label: " ).append (toIndentedString (label )).append ("\n " );
347399 sb .append (" packageName: " ).append (toIndentedString (packageName )).append ("\n " );
0 commit comments