36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
// File generated from our OpenAPI spec
|
|
import { StripeResource } from '../StripeResource.js';
|
|
const stripeMethod = StripeResource.method;
|
|
export const Quotes = StripeResource.extend({
|
|
create: stripeMethod({ method: 'POST', fullPath: '/v1/quotes' }),
|
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/quotes/{quote}' }),
|
|
update: stripeMethod({ method: 'POST', fullPath: '/v1/quotes/{quote}' }),
|
|
list: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/quotes',
|
|
methodType: 'list',
|
|
}),
|
|
accept: stripeMethod({ method: 'POST', fullPath: '/v1/quotes/{quote}/accept' }),
|
|
cancel: stripeMethod({ method: 'POST', fullPath: '/v1/quotes/{quote}/cancel' }),
|
|
finalizeQuote: stripeMethod({
|
|
method: 'POST',
|
|
fullPath: '/v1/quotes/{quote}/finalize',
|
|
}),
|
|
listComputedUpfrontLineItems: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
|
|
methodType: 'list',
|
|
}),
|
|
listLineItems: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/quotes/{quote}/line_items',
|
|
methodType: 'list',
|
|
}),
|
|
pdf: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/quotes/{quote}/pdf',
|
|
host: 'files.stripe.com',
|
|
streaming: true,
|
|
}),
|
|
});
|