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