stripe 14.0.0 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +2 -0
- package/types/BankAccounts.d.ts +2 -0
- package/types/Capabilities.d.ts +2 -0
- package/types/Checkout/Sessions.d.ts +2 -2
- package/types/Persons.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 14.1.0 - 2023-10-17
|
|
4
|
+
* [#1933](https://github.com/stripe/stripe-node/pull/1933) Update generated code
|
|
5
|
+
* Add support for new value `invalid_dob_age_under_minimum` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
|
|
6
|
+
* Change `Checkout.Session.client_secret` and `Checkout.Session.ui_mode` to be required
|
|
7
|
+
|
|
3
8
|
## 14.0.0 - 2023-10-16
|
|
4
9
|
* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe` package.
|
|
5
10
|
* [#1932](https://github.com/stripe/stripe-node/pull/1932) Update generated code
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
14.
|
|
1
|
+
14.1.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '14.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '14.1.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '14.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '14.1.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
package/types/Accounts.d.ts
CHANGED
|
@@ -769,6 +769,7 @@ declare module 'stripe' {
|
|
|
769
769
|
| 'invalid_company_name_denylisted'
|
|
770
770
|
| 'invalid_dob_age_over_maximum'
|
|
771
771
|
| 'invalid_dob_age_under_18'
|
|
772
|
+
| 'invalid_dob_age_under_minimum'
|
|
772
773
|
| 'invalid_product_description_length'
|
|
773
774
|
| 'invalid_product_description_url_match'
|
|
774
775
|
| 'invalid_representative_country'
|
|
@@ -932,6 +933,7 @@ declare module 'stripe' {
|
|
|
932
933
|
| 'invalid_company_name_denylisted'
|
|
933
934
|
| 'invalid_dob_age_over_maximum'
|
|
934
935
|
| 'invalid_dob_age_under_18'
|
|
936
|
+
| 'invalid_dob_age_under_minimum'
|
|
935
937
|
| 'invalid_product_description_length'
|
|
936
938
|
| 'invalid_product_description_url_match'
|
|
937
939
|
| 'invalid_representative_country'
|
package/types/BankAccounts.d.ts
CHANGED
|
@@ -170,6 +170,7 @@ declare module 'stripe' {
|
|
|
170
170
|
| 'invalid_company_name_denylisted'
|
|
171
171
|
| 'invalid_dob_age_over_maximum'
|
|
172
172
|
| 'invalid_dob_age_under_18'
|
|
173
|
+
| 'invalid_dob_age_under_minimum'
|
|
173
174
|
| 'invalid_product_description_length'
|
|
174
175
|
| 'invalid_product_description_url_match'
|
|
175
176
|
| 'invalid_representative_country'
|
|
@@ -301,6 +302,7 @@ declare module 'stripe' {
|
|
|
301
302
|
| 'invalid_company_name_denylisted'
|
|
302
303
|
| 'invalid_dob_age_over_maximum'
|
|
303
304
|
| 'invalid_dob_age_under_18'
|
|
305
|
+
| 'invalid_dob_age_under_minimum'
|
|
304
306
|
| 'invalid_product_description_length'
|
|
305
307
|
| 'invalid_product_description_url_match'
|
|
306
308
|
| 'invalid_representative_country'
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ declare module 'stripe' {
|
|
|
126
126
|
| 'invalid_company_name_denylisted'
|
|
127
127
|
| 'invalid_dob_age_over_maximum'
|
|
128
128
|
| 'invalid_dob_age_under_18'
|
|
129
|
+
| 'invalid_dob_age_under_minimum'
|
|
129
130
|
| 'invalid_product_description_length'
|
|
130
131
|
| 'invalid_product_description_url_match'
|
|
131
132
|
| 'invalid_representative_country'
|
|
@@ -295,6 +296,7 @@ declare module 'stripe' {
|
|
|
295
296
|
| 'invalid_company_name_denylisted'
|
|
296
297
|
| 'invalid_dob_age_over_maximum'
|
|
297
298
|
| 'invalid_dob_age_under_18'
|
|
299
|
+
| 'invalid_dob_age_under_minimum'
|
|
298
300
|
| 'invalid_product_description_length'
|
|
299
301
|
| 'invalid_product_description_url_match'
|
|
300
302
|
| 'invalid_representative_country'
|
|
@@ -72,7 +72,7 @@ declare module 'stripe' {
|
|
|
72
72
|
/**
|
|
73
73
|
* Client secret to be used when initializing Stripe.js embedded checkout.
|
|
74
74
|
*/
|
|
75
|
-
client_secret
|
|
75
|
+
client_secret: string | null;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Results of `consent_collection` for this session.
|
|
@@ -287,7 +287,7 @@ declare module 'stripe' {
|
|
|
287
287
|
/**
|
|
288
288
|
* The UI mode of the Session. Can be `hosted` (default) or `embedded`.
|
|
289
289
|
*/
|
|
290
|
-
ui_mode
|
|
290
|
+
ui_mode: Session.UiMode | null;
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.`
|
package/types/Persons.d.ts
CHANGED
|
@@ -361,6 +361,7 @@ declare module 'stripe' {
|
|
|
361
361
|
| 'invalid_company_name_denylisted'
|
|
362
362
|
| 'invalid_dob_age_over_maximum'
|
|
363
363
|
| 'invalid_dob_age_under_18'
|
|
364
|
+
| 'invalid_dob_age_under_minimum'
|
|
364
365
|
| 'invalid_product_description_length'
|
|
365
366
|
| 'invalid_product_description_url_match'
|
|
366
367
|
| 'invalid_representative_country'
|
|
@@ -553,6 +554,7 @@ declare module 'stripe' {
|
|
|
553
554
|
| 'invalid_company_name_denylisted'
|
|
554
555
|
| 'invalid_dob_age_over_maximum'
|
|
555
556
|
| 'invalid_dob_age_under_18'
|
|
557
|
+
| 'invalid_dob_age_under_minimum'
|
|
556
558
|
| 'invalid_product_description_length'
|
|
557
559
|
| 'invalid_product_description_url_match'
|
|
558
560
|
| 'invalid_representative_country'
|