revolut-sdk
Version:
SDK for Revolut API
14 lines (13 loc) • 508 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const api_1 = require("./api");
class Counterparties extends api_1.default {
constructor() {
super(...arguments);
this.add = (counterparty) => this.post('/counterparty', counterparty);
this.get = (id) => this.fetch(`/counterparty/${id}`);
this.getAll = () => this.fetch('/counterparties');
this.del = (id) => this.delete(`/counterparty/${id}`);
}
}
exports.default = Counterparties;