Package io.token.bank.model
Class NamedAccount
- java.lang.Object
-
- io.token.bank.model.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()
-
-
-
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 accountdisplayName
- 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 customAccountProtos.BankAccount
will be created for the identifier.- Parameters:
bankId
- the bank idaccountIdentifier
- the bank account identifierdisplayName
- 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 customAccountProtos.BankAccount
will be created for the identifier.- Parameters:
bankId
- the bank idaccountIdentifier
- the bank account identifier
-
-