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