33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
// File generated from our OpenAPI spec
|
|
import { StripeResource } from '../StripeResource.js';
|
|
const stripeMethod = StripeResource.method;
|
|
export const SubscriptionItems = StripeResource.extend({
|
|
create: stripeMethod({ method: 'POST', fullPath: '/v1/subscription_items' }),
|
|
retrieve: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/subscription_items/{item}',
|
|
}),
|
|
update: stripeMethod({
|
|
method: 'POST',
|
|
fullPath: '/v1/subscription_items/{item}',
|
|
}),
|
|
list: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/subscription_items',
|
|
methodType: 'list',
|
|
}),
|
|
del: stripeMethod({
|
|
method: 'DELETE',
|
|
fullPath: '/v1/subscription_items/{item}',
|
|
}),
|
|
createUsageRecord: stripeMethod({
|
|
method: 'POST',
|
|
fullPath: '/v1/subscription_items/{subscription_item}/usage_records',
|
|
}),
|
|
listUsageRecordSummaries: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/subscription_items/{subscription_item}/usage_record_summaries',
|
|
methodType: 'list',
|
|
}),
|
|
});
|