Package money.zumo.zumokit
Class Account
- java.lang.Object
-
- money.zumo.zumokit.Account
-
public final class Account extends java.lang.ObjectRecord containing account details.
-
-
Constructor Summary
Constructors Constructor Description Account(java.lang.String id, java.lang.String currencyType, java.lang.String currencyCode, java.lang.String network, java.lang.String type, java.lang.String custodyType, java.math.BigDecimal balance, java.math.BigDecimal ledgerBalance, java.math.BigDecimal availableBalance, java.math.BigDecimal overdraftLimit, boolean hasNominatedAccount, AccountCryptoProperties cryptoProperties, AccountFiatProperties fiatProperties, java.util.ArrayList<Card> cards)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.math.BigDecimalgetAvailableBalance()Account available balance, i.e.java.math.BigDecimalgetBalance()Account balance.java.util.ArrayList<Card>getCards()Cards associated with this account.AccountCryptoPropertiesgetCryptoProperties()Account crypto properties if account is a crypto account, otherwise null.java.lang.StringgetCurrencyCode()Account currency code.java.lang.StringgetCurrencyType()Account currency type.java.lang.StringgetCustodyType()Custody type.AccountFiatPropertiesgetFiatProperties()Account fiat properties if account is a fiat account, otherwise null.booleangetHasNominatedAccount()Account has associated nominated account.java.lang.StringgetId()Unique account identifier.java.math.BigDecimalgetLedgerBalance()Account ledger balance.java.lang.StringgetNetwork()Account network type.java.math.BigDecimalgetOverdraftLimit()Overdraft limit.java.lang.StringgetType()Account type.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Account
public Account(java.lang.String id, java.lang.String currencyType, java.lang.String currencyCode, java.lang.String network, java.lang.String type, java.lang.String custodyType, java.math.BigDecimal balance, java.math.BigDecimal ledgerBalance, java.math.BigDecimal availableBalance, java.math.BigDecimal overdraftLimit, boolean hasNominatedAccount, AccountCryptoProperties cryptoProperties, AccountFiatProperties fiatProperties, java.util.ArrayList<Card> cards)
-
-
Method Detail
-
getId
public java.lang.String getId()
Unique account identifier.
-
getCurrencyType
public java.lang.String getCurrencyType()
Account currency type.- See Also:
CurrencyType
-
getCurrencyCode
public java.lang.String getCurrencyCode()
Account currency code.- See Also:
CurrencyCode
-
getNetwork
public java.lang.String getNetwork()
Account network type.- See Also:
NetworkType
-
getType
public java.lang.String getType()
Account type.- See Also:
AccountType
-
getCustodyType
public java.lang.String getCustodyType()
Custody type.- See Also:
CustodyType
-
getBalance
public java.math.BigDecimal getBalance()
Account balance.
-
getLedgerBalance
public java.math.BigDecimal getLedgerBalance()
Account ledger balance.
-
getAvailableBalance
public java.math.BigDecimal getAvailableBalance()
Account available balance, i.e. ledger balance minus pending transactions.
-
getOverdraftLimit
public java.math.BigDecimal getOverdraftLimit()
Overdraft limit.
-
getHasNominatedAccount
public boolean getHasNominatedAccount()
Account has associated nominated account.
-
getCryptoProperties
public AccountCryptoProperties getCryptoProperties()
Account crypto properties if account is a crypto account, otherwise null.
-
getFiatProperties
public AccountFiatProperties getFiatProperties()
Account fiat properties if account is a fiat account, otherwise null.
-
getCards
public java.util.ArrayList<Card> getCards()
Cards associated with this account.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-