Package com.adyen.model.checkout
Class ServiceError2
- java.lang.Object
-
- com.adyen.model.checkout.ServiceError2
-
public class ServiceError2 extends Object
ServiceError2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceError2.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ERROR_CODEstatic StringSERIALIZED_NAME_ERROR_TYPEstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description ServiceError2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ServiceError2errorCode(String errorCode)ServiceError2errorType(String errorType)static ServiceError2fromJson(String jsonString)Create an instance of ServiceError2 given an JSON stringStringgetErrorCode()Get errorCodeStringgetErrorType()Get errorTypeStringgetMessage()Get messageStringgetPspReference()Get pspReferenceinthashCode()ServiceError2message(String message)ServiceError2pspReference(String pspReference)voidsetErrorCode(String errorCode)voidsetErrorType(String errorType)voidsetMessage(String message)voidsetPspReference(String pspReference)StringtoJson()Convert an instance of ServiceError2 to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ERROR_CODE
public static final String SERIALIZED_NAME_ERROR_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_TYPE
public static final String SERIALIZED_NAME_ERROR_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
errorCode
public ServiceError2 errorCode(String errorCode)
-
getErrorCode
public String getErrorCode()
Get errorCode- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
-
errorType
public ServiceError2 errorType(String errorType)
-
getErrorType
public String getErrorType()
Get errorType- Returns:
- errorType
-
setErrorType
public void setErrorType(String errorType)
-
message
public ServiceError2 message(String message)
-
getMessage
public String getMessage()
Get message- Returns:
- message
-
setMessage
public void setMessage(String message)
-
pspReference
public ServiceError2 pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Get pspReference- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ServiceError2
-
fromJson
public static ServiceError2 fromJson(String jsonString) throws IOException
Create an instance of ServiceError2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ServiceError2
- Throws:
IOException- if the JSON string is invalid with respect to ServiceError2
-
toJson
public String toJson()
Convert an instance of ServiceError2 to an JSON string- Returns:
- JSON string
-
-