stripe 17.2.0-beta.2 → 17.2.1

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.
Files changed (183) hide show
  1. package/CHANGELOG.md +117 -899
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
  12. package/cjs/resources/V2/Core/Events.js +50 -7
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Webhooks.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  23. package/esm/resources/V2/Core/Events.js +50 -7
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +5 -75
  29. package/types/AccountSessionsResource.d.ts +5 -354
  30. package/types/Accounts.d.ts +3 -127
  31. package/types/AccountsResource.d.ts +2 -296
  32. package/types/Billing/CreditGrants.d.ts +2 -2
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  34. package/types/Billing/Meters.d.ts +0 -2
  35. package/types/Charges.d.ts +0 -152
  36. package/types/ChargesResource.d.ts +0 -1294
  37. package/types/Checkout/Sessions.d.ts +5 -309
  38. package/types/Checkout/SessionsResource.d.ts +5 -356
  39. package/types/ConfirmationTokens.d.ts +0 -137
  40. package/types/Coupons.d.ts +1 -1
  41. package/types/CouponsResource.d.ts +1 -1
  42. package/types/CreditNotes.d.ts +0 -21
  43. package/types/CreditNotesResource.d.ts +0 -51
  44. package/types/CustomersResource.d.ts +2 -22
  45. package/types/Disputes.d.ts +0 -152
  46. package/types/DisputesResource.d.ts +0 -120
  47. package/types/EventTypes.d.ts +2 -564
  48. package/types/Events.d.ts +0 -91
  49. package/types/FinancialConnections/Accounts.d.ts +1 -29
  50. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  51. package/types/FinancialConnections/Sessions.d.ts +1 -49
  52. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  53. package/types/Forwarding/Requests.d.ts +0 -5
  54. package/types/InvoiceItems.d.ts +0 -5
  55. package/types/InvoiceItemsResource.d.ts +0 -98
  56. package/types/InvoiceLineItems.d.ts +1 -31
  57. package/types/Invoices.d.ts +3 -134
  58. package/types/InvoicesResource.d.ts +1836 -5515
  59. package/types/Issuing/Authorizations.d.ts +1 -1
  60. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/Issuing/Transactions.d.ts +0 -2
  63. package/types/Issuing/TransactionsResource.d.ts +0 -5
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -85
  66. package/types/PaymentIntents.d.ts +1 -643
  67. package/types/PaymentIntentsResource.d.ts +3463 -7739
  68. package/types/PaymentLinks.d.ts +0 -3
  69. package/types/PaymentLinksResource.d.ts +0 -6
  70. package/types/PaymentMethodConfigurations.d.ts +0 -36
  71. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  72. package/types/PaymentMethods.d.ts +0 -137
  73. package/types/PaymentMethodsResource.d.ts +0 -158
  74. package/types/Persons.d.ts +1 -1
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -591
  80. package/types/QuotesResource.d.ts +199 -2531
  81. package/types/SetupAttempts.d.ts +0 -19
  82. package/types/SetupIntents.d.ts +1 -112
  83. package/types/SetupIntentsResource.d.ts +3 -669
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -200
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -82
  90. package/types/SubscriptionsResource.d.ts +3 -348
  91. package/types/Tax/CalculationLineItems.d.ts +0 -1
  92. package/types/Tax/Calculations.d.ts +1 -33
  93. package/types/Tax/CalculationsResource.d.ts +1 -7
  94. package/types/Tax/Registrations.d.ts +0 -82
  95. package/types/Tax/RegistrationsResource.d.ts +0 -109
  96. package/types/Tax/Transactions.d.ts +1 -8
  97. package/types/TaxIds.d.ts +1 -7
  98. package/types/TaxIdsResource.d.ts +1 -7
  99. package/types/TaxRates.d.ts +0 -25
  100. package/types/TaxRatesResource.d.ts +0 -2
  101. package/types/Terminal/Readers.d.ts +0 -278
  102. package/types/Terminal/ReadersResource.d.ts +0 -215
  103. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  104. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  105. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  106. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  107. package/types/TokensResource.d.ts +1 -1
  108. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  109. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/UsageRecordSummaries.d.ts +1 -1
  115. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  116. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  117. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  118. package/types/V2/EventTypes.d.ts +3 -1
  119. package/types/WebhookEndpointsResource.d.ts +0 -66
  120. package/types/index.d.ts +0 -53
  121. package/cjs/resources/AccountNotices.js +0 -21
  122. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  123. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  124. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  125. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  126. package/cjs/resources/GiftCards/Cards.js +0 -23
  127. package/cjs/resources/GiftCards/Transactions.js +0 -33
  128. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  129. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  130. package/cjs/resources/Margins.js +0 -22
  131. package/cjs/resources/Orders.js +0 -24
  132. package/cjs/resources/Tax/Associations.js +0 -9
  133. package/cjs/resources/Tax/Forms.js +0 -20
  134. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  135. package/esm/resources/AccountNotices.js +0 -18
  136. package/esm/resources/Capital/FinancingOffers.js +0 -18
  137. package/esm/resources/Capital/FinancingSummary.js +0 -9
  138. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  139. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  140. package/esm/resources/GiftCards/Cards.js +0 -20
  141. package/esm/resources/GiftCards/Transactions.js +0 -30
  142. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  143. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  144. package/esm/resources/Margins.js +0 -19
  145. package/esm/resources/Orders.js +0 -21
  146. package/esm/resources/Tax/Associations.js +0 -6
  147. package/esm/resources/Tax/Forms.js +0 -17
  148. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  149. package/types/AccountNotices.d.ts +0 -113
  150. package/types/AccountNoticesResource.d.ts +0 -98
  151. package/types/Billing/MeterErrorReports.d.ts +0 -106
  152. package/types/Capital/FinancingOffers.d.ts +0 -188
  153. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  154. package/types/Capital/FinancingSummary.d.ts +0 -106
  155. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  156. package/types/Capital/FinancingTransactions.d.ts +0 -135
  157. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  158. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  159. package/types/FinancialConnections/Institutions.d.ts +0 -93
  160. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  161. package/types/GiftCards/Cards.d.ts +0 -118
  162. package/types/GiftCards/CardsResource.d.ts +0 -159
  163. package/types/GiftCards/Transactions.d.ts +0 -129
  164. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  165. package/types/InvoicePayments.d.ts +0 -138
  166. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  167. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  168. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  169. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  170. package/types/Issuing/Settlements.d.ts +0 -103
  171. package/types/Margins.d.ts +0 -56
  172. package/types/MarginsResource.d.ts +0 -114
  173. package/types/Orders.d.ts +0 -1154
  174. package/types/OrdersResource.d.ts +0 -2911
  175. package/types/QuoteLines.d.ts +0 -634
  176. package/types/QuotePreviewInvoices.d.ts +0 -1596
  177. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  178. package/types/Tax/Associations.d.ts +0 -126
  179. package/types/Tax/AssociationsResource.d.ts +0 -29
  180. package/types/Tax/Forms.d.ts +0 -133
  181. package/types/Tax/FormsResource.d.ts +0 -90
  182. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  183. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -120,7 +120,7 @@ declare module 'stripe' {
120
120
 
121
121
  interface TaxId {
122
122
  /**
123
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `jp_trn`, `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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
123
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `jp_trn`, `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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
124
124
  */
125
125
  type: TaxId.Type;
126
126
 
@@ -142,7 +142,6 @@ declare module 'stripe' {
142
142
  | 'bo_tin'
143
143
  | 'br_cnpj'
144
144
  | 'br_cpf'
145
- | 'by_tin'
146
145
  | 'ca_bn'
147
146
  | 'ca_gst_hst'
148
147
  | 'ca_pst_bc'
@@ -178,8 +177,6 @@ declare module 'stripe' {
178
177
  | 'kr_brn'
179
178
  | 'kz_bin'
180
179
  | 'li_uid'
181
- | 'ma_vat'
182
- | 'md_vat'
183
180
  | 'mx_rfc'
184
181
  | 'my_frp'
185
182
  | 'my_itn'
@@ -203,13 +200,10 @@ declare module 'stripe' {
203
200
  | 'th_vat'
204
201
  | 'tr_tin'
205
202
  | 'tw_vat'
206
- | 'tz_vat'
207
203
  | 'ua_vat'
208
204
  | 'unknown'
209
205
  | 'us_ein'
210
206
  | 'uy_ruc'
211
- | 'uz_tin'
212
- | 'uz_vat'
213
207
  | 've_rif'
214
208
  | 'vn_tin'
215
209
  | 'za_vat';
@@ -358,7 +352,6 @@ declare module 'stripe' {
358
352
  | 'lease_tax'
359
353
  | 'pst'
360
354
  | 'qst'
361
- | 'retail_delivery_fee'
362
355
  | 'rst'
363
356
  | 'sales_tax'
364
357
  | 'vat';
@@ -414,21 +407,11 @@ declare module 'stripe' {
414
407
  */
415
408
  country: string | null;
416
409
 
417
- /**
418
- * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate.
419
- */
420
- flat_amount?: TaxRateDetails.FlatAmount | null;
421
-
422
410
  /**
423
411
  * The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`.
424
412
  */
425
413
  percentage_decimal: string;
426
414
 
427
- /**
428
- * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
429
- */
430
- rate_type?: TaxRateDetails.RateType | null;
431
-
432
415
  /**
433
416
  * State, county, province, or region.
434
417
  */
@@ -441,20 +424,6 @@ declare module 'stripe' {
441
424
  }
442
425
 
443
426
  namespace TaxRateDetails {
444
- interface FlatAmount {
445
- /**
446
- * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
447
- */
448
- amount: number;
449
-
450
- /**
451
- * Three-letter ISO currency code, in lowercase.
452
- */
453
- currency: string;
454
- }
455
-
456
- type RateType = 'flat_amount' | 'percentage';
457
-
458
427
  type TaxType =
459
428
  | 'amusement_tax'
460
429
  | 'communications_tax'
@@ -465,7 +434,6 @@ declare module 'stripe' {
465
434
  | 'lease_tax'
466
435
  | 'pst'
467
436
  | 'qst'
468
- | 'retail_delivery_fee'
469
437
  | 'rst'
470
438
  | 'sales_tax'
471
439
  | 'vat';
@@ -115,7 +115,7 @@ declare module 'stripe' {
115
115
 
116
116
  interface TaxId {
117
117
  /**
118
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
118
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`
119
119
  */
120
120
  type: TaxId.Type;
121
121
 
@@ -137,7 +137,6 @@ declare module 'stripe' {
137
137
  | 'bo_tin'
138
138
  | 'br_cnpj'
139
139
  | 'br_cpf'
140
- | 'by_tin'
141
140
  | 'ca_bn'
142
141
  | 'ca_gst_hst'
143
142
  | 'ca_pst_bc'
@@ -173,8 +172,6 @@ declare module 'stripe' {
173
172
  | 'kr_brn'
174
173
  | 'kz_bin'
175
174
  | 'li_uid'
176
- | 'ma_vat'
177
- | 'md_vat'
178
175
  | 'mx_rfc'
179
176
  | 'my_frp'
180
177
  | 'my_itn'
@@ -198,12 +195,9 @@ declare module 'stripe' {
198
195
  | 'th_vat'
199
196
  | 'tr_tin'
200
197
  | 'tw_vat'
201
- | 'tz_vat'
202
198
  | 'ua_vat'
203
199
  | 'us_ein'
204
200
  | 'uy_ruc'
205
- | 'uz_tin'
206
- | 'uz_vat'
207
201
  | 've_rif'
208
202
  | 'vn_tin'
209
203
  | 'za_vat';
@@ -68,8 +68,6 @@ declare module 'stripe' {
68
68
 
69
69
  bh?: CountryOptions.Bh;
70
70
 
71
- by?: CountryOptions.By;
72
-
73
71
  ca?: CountryOptions.Ca;
74
72
 
75
73
  ch?: CountryOptions.Ch;
@@ -78,8 +76,6 @@ declare module 'stripe' {
78
76
 
79
77
  co?: CountryOptions.Co;
80
78
 
81
- cr?: CountryOptions.Cr;
82
-
83
79
  cy?: CountryOptions.Cy;
84
80
 
85
81
  cz?: CountryOptions.Cz;
@@ -88,8 +84,6 @@ declare module 'stripe' {
88
84
 
89
85
  dk?: CountryOptions.Dk;
90
86
 
91
- ec?: CountryOptions.Ec;
92
-
93
87
  ee?: CountryOptions.Ee;
94
88
 
95
89
  eg?: CountryOptions.Eg;
@@ -132,10 +126,6 @@ declare module 'stripe' {
132
126
 
133
127
  lv?: CountryOptions.Lv;
134
128
 
135
- ma?: CountryOptions.Ma;
136
-
137
- md?: CountryOptions.Md;
138
-
139
129
  mt?: CountryOptions.Mt;
140
130
 
141
131
  mx?: CountryOptions.Mx;
@@ -158,10 +148,6 @@ declare module 'stripe' {
158
148
 
159
149
  ro?: CountryOptions.Ro;
160
150
 
161
- rs?: CountryOptions.Rs;
162
-
163
- ru?: CountryOptions.Ru;
164
-
165
151
  sa?: CountryOptions.Sa;
166
152
 
167
153
  se?: CountryOptions.Se;
@@ -176,12 +162,8 @@ declare module 'stripe' {
176
162
 
177
163
  tr?: CountryOptions.Tr;
178
164
 
179
- tz?: CountryOptions.Tz;
180
-
181
165
  us?: CountryOptions.Us;
182
166
 
183
- uz?: CountryOptions.Uz;
184
-
185
167
  vn?: CountryOptions.Vn;
186
168
 
187
169
  za?: CountryOptions.Za;
@@ -281,13 +263,6 @@ declare module 'stripe' {
281
263
  type: 'standard';
282
264
  }
283
265
 
284
- interface By {
285
- /**
286
- * Type of registration in `country`.
287
- */
288
- type: 'simplified';
289
- }
290
-
291
266
  interface Ca {
292
267
  province_standard?: Ca.ProvinceStandard;
293
268
 
@@ -329,13 +304,6 @@ declare module 'stripe' {
329
304
  type: 'simplified';
330
305
  }
331
306
 
332
- interface Cr {
333
- /**
334
- * Type of registration in `country`.
335
- */
336
- type: 'simplified';
337
- }
338
-
339
307
  interface Cy {
340
308
  standard?: Cy.Standard;
341
309
 
@@ -432,13 +400,6 @@ declare module 'stripe' {
432
400
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
433
401
  }
434
402
 
435
- interface Ec {
436
- /**
437
- * Type of registration in `country`.
438
- */
439
- type: 'simplified';
440
- }
441
-
442
403
  interface Ee {
443
404
  standard?: Ee.Standard;
444
405
 
@@ -790,20 +751,6 @@ declare module 'stripe' {
790
751
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
791
752
  }
792
753
 
793
- interface Ma {
794
- /**
795
- * Type of registration in `country`.
796
- */
797
- type: 'simplified';
798
- }
799
-
800
- interface Md {
801
- /**
802
- * Type of registration in `country`.
803
- */
804
- type: 'simplified';
805
- }
806
-
807
754
  interface Mt {
808
755
  standard?: Mt.Standard;
809
756
 
@@ -966,20 +913,6 @@ declare module 'stripe' {
966
913
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
967
914
  }
968
915
 
969
- interface Rs {
970
- /**
971
- * Type of registration in `country`.
972
- */
973
- type: 'standard';
974
- }
975
-
976
- interface Ru {
977
- /**
978
- * Type of registration in `country`.
979
- */
980
- type: 'simplified';
981
- }
982
-
983
916
  interface Sa {
984
917
  /**
985
918
  * Type of registration in `country`.
@@ -1080,13 +1013,6 @@ declare module 'stripe' {
1080
1013
  type: 'simplified';
1081
1014
  }
1082
1015
 
1083
- interface Tz {
1084
- /**
1085
- * Type of registration in `country`.
1086
- */
1087
- type: 'simplified';
1088
- }
1089
-
1090
1016
  interface Us {
1091
1017
  local_amusement_tax?: Us.LocalAmusementTax;
1092
1018
 
@@ -1152,17 +1078,9 @@ declare module 'stripe' {
1152
1078
  | 'local_amusement_tax'
1153
1079
  | 'local_lease_tax'
1154
1080
  | 'state_communications_tax'
1155
- | 'state_retail_delivery_fee'
1156
1081
  | 'state_sales_tax';
1157
1082
  }
1158
1083
 
1159
- interface Uz {
1160
- /**
1161
- * Type of registration in `country`.
1162
- */
1163
- type: 'simplified';
1164
- }
1165
-
1166
1084
  interface Vn {
1167
1085
  /**
1168
1086
  * Type of registration in `country`.
@@ -62,11 +62,6 @@ declare module 'stripe' {
62
62
  */
63
63
  bh?: CountryOptions.Bh;
64
64
 
65
- /**
66
- * Options for the registration in BY.
67
- */
68
- by?: CountryOptions.By;
69
-
70
65
  /**
71
66
  * Options for the registration in CA.
72
67
  */
@@ -87,11 +82,6 @@ declare module 'stripe' {
87
82
  */
88
83
  co?: CountryOptions.Co;
89
84
 
90
- /**
91
- * Options for the registration in CR.
92
- */
93
- cr?: CountryOptions.Cr;
94
-
95
85
  /**
96
86
  * Options for the registration in CY.
97
87
  */
@@ -112,11 +102,6 @@ declare module 'stripe' {
112
102
  */
113
103
  dk?: CountryOptions.Dk;
114
104
 
115
- /**
116
- * Options for the registration in EC.
117
- */
118
- ec?: CountryOptions.Ec;
119
-
120
105
  /**
121
106
  * Options for the registration in EE.
122
107
  */
@@ -222,16 +207,6 @@ declare module 'stripe' {
222
207
  */
223
208
  lv?: CountryOptions.Lv;
224
209
 
225
- /**
226
- * Options for the registration in MA.
227
- */
228
- ma?: CountryOptions.Ma;
229
-
230
- /**
231
- * Options for the registration in MD.
232
- */
233
- md?: CountryOptions.Md;
234
-
235
210
  /**
236
211
  * Options for the registration in MT.
237
212
  */
@@ -287,16 +262,6 @@ declare module 'stripe' {
287
262
  */
288
263
  ro?: CountryOptions.Ro;
289
264
 
290
- /**
291
- * Options for the registration in RS.
292
- */
293
- rs?: CountryOptions.Rs;
294
-
295
- /**
296
- * Options for the registration in RU.
297
- */
298
- ru?: CountryOptions.Ru;
299
-
300
265
  /**
301
266
  * Options for the registration in SA.
302
267
  */
@@ -332,21 +297,11 @@ declare module 'stripe' {
332
297
  */
333
298
  tr?: CountryOptions.Tr;
334
299
 
335
- /**
336
- * Options for the registration in TZ.
337
- */
338
- tz?: CountryOptions.Tz;
339
-
340
300
  /**
341
301
  * Options for the registration in US.
342
302
  */
343
303
  us?: CountryOptions.Us;
344
304
 
345
- /**
346
- * Options for the registration in UZ.
347
- */
348
- uz?: CountryOptions.Uz;
349
-
350
305
  /**
351
306
  * Options for the registration in VN.
352
307
  */
@@ -461,13 +416,6 @@ declare module 'stripe' {
461
416
  type: 'standard';
462
417
  }
463
418
 
464
- interface By {
465
- /**
466
- * Type of registration to be created in `country`.
467
- */
468
- type: 'simplified';
469
- }
470
-
471
419
  interface Ca {
472
420
  /**
473
421
  * Options for the provincial tax registration.
@@ -512,13 +460,6 @@ declare module 'stripe' {
512
460
  type: 'simplified';
513
461
  }
514
462
 
515
- interface Cr {
516
- /**
517
- * Type of registration to be created in `country`.
518
- */
519
- type: 'simplified';
520
- }
521
-
522
463
  interface Cy {
523
464
  /**
524
465
  * Options for the standard registration.
@@ -627,13 +568,6 @@ declare module 'stripe' {
627
568
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
628
569
  }
629
570
 
630
- interface Ec {
631
- /**
632
- * Type of registration to be created in `country`.
633
- */
634
- type: 'simplified';
635
- }
636
-
637
571
  interface Ee {
638
572
  /**
639
573
  * Options for the standard registration.
@@ -1021,20 +955,6 @@ declare module 'stripe' {
1021
955
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
1022
956
  }
1023
957
 
1024
- interface Ma {
1025
- /**
1026
- * Type of registration to be created in `country`.
1027
- */
1028
- type: 'simplified';
1029
- }
1030
-
1031
- interface Md {
1032
- /**
1033
- * Type of registration to be created in `country`.
1034
- */
1035
- type: 'simplified';
1036
- }
1037
-
1038
958
  interface Mt {
1039
959
  /**
1040
960
  * Options for the standard registration.
@@ -1212,20 +1132,6 @@ declare module 'stripe' {
1212
1132
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
1213
1133
  }
1214
1134
 
1215
- interface Rs {
1216
- /**
1217
- * Type of registration to be created in `country`.
1218
- */
1219
- type: 'standard';
1220
- }
1221
-
1222
- interface Ru {
1223
- /**
1224
- * Type of registration to be created in `country`.
1225
- */
1226
- type: 'simplified';
1227
- }
1228
-
1229
1135
  interface Sa {
1230
1136
  /**
1231
1137
  * Type of registration to be created in `country`.
@@ -1335,13 +1241,6 @@ declare module 'stripe' {
1335
1241
  type: 'simplified';
1336
1242
  }
1337
1243
 
1338
- interface Tz {
1339
- /**
1340
- * Type of registration to be created in `country`.
1341
- */
1342
- type: 'simplified';
1343
- }
1344
-
1345
1244
  interface Us {
1346
1245
  /**
1347
1246
  * Options for the local amusement tax registration.
@@ -1416,17 +1315,9 @@ declare module 'stripe' {
1416
1315
  | 'local_amusement_tax'
1417
1316
  | 'local_lease_tax'
1418
1317
  | 'state_communications_tax'
1419
- | 'state_retail_delivery_fee'
1420
1318
  | 'state_sales_tax';
1421
1319
  }
1422
1320
 
1423
- interface Uz {
1424
- /**
1425
- * Type of registration to be created in `country`.
1426
- */
1427
- type: 'simplified';
1428
- }
1429
-
1430
1321
  interface Vn {
1431
1322
  /**
1432
1323
  * Type of registration to be created in `country`.
@@ -125,7 +125,7 @@ declare module 'stripe' {
125
125
 
126
126
  interface TaxId {
127
127
  /**
128
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `jp_trn`, `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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
128
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `jp_trn`, `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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
129
129
  */
130
130
  type: TaxId.Type;
131
131
 
@@ -147,7 +147,6 @@ declare module 'stripe' {
147
147
  | 'bo_tin'
148
148
  | 'br_cnpj'
149
149
  | 'br_cpf'
150
- | 'by_tin'
151
150
  | 'ca_bn'
152
151
  | 'ca_gst_hst'
153
152
  | 'ca_pst_bc'
@@ -183,8 +182,6 @@ declare module 'stripe' {
183
182
  | 'kr_brn'
184
183
  | 'kz_bin'
185
184
  | 'li_uid'
186
- | 'ma_vat'
187
- | 'md_vat'
188
185
  | 'mx_rfc'
189
186
  | 'my_frp'
190
187
  | 'my_itn'
@@ -208,13 +205,10 @@ declare module 'stripe' {
208
205
  | 'th_vat'
209
206
  | 'tr_tin'
210
207
  | 'tw_vat'
211
- | 'tz_vat'
212
208
  | 'ua_vat'
213
209
  | 'unknown'
214
210
  | 'us_ein'
215
211
  | 'uy_ruc'
216
- | 'uz_tin'
217
- | 'uz_vat'
218
212
  | 've_rif'
219
213
  | 'vn_tin'
220
214
  | 'za_vat';
@@ -370,7 +364,6 @@ declare module 'stripe' {
370
364
  | 'lease_tax'
371
365
  | 'pst'
372
366
  | 'qst'
373
- | 'retail_delivery_fee'
374
367
  | 'rst'
375
368
  | 'sales_tax'
376
369
  | 'vat';
package/types/TaxIds.d.ts CHANGED
@@ -70,7 +70,7 @@ declare module 'stripe' {
70
70
  owner: TaxId.Owner | null;
71
71
 
72
72
  /**
73
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
73
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`
74
74
  */
75
75
  type: TaxId.Type;
76
76
 
@@ -123,7 +123,6 @@ declare module 'stripe' {
123
123
  | 'bo_tin'
124
124
  | 'br_cnpj'
125
125
  | 'br_cpf'
126
- | 'by_tin'
127
126
  | 'ca_bn'
128
127
  | 'ca_gst_hst'
129
128
  | 'ca_pst_bc'
@@ -159,8 +158,6 @@ declare module 'stripe' {
159
158
  | 'kr_brn'
160
159
  | 'kz_bin'
161
160
  | 'li_uid'
162
- | 'ma_vat'
163
- | 'md_vat'
164
161
  | 'mx_rfc'
165
162
  | 'my_frp'
166
163
  | 'my_itn'
@@ -184,13 +181,10 @@ declare module 'stripe' {
184
181
  | 'th_vat'
185
182
  | 'tr_tin'
186
183
  | 'tw_vat'
187
- | 'tz_vat'
188
184
  | 'ua_vat'
189
185
  | 'unknown'
190
186
  | 'us_ein'
191
187
  | 'uy_ruc'
192
- | 'uz_tin'
193
- | 'uz_vat'
194
188
  | 've_rif'
195
189
  | 'vn_tin'
196
190
  | 'za_vat';
@@ -4,7 +4,7 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  interface TaxIdCreateParams {
6
6
  /**
7
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
7
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`
8
8
  */
9
9
  type: TaxIdCreateParams.Type;
10
10
 
@@ -57,7 +57,6 @@ declare module 'stripe' {
57
57
  | 'bo_tin'
58
58
  | 'br_cnpj'
59
59
  | 'br_cpf'
60
- | 'by_tin'
61
60
  | 'ca_bn'
62
61
  | 'ca_gst_hst'
63
62
  | 'ca_pst_bc'
@@ -93,8 +92,6 @@ declare module 'stripe' {
93
92
  | 'kr_brn'
94
93
  | 'kz_bin'
95
94
  | 'li_uid'
96
- | 'ma_vat'
97
- | 'md_vat'
98
95
  | 'mx_rfc'
99
96
  | 'my_frp'
100
97
  | 'my_itn'
@@ -118,12 +115,9 @@ declare module 'stripe' {
118
115
  | 'th_vat'
119
116
  | 'tr_tin'
120
117
  | 'tw_vat'
121
- | 'tz_vat'
122
118
  | 'ua_vat'
123
119
  | 'us_ein'
124
120
  | 'uy_ruc'
125
- | 'uz_tin'
126
- | 'uz_vat'
127
121
  | 've_rif'
128
122
  | 'vn_tin'
129
123
  | 'za_vat';