Structure
TransactionsQuery
public struct TransactionsQuery: Equatable
The TransactionQuery
is used to determine which transactions to show.
If no queries are selected, all transactions will be available.
Relationships
Nested Types
TransactionsQuery.Sort
A type that determines how to sort the transactions.
TransactionsQuery.Order
A type that determines the order of the transactions.
Conforms To
Equatable
Initializers
init(accountIDs:categoryIDs:dateInterval:query:includeUpcoming:sort:order:limit:)
public init(accountIDs: [Account.ID] = [], categoryIDs: [Category.ID] = [], dateInterval: DateInterval? = nil, query: String? = nil, includeUpcoming: Bool = false, sort: Sort = .date, order: Order = .descending, limit: Int? = nil)
Initialize a new TransactionQuery
Parameters
Name | Type | Description |
---|---|---|
accountIDs | [Account.ID] |
A list of account ids to include transactions from. |
categoryIDs | [Category.ID] |
A list of caregory ids to include transactions from. |
dateInterval | DateInterval? |
A date interval for which transactions to include. |
query | String? |
Transaction query. |
includeUpcoming | Bool |
Incluce planned transactions which have not been withdrawn yet. |
sort | Sort |
Determine sortation for transactions. |
order | Order |
Determinea how the transactions will be ordered. |
limit | Int? |
The maximum amount of transactions to fetch. |
Properties
dateInterval
var dateInterval: DateInterval?
A date interval for which transactions to include.
query
var query: String?
Transaction query.
includeUpcoming
var includeUpcoming: Bool
Incluce planned transactions which have not been withdrawn yet.
sort
var sort: Sort
Determine sortation for transactions.
order
var order: Order
Determinea how the transactions will be ordered.
limit
var limit: Int?
The maximum amount of transactions to fetch.