facturapi-es6
Version:
FacturAPI makes it easy for developers to generate valid Invoices in Mexico (known as Factura Electrónica or CFDI).
25 lines (24 loc) • 793 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Customers = /** @class */ (function () {
function Customers(wrapper) {
this.wrapper = wrapper;
}
Customers.prototype.create = function (data) {
return this.wrapper.createCustomer(data);
};
Customers.prototype.list = function (params) {
return this.wrapper.listCustomers(params);
};
Customers.prototype.retrieve = function (id) {
return this.wrapper.retrieveCustomer(id);
};
Customers.prototype.update = function (id, data) {
return this.wrapper.updateCustomer(id, data);
};
Customers.prototype.del = function (id) {
return this.wrapper.removeCustomer(id);
};
return Customers;
}());
exports.default = Customers;