UNPKG

e-invoice-api

Version:

The official TypeScript library for the e-invoice API

19 lines 765 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; import { multipartFormRequestOptions } from "../../internal/uploads.mjs"; import { path } from "../../internal/utils/path.mjs"; export class Ubl extends APIResource { /** * Create a new invoice or credit note from a UBL file */ createFromUbl(body, options) { return this._client.post('/api/documents/ubl', multipartFormRequestOptions({ body, ...options }, this._client)); } /** * Get the UBL for an invoice or credit note */ get(documentID, options) { return this._client.get(path `/api/documents/${documentID}/ubl`, options); } } //# sourceMappingURL=ubl.mjs.map