stripe
Version:
Stripe API wrapper
37 lines (36 loc) • 1.26 kB
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../StripeResource.js';
const stripeMethod = StripeResource.method;
export const Products = StripeResource.extend({
create: stripeMethod({ method: 'POST', fullPath: '/v1/products' }),
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/products/{id}' }),
update: stripeMethod({ method: 'POST', fullPath: '/v1/products/{id}' }),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/products',
methodType: 'list',
}),
del: stripeMethod({ method: 'DELETE', fullPath: '/v1/products/{id}' }),
createFeature: stripeMethod({
method: 'POST',
fullPath: '/v1/products/{product}/features',
}),
deleteFeature: stripeMethod({
method: 'DELETE',
fullPath: '/v1/products/{product}/features/{id}',
}),
listFeatures: stripeMethod({
method: 'GET',
fullPath: '/v1/products/{product}/features',
methodType: 'list',
}),
retrieveFeature: stripeMethod({
method: 'GET',
fullPath: '/v1/products/{product}/features/{id}',
}),
search: stripeMethod({
method: 'GET',
fullPath: '/v1/products/search',
methodType: 'search',
}),
});