stripe 17.8.0-beta.1 → 18.0.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.
Files changed (208) hide show
  1. package/CHANGELOG.md +246 -1075
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  7. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  8. package/cjs/resources/Invoices.js +0 -26
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionItems.js +0 -9
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources/Terminal/Readers.js +0 -12
  14. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  15. package/cjs/resources.js +12 -48
  16. package/cjs/stripe.core.js +3 -14
  17. package/esm/apiVersion.js +1 -1
  18. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  19. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  20. package/esm/resources/Invoices.js +0 -26
  21. package/esm/resources/PaymentIntents.js +0 -8
  22. package/esm/resources/Quotes.js +0 -32
  23. package/esm/resources/SubscriptionItems.js +0 -9
  24. package/esm/resources/SubscriptionSchedules.js +0 -4
  25. package/esm/resources/Terminal/Readers.js +0 -12
  26. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  27. package/esm/resources.js +1 -33
  28. package/esm/stripe.core.js +3 -14
  29. package/package.json +1 -1
  30. package/types/AccountLinksResource.d.ts +1 -5
  31. package/types/AccountSessions.d.ts +0 -45
  32. package/types/AccountSessionsResource.d.ts +0 -243
  33. package/types/Accounts.d.ts +48 -211
  34. package/types/AccountsResource.d.ts +86 -503
  35. package/types/ApplicationFees.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +3 -1
  37. package/types/BalanceTransactionsResource.d.ts +1 -1
  38. package/types/BankAccounts.d.ts +9 -1
  39. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  40. package/types/Billing/CreditGrants.d.ts +2 -2
  41. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  42. package/types/Billing/Meters.d.ts +1 -1
  43. package/types/Billing/MetersResource.d.ts +2 -2
  44. package/types/Capabilities.d.ts +8 -0
  45. package/types/Cards.d.ts +1 -9
  46. package/types/Charges.d.ts +56 -153
  47. package/types/ChargesResource.d.ts +1 -1295
  48. package/types/Checkout/Sessions.d.ts +62 -336
  49. package/types/Checkout/SessionsResource.d.ts +69 -287
  50. package/types/ConfirmationTokens.d.ts +50 -99
  51. package/types/Coupons.d.ts +1 -1
  52. package/types/CouponsResource.d.ts +1 -1
  53. package/types/CreditNoteLineItems.d.ts +24 -22
  54. package/types/CreditNotes.d.ts +26 -23
  55. package/types/CreditNotesResource.d.ts +0 -15
  56. package/types/CustomerBalanceTransactions.d.ts +8 -1
  57. package/types/Customers.d.ts +3 -3
  58. package/types/CustomersResource.d.ts +3 -21
  59. package/types/EventTypes.d.ts +85 -545
  60. package/types/Events.d.ts +8 -93
  61. package/types/FinancialConnections/Accounts.d.ts +1 -29
  62. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  63. package/types/FinancialConnections/Sessions.d.ts +1 -49
  64. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  65. package/types/InvoiceItems.d.ts +60 -31
  66. package/types/InvoiceItemsResource.d.ts +26 -120
  67. package/types/InvoiceLineItems.d.ts +154 -91
  68. package/types/InvoicePayments.d.ts +2 -16
  69. package/types/InvoicePaymentsResource.d.ts +74 -0
  70. package/types/Invoices.d.ts +93 -214
  71. package/types/InvoicesResource.d.ts +307 -6599
  72. package/types/Issuing/Authorizations.d.ts +1 -1
  73. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  74. package/types/Issuing/CardholdersResource.d.ts +1 -2
  75. package/types/Issuing/Transactions.d.ts +0 -2
  76. package/types/Issuing/TransactionsResource.d.ts +0 -5
  77. package/types/LineItems.d.ts +0 -32
  78. package/types/Mandates.d.ts +8 -77
  79. package/types/PaymentIntents.d.ts +56 -648
  80. package/types/PaymentIntentsResource.d.ts +4120 -8122
  81. package/types/PaymentLinks.d.ts +49 -6
  82. package/types/PaymentLinksResource.d.ts +77 -12
  83. package/types/PaymentMethodConfigurations.d.ts +63 -135
  84. package/types/PaymentMethodConfigurationsResource.d.ts +116 -216
  85. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  86. package/types/PaymentMethods.d.ts +50 -99
  87. package/types/PaymentMethodsResource.d.ts +53 -148
  88. package/types/Persons.d.ts +17 -9
  89. package/types/Plans.d.ts +0 -7
  90. package/types/PlansResource.d.ts +0 -7
  91. package/types/Prices.d.ts +0 -33
  92. package/types/PricesResource.d.ts +2 -35
  93. package/types/Products.d.ts +0 -39
  94. package/types/ProductsResource.d.ts +0 -36
  95. package/types/Quotes.d.ts +1 -591
  96. package/types/QuotesResource.d.ts +200 -2532
  97. package/types/Refunds.d.ts +18 -14
  98. package/types/Reviews.d.ts +3 -2
  99. package/types/SetupAttempts.d.ts +15 -38
  100. package/types/SetupIntents.d.ts +3 -111
  101. package/types/SetupIntentsResource.d.ts +155 -642
  102. package/types/Sources.d.ts +0 -29
  103. package/types/SubscriptionItems.d.ts +9 -34
  104. package/types/SubscriptionItemsResource.d.ts +2 -203
  105. package/types/SubscriptionSchedules.d.ts +0 -251
  106. package/types/SubscriptionSchedulesResource.d.ts +9 -1333
  107. package/types/Subscriptions.d.ts +4 -124
  108. package/types/SubscriptionsResource.d.ts +10 -455
  109. package/types/Tax/RegistrationsResource.d.ts +1 -1
  110. package/types/Terminal/Configurations.d.ts +86 -3
  111. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  112. package/types/Terminal/Readers.d.ts +0 -290
  113. package/types/Terminal/ReadersResource.d.ts +0 -215
  114. package/types/TestHelpers/ConfirmationTokensResource.d.ts +50 -103
  115. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  116. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  117. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  118. package/types/TokensResource.d.ts +6 -1
  119. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  120. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  121. package/types/Treasury/FinancialAccountsResource.d.ts +1 -38
  122. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  123. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  124. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  125. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  126. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  127. package/types/V2/Core/EventsResource.d.ts +0 -5
  128. package/types/V2/EventDestinations.d.ts +1 -1
  129. package/types/V2/Events.d.ts +1 -1
  130. package/types/WebhookEndpointsResource.d.ts +19 -71
  131. package/types/index.d.ts +2 -64
  132. package/types/lib.d.ts +1 -1
  133. package/types/test/typescriptTest.ts +3 -6
  134. package/cjs/resources/AccountNotices.js +0 -21
  135. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  136. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  137. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  138. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  139. package/cjs/resources/GiftCards/Cards.js +0 -23
  140. package/cjs/resources/GiftCards/Transactions.js +0 -33
  141. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  142. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  143. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  144. package/cjs/resources/Margins.js +0 -22
  145. package/cjs/resources/Orders.js +0 -24
  146. package/cjs/resources/PaymentRecords.js +0 -29
  147. package/cjs/resources/Tax/Associations.js +0 -9
  148. package/cjs/resources/Tax/Forms.js +0 -20
  149. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  150. package/esm/resources/AccountNotices.js +0 -18
  151. package/esm/resources/Capital/FinancingOffers.js +0 -18
  152. package/esm/resources/Capital/FinancingSummary.js +0 -9
  153. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  154. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  155. package/esm/resources/GiftCards/Cards.js +0 -20
  156. package/esm/resources/GiftCards/Transactions.js +0 -30
  157. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  158. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  159. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  160. package/esm/resources/Margins.js +0 -19
  161. package/esm/resources/Orders.js +0 -21
  162. package/esm/resources/PaymentRecords.js +0 -26
  163. package/esm/resources/Tax/Associations.js +0 -6
  164. package/esm/resources/Tax/Forms.js +0 -17
  165. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  166. package/types/AccountNotices.d.ts +0 -113
  167. package/types/AccountNoticesResource.d.ts +0 -98
  168. package/types/Billing/MeterErrorReports.d.ts +0 -106
  169. package/types/Capital/FinancingOffers.d.ts +0 -188
  170. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  171. package/types/Capital/FinancingSummary.d.ts +0 -106
  172. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  173. package/types/Capital/FinancingTransactions.d.ts +0 -135
  174. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  175. package/types/Deprecations.d.ts +0 -215
  176. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  177. package/types/FinancialConnections/Institutions.d.ts +0 -93
  178. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  179. package/types/GiftCards/Cards.d.ts +0 -118
  180. package/types/GiftCards/CardsResource.d.ts +0 -159
  181. package/types/GiftCards/Transactions.d.ts +0 -129
  182. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  183. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  184. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  185. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  186. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  187. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  188. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  189. package/types/Issuing/Settlements.d.ts +0 -103
  190. package/types/Margins.d.ts +0 -56
  191. package/types/MarginsResource.d.ts +0 -114
  192. package/types/Orders.d.ts +0 -1189
  193. package/types/OrdersResource.d.ts +0 -2981
  194. package/types/PaymentAttemptRecords.d.ts +0 -242
  195. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  196. package/types/PaymentRecords.d.ts +0 -242
  197. package/types/PaymentRecordsResource.d.ts +0 -455
  198. package/types/QuoteLines.d.ts +0 -634
  199. package/types/QuotePreviewInvoices.d.ts +0 -1658
  200. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  201. package/types/Tax/Associations.d.ts +0 -126
  202. package/types/Tax/AssociationsResource.d.ts +0 -29
  203. package/types/Tax/Forms.d.ts +0 -220
  204. package/types/Tax/FormsResource.d.ts +0 -107
  205. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  206. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  207. package/types/UsageRecordSummaries.d.ts +0 -56
  208. package/types/UsageRecords.d.ts +0 -45
