stripe
Version:
Stripe API wrapper
15 lines (14 loc) • 600 B
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../StripeResource.js';
const stripeMethod = StripeResource.method;
export const Plans = StripeResource.extend({
create: stripeMethod({ method: 'POST', fullPath: '/v1/plans' }),
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/plans/{plan}' }),
update: stripeMethod({ method: 'POST', fullPath: '/v1/plans/{plan}' }),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/plans',
methodType: 'list',
}),
del: stripeMethod({ method: 'DELETE', fullPath: '/v1/plans/{plan}' }),
});