stripe 17.3.1 → 17.4.0-beta.2

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 (195) hide show
  1. package/CHANGELOG.md +967 -109
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  16. package/cjs/resources/Margins.js +22 -0
  17. package/cjs/resources/Orders.js +24 -0
  18. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  19. package/cjs/resources/PaymentIntents.js +8 -0
  20. package/cjs/resources/PaymentRecords.js +29 -0
  21. package/cjs/resources/Quotes.js +32 -0
  22. package/cjs/resources/SubscriptionSchedules.js +4 -0
  23. package/cjs/resources/Tax/Associations.js +9 -0
  24. package/cjs/resources/Tax/Forms.js +20 -0
  25. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  26. package/cjs/resources/Terminal/Readers.js +12 -0
  27. package/cjs/resources.js +68 -14
  28. package/cjs/stripe.core.js +1 -1
  29. package/esm/resources/AccountNotices.js +18 -0
  30. package/esm/resources/Capital/FinancingOffers.js +18 -0
  31. package/esm/resources/Capital/FinancingSummary.js +9 -0
  32. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  33. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  34. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  35. package/esm/resources/GiftCards/Cards.js +20 -0
  36. package/esm/resources/GiftCards/Transactions.js +30 -0
  37. package/esm/resources/Invoices.js +17 -0
  38. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  39. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  40. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  41. package/esm/resources/Margins.js +19 -0
  42. package/esm/resources/Orders.js +21 -0
  43. package/esm/resources/PaymentAttemptRecords.js +14 -0
  44. package/esm/resources/PaymentIntents.js +8 -0
  45. package/esm/resources/PaymentRecords.js +26 -0
  46. package/esm/resources/Quotes.js +32 -0
  47. package/esm/resources/SubscriptionSchedules.js +4 -0
  48. package/esm/resources/Tax/Associations.js +6 -0
  49. package/esm/resources/Tax/Forms.js +17 -0
  50. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  51. package/esm/resources/Terminal/Readers.js +12 -0
  52. package/esm/resources.js +51 -1
  53. package/esm/stripe.core.js +1 -1
  54. package/package.json +1 -1
  55. package/types/AccountLinksResource.d.ts +5 -1
  56. package/types/AccountNotices.d.ts +113 -0
  57. package/types/AccountNoticesResource.d.ts +98 -0
  58. package/types/AccountSessions.d.ts +50 -5
  59. package/types/AccountSessionsResource.d.ts +355 -0
  60. package/types/Accounts.d.ts +221 -5
  61. package/types/AccountsResource.d.ts +496 -0
  62. package/types/Billing/CreditBalanceSummaryResource.d.ts +1 -1
  63. package/types/Billing/CreditGrants.d.ts +5 -6
  64. package/types/Billing/CreditGrantsResource.d.ts +11 -11
  65. package/types/Billing/MeterErrorReports.d.ts +106 -0
  66. package/types/Billing/MeterEventsResource.d.ts +1 -1
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +121 -5
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +360 -5
  76. package/types/Checkout/SessionsResource.d.ts +444 -9
  77. package/types/ConfirmationTokens.d.ts +103 -4
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNotes.d.ts +21 -0
  81. package/types/CreditNotesResource.d.ts +51 -0
  82. package/types/CustomersResource.d.ts +11 -2
  83. package/types/Disputes.d.ts +1 -1
  84. package/types/EventTypes.d.ts +579 -0
  85. package/types/Events.d.ts +92 -0
  86. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  87. package/types/FinancialConnections/Accounts.d.ts +29 -1
  88. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  89. package/types/FinancialConnections/Institutions.d.ts +93 -0
  90. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  91. package/types/FinancialConnections/Sessions.d.ts +49 -1
  92. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  93. package/types/FundingInstructions.d.ts +28 -0
  94. package/types/GiftCards/Cards.d.ts +118 -0
  95. package/types/GiftCards/CardsResource.d.ts +159 -0
  96. package/types/GiftCards/Transactions.d.ts +129 -0
  97. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  98. package/types/Identity/VerificationReports.d.ts +1 -1
  99. package/types/Identity/VerificationSessions.d.ts +1 -1
  100. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +28 -1
  104. package/types/InvoicePayments.d.ts +113 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5536 -1845
  107. package/types/Issuing/Authorizations.d.ts +1 -1
  108. package/types/Issuing/CardholdersResource.d.ts +2 -1
  109. package/types/Issuing/Cards.d.ts +1 -1
  110. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  111. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  112. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  113. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  114. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  115. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  116. package/types/Issuing/Settlements.d.ts +103 -0
  117. package/types/Issuing/Transactions.d.ts +2 -0
  118. package/types/Issuing/TransactionsResource.d.ts +5 -0
  119. package/types/LineItems.d.ts +7 -0
  120. package/types/Mandates.d.ts +77 -0
  121. package/types/Margins.d.ts +56 -0
  122. package/types/MarginsResource.d.ts +114 -0
  123. package/types/Orders.d.ts +1155 -0
  124. package/types/OrdersResource.d.ts +2913 -0
  125. package/types/PaymentAttemptRecords.d.ts +242 -0
  126. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  127. package/types/PaymentIntents.d.ts +667 -2
  128. package/types/PaymentIntentsResource.d.ts +7948 -3704
  129. package/types/PaymentLinks.d.ts +6 -0
  130. package/types/PaymentLinksResource.d.ts +21 -2
  131. package/types/PaymentMethodConfigurations.d.ts +180 -0
  132. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  133. package/types/PaymentMethods.d.ts +103 -4
  134. package/types/PaymentMethodsResource.d.ts +133 -0
  135. package/types/PaymentRecords.d.ts +259 -0
  136. package/types/PaymentRecordsResource.d.ts +455 -0
  137. package/types/Prices.d.ts +22 -0
  138. package/types/PricesResource.d.ts +22 -0
  139. package/types/Products.d.ts +39 -0
  140. package/types/ProductsResource.d.ts +36 -0
  141. package/types/QuoteLines.d.ts +634 -0
  142. package/types/QuotePreviewInvoices.d.ts +1615 -0
  143. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  144. package/types/Quotes.d.ts +591 -1
  145. package/types/QuotesResource.d.ts +2526 -194
  146. package/types/Refunds.d.ts +14 -0
  147. package/types/SetupAttempts.d.ts +40 -2
  148. package/types/SetupIntents.d.ts +113 -2
  149. package/types/SetupIntentsResource.d.ts +652 -7
  150. package/types/Sources.d.ts +23 -0
  151. package/types/SubscriptionItems.d.ts +21 -0
  152. package/types/SubscriptionItemsResource.d.ts +109 -0
  153. package/types/SubscriptionSchedules.d.ts +200 -0
  154. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  155. package/types/Subscriptions.d.ts +92 -1
  156. package/types/SubscriptionsResource.d.ts +371 -2
  157. package/types/Tax/Associations.d.ts +126 -0
  158. package/types/Tax/AssociationsResource.d.ts +29 -0
  159. package/types/Tax/CalculationLineItems.d.ts +1 -0
  160. package/types/Tax/Calculations.d.ts +4 -1
  161. package/types/Tax/CalculationsResource.d.ts +2 -1
  162. package/types/Tax/Forms.d.ts +220 -0
  163. package/types/Tax/FormsResource.d.ts +107 -0
  164. package/types/Tax/Transactions.d.ts +3 -1
  165. package/types/TaxIds.d.ts +2 -1
  166. package/types/TaxIdsResource.d.ts +2 -1
  167. package/types/TaxRates.d.ts +1 -0
  168. package/types/TaxRatesResource.d.ts +2 -0
  169. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  170. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  171. package/types/Terminal/Readers.d.ts +278 -0
  172. package/types/Terminal/ReadersResource.d.ts +215 -0
  173. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  174. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +14 -4
  175. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  176. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/InboundTransfers.d.ts +1 -1
  181. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  182. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  183. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  184. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  185. package/types/WebhookEndpointsResource.d.ts +68 -0
  186. package/types/index.d.ts +74 -4
  187. package/cjs/resources/V2/Billing.js +0 -18
  188. package/cjs/resources/V2/Core.js +0 -14
  189. package/cjs/resources/V2.js +0 -14
  190. package/esm/resources/V2/Billing.js +0 -15
  191. package/esm/resources/V2/Core.js +0 -11
  192. package/esm/resources/V2.js +0 -11
  193. package/types/V2/BillingResource.d.ts +0 -14
  194. package/types/V2/CoreResource.d.ts +0 -12
  195. package/types/V2Resource.d.ts +0 -10
