/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { unwrapAsync } from "../types/fp.js"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; let accountingGeneralLedgerTransactionsList$module: | Promise< typeof import("../funcs/accountingGeneralLedgerTransactionsList.js") > | undefined; const accountingGeneralLedgerTransactionsList = (( ...args: Parameters< typeof import("../funcs/accountingGeneralLedgerTransactionsList.js").accountingGeneralLedgerTransactionsList > ) => new APIPromise( (accountingGeneralLedgerTransactionsList$module ??= import( "../funcs/accountingGeneralLedgerTransactionsList.js" ).catch((error: unknown) => { accountingGeneralLedgerTransactionsList$module = undefined; throw error; })).then((module) => module.accountingGeneralLedgerTransactionsList(...args).$inspect() ), )) as typeof import("../funcs/accountingGeneralLedgerTransactionsList.js").accountingGeneralLedgerTransactionsList; let accountingGeneralLedgerTransactionsGet$module: | Promise | undefined; const accountingGeneralLedgerTransactionsGet = (( ...args: Parameters< typeof import("../funcs/accountingGeneralLedgerTransactionsGet.js").accountingGeneralLedgerTransactionsGet > ) => new APIPromise( (accountingGeneralLedgerTransactionsGet$module ??= import( "../funcs/accountingGeneralLedgerTransactionsGet.js" ).catch((error: unknown) => { accountingGeneralLedgerTransactionsGet$module = undefined; throw error; })).then((module) => module.accountingGeneralLedgerTransactionsGet(...args).$inspect() ), )) as typeof import("../funcs/accountingGeneralLedgerTransactionsGet.js").accountingGeneralLedgerTransactionsGet; export class GeneralLedgerTransactions extends ClientSDK { /** * List General Ledger Transactions * * @remarks * List General Ledger Transactions */ async list( request: operations.AccountingGeneralLedgerTransactionsAllRequest, options?: RequestOptions, ): Promise< PageIterator< operations.AccountingGeneralLedgerTransactionsAllResponse, { cursor: string } > > { return unwrapResultIterator(accountingGeneralLedgerTransactionsList( this, request, options, )); } /** * Get General Ledger Transaction * * @remarks * Get General Ledger Transaction */ async get( request: operations.AccountingGeneralLedgerTransactionsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingGeneralLedgerTransactionsGet( this, request, options, )); } }