Package com.xero.models.accounting
Class BalanceDetails
java.lang.Object
com.xero.models.accounting.BalanceDetails
An array to specify multiple currency balances of an account
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe opening balances of the account.currencyCode(String currencyCode) The currency of the balance (Not required for base currency)currencyRate(Double currencyRate) (Optional) Exchange rate to base currency when money is spent or received.booleanThe opening balances of the account.The currency of the balance (Not required for base currency)(Optional) Exchange rate to base currency when money is spent or received.inthashCode()voidsetBalance(Double balance) The opening balances of the account.voidsetCurrencyCode(String currencyCode) The currency of the balance (Not required for base currency)voidsetCurrencyRate(Double currencyRate) (Optional) Exchange rate to base currency when money is spent or received.toString()
-
Constructor Details
-
BalanceDetails
public BalanceDetails()
-
-
Method Details
-
balance
The opening balances of the account. Debits are positive, credits are negative values- Parameters:
balance- Double- Returns:
- BalanceDetails
-
getBalance
The opening balances of the account. Debits are positive, credits are negative values- Returns:
- balance
-
setBalance
The opening balances of the account. Debits are positive, credits are negative values- Parameters:
balance- Double
-
currencyCode
The currency of the balance (Not required for base currency)- Parameters:
currencyCode- String- Returns:
- BalanceDetails
-
getCurrencyCode
The currency of the balance (Not required for base currency)- Returns:
- currencyCode
-
setCurrencyCode
The currency of the balance (Not required for base currency)- Parameters:
currencyCode- String
-
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
(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
(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
-
equals
-
hashCode
-
toString
-