Class BalanceTransferResponse


  • public class BalanceTransferResponse
    extends Object
    BalanceTransferResponse
    • Constructor Detail

      • BalanceTransferResponse

        public BalanceTransferResponse()
    • Method Detail

      • amount

        public BalanceTransferResponse amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

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

        public BalanceTransferResponse createdAt​(OffsetDateTime createdAt)
        The date when the balance transfer was requested.
        Parameters:
        createdAt -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • getCreatedAt

        public OffsetDateTime getCreatedAt()
        The date when the balance transfer was requested.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
        The date when the balance transfer was requested.
        Parameters:
        createdAt -
      • description

        public BalanceTransferResponse description​(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 -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • 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 -
      • fromMerchant

        public BalanceTransferResponse fromMerchant​(String fromMerchant)
        The unique identifier of the source merchant account from which funds are deducted.
        Parameters:
        fromMerchant -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • 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 -
      • pspReference

        public BalanceTransferResponse pspReference​(String pspReference)
        Adyen's 16-character string reference associated with the balance transfer.
        Parameters:
        pspReference -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • getPspReference

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

        public void setPspReference​(String pspReference)
        Adyen's 16-character string reference associated with the balance transfer.
        Parameters:
        pspReference -
      • reference

        public BalanceTransferResponse reference​(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 -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • 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 -
      • status

        public BalanceTransferResponse status​(BalanceTransferResponse.StatusEnum status)
        The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**.
        Parameters:
        status -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • getStatus

        public BalanceTransferResponse.StatusEnum getStatus()
        The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**.
        Returns:
        status
      • setStatus

        public void setStatus​(BalanceTransferResponse.StatusEnum status)
        The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**.
        Parameters:
        status -
      • toMerchant

        public BalanceTransferResponse toMerchant​(String toMerchant)
        The unique identifier of the destination merchant account from which funds are transferred.
        Parameters:
        toMerchant -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • 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 -
      • type

        public BalanceTransferResponse type​(BalanceTransferResponse.TypeEnum type)
        The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**.
        Parameters:
        type -
        Returns:
        the current BalanceTransferResponse instance, allowing for method chaining
      • getType

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

        public void setType​(BalanceTransferResponse.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 BalanceTransferResponse object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

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