mpp-sdk
Version:
SDK to talk to the Memento Payments Platform
20 lines (19 loc) • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const base_js_1 = require("./base.js");
class InvitesEndpoint extends base_js_1.BaseEndpoint {
getById(id) {
return this.doRequest({
url: `/invites/${id}`,
method: "GET",
});
}
accept(id, token) {
return this.doRequest({
url: `/invites/${id}/accept`,
method: "POST",
data: { token },
});
}
}
exports.default = InvitesEndpoint;