/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { transactionsCapturesGet } from "../funcs/transactionsCapturesGet.js"; import { transactionsCapturesList } from "../funcs/transactionsCapturesList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Captures extends ClientSDK { /** * List transaction captures * * @remarks * List all captures for a specific transaction. */ async list( transactionId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(transactionsCapturesList( this, transactionId, merchantAccountId, options, )); } /** * Get transaction capture * * @remarks * Retrieve a specific capture for a transaction by its unique identifier. */ async get( transactionId: string, captureId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(transactionsCapturesGet( this, transactionId, captureId, merchantAccountId, options, )); } }