/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { accountingPaymentMethodsCreate } from "../funcs/accountingPaymentMethodsCreate.js"; import { accountingPaymentMethodsDelete } from "../funcs/accountingPaymentMethodsDelete.js"; import { accountingPaymentMethodsGet } from "../funcs/accountingPaymentMethodsGet.js"; import { accountingPaymentMethodsList } from "../funcs/accountingPaymentMethodsList.js"; import { accountingPaymentMethodsUpdate } from "../funcs/accountingPaymentMethodsUpdate.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 PaymentMethods extends ClientSDK { /** * List Payment Methods * * @remarks * List Payment Methods */ async list( request: operations.AccountingPaymentMethodsAllRequest, options?: RequestOptions, ): Promise< PageIterator< operations.AccountingPaymentMethodsAllResponse, { cursor: string } > > { return unwrapResultIterator(accountingPaymentMethodsList( this, request, options, )); } /** * Create Payment Method * * @remarks * Create Payment Method */ async create( request: operations.AccountingPaymentMethodsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingPaymentMethodsCreate( this, request, options, )); } /** * Get Payment Method * * @remarks * Get Payment Method */ async get( request: operations.AccountingPaymentMethodsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingPaymentMethodsGet( this, request, options, )); } /** * Update Payment Method * * @remarks * Update Payment Method */ async update( request: operations.AccountingPaymentMethodsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingPaymentMethodsUpdate( this, request, options, )); } /** * Delete Payment Method * * @remarks * Delete Payment Method */ async delete( request: operations.AccountingPaymentMethodsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingPaymentMethodsDelete( this, request, options, )); } }