Skip to content

Commit

Permalink
Codegen for openapi v214
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Dec 15, 2022
1 parent 5094650 commit b62648b
Show file tree
Hide file tree
Showing 9 changed files with 2,938 additions and 4,026 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v213
v214
28 changes: 28 additions & 0 deletions lib/resources/Quotes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions src/resources/Quotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ module.exports = StripeResource.extend({
fullPath: '/v1/quotes/{quote}/cancel',
}),

draftQuote: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/draft',
}),

finalizeQuote: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/finalize',
Expand All @@ -54,10 +59,39 @@ module.exports = StripeResource.extend({
methodType: 'list',
}),

listLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/lines',
methodType: 'list',
}),

pdf: stripeMethod({
host: 'files.stripe.com',
method: 'GET',
fullPath: '/v1/quotes/{quote}/pdf',
streaming: true,
}),

previewInvoiceLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoice_lines',
methodType: 'list',
}),

previewInvoices: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices',
methodType: 'list',
}),

previewSubscriptionSchedules: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
methodType: 'list',
}),

reestimate: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/reestimate',
}),
});
Loading

0 comments on commit b62648b

Please sign in to comment.