@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
46 lines • 1.46 kB
JavaScript
import { OpenAPI } from '../core/OpenAPI.js';
import { request as __request } from '../core/request.js';
export class CustomerInvoiceService {
/**
* List customer_invoices
* Retrieve a paginated list of customer_invoices
* @returns any Successful response
* @throws ApiError
*/
static getCustomerInvoices({ limit = 20, offset, sort, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/customer_invoices',
query: {
'limit': limit,
'offset': offset,
'sort': sort,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
500: `Internal server error`,
},
});
}
/**
* Get customer_invoice
* Retrieve a specific customer_invoice by ID
* @returns customer_invoices Successful response
* @throws ApiError
*/
static getCustomerInvoices1({ invoiceId, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/customer_invoices/{invoice_id}',
path: {
'invoice_id': invoiceId,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
404: `Not found - Resource does not exist`,
500: `Internal server error`,
},
});
}
}
//# sourceMappingURL=CustomerInvoiceService.js.map