TransactionList
A list associated with a transaction query.
Constructors
Constructor
new TransactionList(book, payload): TransactionList;Parameters
| Parameter | Type |
|---|---|
book | Book |
payload | TransactionList |
Returns
TransactionList
Methods
getAccount()
getAccount(): Promise<Account | undefined>;Retrieves the account associated with the query, when filtering by account.
Returns
Promise<Account | undefined>
The account associated with the query, or undefined if not set
getCursor()
getCursor(): string | undefined;Gets the cursor associated with the query for pagination.
Returns
string | undefined
The cursor associated with the query for pagination
getFirst()
getFirst(): Transaction | undefined;Gets the first Transaction in the list.
Returns
Transaction | undefined
The first Transaction in the list
getItems()
getItems(): Transaction[];Gets the transactions in the list.
Returns
An array of Transaction objects
size()
size(): number;Gets the total number of transactions in the list.
Returns
number
The total number of transactions