Class BalanceDetails


  • public class BalanceDetails
    extends Object
    An array to specify multiple currency balances of an account
    • Constructor Detail

      • BalanceDetails

        public BalanceDetails()
    • Method Detail

      • balance

        public BalanceDetails balance​(Double balance)
        The opening balances of the account. Debits are positive, credits are negative values
        Parameters:
        balance - Double
        Returns:
        BalanceDetails
      • getBalance

        public Double getBalance()
        The opening balances of the account. Debits are positive, credits are negative values
        Returns:
        balance
      • setBalance

        public void setBalance​(Double balance)
        The opening balances of the account. Debits are positive, credits are negative values
        Parameters:
        balance - Double
      • currencyCode

        public BalanceDetails currencyCode​(String currencyCode)
        The currency of the balance (Not required for base currency)
        Parameters:
        currencyCode - String
        Returns:
        BalanceDetails
      • getCurrencyCode

        public String getCurrencyCode()
        The currency of the balance (Not required for base currency)
        Returns:
        currencyCode
      • setCurrencyCode

        public void setCurrencyCode​(String currencyCode)
        The currency of the balance (Not required for base currency)
        Parameters:
        currencyCode - String
      • currencyRate

        public BalanceDetails currencyRate​(Double currencyRate)
        (Optional) Exchange rate to base currency when money is spent or received. If not specified, XE rate for the day is applied
        Parameters:
        currencyRate - Double
        Returns:
        BalanceDetails
      • getCurrencyRate

        public Double getCurrencyRate()
        (Optional) Exchange rate to base currency when money is spent or received. If not specified, XE rate for the day is applied
        Returns:
        currencyRate
      • setCurrencyRate

        public void setCurrencyRate​(Double currencyRate)
        (Optional) Exchange rate to base currency when money is spent or received. If not specified, XE rate for the day is applied
        Parameters:
        currencyRate - Double
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object