Class DonationPaymentResponse


  • public class DonationPaymentResponse
    extends Object
    DonationPaymentResponse
    • Constructor Detail

      • DonationPaymentResponse

        public DonationPaymentResponse()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • getDonationAccount

        public String getDonationAccount()
        The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding).
        Returns:
        donationAccount
      • setDonationAccount

        public void setDonationAccount​(String donationAccount)
        The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding).
        Parameters:
        donationAccount -
      • getId

        public String getId()
        Your unique resource identifier.
        Returns:
        id
      • setId

        public void setId​(String id)
        Your unique resource identifier.
        Parameters:
        id -
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account identifier, with which you want to process the transaction.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        The merchant account identifier, with which you want to process the transaction.
        Parameters:
        merchantAccount -
      • getPayment

        public PaymentResponse getPayment()
        Get payment
        Returns:
        payment
      • setPayment

        public void setPayment​(PaymentResponse payment)
        payment
        Parameters:
        payment -
      • getReference

        public String getReference()
        The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.
        Parameters:
        reference -
      • getStatus

        public DonationPaymentResponse.StatusEnum getStatus()
        The status of the donation transaction. Possible values: * **completed** * **pending** * **refused**
        Returns:
        status
      • setStatus

        public void setStatus​(DonationPaymentResponse.StatusEnum status)
        The status of the donation transaction. Possible values: * **completed** * **pending** * **refused**
        Parameters:
        status -
      • equals

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

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

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

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