Class CheckoutCancelOrderResponse


  • public class CheckoutCancelOrderResponse
    extends Object
    CheckoutCancelOrderResponse
    • Constructor Detail

      • CheckoutCancelOrderResponse

        public CheckoutCancelOrderResponse()
    • Method Detail

      • getPspReference

        public String getPspReference()
        A unique reference of the cancellation request.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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