stripe 16.13.0-beta.1 → 17.1.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 (221) hide show
  1. package/CHANGELOG.md +139 -849
  2. package/README.md +4 -3
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +31 -4
  5. package/cjs/RequestSender.js +114 -74
  6. package/cjs/StripeResource.js +8 -3
  7. package/cjs/apiVersion.js +2 -3
  8. package/cjs/autoPagination.js +51 -7
  9. package/cjs/crypto/CryptoProvider.js +6 -0
  10. package/cjs/crypto/NodeCryptoProvider.js +7 -0
  11. package/cjs/crypto/SubtleCryptoProvider.js +4 -0
  12. package/cjs/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +3 -3
  13. package/cjs/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +4 -4
  14. package/cjs/resources/Billing/CreditGrants.js +30 -0
  15. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  16. package/cjs/resources/Invoices.js +0 -17
  17. package/cjs/resources/PaymentIntents.js +0 -4
  18. package/cjs/resources/Quotes.js +0 -32
  19. package/cjs/resources/SubscriptionSchedules.js +0 -4
  20. package/cjs/resources/Terminal/Readers.js +0 -12
  21. package/cjs/resources/V2/Billing/MeterEventAdjustments.js +12 -0
  22. package/cjs/resources/V2/Billing/MeterEventSession.js +12 -0
  23. package/cjs/resources/V2/Billing/MeterEventStream.js +13 -0
  24. package/cjs/resources/V2/Billing/MeterEvents.js +9 -0
  25. package/cjs/resources/V2/Billing.js +18 -0
  26. package/cjs/resources/V2/Core/Events.js +14 -0
  27. package/cjs/resources/V2/Core.js +12 -0
  28. package/cjs/resources/V2.js +14 -0
  29. package/cjs/resources.js +18 -42
  30. package/cjs/stripe.core.js +20 -8
  31. package/cjs/utils.js +41 -10
  32. package/esm/Error.js +27 -2
  33. package/esm/RequestSender.js +115 -75
  34. package/esm/StripeResource.js +9 -4
  35. package/esm/apiVersion.js +1 -2
  36. package/esm/autoPagination.js +52 -8
  37. package/esm/crypto/CryptoProvider.js +6 -0
  38. package/esm/crypto/NodeCryptoProvider.js +7 -0
  39. package/esm/crypto/SubtleCryptoProvider.js +4 -0
  40. package/esm/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +2 -2
  41. package/esm/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +3 -3
  42. package/esm/resources/Billing/CreditGrants.js +27 -0
  43. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  44. package/esm/resources/Invoices.js +0 -17
  45. package/esm/resources/PaymentIntents.js +0 -4
  46. package/esm/resources/Quotes.js +0 -32
  47. package/esm/resources/SubscriptionSchedules.js +0 -4
  48. package/esm/resources/Terminal/Readers.js +0 -12
  49. package/esm/resources/V2/Billing/MeterEventAdjustments.js +9 -0
  50. package/esm/resources/V2/Billing/MeterEventSession.js +9 -0
  51. package/esm/resources/V2/Billing/MeterEventStream.js +10 -0
  52. package/esm/resources/V2/Billing/MeterEvents.js +6 -0
  53. package/esm/resources/V2/Billing.js +15 -0
  54. package/esm/resources/V2/Core/Events.js +11 -0
  55. package/esm/resources/V2/Core.js +9 -0
  56. package/esm/resources/V2.js +11 -0
  57. package/esm/resources.js +7 -29
  58. package/esm/stripe.core.js +21 -9
  59. package/esm/utils.js +38 -9
  60. package/package.json +1 -1
  61. package/types/AccountLinksResource.d.ts +1 -5
  62. package/types/AccountSessions.d.ts +0 -45
  63. package/types/AccountSessionsResource.d.ts +0 -288
  64. package/types/Accounts.d.ts +1 -113
  65. package/types/AccountsResource.d.ts +0 -270
  66. package/types/Billing/Alerts.d.ts +17 -13
  67. package/types/Billing/AlertsResource.d.ts +18 -21
  68. package/types/Billing/CreditBalanceSummary.d.ts +94 -0
  69. package/types/Billing/CreditBalanceSummaryResource.d.ts +64 -0
  70. package/types/Billing/CreditBalanceTransactions.d.ts +159 -0
  71. package/types/Billing/CreditBalanceTransactionsResource.d.ts +54 -0
  72. package/types/Billing/CreditGrants.d.ts +124 -0
  73. package/types/Billing/CreditGrantsResource.d.ts +219 -0
  74. package/types/BillingPortal/ConfigurationsResource.d.ts +2 -2
  75. package/types/Capabilities.d.ts +1 -1
  76. package/types/Charges.d.ts +0 -71
  77. package/types/ChargesResource.d.ts +0 -1294
  78. package/types/Checkout/Sessions.d.ts +4 -296
  79. package/types/Checkout/SessionsResource.d.ts +6 -352
  80. package/types/ConfirmationTokens.d.ts +0 -67
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNoteLineItems.d.ts +30 -0
  84. package/types/CreditNotes.d.ts +27 -18
  85. package/types/CreditNotesResource.d.ts +0 -51
  86. package/types/Customers.d.ts +2 -3
  87. package/types/CustomersResource.d.ts +0 -3
  88. package/types/Disputes.d.ts +0 -152
  89. package/types/DisputesResource.d.ts +0 -120
  90. package/types/Errors.d.ts +32 -2
  91. package/types/EventTypes.d.ts +2 -545
  92. package/types/Events.d.ts +0 -90
  93. package/types/FinancialConnections/Accounts.d.ts +1 -29
  94. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  95. package/types/FinancialConnections/Sessions.d.ts +1 -49
  96. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  97. package/types/InvoiceItems.d.ts +0 -5
  98. package/types/InvoiceItemsResource.d.ts +0 -98
  99. package/types/InvoiceLineItems.d.ts +29 -20
  100. package/types/Invoices.d.ts +25 -108
  101. package/types/InvoicesResource.d.ts +1835 -5493
  102. package/types/Issuing/CardholdersResource.d.ts +1 -2
  103. package/types/Issuing/Transactions.d.ts +0 -2
  104. package/types/Issuing/TransactionsResource.d.ts +0 -5
  105. package/types/LineItems.d.ts +0 -7
  106. package/types/Mandates.d.ts +0 -77
  107. package/types/PaymentIntents.d.ts +1 -503
  108. package/types/PaymentIntentsResource.d.ts +3464 -7064
  109. package/types/PaymentLinks.d.ts +0 -3
  110. package/types/PaymentLinksResource.d.ts +0 -6
  111. package/types/PaymentMethodConfigurations.d.ts +0 -36
  112. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  113. package/types/PaymentMethods.d.ts +0 -67
  114. package/types/PaymentMethodsResource.d.ts +0 -88
  115. package/types/Prices.d.ts +0 -22
  116. package/types/PricesResource.d.ts +0 -22
  117. package/types/Products.d.ts +0 -39
  118. package/types/ProductsResource.d.ts +28 -37
  119. package/types/PromotionCodes.d.ts +1 -1
  120. package/types/PromotionCodesResource.d.ts +3 -1
  121. package/types/Quotes.d.ts +1 -596
  122. package/types/QuotesResource.d.ts +199 -2531
  123. package/types/SetupAttempts.d.ts +0 -10
  124. package/types/SetupIntents.d.ts +1 -111
  125. package/types/SetupIntentsResource.d.ts +3 -522
  126. package/types/Sources.d.ts +0 -23
  127. package/types/SubscriptionItems.d.ts +0 -21
  128. package/types/SubscriptionItemsResource.d.ts +0 -109
  129. package/types/SubscriptionSchedules.d.ts +0 -200
  130. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  131. package/types/Subscriptions.d.ts +1 -82
  132. package/types/SubscriptionsResource.d.ts +5 -350
  133. package/types/Tax/Settings.d.ts +1 -1
  134. package/types/Terminal/Readers.d.ts +0 -278
  135. package/types/Terminal/ReadersResource.d.ts +13 -212
  136. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
  137. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  138. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  139. package/types/ThinEvent.d.ts +36 -0
  140. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  141. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  142. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  143. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  144. package/types/Treasury/ReceivedCredits.d.ts +5 -27
  145. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  146. package/types/V2/Billing/MeterEventAdjustments.d.ts +65 -0
  147. package/types/V2/Billing/MeterEventAdjustmentsResource.d.ts +47 -0
  148. package/types/V2/Billing/MeterEventSessionResource.d.ts +26 -0
  149. package/types/V2/Billing/MeterEventSessions.d.ts +45 -0
  150. package/types/V2/Billing/MeterEventStreamResource.d.ts +62 -0
  151. package/types/V2/Billing/MeterEvents.d.ts +54 -0
  152. package/types/V2/Billing/MeterEventsResource.d.ts +52 -0
  153. package/types/V2/BillingResource.d.ts +14 -0
  154. package/types/V2/Core/EventsResource.d.ts +57 -0
  155. package/types/V2/CoreResource.d.ts +11 -0
  156. package/types/V2/EventTypes.d.ts +214 -0
  157. package/types/V2/Events.d.ts +75 -0
  158. package/types/V2Resource.d.ts +10 -0
  159. package/types/WebhookEndpointsResource.d.ts +2 -65
  160. package/types/index.d.ts +67 -53
  161. package/types/lib.d.ts +1 -6
  162. package/types/test/typescriptTest.ts +3 -3
  163. package/cjs/resources/AccountNotices.js +0 -21
  164. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  165. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  166. package/cjs/resources/GiftCards/Cards.js +0 -23
  167. package/cjs/resources/GiftCards/Transactions.js +0 -33
  168. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  169. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  170. package/cjs/resources/Margins.js +0 -22
  171. package/cjs/resources/Orders.js +0 -24
  172. package/cjs/resources/Tax/Associations.js +0 -9
  173. package/cjs/resources/Tax/Forms.js +0 -20
  174. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  175. package/esm/resources/AccountNotices.js +0 -18
  176. package/esm/resources/Capital/FinancingOffers.js +0 -18
  177. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  178. package/esm/resources/GiftCards/Cards.js +0 -20
  179. package/esm/resources/GiftCards/Transactions.js +0 -30
  180. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  181. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  182. package/esm/resources/Margins.js +0 -19
  183. package/esm/resources/Orders.js +0 -21
  184. package/esm/resources/Tax/Associations.js +0 -6
  185. package/esm/resources/Tax/Forms.js +0 -17
  186. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  187. package/types/AccountNotices.d.ts +0 -113
  188. package/types/AccountNoticesResource.d.ts +0 -98
  189. package/types/Billing/MeterErrorReports.d.ts +0 -106
  190. package/types/Capital/FinancingOffers.d.ts +0 -188
  191. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  192. package/types/Capital/FinancingSummary.d.ts +0 -106
  193. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  194. package/types/Capital/FinancingTransactions.d.ts +0 -135
  195. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  196. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  197. package/types/FinancialConnections/Institutions.d.ts +0 -93
  198. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  199. package/types/GiftCards/Cards.d.ts +0 -118
  200. package/types/GiftCards/CardsResource.d.ts +0 -159
  201. package/types/GiftCards/Transactions.d.ts +0 -129
  202. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  203. package/types/InvoicePayments.d.ts +0 -138
  204. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  205. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  206. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  207. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  208. package/types/Issuing/Settlements.d.ts +0 -103
  209. package/types/Margins.d.ts +0 -56
  210. package/types/MarginsResource.d.ts +0 -114
  211. package/types/Orders.d.ts +0 -1084
  212. package/types/OrdersResource.d.ts +0 -2765
  213. package/types/QuoteLines.d.ts +0 -634
  214. package/types/QuotePreviewInvoices.d.ts +0 -1548
  215. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  216. package/types/Tax/Associations.d.ts +0 -126
  217. package/types/Tax/AssociationsResource.d.ts +0 -29
  218. package/types/Tax/Forms.d.ts +0 -133
  219. package/types/Tax/FormsResource.d.ts +0 -90
  220. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  221. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -70,15 +70,10 @@ declare module 'stripe' {
70
70
  client_reference_id: string | null;
71
71
 
72
72
  /**
73
- * The client secret of the Session. Use this with [initCustomCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
73
+ * Client secret to be used when initializing Stripe.js embedded checkout.
74
74
  */
75
75
  client_secret: string | null;
76
76
 
77
- /**
78
- * Information about the customer collected within the Checkout Session.
79
- */
80
- collected_information?: Session.CollectedInformation | null;
81
-
82
77
  /**
83
78
  * Results of `consent_collection` for this session.
84
79
  */
@@ -216,13 +211,6 @@ declare module 'stripe' {
216
211
  */
217
212
  payment_status: Session.PaymentStatus;
218
213
 
219
- /**
220
- * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
221
- *
222
- * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
223
- */
224
- permissions?: Session.Permissions | null;
225
-
226
214
  phone_number_collection?: Session.PhoneNumberCollection;
227
215
 
228
216
  /**
@@ -236,7 +224,7 @@ declare module 'stripe' {
236
224
  redirect_on_completion?: Session.RedirectOnCompletion;
237
225
 
238
226
  /**
239
- * 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.
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.
240
228
  */
241
229
  return_url?: string;
242
230
 
@@ -385,150 +373,6 @@ declare module 'stripe' {
385
373
 
386
374
  type BillingAddressCollection = 'auto' | 'required';
387
375
 
388
- interface CollectedInformation {
389
- /**
390
- * Customer's business name for this Checkout Session
391
- */
392
- business_name: string | null;
393
-
394
- /**
395
- * Customer's email for this Checkout Session
396
- */
397
- email: string | null;
398
-
399
- /**
400
- * Customer's phone number for this Checkout Session
401
- */
402
- phone: string | null;
403
-
404
- /**
405
- * Shipping information for this Checkout Session.
406
- */
407
- shipping_details: CollectedInformation.ShippingDetails | null;
408
-
409
- /**
410
- * Customer's tax ids for this Checkout Session.
411
- */
412
- tax_ids: Array<CollectedInformation.TaxId> | null;
413
- }
414
-
415
- namespace CollectedInformation {
416
- interface ShippingDetails {
417
- address?: Stripe.Address;
418
-
419
- /**
420
- * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
421
- */
422
- carrier?: string | null;
423
-
424
- /**
425
- * Recipient name.
426
- */
427
- name?: string;
428
-
429
- /**
430
- * Recipient phone (including extension).
431
- */
432
- phone?: string | null;
433
-
434
- /**
435
- * 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.
436
- */
437
- tracking_number?: string | null;
438
- }
439
-
440
- interface TaxId {
441
- /**
442
- * 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`
443
- */
444
- type: TaxId.Type;
445
-
446
- /**
447
- * The value of the tax ID.
448
- */
449
- value: string | null;
450
- }
451
-
452
- namespace TaxId {
453
- type Type =
454
- | 'ad_nrt'
455
- | 'ae_trn'
456
- | 'ar_cuit'
457
- | 'au_abn'
458
- | 'au_arn'
459
- | 'bg_uic'
460
- | 'bh_vat'
461
- | 'bo_tin'
462
- | 'br_cnpj'
463
- | 'br_cpf'
464
- | 'ca_bn'
465
- | 'ca_gst_hst'
466
- | 'ca_pst_bc'
467
- | 'ca_pst_mb'
468
- | 'ca_pst_sk'
469
- | 'ca_qst'
470
- | 'ch_uid'
471
- | 'ch_vat'
472
- | 'cl_tin'
473
- | 'cn_tin'
474
- | 'co_nit'
475
- | 'cr_tin'
476
- | 'de_stn'
477
- | 'do_rcn'
478
- | 'ec_ruc'
479
- | 'eg_tin'
480
- | 'es_cif'
481
- | 'eu_oss_vat'
482
- | 'eu_vat'
483
- | 'gb_vat'
484
- | 'ge_vat'
485
- | 'hk_br'
486
- | 'hr_oib'
487
- | 'hu_tin'
488
- | 'id_npwp'
489
- | 'il_vat'
490
- | 'in_gst'
491
- | 'is_vat'
492
- | 'jp_cn'
493
- | 'jp_rn'
494
- | 'jp_trn'
495
- | 'ke_pin'
496
- | 'kr_brn'
497
- | 'kz_bin'
498
- | 'li_uid'
499
- | 'mx_rfc'
500
- | 'my_frp'
501
- | 'my_itn'
502
- | 'my_sst'
503
- | 'ng_tin'
504
- | 'no_vat'
505
- | 'no_voec'
506
- | 'nz_gst'
507
- | 'om_vat'
508
- | 'pe_ruc'
509
- | 'ph_tin'
510
- | 'ro_tin'
511
- | 'rs_pib'
512
- | 'ru_inn'
513
- | 'ru_kpp'
514
- | 'sa_vat'
515
- | 'sg_gst'
516
- | 'sg_uen'
517
- | 'si_tin'
518
- | 'sv_nit'
519
- | 'th_vat'
520
- | 'tr_tin'
521
- | 'tw_vat'
522
- | 'ua_vat'
523
- | 'unknown'
524
- | 'us_ein'
525
- | 'uy_ruc'
526
- | 've_rif'
527
- | 'vn_tin'
528
- | 'za_vat';
529
- }
530
- }
531
-
532
376
  interface Consent {
533
377
  /**
534
378
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -1103,8 +947,6 @@ declare module 'stripe' {
1103
947
 
1104
948
  paypal?: PaymentMethodOptions.Paypal;
1105
949
 
1106
- payto?: PaymentMethodOptions.Payto;
1107
-
1108
950
  pix?: PaymentMethodOptions.Pix;
1109
951
 
1110
952
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1646,100 +1488,12 @@ declare module 'stripe' {
1646
1488
  * 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).
1647
1489
  */
1648
1490
  setup_future_usage?: Paypal.SetupFutureUsage;
1649
-
1650
- /**
1651
- * 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.
1652
- */
1653
- subsellers?: Array<string>;
1654
1491
  }
1655
1492
 
1656
1493
  namespace Paypal {
1657
1494
  type SetupFutureUsage = 'none' | 'off_session';
1658
1495
  }
1659
1496
 
1660
- interface Payto {
1661
- mandate_options?: Payto.MandateOptions;
1662
-
1663
- /**
1664
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1665
- *
1666
- * 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.
1667
- *
1668
- * 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.
1669
- *
1670
- * 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).
1671
- */
1672
- setup_future_usage?: Payto.SetupFutureUsage;
1673
- }
1674
-
1675
- namespace Payto {
1676
- interface MandateOptions {
1677
- /**
1678
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1679
- */
1680
- amount: number | null;
1681
-
1682
- /**
1683
- * 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.
1684
- */
1685
- amount_type: MandateOptions.AmountType | null;
1686
-
1687
- /**
1688
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1689
- */
1690
- end_date: string | null;
1691
-
1692
- /**
1693
- * The periodicity at which payments will be collected.
1694
- */
1695
- payment_schedule: MandateOptions.PaymentSchedule | null;
1696
-
1697
- /**
1698
- * 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.
1699
- */
1700
- payments_per_period: number | null;
1701
-
1702
- /**
1703
- * The purpose for which payments are made. Defaults to retail.
1704
- */
1705
- purpose: MandateOptions.Purpose | null;
1706
-
1707
- /**
1708
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1709
- */
1710
- start_date: string | null;
1711
- }
1712
-
1713
- namespace MandateOptions {
1714
- type AmountType = 'fixed' | 'maximum';
1715
-
1716
- type PaymentSchedule =
1717
- | 'adhoc'
1718
- | 'annual'
1719
- | 'daily'
1720
- | 'fortnightly'
1721
- | 'monthly'
1722
- | 'quarterly'
1723
- | 'semi_annual'
1724
- | 'weekly';
1725
-
1726
- type Purpose =
1727
- | 'dependant_support'
1728
- | 'government'
1729
- | 'loan'
1730
- | 'mortgage'
1731
- | 'other'
1732
- | 'pension'
1733
- | 'personal'
1734
- | 'retail'
1735
- | 'salary'
1736
- | 'tax'
1737
- | 'utility';
1738
- }
1739
-
1740
- type SetupFutureUsage = 'none' | 'off_session';
1741
- }
1742
-
1743
1497
  interface Pix {
1744
1498
  /**
1745
1499
  * The number of seconds after which Pix payment will expire.
@@ -1825,8 +1579,6 @@ declare module 'stripe' {
1825
1579
  interface FinancialConnections {
1826
1580
  filters?: FinancialConnections.Filters;
1827
1581
 
1828
- manual_entry?: FinancialConnections.ManualEntry;
1829
-
1830
1582
  /**
1831
1583
  * The list of permissions to request. The `payment_method` permission must be included.
1832
1584
  */
@@ -1849,39 +1601,19 @@ declare module 'stripe' {
1849
1601
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1850
1602
  */
1851
1603
  account_subcategories?: Array<Filters.AccountSubcategory>;
1852
-
1853
- /**
1854
- * The institution to use to filter for possible accounts to link.
1855
- */
1856
- institution?: string;
1857
1604
  }
1858
1605
 
1859
1606
  namespace Filters {
1860
1607
  type AccountSubcategory = 'checking' | 'savings';
1861
1608
  }
1862
1609
 
1863
- interface ManualEntry {
1864
- /**
1865
- * Settings for configuring manual entry of account details.
1866
- */
1867
- mode?: ManualEntry.Mode;
1868
- }
1869
-
1870
- namespace ManualEntry {
1871
- type Mode = 'automatic' | 'custom';
1872
- }
1873
-
1874
1610
  type Permission =
1875
1611
  | 'balances'
1876
1612
  | 'ownership'
1877
1613
  | 'payment_method'
1878
1614
  | 'transactions';
1879
1615
 
1880
- type Prefetch =
1881
- | 'balances'
1882
- | 'inferred_balances'
1883
- | 'ownership'
1884
- | 'transactions';
1616
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1885
1617
  }
1886
1618
 
1887
1619
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1892,30 +1624,6 @@ declare module 'stripe' {
1892
1624
 
1893
1625
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
1894
1626
 
1895
- interface Permissions {
1896
- /**
1897
- * Permissions for updating the Checkout Session.
1898
- */
1899
- update: Permissions.Update | null;
1900
- }
1901
-
1902
- namespace Permissions {
1903
- interface Update {
1904
- /**
1905
- * Determines which entity is allowed to update the shipping details.
1906
- *
1907
- * 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.
1908
- *
1909
- * 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.
1910
- */
1911
- shipping_details: Update.ShippingDetails | null;
1912
- }
1913
-
1914
- namespace Update {
1915
- type ShippingDetails = 'client_only' | 'server_only';
1916
- }
1917
- }
1918
-
1919
1627
  interface PhoneNumberCollection {
1920
1628
  /**
1921
1629
  * Indicates whether phone number collection is enabled for the session
@@ -2422,7 +2130,7 @@ declare module 'stripe' {
2422
2130
  }
2423
2131
  }
2424
2132
 
2425
- type UiMode = 'custom' | 'embedded' | 'hosted';
2133
+ type UiMode = 'embedded' | 'hosted';
2426
2134
  }
2427
2135
  }
2428
2136
  }