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 #1633

Merged
merged 28 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
539e72c
Add type information here and there (#1612)
pakrym-stripe Nov 11, 2022
7c11056
Annotate prototypes with types (#1619)
pakrym-stripe Nov 11, 2022
3e80143
Next major release changes (#1608)
anniel-stripe Nov 16, 2022
a2114a5
Bump version to 11.0.0
anniel-stripe Nov 16, 2022
250a35f
API Updates (#1622)
pakrym-stripe Nov 17, 2022
bf27901
API Updates (#1623)
pakrym-stripe Nov 17, 2022
90361ac
Bump version to 11.1.0
pakrym-stripe Nov 17, 2022
38fe896
Split resource and service types (#1624)
pakrym-stripe Nov 22, 2022
219796d
Move child resource method params next to method declarations (#1626)
pakrym-stripe Nov 23, 2022
547d9d3
Remove API version from the path (#1625)
pakrym-stripe Nov 23, 2022
f73f7d8
remove unneeded IIFE
mifi Nov 28, 2022
a140886
Merge pull request #1627 from mifi/patch-1
richardm-stripe Nov 29, 2022
cb83973
Make id non-optional except for upcoming invoice
richardm-stripe Nov 29, 2022
6a2576b
add Stripe.UpcomingInvoice
richardm-stripe Nov 30, 2022
c85072c
index.d.ts
richardm-stripe Nov 30, 2022
c6b9b93
Update types/UpcomingInvoices.d.ts
richardm-stripe Dec 1, 2022
f8fa70b
Update types/UpcomingInvoices.d.ts
richardm-stripe Dec 1, 2022
247c35e
Merge pull request #1629 from stripe/richardm-upcoming-invoice-narrow…
richardm-stripe Dec 1, 2022
dae38f9
Remove BASIC_METHODS from TS definitions (#1630)
pakrym-stripe Dec 5, 2022
71d1240
Codegen for openapi v211
richardm-stripe Dec 6, 2022
0f6fa9e
Merge pull request #1631 from stripe/latest-codegen-master
richardm-stripe Dec 6, 2022
1309e79
Codegen for openapi v212
richardm-stripe Dec 6, 2022
1267069
Merge pull request #1632 from stripe/latest-codegen-master
richardm-stripe Dec 6, 2022
a91857a
Bump version to 11.2.0
richardm-stripe Dec 6, 2022
0355ad1
Set version to 11.2.0 to simplify merge
pakrym-stripe Dec 8, 2022
f894211
Include latest changes from the master branch
pakrym-stripe Dec 8, 2022
495db76
Reset version to 10.18.0-beta.1
pakrym-stripe Dec 8, 2022
3d3a0a5
Codegen for openapi v212
pakrym-stripe Dec 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ module.exports = {
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/triple-slash-reference': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/no-var-requires': 0,
'prefer-rest-params': 'off',
},
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
- "16"
- "14"
- "12"
- "10"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-08-01
2022-11-15
37 changes: 36 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
# Changelog

## 11.2.0 - 2022-12-06
* [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates
* Add support for `flow_data` on `BillingPortalSessionCreateParams`
* Add support for `flow` on `BillingPortal.Session`
* [#1631](https://github.com/stripe/stripe-node/pull/1631) API Updates
* Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
* Add support for `invoice_creation` on `Checkout.Session` and `CheckoutSessionCreateParams`
* Add support for `invoice` on `Checkout.Session`
* Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]`
* [#1630](https://github.com/stripe/stripe-node/pull/1630) Remove BASIC_METHODS from TS definitions
* [#1629](https://github.com/stripe/stripe-node/pull/1629) Narrower type for stripe.invoices.retrieveUpcoming()
* [#1627](https://github.com/stripe/stripe-node/pull/1627) remove unneeded IIFE
* [#1625](https://github.com/stripe/stripe-node/pull/1625) Remove API version from the path
* [#1626](https://github.com/stripe/stripe-node/pull/1626) Move child resource method params next to method declarations
* [#1624](https://github.com/stripe/stripe-node/pull/1624) Split resource and service types

## 11.1.0 - 2022-11-17
* [#1623](https://github.com/stripe/stripe-node/pull/1623) API Updates
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code`
* [#1622](https://github.com/stripe/stripe-node/pull/1622) API Updates
* Add support for `custom_text` on `Checkout.Session`, `CheckoutSessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code`

## 11.0.0 - 2022-11-16

This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15

"⚠️" symbol highlights breaking changes.

* [#1608](https://github.com/stripe/stripe-node/pull/1608) Next major release changes
* [#1619](https://github.com/stripe/stripe-node/pull/1619) Annotate prototypes with types
* [#1612](https://github.com/stripe/stripe-node/pull/1612) Add type information here and there
* [#1615](https://github.com/stripe/stripe-node/pull/1615) API Updates
* ⚠️ Remove support for `tos_shown_and_accepted` on `CheckoutSessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked.

## 10.18.0-beta.1 - 2022-11-10
* [#1616](https://github.com/stripe/stripe-node/pull/1616) API Updates for beta branch
* Updated stable APIs to the latest version
* Add `discount_end` to `Discount`.
* Add `url` to `MerchantData`.
* Add `url` to `MerchantData`.

## 10.17.0 - 2022-11-08
* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v207
v212
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See [video demonstrations][youtube-playlist] covering how to use the library.

## Requirements

Node 8, 10 or higher.
Node 12 or higher.

## Installation

Expand Down Expand Up @@ -54,13 +54,11 @@ Or using ES modules and `async`/`await`:
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');

(async () => {
const customer = await stripe.customers.create({
email: 'customer@example.com',
});
const customer = await stripe.customers.create({
email: 'customer@example.com',
});

console.log(customer.id);
})();
console.log(customer.id);
```

### Usage with TypeScript
Expand All @@ -73,7 +71,7 @@ and instantiate it as `new Stripe()` with the latest API version.
```ts
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...', {
apiVersion: '2022-08-01',
apiVersion: '2022-11-15',
});

const createCustomer = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import env from 'dotenv';
env.config();

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
apiVersion: '2022-08-01',
apiVersion: '2022-11-15',
});

const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET;
Expand Down
10 changes: 9 additions & 1 deletion lib/Error.js

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

26 changes: 0 additions & 26 deletions lib/StripeMethod.basic.js

This file was deleted.

42 changes: 11 additions & 31 deletions lib/StripeResource.js

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

34 changes: 10 additions & 24 deletions lib/Webhooks.js

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

2 changes: 1 addition & 1 deletion lib/apiVersion.js

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

1 change: 1 addition & 0 deletions lib/autoPagination.js

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

Loading