/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { transactionsRefundsAllCreate } from "../funcs/transactionsRefundsAllCreate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class All extends ClientSDK { /** * Create batch transaction refund * * @remarks * Create a refund for all instruments on a transaction. */ async create( transactionId: string, transactionRefundAllCreate?: | components.TransactionRefundAllCreate | null | undefined, merchantAccountId?: string | null | undefined, idempotencyKey?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(transactionsRefundsAllCreate( this, transactionId, transactionRefundAllCreate, merchantAccountId, idempotencyKey, options, )); } }