Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates for beta branch #1640

Merged
merged 11 commits into from
Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 11.4.0 - 2022-12-15
* [#1639](https://github.com/stripe/stripe-node/pull/1639) API Updates
* Add support for new value `invoice_overpaid` on enum `CustomerBalanceTransaction.type`
* [#1637](https://github.com/stripe/stripe-node/pull/1637) Update packages in examples/webhook-signing

## 11.3.0 - 2022-12-08
* [#1634](https://github.com/stripe/stripe-node/pull/1634) API Updates
* Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` to be optional

## 11.3.0-beta.1 - 2022-12-08
* [#1635](https://github.com/stripe/stripe-node/pull/1635) API Updates for beta branch
* Updated stable APIs to the latest version
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v213
v214
349 changes: 193 additions & 156 deletions examples/webhook-signing/package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/resources.js

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

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.

15 changes: 15 additions & 0 deletions lib/resources/TaxCalculations.js

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

18 changes: 18 additions & 0 deletions lib/resources/TaxTransactions.js

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

2 changes: 2 additions & 0 deletions src/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ module.exports = {
SubscriptionItems: require('./resources/SubscriptionItems'),
Subscriptions: require('./resources/Subscriptions'),
SubscriptionSchedules: require('./resources/SubscriptionSchedules'),
TaxCalculations: require('./resources/TaxCalculations'),
TaxCodes: require('./resources/TaxCodes'),
TaxRates: require('./resources/TaxRates'),
TaxTransactions: require('./resources/TaxTransactions'),
Tokens: require('./resources/Tokens'),
Topups: require('./resources/Topups'),
Transfers: require('./resources/Transfers'),
Expand Down
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',
}),
});
19 changes: 19 additions & 0 deletions src/resources/TaxCalculations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v1/tax/calculations',
}),

listLineItems: stripeMethod({
method: 'GET',
fullPath: '/v1/tax/calculations/{calculation}/line_items',
methodType: 'list',
}),
});
23 changes: 23 additions & 0 deletions src/resources/TaxTransactions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v1/tax/transactions',
}),

retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/tax/transactions/{transaction}',
}),

createReversal: stripeMethod({
method: 'POST',
fullPath: '/v1/tax/transactions/create_reversal',
}),
});