/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { accountingRefundsCreate } from "../funcs/accountingRefundsCreate.js"; import { accountingRefundsDelete } from "../funcs/accountingRefundsDelete.js"; import { accountingRefundsGet } from "../funcs/accountingRefundsGet.js"; import { accountingRefundsList } from "../funcs/accountingRefundsList.js"; import { accountingRefundsUpdate } from "../funcs/accountingRefundsUpdate.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 Refunds extends ClientSDK { /** * List Refunds * * @remarks * List Refunds */ async list( request: operations.AccountingRefundsAllRequest, options?: RequestOptions, ): Promise< PageIterator > { return unwrapResultIterator(accountingRefundsList( this, request, options, )); } /** * Create Refund * * @remarks * Create Refund */ async create( request: operations.AccountingRefundsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingRefundsCreate( this, request, options, )); } /** * Get Refund * * @remarks * Get Refund */ async get( request: operations.AccountingRefundsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingRefundsGet( this, request, options, )); } /** * Update Refund * * @remarks * Update Refund */ async update( request: operations.AccountingRefundsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingRefundsUpdate( this, request, options, )); } /** * Delete Refund * * @remarks * Delete Refund */ async delete( request: operations.AccountingRefundsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingRefundsDelete( this, request, options, )); } }