/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { accountingInvoicesCreate } from "../funcs/accountingInvoicesCreate.js"; import { accountingInvoicesDelete } from "../funcs/accountingInvoicesDelete.js"; import { accountingInvoicesGet } from "../funcs/accountingInvoicesGet.js"; import { accountingInvoicesList } from "../funcs/accountingInvoicesList.js"; import { accountingInvoicesUpdate } from "../funcs/accountingInvoicesUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Invoices extends ClientSDK { /** * List Invoices * * @remarks * List Invoices */ async list( request: operations.AccountingInvoicesAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingInvoicesList( this, request, options, )); } /** * Create Invoice * * @remarks * Create Invoice */ async create( request: operations.AccountingInvoicesAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingInvoicesCreate( this, request, options, )); } /** * Get Invoice * * @remarks * Get Invoice */ async get( request: operations.AccountingInvoicesOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingInvoicesGet( this, request, options, )); } /** * Update Invoice * * @remarks * Update Invoice */ async update( request: operations.AccountingInvoicesUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingInvoicesUpdate( this, request, options, )); } /** * Delete Invoice * * @remarks * Delete Invoice */ async delete( request: operations.AccountingInvoicesDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingInvoicesDelete( this, request, options, )); } }