Class NamedAccount


  • public class NamedAccount
    extends java.lang.Object
    Represents a bank account used for linking with the Token System. The identifier of the NamedAccount should be a stable id pointing to the actual client account number.
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedAccount​(io.token.proto.common.account.AccountProtos.BankAccount bankAccount, java.lang.String displayName)
      Constructs a new instance of the bank account.
      NamedAccount​(java.lang.String bankId, java.lang.String accountIdentifier)
      Constructs a new instance of the bank's account string identifier.
      NamedAccount​(java.lang.String bankId, java.lang.String accountIdentifier, java.lang.String displayName)
      Constructs a new instance of the bank's account string identifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.token.proto.common.account.AccountProtos.BankAccount getBankAccount()  
      java.lang.String getDisplayName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamedAccount

        public NamedAccount​(io.token.proto.common.account.AccountProtos.BankAccount bankAccount,
                            java.lang.String displayName)
        Constructs a new instance of the bank account.
        Parameters:
        bankAccount - bank account
        displayName - the display name for the account (checking 1**456)
      • NamedAccount

        public NamedAccount​(java.lang.String bankId,
                            java.lang.String accountIdentifier,
                            java.lang.String displayName)
        Constructs a new instance of the bank's account string identifier. A custom AccountProtos.BankAccount will be created for the identifier.
        Parameters:
        bankId - the bank id
        accountIdentifier - the bank account identifier
        displayName - the display name for the account (checking 1**456)
      • NamedAccount

        public NamedAccount​(java.lang.String bankId,
                            java.lang.String accountIdentifier)
        Constructs a new instance of the bank's account string identifier. A custom AccountProtos.BankAccount will be created for the identifier.
        Parameters:
        bankId - the bank id
        accountIdentifier - the bank account identifier
    • Method Detail

      • getBankAccount

        public io.token.proto.common.account.AccountProtos.BankAccount getBankAccount()
      • getDisplayName

        public java.lang.String getDisplayName()