stripe 8.191.0 → 8.192.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.192.0 - 2021-12-09
4
+ * [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates
5
+ * 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`
6
+ * 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`
7
+ * 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)`
8
+ * Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
9
+ * 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`
10
+ * [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json
11
+ * [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring
12
+
3
13
  ## 8.191.0 - 2021-11-19
4
14
  * [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates
5
15
  * Add support for `wallets` on `Issuing.Card`
package/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/stripe)
4
4
  [![Build Status](https://travis-ci.org/stripe/stripe-node.svg?branch=master)](https://travis-ci.org/stripe/stripe-node)
5
- [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-node/badge.svg)](https://coveralls.io/github/stripe/stripe-node)
6
5
  [![Downloads](https://img.shields.io/npm/dm/stripe.svg)](https://www.npmjs.com/package/stripe)
7
6
  [![Try on RunKit](https://badge.runkitcdn.com/stripe.svg)](https://runkit.com/npm/stripe)
8
7
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.191.0
1
+ 8.192.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.191.0",
3
+ "version": "8.192.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",
@@ -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@stripe.com for assistance.
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';
@@ -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
  }
@@ -519,6 +519,8 @@ declare module 'stripe' {
519
519
 
520
520
  card_present?: PaymentMethodOptions.CardPresent;
521
521
 
522
+ giropay?: PaymentMethodOptions.Giropay;
523
+
522
524
  ideal?: PaymentMethodOptions.Ideal;
523
525
 
524
526
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -698,6 +700,8 @@ declare module 'stripe' {
698
700
 
699
701
  interface CardPresent {}
700
702
 
703
+ interface Giropay {}
704
+
701
705
  interface Ideal {}
702
706
 
703
707
  interface InteracPresent {}
@@ -1200,7 +1204,7 @@ declare module 'stripe' {
1200
1204
  /**
1201
1205
  * Email address.
1202
1206
  */
1203
- email?: string;
1207
+ email?: Stripe.Emptyable<string>;
1204
1208
 
1205
1209
  /**
1206
1210
  * Full name.
@@ -1476,6 +1480,11 @@ declare module 'stripe' {
1476
1480
  */
1477
1481
  card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
1478
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
+
1479
1488
  /**
1480
1489
  * If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
1481
1490
  */
@@ -1676,6 +1685,8 @@ declare module 'stripe' {
1676
1685
 
1677
1686
  interface CardPresent {}
1678
1687
 
1688
+ interface Giropay {}
1689
+
1679
1690
  interface Ideal {}
1680
1691
 
1681
1692
  interface InteracPresent {}
@@ -1699,6 +1710,7 @@ declare module 'stripe' {
1699
1710
  | 'en-ES'
1700
1711
  | 'en-FI'
1701
1712
  | 'en-GB'
1713
+ | 'en-IE'
1702
1714
  | 'en-IT'
1703
1715
  | 'en-NL'
1704
1716
  | 'en-NO'
@@ -2120,7 +2132,7 @@ declare module 'stripe' {
2120
2132
  /**
2121
2133
  * Email address.
2122
2134
  */
2123
- email?: string;
2135
+ email?: Stripe.Emptyable<string>;
2124
2136
 
2125
2137
  /**
2126
2138
  * Full name.
@@ -2396,6 +2408,11 @@ declare module 'stripe' {
2396
2408
  */
2397
2409
  card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
2398
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
+
2399
2416
  /**
2400
2417
  * If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2401
2418
  */
@@ -2596,6 +2613,8 @@ declare module 'stripe' {
2596
2613
 
2597
2614
  interface CardPresent {}
2598
2615
 
2616
+ interface Giropay {}
2617
+
2599
2618
  interface Ideal {}
2600
2619
 
2601
2620
  interface InteracPresent {}
@@ -2619,6 +2638,7 @@ declare module 'stripe' {
2619
2638
  | 'en-ES'
2620
2639
  | 'en-FI'
2621
2640
  | 'en-GB'
2641
+ | 'en-IE'
2622
2642
  | 'en-IT'
2623
2643
  | 'en-NL'
2624
2644
  | 'en-NO'
@@ -3154,7 +3174,7 @@ declare module 'stripe' {
3154
3174
  /**
3155
3175
  * Email address.
3156
3176
  */
3157
- email?: string;
3177
+ email?: Stripe.Emptyable<string>;
3158
3178
 
3159
3179
  /**
3160
3180
  * Full name.
@@ -3430,6 +3450,11 @@ declare module 'stripe' {
3430
3450
  */
3431
3451
  card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
3432
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
+
3433
3458
  /**
3434
3459
  * If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
3435
3460
  */
@@ -3630,6 +3655,8 @@ declare module 'stripe' {
3630
3655
 
3631
3656
  interface CardPresent {}
3632
3657
 
3658
+ interface Giropay {}
3659
+
3633
3660
  interface Ideal {}
3634
3661
 
3635
3662
  interface InteracPresent {}
@@ -3653,6 +3680,7 @@ declare module 'stripe' {
3653
3680
  | 'en-ES'
3654
3681
  | 'en-FI'
3655
3682
  | 'en-GB'
3683
+ | 'en-IE'
3656
3684
  | 'en-IT'
3657
3685
  | 'en-NL'
3658
3686
  | 'en-NO'
@@ -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.
@@ -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
  }
@@ -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. If no location is specified, the reader will be assigned to the account's default location.
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/idempotency).
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. */