Package com.adyen.model.checkout
Class ServiceError2
- java.lang.Object
-
- com.adyen.model.checkout.ServiceError2
-
public class ServiceError2 extends Object
ServiceError2
-
-
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 ServiceError2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ServiceError-2 object is equal to 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()
-
-
-
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 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)
-
equals
public boolean equals(Object o)
Return true if this ServiceError-2 object is equal to o.
-
fromJson
public static ServiceError2 fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ServiceError2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ServiceError2
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ServiceError2
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ServiceError2 to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-