@@ -75,7 +75,7 @@ declare module 'stripe' {
75
75
  client_reference_id: string | null;
76
76
 
77
77
  /**
78
- * The client secret of the Session. Use this with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
78
+ * The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded`. Client secret to be used when initializing Stripe.js embedded checkout.
79
79
  */
80
80
  client_secret: string | null;
81
81
 
@@ -105,7 +105,7 @@ declare module 'stripe' {
105
105
  currency: string | null;
106
106
 
107
107
  /**
108
- * Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions
108
+ * Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions created before 2025-03-31.
109
109
  */
110
110
  currency_conversion: Session.CurrencyConversion | null;
111
111
 
@@ -189,6 +189,11 @@ declare module 'stripe' {
189
189
  */
190
190
  mode: Session.Mode;
191
191
 
192
+ /**
193
+ * The optional items presented to the customer at checkout.
194
+ */
195
+ optional_items?: Array<Session.OptionalItem> | null;
196
+
192
197
  /**
193
198
  * The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
194
199
  */
@@ -231,10 +236,12 @@ declare module 'stripe' {
231
236
  *
232
237
  * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
233
238
  */
234
- permissions?: Session.Permissions | null;
239
+ permissions: Session.Permissions | null;
235
240
 
236
241
  phone_number_collection?: Session.PhoneNumberCollection;
237
242
 
243
+ presentment_details?: Session.PresentmentDetails;
244
+
238
245
  /**
239
246
  * The ID of the original expired Checkout Session that triggered the recovery flow.
240
247
  */
@@ -246,7 +253,7 @@ declare module 'stripe' {
246
253
  redirect_on_completion?: Session.RedirectOnCompletion;
247
254
 
248
255
  /**
249
- * Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
256
+ * Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
250
257
  */
251
258
  return_url?: string;
252
259
 
@@ -270,11 +277,6 @@ declare module 'stripe' {
270
277
  */
271
278
  shipping_cost: Session.ShippingCost | null;
272
279
 
273
- /**
274
- * Shipping information for this Checkout Session.
275
- */
276
- shipping_details: Session.ShippingDetails | null;
277
-
278
280
  /**
279
281
  * The shipping rate options applied to this Session.
280
282
  */
@@ -316,7 +318,7 @@ declare module 'stripe' {
316
318
  ui_mode: Session.UiMode | null;
317
319
 
318
320
  /**
319
- * The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.`
321
+ * The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.`
320
322
  * This value is only present when the session is active.
321
323
  */
322
324
  url: string | null;
@@ -403,172 +405,20 @@ declare module 'stripe' {
403
405
  type BillingAddressCollection = 'auto' | 'required';
404
406
 
405
407
  interface CollectedInformation {
406
- /**
407
- * Customer's business name for this Checkout Session
408
- */
409
- business_name?: string | null;
410
-
411
- /**
412
- * Customer's email for this Checkout Session
413
- */
414
- email?: string | null;
415
-
416
- /**
417
- * Customer's phone number for this Checkout Session
418
- */
419
- phone?: string | null;
420
-
421
408
  /**
422
409
  * Shipping information for this Checkout Session.
423
410
  */
424
411
  shipping_details: CollectedInformation.ShippingDetails | null;
425
-
426
- /**
427
- * Customer's tax ids for this Checkout Session.
428
- */
429
- tax_ids?: Array<CollectedInformation.TaxId> | null;
430
412
  }
431
413
 
432
414
  namespace CollectedInformation {
433
415
  interface ShippingDetails {
434
- address?: Stripe.Address;
435
-
436
- /**
437
- * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
438
- */
439
- carrier?: string | null;
440
-
441
- /**
442
- * Recipient name.
443
- */
444
- name?: string;
416
+ address: Stripe.Address;
445
417
 
446
418
  /**
447
- * Recipient phone (including extension).
419
+ * Customer name.
448
420
  */
449
- phone?: string | null;
450
-
451
- /**
452
- * The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
453
- */
454
- tracking_number?: string | null;
455
- }
456
-
457
- interface TaxId {
458
- /**
459
- * 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`, `li_vat`, `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`, `al_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`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
460
- */
461
- type: TaxId.Type;
462
-
463
- /**
464
- * The value of the tax ID.
465
- */
466
- value: string | null;
467
- }
468
-
469
- namespace TaxId {
470
- type Type =
471
- | 'ad_nrt'
472
- | 'ae_trn'
473
- | 'al_tin'
474
- | 'am_tin'
475
- | 'ao_tin'
476
- | 'ar_cuit'
477
- | 'au_abn'
478
- | 'au_arn'
479
- | 'ba_tin'
480
- | 'bb_tin'
481
- | 'bg_uic'
482
- | 'bh_vat'
483
- | 'bo_tin'
484
- | 'br_cnpj'
485
- | 'br_cpf'
486
- | 'bs_tin'
487
- | 'by_tin'
488
- | 'ca_bn'
489
- | 'ca_gst_hst'
490
- | 'ca_pst_bc'
491
- | 'ca_pst_mb'
492
- | 'ca_pst_sk'
493
- | 'ca_qst'
494
- | 'cd_nif'
495
- | 'ch_uid'
496
- | 'ch_vat'
497
- | 'cl_tin'
498
- | 'cn_tin'
499
- | 'co_nit'
500
- | 'cr_tin'
501
- | 'de_stn'
502
- | 'do_rcn'
503
- | 'ec_ruc'
504
- | 'eg_tin'
505
- | 'es_cif'
506
- | 'eu_oss_vat'
507
- | 'eu_vat'
508
- | 'gb_vat'
509
- | 'ge_vat'
510
- | 'gn_nif'
511
- | 'hk_br'
512
- | 'hr_oib'
513
- | 'hu_tin'
514
- | 'id_npwp'
515
- | 'il_vat'
516
- | 'in_gst'
517
- | 'is_vat'
518
- | 'jp_cn'
519
- | 'jp_rn'
520
- | 'jp_trn'
521
- | 'ke_pin'
522
- | 'kh_tin'
523
- | 'kr_brn'
524
- | 'kz_bin'
525
- | 'li_uid'
526
- | 'li_vat'
527
- | 'ma_vat'
528
- | 'md_vat'
529
- | 'me_pib'
530
- | 'mk_vat'
531
- | 'mr_nif'
532
- | 'mx_rfc'
533
- | 'my_frp'
534
- | 'my_itn'
535
- | 'my_sst'
536
- | 'ng_tin'
537
- | 'no_vat'
538
- | 'no_voec'
539
- | 'np_pan'
540
- | 'nz_gst'
541
- | 'om_vat'
542
- | 'pe_ruc'
543
- | 'ph_tin'
544
- | 'ro_tin'
545
- | 'rs_pib'
546
- | 'ru_inn'
547
- | 'ru_kpp'
548
- | 'sa_vat'
549
- | 'sg_gst'
550
- | 'sg_uen'
551
- | 'si_tin'
552
- | 'sn_ninea'
553
- | 'sr_fin'
554
- | 'sv_nit'
555
- | 'th_vat'
556
- | 'tj_tin'
557
- | 'tr_tin'
558
- | 'tw_vat'
559
- | 'tz_vat'
560
- | 'ua_vat'
561
- | 'ug_tin'
562
- | 'unknown'
563
- | 'us_ein'
564
- | 'uy_ruc'
565
- | 'uz_tin'
566
- | 'uz_vat'
567
- | 've_rif'
568
- | 'vn_tin'
569
- | 'za_vat'
570
- | 'zm_tin'
571
- | 'zw_tin';
421
+ name: string;
572
422
  }
573
423
  }
574
424
 
@@ -1117,6 +967,33 @@ declare module 'stripe' {
1117
967
 
1118
968
  type Mode = 'payment' | 'setup' | 'subscription';
1119
969
 
970
+ interface OptionalItem {
971
+ adjustable_quantity: OptionalItem.AdjustableQuantity | null;
972
+
973
+ price: string;
974
+
975
+ quantity: number;
976
+ }
977
+
978
+ namespace OptionalItem {
979
+ interface AdjustableQuantity {
980
+ /**
981
+ * Set to true if the quantity can be adjusted to any non-negative integer.
982
+ */
983
+ enabled: boolean;
984
+
985
+ /**
986
+ * The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
987
+ */
988
+ maximum: number | null;
989
+
990
+ /**
991
+ * The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
992
+ */
993
+ minimum: number | null;
994
+ }
995
+ }
996
+
1120
997
  type PaymentMethodCollection = 'always' | 'if_required';
1121
998
 
1122
999
  interface PaymentMethodConfigurationDetails {
@@ -1192,8 +1069,6 @@ declare module 'stripe' {
1192
1069
 
1193
1070
  paypal?: PaymentMethodOptions.Paypal;
1194
1071
 
1195
- payto?: PaymentMethodOptions.Payto;
1196
-
1197
1072
  pix?: PaymentMethodOptions.Pix;
1198
1073
 
1199
1074
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1426,11 +1301,6 @@ declare module 'stripe' {
1426
1301
  interface Card {
1427
1302
  installments?: Card.Installments;
1428
1303
 
1429
- /**
1430
- * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1431
- */
1432
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1433
-
1434
1304
  /**
1435
1305
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1436
1306
  */
@@ -1488,8 +1358,6 @@ declare module 'stripe' {
1488
1358
  enabled?: boolean;
1489
1359
  }
1490
1360
 
1491
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1492
-
1493
1361
  type RequestExtendedAuthorization = 'if_available' | 'never';
1494
1362
 
1495
1363
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1871,100 +1739,12 @@ declare module 'stripe' {
1871
1739
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1872
1740
  */
1873
1741
  setup_future_usage?: Paypal.SetupFutureUsage;
1874
-
1875
- /**
1876
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1877
- */
1878
- subsellers?: Array<string>;
1879
1742
  }
1880
1743
 
1881
1744
  namespace Paypal {
1882
1745
  type SetupFutureUsage = 'none' | 'off_session';
1883
1746
  }
1884
1747
 
1885
- interface Payto {
1886
- mandate_options?: Payto.MandateOptions;
1887
-
1888
- /**
1889
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1890
- *
1891
- * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1892
- *
1893
- * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1894
- *
1895
- * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1896
- */
1897
- setup_future_usage?: Payto.SetupFutureUsage;
1898
- }
1899
-
1900
- namespace Payto {
1901
- interface MandateOptions {
1902
- /**
1903
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1904
- */
1905
- amount: number | null;
1906
-
1907
- /**
1908
- * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
1909
- */
1910
- amount_type: MandateOptions.AmountType | null;
1911
-
1912
- /**
1913
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1914
- */
1915
- end_date: string | null;
1916
-
1917
- /**
1918
- * The periodicity at which payments will be collected.
1919
- */
1920
- payment_schedule: MandateOptions.PaymentSchedule | null;
1921
-
1922
- /**
1923
- * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1924
- */
1925
- payments_per_period: number | null;
1926
-
1927
- /**
1928
- * The purpose for which payments are made. Defaults to retail.
1929
- */
1930
- purpose: MandateOptions.Purpose | null;
1931
-
1932
- /**
1933
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1934
- */
1935
- start_date: string | null;
1936
- }
1937
-
1938
- namespace MandateOptions {
1939
- type AmountType = 'fixed' | 'maximum';
1940
-
1941
- type PaymentSchedule =
1942
- | 'adhoc'
1943
- | 'annual'
1944
- | 'daily'
1945
- | 'fortnightly'
1946
- | 'monthly'
1947
- | 'quarterly'
1948
- | 'semi_annual'
1949
- | 'weekly';
1950
-
1951
- type Purpose =
1952
- | 'dependant_support'
1953
- | 'government'
1954
- | 'loan'
1955
- | 'mortgage'
1956
- | 'other'
1957
- | 'pension'
1958
- | 'personal'
1959
- | 'retail'
1960
- | 'salary'
1961
- | 'tax'
1962
- | 'utility';
1963
- }
1964
-
1965
- type SetupFutureUsage = 'none' | 'off_session';
1966
- }
1967
-
1968
1748
  interface Pix {
1969
1749
  /**
1970
1750
  * The number of seconds after which Pix payment will expire.
@@ -2076,8 +1856,6 @@ declare module 'stripe' {
2076
1856
  interface FinancialConnections {
2077
1857
  filters?: FinancialConnections.Filters;
2078
1858
 
2079
- manual_entry?: FinancialConnections.ManualEntry;
2080
-
2081
1859
  /**
2082
1860
  * The list of permissions to request. The `payment_method` permission must be included.
2083
1861
  */
@@ -2100,39 +1878,19 @@ declare module 'stripe' {
2100
1878
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2101
1879
  */
2102
1880
  account_subcategories?: Array<Filters.AccountSubcategory>;
2103
-
2104
- /**
2105
- * The institution to use to filter for possible accounts to link.
2106
- */
2107
- institution?: string;
2108
1881
  }
2109
1882
 
2110
1883
  namespace Filters {
2111
1884
  type AccountSubcategory = 'checking' | 'savings';
2112
1885
  }
2113
1886
 
2114
- interface ManualEntry {
2115
- /**
2116
- * Settings for configuring manual entry of account details.
2117
- */
2118
- mode?: ManualEntry.Mode;
2119
- }
2120
-
2121
- namespace ManualEntry {
2122
- type Mode = 'automatic' | 'custom';
2123
- }
2124
-
2125
1887
  type Permission =
2126
1888
  | 'balances'
2127
1889
  | 'ownership'
2128
1890
  | 'payment_method'
2129
1891
  | 'transactions';
2130
1892
 
2131
- type Prefetch =
2132
- | 'balances'
2133
- | 'inferred_balances'
2134
- | 'ownership'
2135
- | 'transactions';
1893
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2136
1894
  }
2137
1895
 
2138
1896
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2145,37 +1903,17 @@ declare module 'stripe' {
2145
1903
 
2146
1904
  interface Permissions {
2147
1905
  /**
2148
- * Permissions for updating the Checkout Session.
1906
+ * Determines which entity is allowed to update the shipping details.
1907
+ *
1908
+ * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
1909
+ *
1910
+ * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2149
1911
  */
2150
- update: Permissions.Update | null;
1912
+ update_shipping_details: Permissions.UpdateShippingDetails | null;
2151
1913
  }
2152
1914
 
2153
1915
  namespace Permissions {
2154
- interface Update {
2155
- /**
2156
- * Determines which entity is allowed to update the line items.
2157
- *
2158
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2159
- *
2160
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2161
- */
2162
- line_items?: Update.LineItems | null;
2163
-
2164
- /**
2165
- * Determines which entity is allowed to update the shipping details.
2166
- *
2167
- * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2168
- *
2169
- * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2170
- */
2171
- shipping_details: Update.ShippingDetails | null;
2172
- }
2173
-
2174
- namespace Update {
2175
- type LineItems = 'client_only' | 'server_only';
2176
-
2177
- type ShippingDetails = 'client_only' | 'server_only';
2178
- }
1916
+ type UpdateShippingDetails = 'client_only' | 'server_only';
2179
1917
  }
2180
1918
 
2181
1919
  interface PhoneNumberCollection {
@@ -2185,6 +1923,18 @@ declare module 'stripe' {
2185
1923
  enabled: boolean;
2186
1924
  }
2187
1925
 
1926
+ interface PresentmentDetails {
1927
+ /**
1928
+ * Amount intended to be collected by this payment, denominated in presentment_currency.
1929
+ */
1930
+ presentment_amount: number;
1931
+
1932
+ /**
1933
+ * Currency presented to the customer during payment.
1934
+ */
1935
+ presentment_currency: string;
1936
+ }
1937
+
2188
1938
  type RedirectOnCompletion = 'always' | 'if_required' | 'never';
2189
1939
 
2190
1940
  interface SavedPaymentMethodOptions {
@@ -2536,30 +2286,6 @@ declare module 'stripe' {
2536
2286
  }
2537
2287
  }
2538
2288
 
2539
- interface ShippingDetails {
2540
- address?: Stripe.Address;
2541
-
2542
- /**
2543
- * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
2544
- */
2545
- carrier?: string | null;
2546
-
2547
- /**
2548
- * Recipient name.
2549
- */
2550
- name?: string;
2551
-
2552
- /**
2553
- * Recipient phone (including extension).
2554
- */
2555
- phone?: string | null;
2556
-
2557
- /**
2558
- * The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
2559
- */
2560
- tracking_number?: string | null;
2561
- }
2562
-
2563
2289
  interface ShippingOption {
2564
2290
  /**
2565
2291
  * A non-negative integer in cents representing how much to charge.