Class Balances


  • public class Balances
    extends Object
    Balances
    • Constructor Detail

      • Balances

        public Balances()
    • Method Detail

      • available

        public Balances available​(Long available)
        The balance that is available for use.
        Parameters:
        available - The balance that is available for use.
        Returns:
        the current Balances instance, allowing for method chaining
      • getAvailable

        public Long getAvailable()
        The balance that is available for use.
        Returns:
        available The balance that is available for use.
      • setAvailable

        public void setAvailable​(Long available)
        The balance that is available for use.
        Parameters:
        available - The balance that is available for use.
      • balance

        public Balances balance​(Long balance)
        The sum of transactions that have already been settled.
        Parameters:
        balance - The sum of transactions that have already been settled.
        Returns:
        the current Balances instance, allowing for method chaining
      • getBalance

        public Long getBalance()
        The sum of transactions that have already been settled.
        Returns:
        balance The sum of transactions that have already been settled.
      • setBalance

        public void setBalance​(Long balance)
        The sum of transactions that have already been settled.
        Parameters:
        balance - The sum of transactions that have already been settled.
      • pending

        public Balances pending​(Long pending)
        The sum of transactions that will be settled in the future.
        Parameters:
        pending - The sum of transactions that will be settled in the future.
        Returns:
        the current Balances instance, allowing for method chaining
      • getPending

        public Long getPending()
        The sum of transactions that will be settled in the future.
        Returns:
        pending The sum of transactions that will be settled in the future.
      • setPending

        public void setPending​(Long pending)
        The sum of transactions that will be settled in the future.
        Parameters:
        pending - The sum of transactions that will be settled in the future.
      • reserved

        public Balances reserved​(Long reserved)
        The balance currently held in reserve.
        Parameters:
        reserved - The balance currently held in reserve.
        Returns:
        the current Balances instance, allowing for method chaining
      • getReserved

        public Long getReserved()
        The balance currently held in reserve.
        Returns:
        reserved The balance currently held in reserve.
      • setReserved

        public void setReserved​(Long reserved)
        The balance currently held in reserve.
        Parameters:
        reserved - The balance currently held in reserve.
      • equals

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

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

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

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