UNPKG

paystack

Version:
52 lines (43 loc) 736 B
'use strict'; var root = '/subscription'; module.exports = { /* Create subscription */ create: { method: 'post', endpoint: root, params: ['customer*', 'plan*', 'authorization'] }, /* Disable subscription */ disable: { method: 'post', endpoint: root, params: ['code*', 'token*'] }, /* Enable subscription */ enable: { method: 'post', endpoint: root, params: ['code*', 'token*'] }, /* Get subscription */ get: { method: 'get', endpoint: [root, '/{id_or_subscription_code}'].join(''), args: ['id_or_subscription_code'] }, /* List subscription */ list: { method: 'get', endpoint: root } };