monobank
Version:
Monobank API wrapper
31 lines (24 loc) • 545 B
JavaScript
'use strict';
const stripeMethod = require('./MonobankMethod');
module.exports = {
create: stripeMethod({
method: 'POST',
}),
list: stripeMethod({
method: 'GET',
methodType: 'list',
}),
retrieve: stripeMethod({
method: 'GET',
path: '/{id}',
}),
update: stripeMethod({
method: 'POST',
path: '{id}',
}),
// Avoid 'delete' keyword in JS
del: stripeMethod({
method: 'DELETE',
path: '{id}',
}),
};