UNPKG

455 BJavaScriptView Raw
1'use strict';
2
3const stripeMethod = require('./StripeMethod');
4
5module.exports = {
6 create: stripeMethod({
7 method: 'POST',
8 }),
9
10 list: stripeMethod({
11 method: 'GET',
12 methodType: 'list',
13 }),
14
15 retrieve: stripeMethod({
16 method: 'GET',
17 path: '/{id}',
18 }),
19
20 update: stripeMethod({
21 method: 'POST',
22 path: '{id}',
23 }),
24
25 // Avoid 'delete' keyword in JS
26 del: stripeMethod({
27 method: 'DELETE',
28 path: '{id}',
29 }),
30};