stripe 8.189.0 → 8.193.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 +27 -0
- package/README.md +0 -1
- package/VERSION +1 -1
- package/package.json +1 -2
- package/types/2020-08-27/BillingPortal/Configurations.d.ts +15 -0
- package/types/2020-08-27/Capabilities.d.ts +1 -1
- package/types/2020-08-27/Charges.d.ts +1 -1
- package/types/2020-08-27/Checkout/Sessions.d.ts +9 -7
- package/types/2020-08-27/Customers.d.ts +3 -1
- package/types/2020-08-27/InvoiceLineItems.d.ts +4 -2
- package/types/2020-08-27/Invoices.d.ts +7 -3
- package/types/2020-08-27/Issuing/Cards.d.ts +56 -0
- package/types/2020-08-27/PaymentIntents.d.ts +82 -5
- package/types/2020-08-27/PaymentMethods.d.ts +2 -2
- package/types/2020-08-27/SetupIntents.d.ts +1 -1
- package/types/2020-08-27/Subscriptions.d.ts +5 -5
- package/types/2020-08-27/TaxIds.d.ts +6 -2
- package/types/2020-08-27/TaxRates.d.ts +3 -0
- package/types/2020-08-27/Terminal/Locations.d.ts +1 -0
- package/types/2020-08-27/Terminal/Readers.d.ts +1 -1
- package/types/lib.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.193.0 - 2021-12-09
|
|
4
|
+
* [#1308](https://github.com/stripe/stripe-node/pull/1308) API Updates
|
|
5
|
+
* Add support for `metadata` on `BillingPortalConfigurationCreateParams`, `BillingPortalConfigurationUpdateParams`, and `BillingPortal.Configuration`
|
|
6
|
+
|
|
7
|
+
## 8.192.0 - 2021-12-09
|
|
8
|
+
* [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates
|
|
9
|
+
* Add support for new values `ge_vat` and `ua_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
|
|
10
|
+
* Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
11
|
+
* Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)`
|
|
12
|
+
* Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
13
|
+
* Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`
|
|
14
|
+
* [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json
|
|
15
|
+
* [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring
|
|
16
|
+
|
|
17
|
+
## 8.191.0 - 2021-11-19
|
|
18
|
+
* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates
|
|
19
|
+
* Add support for `wallets` on `Issuing.Card`
|
|
20
|
+
|
|
21
|
+
* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates
|
|
22
|
+
* Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
23
|
+
* Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type`
|
|
24
|
+
|
|
25
|
+
## 8.190.0 - 2021-11-17
|
|
26
|
+
* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
|
|
27
|
+
* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
|
|
28
|
+
|
|
29
|
+
|
|
3
30
|
## 8.189.0 - 2021-11-16
|
|
4
31
|
* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
|
|
5
32
|
* Add support for new resource `ShippingRate`
|
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/stripe)
|
|
4
4
|
[](https://travis-ci.org/stripe/stripe-node)
|
|
5
|
-
[](https://coveralls.io/github/stripe/stripe-node)
|
|
6
5
|
[](https://www.npmjs.com/package/stripe)
|
|
7
6
|
[](https://runkit.com/npm/stripe)
|
|
8
7
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.193.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stripe",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.193.0",
|
|
4
4
|
"description": "Stripe API wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stripe",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"@typescript-eslint/parser": "^2.13.0",
|
|
32
32
|
"chai": "~4.2.0",
|
|
33
33
|
"chai-as-promised": "~7.1.1",
|
|
34
|
-
"coveralls": "^3.0.0",
|
|
35
34
|
"eslint": "^6.8.0",
|
|
36
35
|
"eslint-config-prettier": "^4.1.0",
|
|
37
36
|
"eslint-plugin-chai-friendly": "^0.4.0",
|
|
@@ -51,6 +51,11 @@ declare module 'stripe' {
|
|
|
51
51
|
*/
|
|
52
52
|
livemode: boolean;
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
56
|
+
*/
|
|
57
|
+
metadata: Stripe.Metadata | null;
|
|
58
|
+
|
|
54
59
|
/**
|
|
55
60
|
* Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
56
61
|
*/
|
|
@@ -251,6 +256,11 @@ declare module 'stripe' {
|
|
|
251
256
|
* Specifies which fields in the response should be expanded.
|
|
252
257
|
*/
|
|
253
258
|
expand?: Array<string>;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
262
|
+
*/
|
|
263
|
+
metadata?: Stripe.MetadataParam;
|
|
254
264
|
}
|
|
255
265
|
|
|
256
266
|
namespace ConfigurationCreateParams {
|
|
@@ -482,6 +492,11 @@ declare module 'stripe' {
|
|
|
482
492
|
* Information about the features available in the portal.
|
|
483
493
|
*/
|
|
484
494
|
features?: ConfigurationUpdateParams.Features;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
498
|
+
*/
|
|
499
|
+
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
485
500
|
}
|
|
486
501
|
|
|
487
502
|
namespace ConfigurationUpdateParams {
|
|
@@ -187,7 +187,7 @@ declare module 'stripe' {
|
|
|
187
187
|
*
|
|
188
188
|
* - [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses)
|
|
189
189
|
*
|
|
190
|
-
* If you believe that the rejection is in error, please contact support
|
|
190
|
+
* If you believe that the rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance.
|
|
191
191
|
*/
|
|
192
192
|
disabled_reason: string | null;
|
|
193
193
|
|
|
@@ -1419,7 +1419,7 @@ declare module 'stripe' {
|
|
|
1419
1419
|
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Preferred language of the Klarna authorization page that the customer is redirected to.
|
|
1422
|
-
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `fr-FR`, or `en-FR`
|
|
1422
|
+
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `fr-FR`, or `en-FR`
|
|
1423
1423
|
*/
|
|
1424
1424
|
preferred_locale: string | null;
|
|
1425
1425
|
}
|
|
@@ -317,7 +317,7 @@ declare module 'stripe' {
|
|
|
317
317
|
|
|
318
318
|
interface TaxId {
|
|
319
319
|
/**
|
|
320
|
-
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, or `unknown`
|
|
320
|
+
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, or `unknown`
|
|
321
321
|
*/
|
|
322
322
|
type: TaxId.Type;
|
|
323
323
|
|
|
@@ -345,6 +345,7 @@ declare module 'stripe' {
|
|
|
345
345
|
| 'es_cif'
|
|
346
346
|
| 'eu_vat'
|
|
347
347
|
| 'gb_vat'
|
|
348
|
+
| 'ge_vat'
|
|
348
349
|
| 'hk_br'
|
|
349
350
|
| 'id_npwp'
|
|
350
351
|
| 'il_vat'
|
|
@@ -366,6 +367,7 @@ declare module 'stripe' {
|
|
|
366
367
|
| 'sg_uen'
|
|
367
368
|
| 'th_vat'
|
|
368
369
|
| 'tw_vat'
|
|
370
|
+
| 'ua_vat'
|
|
369
371
|
| 'unknown'
|
|
370
372
|
| 'us_ein'
|
|
371
373
|
| 'za_vat';
|
|
@@ -1133,12 +1135,12 @@ declare module 'stripe' {
|
|
|
1133
1135
|
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
1134
1136
|
|
|
1135
1137
|
/**
|
|
1136
|
-
* The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.
|
|
1138
|
+
* [Deprecated] The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.
|
|
1137
1139
|
*/
|
|
1138
1140
|
amount?: number;
|
|
1139
1141
|
|
|
1140
1142
|
/**
|
|
1141
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required if `amount` is passed.
|
|
1143
|
+
* [Deprecated] Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required if `amount` is passed.
|
|
1142
1144
|
*/
|
|
1143
1145
|
currency?: string;
|
|
1144
1146
|
|
|
@@ -1155,22 +1157,22 @@ declare module 'stripe' {
|
|
|
1155
1157
|
dynamic_tax_rates?: Array<string>;
|
|
1156
1158
|
|
|
1157
1159
|
/**
|
|
1158
|
-
* A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
|
|
1160
|
+
* [Deprecated] A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
|
|
1159
1161
|
*/
|
|
1160
1162
|
images?: Array<string>;
|
|
1161
1163
|
|
|
1162
1164
|
/**
|
|
1163
|
-
* The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
|
|
1165
|
+
* [Deprecated] The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
|
|
1164
1166
|
*/
|
|
1165
1167
|
name?: string;
|
|
1166
1168
|
|
|
1167
1169
|
/**
|
|
1168
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price
|
|
1170
|
+
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
|
1169
1171
|
*/
|
|
1170
1172
|
price?: string;
|
|
1171
1173
|
|
|
1172
1174
|
/**
|
|
1173
|
-
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price
|
|
1175
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
|
1174
1176
|
*/
|
|
1175
1177
|
price_data?: LineItem.PriceData;
|
|
1176
1178
|
|
|
@@ -420,7 +420,7 @@ declare module 'stripe' {
|
|
|
420
420
|
|
|
421
421
|
interface TaxIdDatum {
|
|
422
422
|
/**
|
|
423
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
423
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
424
424
|
*/
|
|
425
425
|
type: TaxIdDatum.Type;
|
|
426
426
|
|
|
@@ -448,6 +448,7 @@ declare module 'stripe' {
|
|
|
448
448
|
| 'es_cif'
|
|
449
449
|
| 'eu_vat'
|
|
450
450
|
| 'gb_vat'
|
|
451
|
+
| 'ge_vat'
|
|
451
452
|
| 'hk_br'
|
|
452
453
|
| 'id_npwp'
|
|
453
454
|
| 'il_vat'
|
|
@@ -469,6 +470,7 @@ declare module 'stripe' {
|
|
|
469
470
|
| 'sg_uen'
|
|
470
471
|
| 'th_vat'
|
|
471
472
|
| 'tw_vat'
|
|
473
|
+
| 'ua_vat'
|
|
472
474
|
| 'us_ein'
|
|
473
475
|
| 'za_vat';
|
|
474
476
|
}
|
|
@@ -268,7 +268,7 @@ declare module 'stripe' {
|
|
|
268
268
|
subscription_trial_end?: 'now' | number;
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
271
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
272
272
|
*/
|
|
273
273
|
subscription_trial_from_plan?: boolean;
|
|
274
274
|
}
|
|
@@ -347,7 +347,7 @@ declare module 'stripe' {
|
|
|
347
347
|
|
|
348
348
|
interface TaxId {
|
|
349
349
|
/**
|
|
350
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
350
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
351
351
|
*/
|
|
352
352
|
type: TaxId.Type;
|
|
353
353
|
|
|
@@ -375,6 +375,7 @@ declare module 'stripe' {
|
|
|
375
375
|
| 'es_cif'
|
|
376
376
|
| 'eu_vat'
|
|
377
377
|
| 'gb_vat'
|
|
378
|
+
| 'ge_vat'
|
|
378
379
|
| 'hk_br'
|
|
379
380
|
| 'id_npwp'
|
|
380
381
|
| 'il_vat'
|
|
@@ -396,6 +397,7 @@ declare module 'stripe' {
|
|
|
396
397
|
| 'sg_uen'
|
|
397
398
|
| 'th_vat'
|
|
398
399
|
| 'tw_vat'
|
|
400
|
+
| 'ua_vat'
|
|
399
401
|
| 'us_ein'
|
|
400
402
|
| 'za_vat';
|
|
401
403
|
}
|
|
@@ -399,7 +399,7 @@ declare module 'stripe' {
|
|
|
399
399
|
|
|
400
400
|
interface CustomerTaxId {
|
|
401
401
|
/**
|
|
402
|
-
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, or `unknown`
|
|
402
|
+
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, or `unknown`
|
|
403
403
|
*/
|
|
404
404
|
type: CustomerTaxId.Type;
|
|
405
405
|
|
|
@@ -427,6 +427,7 @@ declare module 'stripe' {
|
|
|
427
427
|
| 'es_cif'
|
|
428
428
|
| 'eu_vat'
|
|
429
429
|
| 'gb_vat'
|
|
430
|
+
| 'ge_vat'
|
|
430
431
|
| 'hk_br'
|
|
431
432
|
| 'id_npwp'
|
|
432
433
|
| 'il_vat'
|
|
@@ -448,6 +449,7 @@ declare module 'stripe' {
|
|
|
448
449
|
| 'sg_uen'
|
|
449
450
|
| 'th_vat'
|
|
450
451
|
| 'tw_vat'
|
|
452
|
+
| 'ua_vat'
|
|
451
453
|
| 'unknown'
|
|
452
454
|
| 'us_ein'
|
|
453
455
|
| 'za_vat';
|
|
@@ -1497,7 +1499,7 @@ declare module 'stripe' {
|
|
|
1497
1499
|
subscription_trial_end?: 'now' | number;
|
|
1498
1500
|
|
|
1499
1501
|
/**
|
|
1500
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
1502
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
1501
1503
|
*/
|
|
1502
1504
|
subscription_trial_from_plan?: boolean;
|
|
1503
1505
|
}
|
|
@@ -1576,7 +1578,7 @@ declare module 'stripe' {
|
|
|
1576
1578
|
|
|
1577
1579
|
interface TaxId {
|
|
1578
1580
|
/**
|
|
1579
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
1581
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
1580
1582
|
*/
|
|
1581
1583
|
type: TaxId.Type;
|
|
1582
1584
|
|
|
@@ -1604,6 +1606,7 @@ declare module 'stripe' {
|
|
|
1604
1606
|
| 'es_cif'
|
|
1605
1607
|
| 'eu_vat'
|
|
1606
1608
|
| 'gb_vat'
|
|
1609
|
+
| 'ge_vat'
|
|
1607
1610
|
| 'hk_br'
|
|
1608
1611
|
| 'id_npwp'
|
|
1609
1612
|
| 'il_vat'
|
|
@@ -1625,6 +1628,7 @@ declare module 'stripe' {
|
|
|
1625
1628
|
| 'sg_uen'
|
|
1626
1629
|
| 'th_vat'
|
|
1627
1630
|
| 'tw_vat'
|
|
1631
|
+
| 'ua_vat'
|
|
1628
1632
|
| 'us_ein'
|
|
1629
1633
|
| 'za_vat';
|
|
1630
1634
|
}
|
|
@@ -110,6 +110,11 @@ declare module 'stripe' {
|
|
|
110
110
|
* The type of the card.
|
|
111
111
|
*/
|
|
112
112
|
type: Card.Type;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Information relating to digital wallets (like Apple Pay and Google Pay).
|
|
116
|
+
*/
|
|
117
|
+
wallets: Card.Wallets | null;
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
namespace Card {
|
|
@@ -1101,6 +1106,57 @@ declare module 'stripe' {
|
|
|
1101
1106
|
type Status = 'active' | 'canceled' | 'inactive';
|
|
1102
1107
|
|
|
1103
1108
|
type Type = 'physical' | 'virtual';
|
|
1109
|
+
|
|
1110
|
+
interface Wallets {
|
|
1111
|
+
apple_pay: Wallets.ApplePay;
|
|
1112
|
+
|
|
1113
|
+
google_pay: Wallets.GooglePay;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Unique identifier for a card used with digital wallets
|
|
1117
|
+
*/
|
|
1118
|
+
primary_account_identifier: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
namespace Wallets {
|
|
1122
|
+
interface ApplePay {
|
|
1123
|
+
/**
|
|
1124
|
+
* Apple Pay Eligibility
|
|
1125
|
+
*/
|
|
1126
|
+
eligible: boolean;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Reason the card is ineligible for Apple Pay
|
|
1130
|
+
*/
|
|
1131
|
+
ineligible_reason: ApplePay.IneligibleReason | null;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
namespace ApplePay {
|
|
1135
|
+
type IneligibleReason =
|
|
1136
|
+
| 'missing_agreement'
|
|
1137
|
+
| 'missing_cardholder_contact'
|
|
1138
|
+
| 'unsupported_region';
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
interface GooglePay {
|
|
1142
|
+
/**
|
|
1143
|
+
* Google Pay Eligibility
|
|
1144
|
+
*/
|
|
1145
|
+
eligible: boolean;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Reason the card is ineligible for Google Pay
|
|
1149
|
+
*/
|
|
1150
|
+
ineligible_reason: GooglePay.IneligibleReason | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
namespace GooglePay {
|
|
1154
|
+
type IneligibleReason =
|
|
1155
|
+
| 'missing_agreement'
|
|
1156
|
+
| 'missing_cardholder_contact'
|
|
1157
|
+
| 'unsupported_region';
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1104
1160
|
}
|
|
1105
1161
|
|
|
1106
1162
|
interface CardCreateParams {
|
|
@@ -41,6 +41,11 @@ declare module 'stripe' {
|
|
|
41
41
|
*/
|
|
42
42
|
application_fee_amount: number | null;
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
46
|
+
*/
|
|
47
|
+
automatic_payment_methods: PaymentIntent.AutomaticPaymentMethods | null;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
|
|
46
51
|
*/
|
|
@@ -204,6 +209,13 @@ declare module 'stripe' {
|
|
|
204
209
|
}
|
|
205
210
|
|
|
206
211
|
namespace PaymentIntent {
|
|
212
|
+
interface AutomaticPaymentMethods {
|
|
213
|
+
/**
|
|
214
|
+
* Automatically calculates compatible payment methods
|
|
215
|
+
*/
|
|
216
|
+
enabled: boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
207
219
|
type CancellationReason =
|
|
208
220
|
| 'abandoned'
|
|
209
221
|
| 'automatic'
|
|
@@ -329,7 +341,7 @@ declare module 'stripe' {
|
|
|
329
341
|
redirect_to_url?: NextAction.RedirectToUrl;
|
|
330
342
|
|
|
331
343
|
/**
|
|
332
|
-
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, or `
|
|
344
|
+
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
|
333
345
|
*/
|
|
334
346
|
type: string;
|
|
335
347
|
|
|
@@ -507,8 +519,12 @@ declare module 'stripe' {
|
|
|
507
519
|
|
|
508
520
|
card_present?: PaymentMethodOptions.CardPresent;
|
|
509
521
|
|
|
522
|
+
giropay?: PaymentMethodOptions.Giropay;
|
|
523
|
+
|
|
510
524
|
ideal?: PaymentMethodOptions.Ideal;
|
|
511
525
|
|
|
526
|
+
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
527
|
+
|
|
512
528
|
klarna?: PaymentMethodOptions.Klarna;
|
|
513
529
|
|
|
514
530
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
@@ -684,8 +700,12 @@ declare module 'stripe' {
|
|
|
684
700
|
|
|
685
701
|
interface CardPresent {}
|
|
686
702
|
|
|
703
|
+
interface Giropay {}
|
|
704
|
+
|
|
687
705
|
interface Ideal {}
|
|
688
706
|
|
|
707
|
+
interface InteracPresent {}
|
|
708
|
+
|
|
689
709
|
interface Klarna {
|
|
690
710
|
/**
|
|
691
711
|
* Preferred locale of the Klarna checkout page that the customer is redirected to.
|
|
@@ -811,6 +831,11 @@ declare module 'stripe' {
|
|
|
811
831
|
*/
|
|
812
832
|
application_fee_amount?: number;
|
|
813
833
|
|
|
834
|
+
/**
|
|
835
|
+
* When enabled, this PaymentIntent will accept payment methods that you have enabled in the Dashboard and are compatible with this PaymentIntent's other parameters.
|
|
836
|
+
*/
|
|
837
|
+
automatic_payment_methods?: PaymentIntentCreateParams.AutomaticPaymentMethods;
|
|
838
|
+
|
|
814
839
|
/**
|
|
815
840
|
* Controls when the funds will be captured from the customer's account.
|
|
816
841
|
*/
|
|
@@ -948,6 +973,13 @@ declare module 'stripe' {
|
|
|
948
973
|
}
|
|
949
974
|
|
|
950
975
|
namespace PaymentIntentCreateParams {
|
|
976
|
+
interface AutomaticPaymentMethods {
|
|
977
|
+
/**
|
|
978
|
+
* Whether this feature is enabled.
|
|
979
|
+
*/
|
|
980
|
+
enabled: boolean;
|
|
981
|
+
}
|
|
982
|
+
|
|
951
983
|
type CaptureMethod = 'automatic' | 'manual';
|
|
952
984
|
|
|
953
985
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
@@ -1172,7 +1204,7 @@ declare module 'stripe' {
|
|
|
1172
1204
|
/**
|
|
1173
1205
|
* Email address.
|
|
1174
1206
|
*/
|
|
1175
|
-
email?: string
|
|
1207
|
+
email?: Stripe.Emptyable<string>;
|
|
1176
1208
|
|
|
1177
1209
|
/**
|
|
1178
1210
|
* Full name.
|
|
@@ -1448,11 +1480,21 @@ declare module 'stripe' {
|
|
|
1448
1480
|
*/
|
|
1449
1481
|
card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
|
|
1450
1482
|
|
|
1483
|
+
/**
|
|
1484
|
+
* If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
1485
|
+
*/
|
|
1486
|
+
giropay?: Stripe.Emptyable<PaymentMethodOptions.Giropay>;
|
|
1487
|
+
|
|
1451
1488
|
/**
|
|
1452
1489
|
* If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
1453
1490
|
*/
|
|
1454
1491
|
ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
|
|
1455
1492
|
|
|
1493
|
+
/**
|
|
1494
|
+
* If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
1495
|
+
*/
|
|
1496
|
+
interac_present?: Stripe.Emptyable<PaymentMethodOptions.InteracPresent>;
|
|
1497
|
+
|
|
1456
1498
|
/**
|
|
1457
1499
|
* If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
|
|
1458
1500
|
*/
|
|
@@ -1643,8 +1685,12 @@ declare module 'stripe' {
|
|
|
1643
1685
|
|
|
1644
1686
|
interface CardPresent {}
|
|
1645
1687
|
|
|
1688
|
+
interface Giropay {}
|
|
1689
|
+
|
|
1646
1690
|
interface Ideal {}
|
|
1647
1691
|
|
|
1692
|
+
interface InteracPresent {}
|
|
1693
|
+
|
|
1648
1694
|
interface Klarna {
|
|
1649
1695
|
/**
|
|
1650
1696
|
* Preferred language of the Klarna authorization page that the customer is redirected to
|
|
@@ -1664,6 +1710,7 @@ declare module 'stripe' {
|
|
|
1664
1710
|
| 'en-ES'
|
|
1665
1711
|
| 'en-FI'
|
|
1666
1712
|
| 'en-GB'
|
|
1713
|
+
| 'en-IE'
|
|
1667
1714
|
| 'en-IT'
|
|
1668
1715
|
| 'en-NL'
|
|
1669
1716
|
| 'en-NO'
|
|
@@ -2085,7 +2132,7 @@ declare module 'stripe' {
|
|
|
2085
2132
|
/**
|
|
2086
2133
|
* Email address.
|
|
2087
2134
|
*/
|
|
2088
|
-
email?: string
|
|
2135
|
+
email?: Stripe.Emptyable<string>;
|
|
2089
2136
|
|
|
2090
2137
|
/**
|
|
2091
2138
|
* Full name.
|
|
@@ -2361,11 +2408,21 @@ declare module 'stripe' {
|
|
|
2361
2408
|
*/
|
|
2362
2409
|
card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
|
|
2363
2410
|
|
|
2411
|
+
/**
|
|
2412
|
+
* If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2413
|
+
*/
|
|
2414
|
+
giropay?: Stripe.Emptyable<PaymentMethodOptions.Giropay>;
|
|
2415
|
+
|
|
2364
2416
|
/**
|
|
2365
2417
|
* If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2366
2418
|
*/
|
|
2367
2419
|
ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
|
|
2368
2420
|
|
|
2421
|
+
/**
|
|
2422
|
+
* If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
2423
|
+
*/
|
|
2424
|
+
interac_present?: Stripe.Emptyable<PaymentMethodOptions.InteracPresent>;
|
|
2425
|
+
|
|
2369
2426
|
/**
|
|
2370
2427
|
* If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
|
|
2371
2428
|
*/
|
|
@@ -2556,8 +2613,12 @@ declare module 'stripe' {
|
|
|
2556
2613
|
|
|
2557
2614
|
interface CardPresent {}
|
|
2558
2615
|
|
|
2616
|
+
interface Giropay {}
|
|
2617
|
+
|
|
2559
2618
|
interface Ideal {}
|
|
2560
2619
|
|
|
2620
|
+
interface InteracPresent {}
|
|
2621
|
+
|
|
2561
2622
|
interface Klarna {
|
|
2562
2623
|
/**
|
|
2563
2624
|
* Preferred language of the Klarna authorization page that the customer is redirected to
|
|
@@ -2577,6 +2638,7 @@ declare module 'stripe' {
|
|
|
2577
2638
|
| 'en-ES'
|
|
2578
2639
|
| 'en-FI'
|
|
2579
2640
|
| 'en-GB'
|
|
2641
|
+
| 'en-IE'
|
|
2580
2642
|
| 'en-IT'
|
|
2581
2643
|
| 'en-NL'
|
|
2582
2644
|
| 'en-NO'
|
|
@@ -3112,7 +3174,7 @@ declare module 'stripe' {
|
|
|
3112
3174
|
/**
|
|
3113
3175
|
* Email address.
|
|
3114
3176
|
*/
|
|
3115
|
-
email?: string
|
|
3177
|
+
email?: Stripe.Emptyable<string>;
|
|
3116
3178
|
|
|
3117
3179
|
/**
|
|
3118
3180
|
* Full name.
|
|
@@ -3388,11 +3450,21 @@ declare module 'stripe' {
|
|
|
3388
3450
|
*/
|
|
3389
3451
|
card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
|
|
3390
3452
|
|
|
3453
|
+
/**
|
|
3454
|
+
* If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
3455
|
+
*/
|
|
3456
|
+
giropay?: Stripe.Emptyable<PaymentMethodOptions.Giropay>;
|
|
3457
|
+
|
|
3391
3458
|
/**
|
|
3392
3459
|
* If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
3393
3460
|
*/
|
|
3394
3461
|
ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
|
|
3395
3462
|
|
|
3463
|
+
/**
|
|
3464
|
+
* If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
3465
|
+
*/
|
|
3466
|
+
interac_present?: Stripe.Emptyable<PaymentMethodOptions.InteracPresent>;
|
|
3467
|
+
|
|
3396
3468
|
/**
|
|
3397
3469
|
* If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
|
|
3398
3470
|
*/
|
|
@@ -3583,8 +3655,12 @@ declare module 'stripe' {
|
|
|
3583
3655
|
|
|
3584
3656
|
interface CardPresent {}
|
|
3585
3657
|
|
|
3658
|
+
interface Giropay {}
|
|
3659
|
+
|
|
3586
3660
|
interface Ideal {}
|
|
3587
3661
|
|
|
3662
|
+
interface InteracPresent {}
|
|
3663
|
+
|
|
3588
3664
|
interface Klarna {
|
|
3589
3665
|
/**
|
|
3590
3666
|
* Preferred language of the Klarna authorization page that the customer is redirected to
|
|
@@ -3604,6 +3680,7 @@ declare module 'stripe' {
|
|
|
3604
3680
|
| 'en-ES'
|
|
3605
3681
|
| 'en-FI'
|
|
3606
3682
|
| 'en-GB'
|
|
3683
|
+
| 'en-IE'
|
|
3607
3684
|
| 'en-IT'
|
|
3608
3685
|
| 'en-NL'
|
|
3609
3686
|
| 'en-NO'
|
|
@@ -3776,7 +3853,7 @@ declare module 'stripe' {
|
|
|
3776
3853
|
list(options?: RequestOptions): ApiListPromise<Stripe.PaymentIntent>;
|
|
3777
3854
|
|
|
3778
3855
|
/**
|
|
3779
|
-
* A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, or
|
|
3856
|
+
* A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action, or processing.
|
|
3780
3857
|
*
|
|
3781
3858
|
* Once canceled, no additional charges will be made by the PaymentIntent and any operations on the PaymentIntent will fail with an error. For PaymentIntents with status='requires_capture', the remaining amount_capturable will automatically be refunded.
|
|
3782
3859
|
*/
|
|
@@ -842,7 +842,7 @@ declare module 'stripe' {
|
|
|
842
842
|
/**
|
|
843
843
|
* Email address.
|
|
844
844
|
*/
|
|
845
|
-
email?: string
|
|
845
|
+
email?: Stripe.Emptyable<string>;
|
|
846
846
|
|
|
847
847
|
/**
|
|
848
848
|
* Full name.
|
|
@@ -1172,7 +1172,7 @@ declare module 'stripe' {
|
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Email address.
|
|
1174
1174
|
*/
|
|
1175
|
-
email?: string
|
|
1175
|
+
email?: Stripe.Emptyable<string>;
|
|
1176
1176
|
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Full name.
|
|
@@ -230,7 +230,7 @@ declare module 'stripe' {
|
|
|
230
230
|
redirect_to_url?: NextAction.RedirectToUrl;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
|
-
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, or `
|
|
233
|
+
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
|
234
234
|
*/
|
|
235
235
|
type: string;
|
|
236
236
|
|
|
@@ -364,7 +364,7 @@ declare module 'stripe' {
|
|
|
364
364
|
trial_end: number | null;
|
|
365
365
|
|
|
366
366
|
/**
|
|
367
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
367
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
368
368
|
*/
|
|
369
369
|
trial_from_plan: boolean | null;
|
|
370
370
|
}
|
|
@@ -530,17 +530,17 @@ declare module 'stripe' {
|
|
|
530
530
|
transfer_data?: SubscriptionCreateParams.TransferData;
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
|
-
* Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
533
|
+
* Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
534
534
|
*/
|
|
535
535
|
trial_end?: 'now' | number;
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
538
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
539
539
|
*/
|
|
540
540
|
trial_from_plan?: boolean;
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
|
-
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
543
|
+
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
544
544
|
*/
|
|
545
545
|
trial_period_days?: number;
|
|
546
546
|
}
|
|
@@ -1013,7 +1013,7 @@ declare module 'stripe' {
|
|
|
1013
1013
|
trial_end?: 'now' | number;
|
|
1014
1014
|
|
|
1015
1015
|
/**
|
|
1016
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
1016
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
1017
1017
|
*/
|
|
1018
1018
|
trial_from_plan?: boolean;
|
|
1019
1019
|
}
|
|
@@ -39,7 +39,7 @@ declare module 'stripe' {
|
|
|
39
39
|
livemode: boolean;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
42
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
43
43
|
*/
|
|
44
44
|
type: TaxId.Type;
|
|
45
45
|
|
|
@@ -72,6 +72,7 @@ declare module 'stripe' {
|
|
|
72
72
|
| 'es_cif'
|
|
73
73
|
| 'eu_vat'
|
|
74
74
|
| 'gb_vat'
|
|
75
|
+
| 'ge_vat'
|
|
75
76
|
| 'hk_br'
|
|
76
77
|
| 'id_npwp'
|
|
77
78
|
| 'il_vat'
|
|
@@ -93,6 +94,7 @@ declare module 'stripe' {
|
|
|
93
94
|
| 'sg_uen'
|
|
94
95
|
| 'th_vat'
|
|
95
96
|
| 'tw_vat'
|
|
97
|
+
| 'ua_vat'
|
|
96
98
|
| 'unknown'
|
|
97
99
|
| 'us_ein'
|
|
98
100
|
| 'za_vat';
|
|
@@ -141,7 +143,7 @@ declare module 'stripe' {
|
|
|
141
143
|
|
|
142
144
|
interface TaxIdCreateParams {
|
|
143
145
|
/**
|
|
144
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
146
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
145
147
|
*/
|
|
146
148
|
type: TaxIdCreateParams.Type;
|
|
147
149
|
|
|
@@ -174,6 +176,7 @@ declare module 'stripe' {
|
|
|
174
176
|
| 'es_cif'
|
|
175
177
|
| 'eu_vat'
|
|
176
178
|
| 'gb_vat'
|
|
179
|
+
| 'ge_vat'
|
|
177
180
|
| 'hk_br'
|
|
178
181
|
| 'id_npwp'
|
|
179
182
|
| 'il_vat'
|
|
@@ -195,6 +198,7 @@ declare module 'stripe' {
|
|
|
195
198
|
| 'sg_uen'
|
|
196
199
|
| 'th_vat'
|
|
197
200
|
| 'tw_vat'
|
|
201
|
+
| 'ua_vat'
|
|
198
202
|
| 'us_ein'
|
|
199
203
|
| 'za_vat';
|
|
200
204
|
}
|
|
@@ -81,6 +81,7 @@ declare module 'stripe' {
|
|
|
81
81
|
type TaxType =
|
|
82
82
|
| 'gst'
|
|
83
83
|
| 'hst'
|
|
84
|
+
| 'jct'
|
|
84
85
|
| 'pst'
|
|
85
86
|
| 'qst'
|
|
86
87
|
| 'rst'
|
|
@@ -149,6 +150,7 @@ declare module 'stripe' {
|
|
|
149
150
|
type TaxType =
|
|
150
151
|
| 'gst'
|
|
151
152
|
| 'hst'
|
|
153
|
+
| 'jct'
|
|
152
154
|
| 'pst'
|
|
153
155
|
| 'qst'
|
|
154
156
|
| 'rst'
|
|
@@ -214,6 +216,7 @@ declare module 'stripe' {
|
|
|
214
216
|
type TaxType =
|
|
215
217
|
| 'gst'
|
|
216
218
|
| 'hst'
|
|
219
|
+
| 'jct'
|
|
217
220
|
| 'pst'
|
|
218
221
|
| 'qst'
|
|
219
222
|
| 'rst'
|
|
@@ -160,6 +160,7 @@ declare module 'stripe' {
|
|
|
160
160
|
class LocationsResource {
|
|
161
161
|
/**
|
|
162
162
|
* Creates a new Location object.
|
|
163
|
+
* For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.
|
|
163
164
|
*/
|
|
164
165
|
create(
|
|
165
166
|
params: LocationCreateParams,
|
|
@@ -109,7 +109,7 @@ declare module 'stripe' {
|
|
|
109
109
|
label?: string;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* The location to assign the reader to.
|
|
112
|
+
* The location to assign the reader to.
|
|
113
113
|
*/
|
|
114
114
|
location?: string;
|
|
115
115
|
|
package/types/lib.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ declare module 'stripe' {
|
|
|
138
138
|
api_key?: string;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* See the [idempotency key docs](https://stripe.com/docs/api/
|
|
141
|
+
* See the [idempotency key docs](https://stripe.com/docs/api/idempotent_requests).
|
|
142
142
|
*/
|
|
143
143
|
idempotencyKey?: string;
|
|
144
144
|
/** @deprecated Please use idempotencyKey instead. */
|