Package com.adyen.model.checkout
Class CheckoutCancelOrderResponse
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutCancelOrderResponse
-
public class CheckoutCancelOrderResponse extends Object
CheckoutCancelOrderResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutCancelOrderResponse.CustomTypeAdapterFactorystatic classCheckoutCancelOrderResponse.ResultCodeEnumThe result of the cancellation request.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PSP_REFERENCEstatic StringSERIALIZED_NAME_RESULT_CODE
-
Constructor Summary
Constructors Constructor Description CheckoutCancelOrderResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CheckoutCancelOrderResponsefromJson(String jsonString)Create an instance of CheckoutCancelOrderResponse given an JSON stringStringgetPspReference()A unique reference of the cancellation request.CheckoutCancelOrderResponse.ResultCodeEnumgetResultCode()The result of the cancellation request.inthashCode()CheckoutCancelOrderResponsepspReference(String pspReference)CheckoutCancelOrderResponseresultCode(CheckoutCancelOrderResponse.ResultCodeEnum resultCode)voidsetPspReference(String pspReference)voidsetResultCode(CheckoutCancelOrderResponse.ResultCodeEnum resultCode)StringtoJson()Convert an instance of CheckoutCancelOrderResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT_CODE
public static final String SERIALIZED_NAME_RESULT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
pspReference
public CheckoutCancelOrderResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
A unique reference of the cancellation request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
resultCode
public CheckoutCancelOrderResponse resultCode(CheckoutCancelOrderResponse.ResultCodeEnum resultCode)
-
getResultCode
public CheckoutCancelOrderResponse.ResultCodeEnum getResultCode()
The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed.- Returns:
- resultCode
-
setResultCode
public void setResultCode(CheckoutCancelOrderResponse.ResultCodeEnum resultCode)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CheckoutCancelOrderResponse
-
fromJson
public static CheckoutCancelOrderResponse fromJson(String jsonString) throws IOException
Create an instance of CheckoutCancelOrderResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutCancelOrderResponse
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutCancelOrderResponse
-
toJson
public String toJson()
Convert an instance of CheckoutCancelOrderResponse to an JSON string- Returns:
- JSON string
-
-