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)errorCodeServiceErrorDetailserrorType(String errorType)errorTypestatic ServiceErrorDetailsfromJson(String jsonString)Create an instance of ServiceErrorDetails given an JSON stringStringgetErrorCode()errorCodeStringgetErrorType()errorTypeStringgetMessage()messageStringgetPspReference()pspReferenceinthashCode()ServiceErrorDetailsmessage(String message)messageServiceErrorDetailspspReference(String pspReference)pspReferencevoidsetErrorCode(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)
errorCode- Parameters:
errorCode-- Returns:
- the current
ServiceErrorDetailsinstance, allowing for method chaining
-
getErrorCode
public String getErrorCode()
errorCode- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
errorCode- Parameters:
errorCode-
-
errorType
public ServiceErrorDetails errorType(String errorType)
errorType- Parameters:
errorType-- Returns:
- the current
ServiceErrorDetailsinstance, allowing for method chaining
-
getErrorType
public String getErrorType()
errorType- Returns:
- errorType
-
setErrorType
public void setErrorType(String errorType)
errorType- Parameters:
errorType-
-
message
public ServiceErrorDetails message(String message)
message- Parameters:
message-- Returns:
- the current
ServiceErrorDetailsinstance, allowing for method chaining
-
getMessage
public String getMessage()
message- Returns:
- message
-
setMessage
public void setMessage(String message)
message- Parameters:
message-
-
pspReference
public ServiceErrorDetails pspReference(String pspReference)
pspReference- Parameters:
pspReference-- Returns:
- the current
ServiceErrorDetailsinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
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
-
-