Package com.adyen.model.payment
Class ResponseAdditionalDataDomesticError
- java.lang.Object
-
- com.adyen.model.payment.ResponseAdditionalDataDomesticError
-
public class ResponseAdditionalDataDomesticError extends Object
ResponseAdditionalDataDomesticError
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAWstatic StringJSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE
-
Constructor Summary
Constructors Constructor Description ResponseAdditionalDataDomesticError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseAdditionalDataDomesticErrordomesticRefusalReasonRaw(String domesticRefusalReasonRaw)The reason the transaction was declined, given by the local issuer.ResponseAdditionalDataDomesticErrordomesticShopperAdvice(String domesticShopperAdvice)The action the shopper should take, in a local language.booleanequals(Object o)Return true if this ResponseAdditionalDataDomesticError object is equal to o.static ResponseAdditionalDataDomesticErrorfromJson(String jsonString)Create an instance of ResponseAdditionalDataDomesticError given an JSON stringStringgetDomesticRefusalReasonRaw()The reason the transaction was declined, given by the local issuer.StringgetDomesticShopperAdvice()The action the shopper should take, in a local language.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.inthashCode()ResponseAdditionalDataDomesticErrorincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetDomesticRefusalReasonRaw(String domesticRefusalReasonRaw)The reason the transaction was declined, given by the local issuer.voidsetDomesticShopperAdvice(String domesticShopperAdvice)The action the shopper should take, in a local language.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of ResponseAdditionalDataDomesticError to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW
public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE
public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
domesticRefusalReasonRaw
public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw)
The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan.- Parameters:
domesticRefusalReasonRaw- The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan.- Returns:
- the current
ResponseAdditionalDataDomesticErrorinstance, allowing for method chaining
-
getDomesticRefusalReasonRaw
public String getDomesticRefusalReasonRaw()
The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan.- Returns:
- domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan.
-
setDomesticRefusalReasonRaw
public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw)
The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan.- Parameters:
domesticRefusalReasonRaw- The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan.
-
domesticShopperAdvice
public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice)
The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan.- Parameters:
domesticShopperAdvice- The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan.- Returns:
- the current
ResponseAdditionalDataDomesticErrorinstance, allowing for method chaining
-
getDomesticShopperAdvice
public String getDomesticShopperAdvice()
The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan.- Returns:
- domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan.
-
setDomesticShopperAdvice
public void setDomesticShopperAdvice(String domesticShopperAdvice)
The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan.- Parameters:
domesticShopperAdvice- The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan.
-
includeNullValues
public ResponseAdditionalDataDomesticError includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ResponseAdditionalDataDomesticError object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ResponseAdditionalDataDomesticError given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResponseAdditionalDataDomesticError
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ResponseAdditionalDataDomesticError to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-