Account
Represents a bank account.
Constructor Summary
Public Constructor | ||
public |
constructor(account: Object, member: Member) Use Member::getAccount(s). |
Member Summary
Public Members | ||
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
Gets the account's bank. |
|
public |
getBalance(keyLevel: KeyLevel): Promise<Balance> Looks up the account's balance. |
|
public |
getStandingOrder(standingOrderId: string, keyLevel: KeyLevel): Promise<StandingOrder> Looks up an existing standing account order for a given account. |
|
public |
getStandingOrders(accountId: *, offset: *, limit: *, keyLevel: *): * Looks up all of the member's standing orders on the account |
|
public |
getTransaction(transactionId: string, keyLevel: KeyLevel): Promise<Transaction> Looks up a transaction by ID. |
|
public |
Looks up the account's transactions. |
|
public |
Gets the account ID. |
|
public |
Looks up if this account is locked. |
|
public |
Gets the account owner. |
|
public |
Gets the account name. |
|
public |
Looks up if this account requires external authorization for creating transfers. |
|
public |
Looks up if this account supports retrieval of information such as balance. |
|
public |
Looks up if this account supports receiving payment. |
|
public |
Looks up if this account supports sending payment. |
|
public |
Fetches the raw account object. |
Public Constructors
Public Methods
public getBalance(keyLevel: KeyLevel): Promise<Balance> source
Looks up the account's balance.
Params:
Name | Type | Attribute | Description |
keyLevel | KeyLevel | keyLevel |
public getStandingOrder(standingOrderId: string, keyLevel: KeyLevel): Promise<StandingOrder> source
Looks up an existing standing account order for a given account.
public getStandingOrders(accountId: *, offset: *, limit: *, keyLevel: *): * source
Looks up all of the member's standing orders on the account
Params:
Name | Type | Attribute | Description |
accountId | * | ||
offset | * | ||
limit | * | ||
keyLevel | * |
Return:
* | standing orders |
public getTransaction(transactionId: string, keyLevel: KeyLevel): Promise<Transaction> source
Looks up a transaction by ID.
public getTransactions(offset: string, limit: number, keyLevel: KeyLevel): Promise<object> source
Looks up the account's transactions.
public requiresExternalAuth(): boolean source
Looks up if this account requires external authorization for creating transfers.
public supportsInformation(): boolean source
Looks up if this account supports retrieval of information such as balance.
public supportsReceivePayment(): boolean source
Looks up if this account supports receiving payment.