@@ -30,6 +30,11 @@ declare module 'stripe' {
30
30
  */
31
31
  object: 'checkout.session';
32
32
 
33
+ /**
34
+ * Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
35
+ */
36
+ adaptive_pricing: Session.AdaptivePricing | null;
37
+
33
38
  /**
34
39
  * When set, provides configuration for actions to take if this Checkout Session expires.
35
40
  */
@@ -70,10 +75,15 @@ declare module 'stripe' {
70
75
  client_reference_id: string | null;
71
76
 
72
77
  /**
73
- * Client secret to be used when initializing Stripe.js embedded checkout.
78
+ * The client secret of the Session. Use this with [initCustomCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
74
79
  */
75
80
  client_secret: string | null;
76
81
 
82
+ /**
83
+ * Information about the customer collected within the Checkout Session.
84
+ */
85
+ collected_information?: Session.CollectedInformation | null;
86
+
77
87
  /**
78
88
  * Results of `consent_collection` for this session.
79
89
  */
@@ -211,6 +221,13 @@ declare module 'stripe' {
211
221
  */
212
222
  payment_status: Session.PaymentStatus;
213
223
 
224
+ /**
225
+ * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
226
+ *
227
+ * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
228
+ */
229
+ permissions?: Session.Permissions | null;
230
+
214
231
  phone_number_collection?: Session.PhoneNumberCollection;
215
232
 
216
233
  /**
@@ -224,7 +241,7 @@ declare module 'stripe' {
224
241
  redirect_on_completion?: Session.RedirectOnCompletion;
225
242
 
226
243
  /**
227
- * 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.
244
+ * 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.
228
245
  */
229
246
  return_url?: string;
230
247
 
@@ -301,6 +318,13 @@ declare module 'stripe' {
301
318
  }
302
319
 
303
320
  namespace Session {
321
+ interface AdaptivePricing {
322
+ /**
323
+ * Whether Adaptive Pricing is enabled.
324
+ */
325
+ enabled: boolean;
326
+ }
327
+
304
328
  interface AfterExpiration {
305
329
  /**
306
330
  * When set, configuration used to recover the Checkout Session on expiry.
@@ -373,6 +397,157 @@ declare module 'stripe' {
373
397
 
374
398
  type BillingAddressCollection = 'auto' | 'required';
375
399
 
400
+ interface CollectedInformation {
401
+ /**
402
+ * Customer's business name for this Checkout Session
403
+ */
404
+ business_name: string | null;
405
+
406
+ /**
407
+ * Customer's email for this Checkout Session
408
+ */
409
+ email: string | null;
410
+
411
+ /**
412
+ * Customer's phone number for this Checkout Session
413
+ */
414
+ phone: string | null;
415
+
416
+ /**
417
+ * Shipping information for this Checkout Session.
418
+ */
419
+ shipping_details: CollectedInformation.ShippingDetails | null;
420
+
421
+ /**
422
+ * Customer's tax ids for this Checkout Session.
423
+ */
424
+ tax_ids: Array<CollectedInformation.TaxId> | null;
425
+ }
426
+
427
+ namespace CollectedInformation {
428
+ interface ShippingDetails {
429
+ address?: Stripe.Address;
430
+
431
+ /**
432
+ * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
433
+ */
434
+ carrier?: string | null;
435
+
436
+ /**
437
+ * Recipient name.
438
+ */
439
+ name?: string;
440
+
441
+ /**
442
+ * Recipient phone (including extension).
443
+ */
444
+ phone?: string | null;
445
+
446
+ /**
447
+ * 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.
448
+ */
449
+ tracking_number?: string | null;
450
+ }
451
+
452
+ interface TaxId {
453
+ /**
454
+ * 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`, `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`
455
+ */
456
+ type: TaxId.Type;
457
+
458
+ /**
459
+ * The value of the tax ID.
460
+ */
461
+ value: string | null;
462
+ }
463
+
464
+ namespace TaxId {
465
+ type Type =
466
+ | 'ad_nrt'
467
+ | 'ae_trn'
468
+ | 'ar_cuit'
469
+ | 'au_abn'
470
+ | 'au_arn'
471
+ | 'bg_uic'
472
+ | 'bh_vat'
473
+ | 'bo_tin'
474
+ | 'br_cnpj'
475
+ | 'br_cpf'
476
+ | 'by_tin'
477
+ | 'ca_bn'
478
+ | 'ca_gst_hst'
479
+ | 'ca_pst_bc'
480
+ | 'ca_pst_mb'
481
+ | 'ca_pst_sk'
482
+ | 'ca_qst'
483
+ | 'ch_uid'
484
+ | 'ch_vat'
485
+ | 'cl_tin'
486
+ | 'cn_tin'
487
+ | 'co_nit'
488
+ | 'cr_tin'
489
+ | 'de_stn'
490
+ | 'do_rcn'
491
+ | 'ec_ruc'
492
+ | 'eg_tin'
493
+ | 'es_cif'
494
+ | 'eu_oss_vat'
495
+ | 'eu_vat'
496
+ | 'gb_vat'
497
+ | 'ge_vat'
498
+ | 'hk_br'
499
+ | 'hr_oib'
500
+ | 'hu_tin'
501
+ | 'id_npwp'
502
+ | 'il_vat'
503
+ | 'in_gst'
504
+ | 'is_vat'
505
+ | 'jp_cn'
506
+ | 'jp_rn'
507
+ | 'jp_trn'
508
+ | 'ke_pin'
509
+ | 'kr_brn'
510
+ | 'kz_bin'
511
+ | 'li_uid'
512
+ | 'li_vat'
513
+ | 'ma_vat'
514
+ | 'md_vat'
515
+ | 'mx_rfc'
516
+ | 'my_frp'
517
+ | 'my_itn'
518
+ | 'my_sst'
519
+ | 'ng_tin'
520
+ | 'no_vat'
521
+ | 'no_voec'
522
+ | 'nz_gst'
523
+ | 'om_vat'
524
+ | 'pe_ruc'
525
+ | 'ph_tin'
526
+ | 'ro_tin'
527
+ | 'rs_pib'
528
+ | 'ru_inn'
529
+ | 'ru_kpp'
530
+ | 'sa_vat'
531
+ | 'sg_gst'
532
+ | 'sg_uen'
533
+ | 'si_tin'
534
+ | 'sv_nit'
535
+ | 'th_vat'
536
+ | 'tr_tin'
537
+ | 'tw_vat'
538
+ | 'tz_vat'
539
+ | 'ua_vat'
540
+ | 'unknown'
541
+ | 'us_ein'
542
+ | 'uy_ruc'
543
+ | 'uz_tin'
544
+ | 'uz_vat'
545
+ | 've_rif'
546
+ | 'vn_tin'
547
+ | 'za_vat';
548
+ }
549
+ }
550
+
376
551
  interface Consent {
377
552
  /**
378
553
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -490,7 +665,7 @@ declare module 'stripe' {
490
665
 
491
666
  interface TaxId {
492
667
  /**
493
- * 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`
668
+ * 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`, `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`
494
669
  */
495
670
  type: TaxId.Type;
496
671
 
@@ -548,6 +723,7 @@ declare module 'stripe' {
548
723
  | 'kr_brn'
549
724
  | 'kz_bin'
550
725
  | 'li_uid'
726
+ | 'li_vat'
551
727
  | 'ma_vat'
552
728
  | 'md_vat'
553
729
  | 'mx_rfc'
@@ -961,6 +1137,8 @@ declare module 'stripe' {
961
1137
 
962
1138
  paypal?: PaymentMethodOptions.Paypal;
963
1139
 
1140
+ payto?: PaymentMethodOptions.Payto;
1141
+
964
1142
  pix?: PaymentMethodOptions.Pix;
965
1143
 
966
1144
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1115,6 +1293,8 @@ declare module 'stripe' {
1115
1293
  }
1116
1294
 
1117
1295
  interface BacsDebit {
1296
+ mandate_options?: BacsDebit.MandateOptions;
1297
+
1118
1298
  /**
1119
1299
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1120
1300
  *
@@ -1128,6 +1308,8 @@ declare module 'stripe' {
1128
1308
  }
1129
1309
 
1130
1310
  namespace BacsDebit {
1311
+ interface MandateOptions {}
1312
+
1131
1313
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1132
1314
  }
1133
1315
 
@@ -1169,6 +1351,31 @@ declare module 'stripe' {
1169
1351
  interface Card {
1170
1352
  installments?: Card.Installments;
1171
1353
 
1354
+ /**
1355
+ * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1356
+ */
1357
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1358
+
1359
+ /**
1360
+ * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1361
+ */
1362
+ request_extended_authorization?: Card.RequestExtendedAuthorization;
1363
+
1364
+ /**
1365
+ * Request ability to [increment the authorization](https://stripe.com/payments/incremental-authorization) for this CheckoutSession.
1366
+ */
1367
+ request_incremental_authorization?: Card.RequestIncrementalAuthorization;
1368
+
1369
+ /**
1370
+ * Request ability to make [multiple captures](https://stripe.com/payments/multicapture) for this CheckoutSession.
1371
+ */
1372
+ request_multicapture?: Card.RequestMulticapture;
1373
+
1374
+ /**
1375
+ * Request ability to [overcapture](https://stripe.com/payments/overcapture) for this CheckoutSession.
1376
+ */
1377
+ request_overcapture?: Card.RequestOvercapture;
1378
+
1172
1379
  /**
1173
1380
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1174
1381
  */
@@ -1204,6 +1411,16 @@ declare module 'stripe' {
1204
1411
  enabled?: boolean;
1205
1412
  }
1206
1413
 
1414
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
1415
+
1416
+ type RequestExtendedAuthorization = 'if_available' | 'never';
1417
+
1418
+ type RequestIncrementalAuthorization = 'if_available' | 'never';
1419
+
1420
+ type RequestMulticapture = 'if_available' | 'never';
1421
+
1422
+ type RequestOvercapture = 'if_available' | 'never';
1423
+
1207
1424
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1208
1425
 
1209
1426
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1562,12 +1779,100 @@ declare module 'stripe' {
1562
1779
  * 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).
1563
1780
  */
1564
1781
  setup_future_usage?: Paypal.SetupFutureUsage;
1782
+
1783
+ /**
1784
+ * 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.
1785
+ */
1786
+ subsellers?: Array<string>;
1565
1787
  }
1566
1788
 
1567
1789
  namespace Paypal {
1568
1790
  type SetupFutureUsage = 'none' | 'off_session';
1569
1791
  }
1570
1792
 
1793
+ interface Payto {
1794
+ mandate_options?: Payto.MandateOptions;
1795
+
1796
+ /**
1797
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1798
+ *
1799
+ * 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.
1800
+ *
1801
+ * 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.
1802
+ *
1803
+ * 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).
1804
+ */
1805
+ setup_future_usage?: Payto.SetupFutureUsage;
1806
+ }
1807
+
1808
+ namespace Payto {
1809
+ interface MandateOptions {
1810
+ /**
1811
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
1812
+ */
1813
+ amount: number | null;
1814
+
1815
+ /**
1816
+ * 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.
1817
+ */
1818
+ amount_type: MandateOptions.AmountType | null;
1819
+
1820
+ /**
1821
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1822
+ */
1823
+ end_date: string | null;
1824
+
1825
+ /**
1826
+ * The periodicity at which payments will be collected.
1827
+ */
1828
+ payment_schedule: MandateOptions.PaymentSchedule | null;
1829
+
1830
+ /**
1831
+ * 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.
1832
+ */
1833
+ payments_per_period: number | null;
1834
+
1835
+ /**
1836
+ * The purpose for which payments are made. Defaults to retail.
1837
+ */
1838
+ purpose: MandateOptions.Purpose | null;
1839
+
1840
+ /**
1841
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1842
+ */
1843
+ start_date: string | null;
1844
+ }
1845
+
1846
+ namespace MandateOptions {
1847
+ type AmountType = 'fixed' | 'maximum';
1848
+
1849
+ type PaymentSchedule =
1850
+ | 'adhoc'
1851
+ | 'annual'
1852
+ | 'daily'
1853
+ | 'fortnightly'
1854
+ | 'monthly'
1855
+ | 'quarterly'
1856
+ | 'semi_annual'
1857
+ | 'weekly';
1858
+
1859
+ type Purpose =
1860
+ | 'dependant_support'
1861
+ | 'government'
1862
+ | 'loan'
1863
+ | 'mortgage'
1864
+ | 'other'
1865
+ | 'pension'
1866
+ | 'personal'
1867
+ | 'retail'
1868
+ | 'salary'
1869
+ | 'tax'
1870
+ | 'utility';
1871
+ }
1872
+
1873
+ type SetupFutureUsage = 'none' | 'off_session';
1874
+ }
1875
+
1571
1876
  interface Pix {
1572
1877
  /**
1573
1878
  * The number of seconds after which Pix payment will expire.
@@ -1600,6 +1905,8 @@ declare module 'stripe' {
1600
1905
  }
1601
1906
 
1602
1907
  interface SepaDebit {
1908
+ mandate_options?: SepaDebit.MandateOptions;
1909
+
1603
1910
  /**
1604
1911
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1605
1912
  *
@@ -1613,6 +1920,8 @@ declare module 'stripe' {
1613
1920
  }
1614
1921
 
1615
1922
  namespace SepaDebit {
1923
+ interface MandateOptions {}
1924
+
1616
1925
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1617
1926
  }
1618
1927
 
@@ -1660,6 +1969,8 @@ declare module 'stripe' {
1660
1969
  interface FinancialConnections {
1661
1970
  filters?: FinancialConnections.Filters;
1662
1971
 
1972
+ manual_entry?: FinancialConnections.ManualEntry;
1973
+
1663
1974
  /**
1664
1975
  * The list of permissions to request. The `payment_method` permission must be included.
1665
1976
  */
@@ -1682,19 +1993,39 @@ declare module 'stripe' {
1682
1993
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1683
1994
  */
1684
1995
  account_subcategories?: Array<Filters.AccountSubcategory>;
1996
+
1997
+ /**
1998
+ * The institution to use to filter for possible accounts to link.
1999
+ */
2000
+ institution?: string;
1685
2001
  }
1686
2002
 
1687
2003
  namespace Filters {
1688
2004
  type AccountSubcategory = 'checking' | 'savings';
1689
2005
  }
1690
2006
 
2007
+ interface ManualEntry {
2008
+ /**
2009
+ * Settings for configuring manual entry of account details.
2010
+ */
2011
+ mode?: ManualEntry.Mode;
2012
+ }
2013
+
2014
+ namespace ManualEntry {
2015
+ type Mode = 'automatic' | 'custom';
2016
+ }
2017
+
1691
2018
  type Permission =
1692
2019
  | 'balances'
1693
2020
  | 'ownership'
1694
2021
  | 'payment_method'
1695
2022
  | 'transactions';
1696
2023
 
1697
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2024
+ type Prefetch =
2025
+ | 'balances'
2026
+ | 'inferred_balances'
2027
+ | 'ownership'
2028
+ | 'transactions';
1698
2029
  }
1699
2030
 
1700
2031
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1705,6 +2036,30 @@ declare module 'stripe' {
1705
2036
 
1706
2037
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
1707
2038
 
2039
+ interface Permissions {
2040
+ /**
2041
+ * Permissions for updating the Checkout Session.
2042
+ */
2043
+ update: Permissions.Update | null;
2044
+ }
2045
+
2046
+ namespace Permissions {
2047
+ interface Update {
2048
+ /**
2049
+ * Determines which entity is allowed to update the shipping details.
2050
+ *
2051
+ * 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.
2052
+ *
2053
+ * 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.
2054
+ */
2055
+ shipping_details: Update.ShippingDetails | null;
2056
+ }
2057
+
2058
+ namespace Update {
2059
+ type ShippingDetails = 'client_only' | 'server_only';
2060
+ }
2061
+ }
2062
+
1708
2063
  interface PhoneNumberCollection {
1709
2064
  /**
1710
2065
  * Indicates whether phone number collection is enabled for the session
@@ -2211,7 +2566,7 @@ declare module 'stripe' {
2211
2566
  }
2212
2567
  }
2213
2568
 
2214
- type UiMode = 'embedded' | 'hosted';
2569
+ type UiMode = 'custom' | 'embedded' | 'hosted';
2215
2570
  }
2216
2571
  }
2217
2572
  }