Class CreateStandalonePaymentCancelRequest


  • public class CreateStandalonePaymentCancelRequest
    extends Object
    CreateStandalonePaymentCancelRequest
    • Constructor Detail

      • CreateStandalonePaymentCancelRequest

        public CreateStandalonePaymentCancelRequest()
    • 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 that you want to cancel.
        Returns:
        paymentReference
      • setPaymentReference

        public void setPaymentReference​(String paymentReference)
      • getReference

        public String getReference()
        Your reference for the cancel request. Maximum length: 80 characters.
        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 CreateStandalonePaymentCancelRequest
      • fromJson

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

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