Class BalanceTransferRequest


  • public class BalanceTransferRequest
    extends Object
    BalanceTransferRequest
    • Constructor Detail

      • BalanceTransferRequest

        public BalanceTransferRequest()
    • Method Detail

      • getAmount

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

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

        public String getDescription()
        A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.
        Parameters:
        description -
      • getFromMerchant

        public String getFromMerchant()
        The unique identifier of the source merchant account from which funds are deducted.
        Returns:
        fromMerchant
      • setFromMerchant

        public void setFromMerchant​(String fromMerchant)
        The unique identifier of the source merchant account from which funds are deducted.
        Parameters:
        fromMerchant -
      • getReference

        public String getReference()
        A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters.
        Parameters:
        reference -
      • getToMerchant

        public String getToMerchant()
        The unique identifier of the destination merchant account from which funds are transferred.
        Returns:
        toMerchant
      • setToMerchant

        public void setToMerchant​(String toMerchant)
        The unique identifier of the destination merchant account from which funds are transferred.
        Parameters:
        toMerchant -
      • getType

        public BalanceTransferRequest.TypeEnum getType()
        The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.
        Returns:
        type
      • setType

        public void setType​(BalanceTransferRequest.TypeEnum type)
        The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.
        Parameters:
        type -
      • equals

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

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

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

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