stripe 14.15.0 → 14.16.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 14.16.0 - 2024-02-08
4
+ * [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code
5
+ * Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings`
6
+ * Add support for new value `velobank` on enums `Charge.payment_method_details.p24.bank`, `PaymentIntentConfirmParams.payment_method_data.p24.bank`, `PaymentIntentCreateParams.payment_method_data.p24.bank`, `PaymentIntentUpdateParams.payment_method_data.p24.bank`, `PaymentMethod.p24.bank`, `PaymentMethodCreateParams.p24.bank`, `SetupIntentConfirmParams.payment_method_data.p24.bank`, `SetupIntentCreateParams.payment_method_data.p24.bank`, and `SetupIntentUpdateParams.payment_method_data.p24.bank`
7
+ * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.blik`, `PaymentIntentConfirmParams.payment_method_options.blik`, `PaymentIntentCreateParams.payment_method_options.blik`, and `PaymentIntentUpdateParams.payment_method_options.blik`
8
+ * Add support for `require_cvc_recollection` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card`
9
+ * Add support for `account_tax_ids` on `SubscriptionCreateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, `SubscriptionScheduleUpdateParams.phases[].invoice_settings`, and `SubscriptionUpdateParams.invoice_settings`
10
+
3
11
  ## 14.15.0 - 2024-02-05
4
12
  * [#2001](https://github.com/stripe/stripe-node/pull/2001) Update generated code
5
13
  * Add support for `swish` payment method throughout the API
package/VERSION CHANGED
@@ -1 +1 @@
1
- 14.15.0
1
+ 14.16.0
@@ -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.15.0';
37
+ Stripe.PACKAGE_VERSION = '14.16.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;
@@ -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.15.0';
34
+ Stripe.PACKAGE_VERSION = '14.16.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "14.15.0",
3
+ "version": "14.16.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -1067,6 +1067,8 @@ declare module 'stripe' {
1067
1067
 
1068
1068
  dashboard: Settings.Dashboard;
1069
1069
 
1070
+ invoices?: Settings.Invoices;
1071
+
1070
1072
  payments: Settings.Payments;
1071
1073
 
1072
1074
  payouts?: Settings.Payouts;
@@ -1179,6 +1181,13 @@ declare module 'stripe' {
1179
1181
  timezone: string | null;
1180
1182
  }
1181
1183
 
1184
+ interface Invoices {
1185
+ /**
1186
+ * The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
1187
+ */
1188
+ default_account_tax_ids: Array<string | Stripe.TaxId> | null;
1189
+ }
1190
+
1182
1191
  interface Payments {
1183
1192
  /**
1184
1193
  * The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
@@ -2579,6 +2579,11 @@ declare module 'stripe' {
2579
2579
  */
2580
2580
  card_payments?: Settings.CardPayments;
2581
2581
 
2582
+ /**
2583
+ * Settings specific to the account's use of Invoices.
2584
+ */
2585
+ invoices?: Settings.Invoices;
2586
+
2582
2587
  /**
2583
2588
  * Settings that apply across payment methods for charging on the account.
2584
2589
  */
@@ -2687,6 +2692,13 @@ declare module 'stripe' {
2687
2692
  }
2688
2693
  }
2689
2694
 
2695
+ interface Invoices {
2696
+ /**
2697
+ * The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
2698
+ */
2699
+ default_account_tax_ids?: Stripe.Emptyable<Array<string>>;
2700
+ }
2701
+
2690
2702
  interface Payments {
2691
2703
  /**
2692
2704
  * The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
@@ -1656,7 +1656,7 @@ declare module 'stripe' {
1656
1656
 
1657
1657
  interface P24 {
1658
1658
  /**
1659
- * The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
1659
+ * The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
1660
1660
  */
1661
1661
  bank: P24.Bank | null;
1662
1662
 
@@ -1699,6 +1699,7 @@ declare module 'stripe' {
1699
1699
  | 'santander_przelew24'
1700
1700
  | 'tmobile_usbugi_bankowe'
1701
1701
  | 'toyota_bank'
1702
+ | 'velobank'
1702
1703
  | 'volkswagen_bank';
1703
1704
  }
1704
1705
 
@@ -221,7 +221,7 @@ declare module 'stripe' {
221
221
  first_name: string | null;
222
222
 
223
223
  /**
224
- * ID number.
224
+ * ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present.
225
225
  */
226
226
  id_number: string | null;
227
227
 
@@ -1475,7 +1475,16 @@ declare module 'stripe' {
1475
1475
  type SetupFutureUsage = 'none' | 'off_session';
1476
1476
  }
1477
1477
 
1478
- interface Blik {}
1478
+ interface Blik {
1479
+ /**
1480
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1481
+ *
1482
+ * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
1483
+ *
1484
+ * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
1485
+ */
1486
+ setup_future_usage?: 'none';
1487
+ }
1479
1488
 
1480
1489
  interface Boleto {
1481
1490
  /**
@@ -1545,6 +1554,11 @@ declare module 'stripe' {
1545
1554
  */
1546
1555
  request_three_d_secure: Card.RequestThreeDSecure | null;
1547
1556
 
1557
+ /**
1558
+ * When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
1559
+ */
1560
+ require_cvc_recollection?: boolean;
1561
+
1548
1562
  /**
1549
1563
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1550
1564
  *
@@ -695,6 +695,7 @@ declare module 'stripe' {
695
695
  | 'santander_przelew24'
696
696
  | 'tmobile_usbugi_bankowe'
697
697
  | 'toyota_bank'
698
+ | 'velobank'
698
699
  | 'volkswagen_bank';
699
700
  }
700
701
 
@@ -1183,6 +1184,17 @@ declare module 'stripe' {
1183
1184
  * The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
1184
1185
  */
1185
1186
  code?: string;
1187
+
1188
+ /**
1189
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1190
+ *
1191
+ * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
1192
+ *
1193
+ * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
1194
+ *
1195
+ * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
1196
+ */
1197
+ setup_future_usage?: Stripe.Emptyable<'none'>;
1186
1198
  }
1187
1199
 
1188
1200
  interface Boleto {
@@ -1271,6 +1283,11 @@ declare module 'stripe' {
1271
1283
  */
1272
1284
  request_three_d_secure?: Card.RequestThreeDSecure;
1273
1285
 
1286
+ /**
1287
+ * When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
1288
+ */
1289
+ require_cvc_recollection?: boolean;
1290
+
1274
1291
  /**
1275
1292
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1276
1293
  *
@@ -2841,6 +2858,7 @@ declare module 'stripe' {
2841
2858
  | 'santander_przelew24'
2842
2859
  | 'tmobile_usbugi_bankowe'
2843
2860
  | 'toyota_bank'
2861
+ | 'velobank'
2844
2862
  | 'volkswagen_bank';
2845
2863
  }
2846
2864
 
@@ -3329,6 +3347,17 @@ declare module 'stripe' {
3329
3347
  * The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
3330
3348
  */
3331
3349
  code?: string;
3350
+
3351
+ /**
3352
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3353
+ *
3354
+ * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
3355
+ *
3356
+ * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
3357
+ *
3358
+ * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
3359
+ */
3360
+ setup_future_usage?: Stripe.Emptyable<'none'>;
3332
3361
  }
3333
3362
 
3334
3363
  interface Boleto {
@@ -3417,6 +3446,11 @@ declare module 'stripe' {
3417
3446
  */
3418
3447
  request_three_d_secure?: Card.RequestThreeDSecure;
3419
3448
 
3449
+ /**
3450
+ * When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
3451
+ */
3452
+ require_cvc_recollection?: boolean;
3453
+
3420
3454
  /**
3421
3455
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3422
3456
  *
@@ -5125,6 +5159,7 @@ declare module 'stripe' {
5125
5159
  | 'santander_przelew24'
5126
5160
  | 'tmobile_usbugi_bankowe'
5127
5161
  | 'toyota_bank'
5162
+ | 'velobank'
5128
5163
  | 'volkswagen_bank';
5129
5164
  }
5130
5165
 
@@ -5613,6 +5648,17 @@ declare module 'stripe' {
5613
5648
  * The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
5614
5649
  */
5615
5650
  code?: string;
5651
+
5652
+ /**
5653
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
5654
+ *
5655
+ * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
5656
+ *
5657
+ * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
5658
+ *
5659
+ * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
5660
+ */
5661
+ setup_future_usage?: Stripe.Emptyable<'none'>;
5616
5662
  }
5617
5663
 
5618
5664
  interface Boleto {
@@ -5701,6 +5747,11 @@ declare module 'stripe' {
5701
5747
  */
5702
5748
  request_three_d_secure?: Card.RequestThreeDSecure;
5703
5749
 
5750
+ /**
5751
+ * When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
5752
+ */
5753
+ require_cvc_recollection?: boolean;
5754
+
5704
5755
  /**
5705
5756
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
5706
5757
  *
@@ -323,7 +323,7 @@ declare module 'stripe' {
323
323
  available: Array<string>;
324
324
 
325
325
  /**
326
- * The preferred network for the card. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
326
+ * The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
327
327
  */
328
328
  preferred: string | null;
329
329
  }
@@ -835,6 +835,7 @@ declare module 'stripe' {
835
835
  | 'santander_przelew24'
836
836
  | 'tmobile_usbugi_bankowe'
837
837
  | 'toyota_bank'
838
+ | 'velobank'
838
839
  | 'volkswagen_bank';
839
840
  }
840
841
 
@@ -500,6 +500,7 @@ declare module 'stripe' {
500
500
  | 'santander_przelew24'
501
501
  | 'tmobile_usbugi_bankowe'
502
502
  | 'toyota_bank'
503
+ | 'velobank'
503
504
  | 'volkswagen_bank';
504
505
  }
505
506
 
@@ -625,6 +625,7 @@ declare module 'stripe' {
625
625
  | 'santander_przelew24'
626
626
  | 'tmobile_usbugi_bankowe'
627
627
  | 'toyota_bank'
628
+ | 'velobank'
628
629
  | 'volkswagen_bank';
629
630
  }
630
631
 
@@ -1664,6 +1665,7 @@ declare module 'stripe' {
1664
1665
  | 'santander_przelew24'
1665
1666
  | 'tmobile_usbugi_bankowe'
1666
1667
  | 'toyota_bank'
1668
+ | 'velobank'
1667
1669
  | 'volkswagen_bank';
1668
1670
  }
1669
1671
 
@@ -2783,6 +2785,7 @@ declare module 'stripe' {
2783
2785
  | 'santander_przelew24'
2784
2786
  | 'tmobile_usbugi_bankowe'
2785
2787
  | 'toyota_bank'
2788
+ | 'velobank'
2786
2789
  | 'volkswagen_bank';
2787
2790
  }
2788
2791
 
@@ -207,6 +207,13 @@ declare module 'stripe' {
207
207
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
208
208
 
209
209
  interface InvoiceSettings {
210
+ /**
211
+ * The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
212
+ */
213
+ account_tax_ids?: Array<
214
+ string | Stripe.TaxId | Stripe.DeletedTaxId
215
+ > | null;
216
+
210
217
  /**
211
218
  * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
212
219
  */
@@ -412,6 +419,13 @@ declare module 'stripe' {
412
419
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
413
420
 
414
421
  interface InvoiceSettings {
422
+ /**
423
+ * The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
424
+ */
425
+ account_tax_ids?: Array<
426
+ string | Stripe.TaxId | Stripe.DeletedTaxId
427
+ > | null;
428
+
415
429
  /**
416
430
  * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
417
431
  */
@@ -147,6 +147,11 @@ declare module 'stripe' {
147
147
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
148
148
 
149
149
  interface InvoiceSettings {
150
+ /**
151
+ * The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
152
+ */
153
+ account_tax_ids?: Stripe.Emptyable<Array<string>>;
154
+
150
155
  /**
151
156
  * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
152
157
  */
@@ -401,6 +406,11 @@ declare module 'stripe' {
401
406
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
402
407
 
403
408
  interface InvoiceSettings {
409
+ /**
410
+ * The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
411
+ */
412
+ account_tax_ids?: Stripe.Emptyable<Array<string>>;
413
+
404
414
  /**
405
415
  * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
406
416
  */
@@ -689,6 +699,11 @@ declare module 'stripe' {
689
699
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
690
700
 
691
701
  interface InvoiceSettings {
702
+ /**
703
+ * The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
704
+ */
705
+ account_tax_ids?: Stripe.Emptyable<Array<string>>;
706
+
692
707
  /**
693
708
  * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
694
709
  */
@@ -948,6 +963,11 @@ declare module 'stripe' {
948
963
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
949
964
 
950
965
  interface InvoiceSettings {
966
+ /**
967
+ * The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
968
+ */
969
+ account_tax_ids?: Stripe.Emptyable<Array<string>>;
970
+
951
971
  /**
952
972
  * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
953
973
  */
@@ -316,6 +316,11 @@ declare module 'stripe' {
316
316
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
317
317
 
318
318
  interface InvoiceSettings {
319
+ /**
320
+ * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
321
+ */
322
+ account_tax_ids?: Stripe.Emptyable<Array<string>>;
323
+
319
324
  /**
320
325
  * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
321
326
  */
@@ -1060,6 +1065,11 @@ declare module 'stripe' {
1060
1065
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
1061
1066
 
1062
1067
  interface InvoiceSettings {
1068
+ /**
1069
+ * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
1070
+ */
1071
+ account_tax_ids?: Stripe.Emptyable<Array<string>>;
1072
+
1063
1073
  /**
1064
1074
  * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
1065
1075
  */
package/types/TaxIds.d.ts CHANGED
@@ -64,6 +64,11 @@ declare module 'stripe' {
64
64
  */
65
65
  livemode: boolean;
66
66
 
67
+ /**
68
+ * The account or customer the tax ID belongs to.
69
+ */
70
+ owner?: TaxId.Owner | null;
71
+
67
72
  /**
68
73
  * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
69
74
  */
@@ -81,6 +86,32 @@ declare module 'stripe' {
81
86
  }
82
87
 
83
88
  namespace TaxId {
89
+ interface Owner {
90
+ /**
91
+ * The account being referenced when `type` is `account`.
92
+ */
93
+ account?: string | Stripe.Account;
94
+
95
+ /**
96
+ * The Connect Application being referenced when `type` is `application`.
97
+ */
98
+ application?: string | Stripe.Application;
99
+
100
+ /**
101
+ * The customer being referenced when `type` is `customer`.
102
+ */
103
+ customer?: string | Stripe.Customer;
104
+
105
+ /**
106
+ * Type of owner referenced.
107
+ */
108
+ type: Owner.Type;
109
+ }
110
+
111
+ namespace Owner {
112
+ type Type = 'account' | 'application' | 'customer' | 'self';
113
+ }
114
+
84
115
  type Type =
85
116
  | 'ad_nrt'
86
117
  | 'ae_trn'