/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { transactionsEventsList } from "../funcs/transactionsEventsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Events extends ClientSDK { /** * List transaction events * * @remarks * Retrieve a paginated list of events related to processing a transaction, including status changes, API requests, and webhook delivery attempts. Events are listed in chronological order, with the most recent events first. */ async list( transactionId: string, cursor?: string | null | undefined, limit?: number | undefined, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise< PageIterator > { return unwrapResultIterator(transactionsEventsList( this, transactionId, cursor, limit, merchantAccountId, options, )); } }