Package money.zumo.zumokit
Class Account
- java.lang.Object
-
- money.zumo.zumokit.Account
-
public final class Account extends java.lang.Object
Record 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 boolean
equals(java.lang.Object obj)
java.math.BigDecimal
getAvailableBalance()
Account available balance, i.e.java.math.BigDecimal
getBalance()
Account balance.java.util.ArrayList<Card>
getCards()
Cards associated with this account.AccountCryptoProperties
getCryptoProperties()
Account crypto properties if account is a crypto account, otherwise null.java.lang.String
getCurrencyCode()
Account currency code.java.lang.String
getCurrencyType()
Account currency type.java.lang.String
getCustodyType()
Custody type.AccountFiatProperties
getFiatProperties()
Account fiat properties if account is a fiat account, otherwise null.boolean
getHasNominatedAccount()
Account has associated nominated account.java.lang.String
getId()
Unique account identifier.java.math.BigDecimal
getLedgerBalance()
Account ledger balance.java.lang.String
getNetwork()
Account network type.java.math.BigDecimal
getOverdraftLimit()
Overdraft limit.java.lang.String
getType()
Account type.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-