Class DonationRequest


  • public class DonationRequest
    extends Object
    DonationRequest
    • Constructor Detail

      • DonationRequest

        public DonationRequest()
    • Method Detail

      • donationAccount

        public DonationRequest donationAccount​(String donationAccount)
        The Adyen account name of the charity.
        Parameters:
        donationAccount - The Adyen account name of the charity.
        Returns:
        the current DonationRequest instance, allowing for method chaining
      • getDonationAccount

        public String getDonationAccount()
        The Adyen account name of the charity.
        Returns:
        donationAccount The Adyen account name of the charity.
      • setDonationAccount

        public void setDonationAccount​(String donationAccount)
        The Adyen account name of the charity.
        Parameters:
        donationAccount - The Adyen account name of the charity.
      • merchantAccount

        public DonationRequest merchantAccount​(String merchantAccount)
        The merchant account that is used to process the payment.
        Parameters:
        merchantAccount - The merchant account that is used to process the payment.
        Returns:
        the current DonationRequest instance, allowing for method chaining
      • getMerchantAccount

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

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

        public DonationRequest modificationAmount​(Amount modificationAmount)
        modificationAmount
        Parameters:
        modificationAmount -
        Returns:
        the current DonationRequest instance, allowing for method chaining
      • getModificationAmount

        public Amount getModificationAmount()
        Get modificationAmount
        Returns:
        modificationAmount
      • setModificationAmount

        public void setModificationAmount​(Amount modificationAmount)
        modificationAmount
        Parameters:
        modificationAmount -
      • originalReference

        public DonationRequest originalReference​(String originalReference)
        The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification
        Parameters:
        originalReference - The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification
        Returns:
        the current DonationRequest instance, allowing for method chaining
      • getOriginalReference

        public String getOriginalReference()
        The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification
        Returns:
        originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification
      • setOriginalReference

        public void setOriginalReference​(String originalReference)
        The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification
        Parameters:
        originalReference - The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification
      • platformChargebackLogic

        public DonationRequest platformChargebackLogic​(PlatformChargebackLogic platformChargebackLogic)
        platformChargebackLogic
        Parameters:
        platformChargebackLogic -
        Returns:
        the current DonationRequest instance, allowing for method chaining
      • getPlatformChargebackLogic

        public PlatformChargebackLogic getPlatformChargebackLogic()
        Get platformChargebackLogic
        Returns:
        platformChargebackLogic
      • setPlatformChargebackLogic

        public void setPlatformChargebackLogic​(PlatformChargebackLogic platformChargebackLogic)
        platformChargebackLogic
        Parameters:
        platformChargebackLogic -
      • reference

        public DonationRequest reference​(String reference)
        Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
        Parameters:
        reference - Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
        Returns:
        the current DonationRequest instance, allowing for method chaining
      • getReference

        public String getReference()
        Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
        Returns:
        reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
      • setReference

        public void setReference​(String reference)
        Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
        Parameters:
        reference - Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.
      • includeNullValues

        public DonationRequest includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

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

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

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

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

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