UNPKG

facturapi-es6

Version:

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

37 lines (36 loc) • 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Organizations = /** @class */ (function () { function Organizations(wrapper) { this.wrapper = wrapper; } Organizations.prototype.create = function (data) { return this.wrapper.createOrganization(data); }; Organizations.prototype.list = function (params) { return this.wrapper.listOrganizations(params); }; Organizations.prototype.retrieve = function (id) { return this.wrapper.retrieveOrganization(id); }; Organizations.prototype.updateLegal = function (id, data) { return this.wrapper.updateOrganizationLegal(id, data); }; Organizations.prototype.updateCustomization = function (id, data) { return this.wrapper.updateOrganizationCustomization(id, data); }; Organizations.prototype.uploadLogo = function (id, file) { return this.wrapper.uploadOrganizationLogo(id, file); }; Organizations.prototype.uploadCertificate = function (id, cerFile, keyFile, password) { return this.wrapper.uploadOrganizationCertificate(id, cerFile, keyFile, password); }; Organizations.prototype.del = function (id) { return this.wrapper.removeOrganization(id); }; Organizations.prototype.getApiKeys = function (id) { return this.wrapper.getOrganizationApiKeys(id); }; return Organizations; }()); exports.default = Organizations;