Representable
Represents the part of a Token member that can be accessed through an access token.
Constructor Summary
Public Constructor | ||
public |
constructor(member: Member) User Member::forAccessToken. |
Method Summary
Public Methods | ||
public |
Confirms if an account has sufficient funds for a purchase. |
|
public |
getAccount(accountId: string): Promise<Account> Looks up an account by the account ID. |
|
public |
getAccounts(): Promise<Array<Account>> Looks up linked accounts. |
|
public |
getBalance(accountId: string, keyLevel: KeyLevel): Promise<Balance> Looks up the balance of an account. |
|
public |
getBalances(accountIds: Array<string>, keyLevel: KeyLevel): Promise<Array<Balance>> Looks up the balances of an array of accounts. |
|
public |
getTransaction(accountId: string, transactionId: string, keyLevel: KeyLevel): Promise<Transaction> Looks up a transaction. |
|
public |
getTransactions(accountId: string, offset: string, limit: number, keyLevel: KeyLevel): Promise<object> Looks up all of the member's transactions for an account. |
Public Constructors
Public Methods
public confirmFunds(accountId: string, amount: number | string, currency: string): Promise<boolean> source
Confirms if an account has sufficient funds for a purchase.
public getAccount(accountId: string): Promise<Account> source
Looks up an account by the account ID.
Params:
Name | Type | Attribute | Description |
accountId | string | the ID |
public getBalance(accountId: string, keyLevel: KeyLevel): Promise<Balance> source
Looks up the balance of an account.
Params:
Name | Type | Attribute | Description |
accountId | string | ID of the account |
|
keyLevel | KeyLevel | key level |
public getBalances(accountIds: Array<string>, keyLevel: KeyLevel): Promise<Array<Balance>> source
Looks up the balances of an array of accounts.
public getTransaction(accountId: string, transactionId: string, keyLevel: KeyLevel): Promise<Transaction> source
Looks up a transaction.