Class StandalonePaymentCancelResource


  • public class StandalonePaymentCancelResource
    extends Object
    StandalonePaymentCancelResource
    • Constructor Detail

      • StandalonePaymentCancelResource

        public StandalonePaymentCancelResource()
    • Method Detail

      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account that is used to process the payment.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getPaymentReference

        public String getPaymentReference()
        The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel.
        Returns:
        paymentReference
      • setPaymentReference

        public void setPaymentReference​(String paymentReference)
      • getPspReference

        public String getPspReference()
        Adyen's 16-character reference associated with the cancel request.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
      • getReference

        public String getReference()
        Your reference for the cancel request.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • 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 StandalonePaymentCancelResource
      • fromJson

        public static StandalonePaymentCancelResource fromJson​(String jsonString)
                                                        throws IOException
        Create an instance of StandalonePaymentCancelResource given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of StandalonePaymentCancelResource
        Throws:
        IOException - if the JSON string is invalid with respect to StandalonePaymentCancelResource
      • toJson

        public String toJson()
        Convert an instance of StandalonePaymentCancelResource to an JSON string
        Returns:
        JSON string