/* * 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 accountingBankFeedStatementsList$module: | Promise | undefined; const accountingBankFeedStatementsList = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedStatementsList.js").accountingBankFeedStatementsList > ) => new APIPromise( (accountingBankFeedStatementsList$module ??= import( "../funcs/accountingBankFeedStatementsList.js" ).catch((error: unknown) => { accountingBankFeedStatementsList$module = undefined; throw error; })).then((module) => module.accountingBankFeedStatementsList(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedStatementsList.js").accountingBankFeedStatementsList; let accountingBankFeedStatementsCreate$module: | Promise | undefined; const accountingBankFeedStatementsCreate = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedStatementsCreate.js").accountingBankFeedStatementsCreate > ) => new APIPromise( (accountingBankFeedStatementsCreate$module ??= import( "../funcs/accountingBankFeedStatementsCreate.js" ).catch((error: unknown) => { accountingBankFeedStatementsCreate$module = undefined; throw error; })).then((module) => module.accountingBankFeedStatementsCreate(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedStatementsCreate.js").accountingBankFeedStatementsCreate; let accountingBankFeedStatementsGet$module: | Promise | undefined; const accountingBankFeedStatementsGet = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedStatementsGet.js").accountingBankFeedStatementsGet > ) => new APIPromise( (accountingBankFeedStatementsGet$module ??= import( "../funcs/accountingBankFeedStatementsGet.js" ).catch((error: unknown) => { accountingBankFeedStatementsGet$module = undefined; throw error; })).then((module) => module.accountingBankFeedStatementsGet(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedStatementsGet.js").accountingBankFeedStatementsGet; let accountingBankFeedStatementsUpdate$module: | Promise | undefined; const accountingBankFeedStatementsUpdate = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedStatementsUpdate.js").accountingBankFeedStatementsUpdate > ) => new APIPromise( (accountingBankFeedStatementsUpdate$module ??= import( "../funcs/accountingBankFeedStatementsUpdate.js" ).catch((error: unknown) => { accountingBankFeedStatementsUpdate$module = undefined; throw error; })).then((module) => module.accountingBankFeedStatementsUpdate(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedStatementsUpdate.js").accountingBankFeedStatementsUpdate; let accountingBankFeedStatementsDelete$module: | Promise | undefined; const accountingBankFeedStatementsDelete = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedStatementsDelete.js").accountingBankFeedStatementsDelete > ) => new APIPromise( (accountingBankFeedStatementsDelete$module ??= import( "../funcs/accountingBankFeedStatementsDelete.js" ).catch((error: unknown) => { accountingBankFeedStatementsDelete$module = undefined; throw error; })).then((module) => module.accountingBankFeedStatementsDelete(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedStatementsDelete.js").accountingBankFeedStatementsDelete; export class BankFeedStatements extends ClientSDK { /** * List Bank Feed Statements * * @remarks * List Bank Feed Statements */ async list( request: operations.AccountingBankFeedStatementsAllRequest, options?: RequestOptions, ): Promise< PageIterator< operations.AccountingBankFeedStatementsAllResponse, { cursor: string } > > { return unwrapResultIterator(accountingBankFeedStatementsList( this, request, options, )); } /** * Create Bank Feed Statement * * @remarks * Create Bank Feed Statement */ async create( request: operations.AccountingBankFeedStatementsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedStatementsCreate( this, request, options, )); } /** * Get Bank Feed Statement * * @remarks * Get Bank Feed Statement */ async get( request: operations.AccountingBankFeedStatementsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedStatementsGet( this, request, options, )); } /** * Update Bank Feed Statement * * @remarks * Update Bank Feed Statement */ async update( request: operations.AccountingBankFeedStatementsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedStatementsUpdate( this, request, options, )); } /** * Delete Bank Feed Statement * * @remarks * Delete Bank Feed Statement */ async delete( request: operations.AccountingBankFeedStatementsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedStatementsDelete( this, request, options, )); } }