Class PaymentCancelResponse


  • public class PaymentCancelResponse
    extends Object
    PaymentCancelResponse
    • Constructor Detail

      • PaymentCancelResponse

        public PaymentCancelResponse()
    • Method Detail

      • getMerchantAccount

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

        public void setMerchantAccount​(String merchantAccount)
        The merchant account that is used to process the payment.
        Parameters:
        merchantAccount -
      • getPaymentPspReference

        public String getPaymentPspReference()
        The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel.
        Returns:
        paymentPspReference
      • setPaymentPspReference

        public void setPaymentPspReference​(String paymentPspReference)
        The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel.
        Parameters:
        paymentPspReference -
      • getPspReference

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

        public void setPspReference​(String pspReference)
        Adyen's 16-character reference associated with the cancel request.
        Parameters:
        pspReference -
      • getReference

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

        public void setReference​(String reference)
        Your reference for the cancel request.
        Parameters:
        reference -
      • setStatus

        public void setStatus​(PaymentCancelResponse.StatusEnum status)
        The status of your request. This will always have the value **received**.
        Parameters:
        status -
      • equals

        public boolean equals​(Object o)
        Return true if this PaymentCancelResponse object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static PaymentCancelResponse fromJson​(String jsonString)
                                              throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PaymentCancelResponse given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentCancelResponse
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PaymentCancelResponse
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PaymentCancelResponse to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException