Class Balance


  • public class Balance
    extends Object
    Balance
    • Constructor Detail

      • Balance

        public Balance()
    • Method Detail

      • available

        public Balance available​(Long available)
      • getAvailable

        public Long getAvailable()
        The remaining amount available for spending.
        Returns:
        available
      • setAvailable

        public void setAvailable​(Long available)
      • getBalance

        public Long getBalance()
        The total amount in the balance.
        Returns:
        balance
      • setBalance

        public void setBalance​(Long balance)
      • getCurrency

        public String getCurrency()
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
      • getPending

        public Long getPending()
        The amount pending to be paid out but not yet available in the balance.
        Returns:
        pending
      • setPending

        public void setPending​(Long pending)
      • reserved

        public Balance reserved​(Long reserved)
      • getReserved

        public Long getReserved()
        The amount reserved for payments that have been authorised, but have not been captured yet.
        Returns:
        reserved
      • setReserved

        public void setReserved​(Long reserved)
      • equals

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

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

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

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