UNPKG

facturapi-es6

Version:

FacturAPI makes it easy for developers to generate valid Invoices in Mexico (known as Factura Electrónica or CFDI).

34 lines (33 loc) • 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Invoices = /** @class */ (function () { function Invoices(wrapper) { this.wrapper = wrapper; } Invoices.prototype.create = function (data) { return this.wrapper.createInvoice(data); }; Invoices.prototype.list = function (params) { return this.wrapper.listInvoices(params); }; Invoices.prototype.retrieve = function (id) { return this.wrapper.retrieveInvoice(id); }; Invoices.prototype.cancel = function (id) { return this.wrapper.cancelInvoice(id); }; Invoices.prototype.sendByEmail = function (id, data) { return this.wrapper.sendInvoiceByEmail(id, data); }; Invoices.prototype.downloadPdf = function (id) { return this.wrapper.downloadPdf(id); }; Invoices.prototype.downloadXml = function (id) { return this.wrapper.downloadXml(id); }; Invoices.prototype.downloadZip = function (id) { return this.wrapper.downloadZip(id); }; return Invoices; }()); exports.default = Invoices;