Package com.xero.models.accounting
Class BalanceDetails
- java.lang.Object
-
- com.xero.models.accounting.BalanceDetails
-
public class BalanceDetails extends Object
An array to specify multiple currency balances of an account
-
-
Constructor Summary
Constructors Constructor Description BalanceDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceDetailsbalance(Double balance)The opening balances of the account.BalanceDetailscurrencyCode(String currencyCode)The currency of the balance (Not required for base currency)BalanceDetailscurrencyRate(Double currencyRate)(Optional) Exchange rate to base currency when money is spent or received.booleanequals(Object o)DoublegetBalance()The opening balances of the account.StringgetCurrencyCode()The currency of the balance (Not required for base currency)DoublegetCurrencyRate()(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.StringtoString()
-
-
-
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
-
-