xsolla
Version:
A Node.js client for working with the Xsolla Merchant API
20 lines (19 loc) • 435 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Model {
/**
* Model constructor.
*/
constructor(data, client) {
this.data = data;
this.client = client;
}
/**
* Update self with the given data.
*/
renew(data = {}) {
this.data = Object.assign({}, this.data, data);
return this;
}
}
exports.default = Model;