Package com.adyen.model.checkout
Class ServiceErrorDetails
- java.lang.Object
-
- com.adyen.model.checkout.ServiceErrorDetails
-
public class ServiceErrorDetails extends Object
ServiceErrorDetails
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ERROR_CODEstatic StringJSON_PROPERTY_ERROR_TYPEstatic StringJSON_PROPERTY_MESSAGEstatic StringJSON_PROPERTY_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description ServiceErrorDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ServiceErrorDetails object is equal to o.ServiceErrorDetailserrorCode(String errorCode)ServiceErrorDetailserrorType(String errorType)static ServiceErrorDetailsfromJson(String jsonString)Create an instance of ServiceErrorDetails given an JSON stringStringgetErrorCode()Get errorCodeStringgetErrorType()Get errorTypeStringgetMessage()Get messageStringgetPspReference()Get pspReferenceinthashCode()ServiceErrorDetailsmessage(String message)ServiceErrorDetailspspReference(String pspReference)voidsetErrorCode(String errorCode)errorCodevoidsetErrorType(String errorType)errorTypevoidsetMessage(String message)messagevoidsetPspReference(String pspReference)pspReferenceStringtoJson()Convert an instance of ServiceErrorDetails to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ERROR_CODE
public static final String JSON_PROPERTY_ERROR_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ERROR_TYPE
public static final String JSON_PROPERTY_ERROR_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
errorCode
public ServiceErrorDetails errorCode(String errorCode)
-
getErrorCode
public String getErrorCode()
Get errorCode- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
errorCode- Parameters:
errorCode-
-
errorType
public ServiceErrorDetails errorType(String errorType)
-
getErrorType
public String getErrorType()
Get errorType- Returns:
- errorType
-
setErrorType
public void setErrorType(String errorType)
errorType- Parameters:
errorType-
-
message
public ServiceErrorDetails message(String message)
-
getMessage
public String getMessage()
Get message- Returns:
- message
-
setMessage
public void setMessage(String message)
message- Parameters:
message-
-
pspReference
public ServiceErrorDetails pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Get pspReference- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
pspReference- Parameters:
pspReference-
-
equals
public boolean equals(Object o)
Return true if this ServiceErrorDetails object is equal to o.
-
fromJson
public static ServiceErrorDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ServiceErrorDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ServiceErrorDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ServiceErrorDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ServiceErrorDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-