Class NotificationErrorContainer
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.NotificationErrorContainer
-
public class NotificationErrorContainer extends Object
NotificationErrorContainer
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ERROR_CODEstatic StringJSON_PROPERTY_MESSAGE
-
Constructor Summary
Constructors Constructor Description NotificationErrorContainer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this NotificationErrorContainer object is equal to o.NotificationErrorContainererrorCode(String errorCode)static NotificationErrorContainerfromJson(String jsonString)Create an instance of NotificationErrorContainer given an JSON stringStringgetErrorCode()The Adyen code that is mapped to the error message.StringgetMessage()A short explanation of the issue.inthashCode()NotificationErrorContainermessage(String message)voidsetErrorCode(String errorCode)voidsetMessage(String message)StringtoJson()Convert an instance of NotificationErrorContainer 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_MESSAGE
public static final String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
errorCode
public NotificationErrorContainer errorCode(String errorCode)
-
getErrorCode
public String getErrorCode()
The Adyen code that is mapped to the error message.- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
-
message
public NotificationErrorContainer message(String message)
-
getMessage
public String getMessage()
A short explanation of the issue.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
equals
public boolean equals(Object o)
Return true if this NotificationErrorContainer object is equal to o.
-
fromJson
public static NotificationErrorContainer fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NotificationErrorContainer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotificationErrorContainer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NotificationErrorContainer
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NotificationErrorContainer to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-