/* * 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"; let accountingAgedCreditorsGet$module: | Promise | undefined; const accountingAgedCreditorsGet = (( ...args: Parameters< typeof import("../funcs/accountingAgedCreditorsGet.js").accountingAgedCreditorsGet > ) => new APIPromise( (accountingAgedCreditorsGet$module ??= import( "../funcs/accountingAgedCreditorsGet.js" ).catch((error: unknown) => { accountingAgedCreditorsGet$module = undefined; throw error; })).then((module) => module.accountingAgedCreditorsGet(...args).$inspect() ), )) as typeof import("../funcs/accountingAgedCreditorsGet.js").accountingAgedCreditorsGet; export class AgedCreditors extends ClientSDK { /** * Get Aged Creditors * * @remarks * Get Aged Creditors */ async get( request: operations.AccountingAgedCreditorsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingAgedCreditorsGet( this, request, options, )); } }