Instance Method

transactionsByStatusesAndTypes(statuses:types:)

Retrieves transactions matching one or more statuses and payment types.

Declaration

func transactionsByStatusesAndTypes(statuses: [KoardTransaction.Status], types: [PaymentType]) async throws -> TransactionHistoryResponse

Parameters

statuses

A list of statuses to include in the result.

types

A list of payment types (e.g. .sale, .refund) to filter by.

Return Value

A filtered list of transactions.

Discussion

Use this to perform complex queries involving multiple status and type filters.