/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { accountingGeneralLedgerTransactionsGet } from "../funcs/accountingGeneralLedgerTransactionsGet.js"; import { accountingGeneralLedgerTransactionsList } from "../funcs/accountingGeneralLedgerTransactionsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; 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, )); } }