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