Class Account


  • public final class Account
    extends java.lang.Object
    Record containing account details.
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object