11/*
2- * Adyen Checkout API
2+ * ######
3+ * ######
4+ * ############ ####( ###### #####. ###### ############ ############
5+ * ############# #####( ###### #####. ###### ############# #############
6+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
7+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
8+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
9+ * ############# ############# ############# ############# ##### ######
10+ * ############ ############ ############# ############ ##### ######
11+ * ######
12+ * #############
13+ * ############
314 *
4- * The version of the OpenAPI document: 70
15+ * Adyen Java API Library
516 *
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.
17+ * Copyright (c) 2025 Adyen B.V.
18+ * See the LICENSE file for more info.
1019 */
11-
12-
1320package com .adyen .model ;
1421
1522import java .util .*;
1926import io .swagger .annotations .ApiModelProperty ;
2027import com .fasterxml .jackson .core .JsonProcessingException ;
2128
22-
2329/**
24- * ServiceError
30+ * Class that defines the API error model returned when an error (401. 403, 422, etc..) is returned by the API
31+ * Based on the RFC-7807 standard
2532 */
2633@ JsonPropertyOrder ({
2734 ApiError .JSON_PROPERTY_INVALID_FIELDS ,
3037 ApiError .JSON_PROPERTY_ERROR_TYPE ,
3138 ApiError .JSON_PROPERTY_MESSAGE ,
3239 ApiError .JSON_PROPERTY_PSP_REFERENCE ,
33- ApiError .JSON_PROPERTY_STATUS
40+ ApiError .JSON_PROPERTY_STATUS ,
41+ ApiError .JSON_PROPERTY_TITLE
3442})
3543
3644public class ApiError {
@@ -55,6 +63,9 @@ public class ApiError {
5563 public static final String JSON_PROPERTY_STATUS = "status" ;
5664 private Integer status ;
5765
66+ public static final String JSON_PROPERTY_TITLE = "title" ;
67+ private String title ;
68+
5869 public ApiError () {
5970 }
6071
@@ -188,20 +199,17 @@ public ApiError message(String message) {
188199 @ JsonProperty (JSON_PROPERTY_MESSAGE )
189200 @ JsonAlias ("detail" )
190201 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
191-
192202 public String getMessage () {
193203 return message ;
194204 }
195205
196-
197206 @ JsonProperty (JSON_PROPERTY_MESSAGE )
198207 @ JsonAlias ("detail" )
199208 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
200209 public void setMessage (String message ) {
201210 this .message = message ;
202211 }
203212
204-
205213 public ApiError pspReference (String pspReference ) {
206214 this .pspReference = pspReference ;
207215 return this ;
@@ -219,14 +227,12 @@ public String getPspReference() {
219227 return pspReference ;
220228 }
221229
222-
223230 @ JsonProperty (JSON_PROPERTY_PSP_REFERENCE )
224231 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
225232 public void setPspReference (String pspReference ) {
226233 this .pspReference = pspReference ;
227234 }
228235
229-
230236 public ApiError status (Integer status ) {
231237 this .status = status ;
232238 return this ;
@@ -239,7 +245,6 @@ public ApiError status(Integer status) {
239245 @ ApiModelProperty (value = "The HTTP response status." )
240246 @ JsonProperty (JSON_PROPERTY_STATUS )
241247 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
242-
243248 public Integer getStatus () {
244249 return status ;
245250 }
@@ -251,6 +256,37 @@ public void setStatus(Integer status) {
251256 this .status = status ;
252257 }
253258
259+ /**
260+ * Set title and return the object
261+ * @param title
262+ * @return
263+ */
264+ public ApiError title (String title ) {
265+ this .title = title ;
266+ return this ;
267+ }
268+
269+ /**
270+ * The human-readable summary of the problem type
271+ * @return status
272+ **/
273+ @ ApiModelProperty (value = "The HTTP response status." )
274+ @ JsonProperty (JSON_PROPERTY_TITLE )
275+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
276+ public String getTitle () {
277+ return title ;
278+ }
279+
280+ /**
281+ * Set title
282+ * @param title
283+ */
284+ @ JsonProperty (JSON_PROPERTY_TITLE )
285+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
286+ public void setTitle (String title ) {
287+ this .title = title ;
288+ }
289+
254290 /**
255291 * Return true if this ServiceError object is equal to o.
256292 */
@@ -268,25 +304,27 @@ public boolean equals(Object o) {
268304 Objects .equals (this .errorType , apiError .errorType ) &&
269305 Objects .equals (this .message , apiError .message ) &&
270306 Objects .equals (this .pspReference , apiError .pspReference ) &&
271- Objects .equals (this .status , apiError .status );
307+ Objects .equals (this .status , apiError .status ) &&
308+ Objects .equals (this .title , apiError .title );
272309 }
273310
274311 @ Override
275312 public int hashCode () {
276- return Objects .hash (additionalData , errorCode , errorType , message , pspReference , status );
313+ return Objects .hash (additionalData , errorCode , errorType , message , pspReference , status , title );
277314 }
278315
279316 @ Override
280317 public String toString () {
281318 StringBuilder sb = new StringBuilder ();
282- sb .append ("class ServiceError {\n " );
319+ sb .append ("class ApiError {\n " );
283320 sb .append (" invalidFields: " ).append (toIndentedString (invalidFields )).append ("\n " );
284321 sb .append (" additionalData: " ).append (toIndentedString (additionalData )).append ("\n " );
285322 sb .append (" errorCode: " ).append (toIndentedString (errorCode )).append ("\n " );
286323 sb .append (" errorType: " ).append (toIndentedString (errorType )).append ("\n " );
287324 sb .append (" message: " ).append (toIndentedString (message )).append ("\n " );
288325 sb .append (" pspReference: " ).append (toIndentedString (pspReference )).append ("\n " );
289326 sb .append (" status: " ).append (toIndentedString (status )).append ("\n " );
327+ sb .append (" title: " ).append (toIndentedString (title )).append ("\n " );
290328 sb .append ("}" );
291329 return sb .toString ();
292330 }
0 commit comments