/* * 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 accountingBankFeedAccountsList$module: | Promise | undefined; const accountingBankFeedAccountsList = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedAccountsList.js").accountingBankFeedAccountsList > ) => new APIPromise( (accountingBankFeedAccountsList$module ??= import( "../funcs/accountingBankFeedAccountsList.js" ).catch((error: unknown) => { accountingBankFeedAccountsList$module = undefined; throw error; })).then((module) => module.accountingBankFeedAccountsList(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedAccountsList.js").accountingBankFeedAccountsList; let accountingBankFeedAccountsCreate$module: | Promise | undefined; const accountingBankFeedAccountsCreate = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedAccountsCreate.js").accountingBankFeedAccountsCreate > ) => new APIPromise( (accountingBankFeedAccountsCreate$module ??= import( "../funcs/accountingBankFeedAccountsCreate.js" ).catch((error: unknown) => { accountingBankFeedAccountsCreate$module = undefined; throw error; })).then((module) => module.accountingBankFeedAccountsCreate(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedAccountsCreate.js").accountingBankFeedAccountsCreate; let accountingBankFeedAccountsGet$module: | Promise | undefined; const accountingBankFeedAccountsGet = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedAccountsGet.js").accountingBankFeedAccountsGet > ) => new APIPromise( (accountingBankFeedAccountsGet$module ??= import( "../funcs/accountingBankFeedAccountsGet.js" ).catch((error: unknown) => { accountingBankFeedAccountsGet$module = undefined; throw error; })).then((module) => module.accountingBankFeedAccountsGet(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedAccountsGet.js").accountingBankFeedAccountsGet; let accountingBankFeedAccountsUpdate$module: | Promise | undefined; const accountingBankFeedAccountsUpdate = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedAccountsUpdate.js").accountingBankFeedAccountsUpdate > ) => new APIPromise( (accountingBankFeedAccountsUpdate$module ??= import( "../funcs/accountingBankFeedAccountsUpdate.js" ).catch((error: unknown) => { accountingBankFeedAccountsUpdate$module = undefined; throw error; })).then((module) => module.accountingBankFeedAccountsUpdate(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedAccountsUpdate.js").accountingBankFeedAccountsUpdate; let accountingBankFeedAccountsDelete$module: | Promise | undefined; const accountingBankFeedAccountsDelete = (( ...args: Parameters< typeof import("../funcs/accountingBankFeedAccountsDelete.js").accountingBankFeedAccountsDelete > ) => new APIPromise( (accountingBankFeedAccountsDelete$module ??= import( "../funcs/accountingBankFeedAccountsDelete.js" ).catch((error: unknown) => { accountingBankFeedAccountsDelete$module = undefined; throw error; })).then((module) => module.accountingBankFeedAccountsDelete(...args).$inspect() ), )) as typeof import("../funcs/accountingBankFeedAccountsDelete.js").accountingBankFeedAccountsDelete; export class BankFeedAccounts extends ClientSDK { /** * List Bank Feed Accounts * * @remarks * List Bank Feed Accounts */ async list( request: operations.AccountingBankFeedAccountsAllRequest, options?: RequestOptions, ): Promise< PageIterator< operations.AccountingBankFeedAccountsAllResponse, { cursor: string } > > { return unwrapResultIterator(accountingBankFeedAccountsList( this, request, options, )); } /** * Create Bank Feed Account * * @remarks * Create Bank Feed Account */ async create( request: operations.AccountingBankFeedAccountsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedAccountsCreate( this, request, options, )); } /** * Get Bank Feed Account * * @remarks * Get Bank Feed Account */ async get( request: operations.AccountingBankFeedAccountsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedAccountsGet( this, request, options, )); } /** * Update Bank Feed Account * * @remarks * Update Bank Feed Account */ async update( request: operations.AccountingBankFeedAccountsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedAccountsUpdate( this, request, options, )); } /** * Delete Bank Feed Account * * @remarks * Delete Bank Feed Account */ async delete( request: operations.AccountingBankFeedAccountsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingBankFeedAccountsDelete( this, request, options, )); } }