Package com.adyen.model.transferwebhooks
Class ExternalReason
- java.lang.Object
-
- com.adyen.model.transferwebhooks.ExternalReason
-
public class ExternalReason extends Object
ExternalReason
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CODEstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_NAMESPACE
-
Constructor Summary
Constructors Constructor Description ExternalReason()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalReasoncode(String code)The reason code.ExternalReasondescription(String description)The description of the reason code.booleanequals(Object o)Return true if this ExternalReason object is equal to o.static ExternalReasonfromJson(String jsonString)Create an instance of ExternalReason given an JSON stringStringgetCode()The reason code.StringgetDescription()The description of the reason code.StringgetNamespace()The namespace for the reason code.inthashCode()ExternalReasonnamespace(String namespace)The namespace for the reason code.voidsetCode(String code)The reason code.voidsetDescription(String description)The description of the reason code.voidsetNamespace(String namespace)The namespace for the reason code.StringtoJson()Convert an instance of ExternalReason to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CODE
public static final String JSON_PROPERTY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAMESPACE
public static final String JSON_PROPERTY_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public ExternalReason code(String code)
The reason code.- Parameters:
code-- Returns:
- the current
ExternalReasoninstance, allowing for method chaining
-
getCode
public String getCode()
The reason code.- Returns:
- code
-
setCode
public void setCode(String code)
The reason code.- Parameters:
code-
-
description
public ExternalReason description(String description)
The description of the reason code.- Parameters:
description-- Returns:
- the current
ExternalReasoninstance, allowing for method chaining
-
getDescription
public String getDescription()
The description of the reason code.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the reason code.- Parameters:
description-
-
namespace
public ExternalReason namespace(String namespace)
The namespace for the reason code.- Parameters:
namespace-- Returns:
- the current
ExternalReasoninstance, allowing for method chaining
-
getNamespace
public String getNamespace()
The namespace for the reason code.- Returns:
- namespace
-
setNamespace
public void setNamespace(String namespace)
The namespace for the reason code.- Parameters:
namespace-
-
equals
public boolean equals(Object o)
Return true if this ExternalReason object is equal to o.
-
fromJson
public static ExternalReason fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ExternalReason given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExternalReason
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ExternalReason
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ExternalReason to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-