stripe 17.4.0-beta.3 → 17.4.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 (167) hide show
  1. package/CHANGELOG.md +123 -962
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  5. package/cjs/resources/Invoices.js +0 -17
  6. package/cjs/resources/PaymentIntents.js +0 -8
  7. package/cjs/resources/Quotes.js +0 -32
  8. package/cjs/resources/SubscriptionSchedules.js +0 -4
  9. package/cjs/resources/Terminal/Readers.js +0 -12
  10. package/cjs/resources.js +10 -48
  11. package/cjs/stripe.core.js +1 -1
  12. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  13. package/esm/resources/Invoices.js +0 -17
  14. package/esm/resources/PaymentIntents.js +0 -8
  15. package/esm/resources/Quotes.js +0 -32
  16. package/esm/resources/SubscriptionSchedules.js +0 -4
  17. package/esm/resources/Terminal/Readers.js +0 -12
  18. package/esm/resources.js +0 -33
  19. package/esm/stripe.core.js +1 -1
  20. package/package.json +1 -1
  21. package/types/AccountLinksResource.d.ts +1 -5
  22. package/types/AccountSessions.d.ts +0 -45
  23. package/types/AccountSessionsResource.d.ts +0 -355
  24. package/types/Accounts.d.ts +2 -184
  25. package/types/AccountsResource.d.ts +0 -496
  26. package/types/Capabilities.d.ts +1 -1
  27. package/types/Charges.d.ts +0 -116
  28. package/types/ChargesResource.d.ts +0 -1294
  29. package/types/Checkout/Sessions.d.ts +4 -310
  30. package/types/Checkout/SessionsResource.d.ts +5 -361
  31. package/types/ConfirmationTokens.d.ts +0 -99
  32. package/types/Coupons.d.ts +1 -1
  33. package/types/CouponsResource.d.ts +1 -1
  34. package/types/CreditNotes.d.ts +0 -21
  35. package/types/CreditNotesResource.d.ts +0 -51
  36. package/types/CustomersResource.d.ts +0 -7
  37. package/types/EventTypes.d.ts +0 -579
  38. package/types/Events.d.ts +0 -92
  39. package/types/FinancialConnections/Accounts.d.ts +1 -29
  40. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  41. package/types/FinancialConnections/Sessions.d.ts +1 -49
  42. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  43. package/types/FundingInstructions.d.ts +0 -21
  44. package/types/InvoiceItems.d.ts +0 -5
  45. package/types/InvoiceItemsResource.d.ts +0 -98
  46. package/types/InvoiceLineItems.d.ts +1 -28
  47. package/types/Invoices.d.ts +2 -137
  48. package/types/InvoicesResource.d.ts +1846 -5531
  49. package/types/Issuing/CardholdersResource.d.ts +1 -2
  50. package/types/Issuing/Transactions.d.ts +0 -2
  51. package/types/Issuing/TransactionsResource.d.ts +0 -5
  52. package/types/LineItems.d.ts +0 -7
  53. package/types/Mandates.d.ts +0 -77
  54. package/types/PaymentIntents.d.ts +2 -659
  55. package/types/PaymentIntentsResource.d.ts +3695 -7936
  56. package/types/PaymentLinks.d.ts +0 -6
  57. package/types/PaymentLinksResource.d.ts +0 -12
  58. package/types/PaymentMethodConfigurations.d.ts +0 -180
  59. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  60. package/types/PaymentMethods.d.ts +0 -99
  61. package/types/PaymentMethodsResource.d.ts +0 -133
  62. package/types/Prices.d.ts +0 -22
  63. package/types/PricesResource.d.ts +0 -22
  64. package/types/Products.d.ts +0 -39
  65. package/types/ProductsResource.d.ts +0 -36
  66. package/types/Quotes.d.ts +1 -591
  67. package/types/QuotesResource.d.ts +199 -2531
  68. package/types/Refunds.d.ts +0 -14
  69. package/types/SetupAttempts.d.ts +0 -38
  70. package/types/SetupIntents.d.ts +1 -111
  71. package/types/SetupIntentsResource.d.ts +3 -645
  72. package/types/Sources.d.ts +0 -23
  73. package/types/SubscriptionItems.d.ts +0 -21
  74. package/types/SubscriptionItemsResource.d.ts +0 -109
  75. package/types/SubscriptionSchedules.d.ts +0 -200
  76. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  77. package/types/Subscriptions.d.ts +1 -91
  78. package/types/SubscriptionsResource.d.ts +2 -369
  79. package/types/Terminal/Readers.d.ts +0 -278
  80. package/types/Terminal/ReadersResource.d.ts +0 -215
  81. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  82. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  83. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  84. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  85. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  86. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  87. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  88. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  89. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  90. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  91. package/types/WebhookEndpointsResource.d.ts +0 -68
  92. package/types/index.d.ts +0 -62
  93. package/cjs/resources/AccountNotices.js +0 -21
  94. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  95. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  96. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  97. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  98. package/cjs/resources/GiftCards/Cards.js +0 -23
  99. package/cjs/resources/GiftCards/Transactions.js +0 -33
  100. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  101. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  102. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  103. package/cjs/resources/Margins.js +0 -22
  104. package/cjs/resources/Orders.js +0 -24
  105. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  106. package/cjs/resources/PaymentRecords.js +0 -29
  107. package/cjs/resources/Tax/Associations.js +0 -9
  108. package/cjs/resources/Tax/Forms.js +0 -20
  109. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  110. package/esm/resources/AccountNotices.js +0 -18
  111. package/esm/resources/Capital/FinancingOffers.js +0 -18
  112. package/esm/resources/Capital/FinancingSummary.js +0 -9
  113. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  114. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  115. package/esm/resources/GiftCards/Cards.js +0 -20
  116. package/esm/resources/GiftCards/Transactions.js +0 -30
  117. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  118. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  119. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  120. package/esm/resources/Margins.js +0 -19
  121. package/esm/resources/Orders.js +0 -21
  122. package/esm/resources/PaymentAttemptRecords.js +0 -14
  123. package/esm/resources/PaymentRecords.js +0 -26
  124. package/esm/resources/Tax/Associations.js +0 -6
  125. package/esm/resources/Tax/Forms.js +0 -17
  126. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  127. package/types/AccountNotices.d.ts +0 -113
  128. package/types/AccountNoticesResource.d.ts +0 -98
  129. package/types/Billing/MeterErrorReports.d.ts +0 -106
  130. package/types/Capital/FinancingOffers.d.ts +0 -188
  131. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  132. package/types/Capital/FinancingSummary.d.ts +0 -106
  133. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  134. package/types/Capital/FinancingTransactions.d.ts +0 -135
  135. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  136. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  137. package/types/FinancialConnections/Institutions.d.ts +0 -93
  138. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  139. package/types/GiftCards/Cards.d.ts +0 -118
  140. package/types/GiftCards/CardsResource.d.ts +0 -159
  141. package/types/GiftCards/Transactions.d.ts +0 -129
  142. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  143. package/types/InvoicePayments.d.ts +0 -113
  144. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  145. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  146. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  147. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  148. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  149. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  150. package/types/Issuing/Settlements.d.ts +0 -103
  151. package/types/Margins.d.ts +0 -56
  152. package/types/MarginsResource.d.ts +0 -114
  153. package/types/Orders.d.ts +0 -1155
  154. package/types/OrdersResource.d.ts +0 -2913
  155. package/types/PaymentAttemptRecords.d.ts +0 -242
  156. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  157. package/types/PaymentRecords.d.ts +0 -259
  158. package/types/PaymentRecordsResource.d.ts +0 -455
  159. package/types/QuoteLines.d.ts +0 -634
  160. package/types/QuotePreviewInvoices.d.ts +0 -1615
  161. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  162. package/types/Tax/Associations.d.ts +0 -126
  163. package/types/Tax/AssociationsResource.d.ts +0 -29
  164. package/types/Tax/Forms.d.ts +0 -220
  165. package/types/Tax/FormsResource.d.ts +0 -107
  166. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  167. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -75,15 +75,10 @@ declare module 'stripe' {
75
75
  client_reference_id: string | null;
76
76
 
77
77
  /**
78
- * The client secret of the Session. Use this with [initCustomCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
78
+ * Client secret to be used when initializing Stripe.js embedded checkout.
79
79
  */
80
80
  client_secret: string | null;
81
81
 
82
- /**
83
- * Information about the customer collected within the Checkout Session.
84
- */
85
- collected_information?: Session.CollectedInformation | null;
86
-
87
82
  /**
88
83
  * Results of `consent_collection` for this session.
89
84
  */
@@ -221,13 +216,6 @@ declare module 'stripe' {
221
216
  */
222
217
  payment_status: Session.PaymentStatus;
223
218
 
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
-
231
219
  phone_number_collection?: Session.PhoneNumberCollection;
232
220
 
233
221
  /**
@@ -241,7 +229,7 @@ declare module 'stripe' {
241
229
  redirect_on_completion?: Session.RedirectOnCompletion;
242
230
 
243
231
  /**
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.
232
+ * 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.
245
233
  */
246
234
  return_url?: string;
247
235
 
@@ -397,157 +385,6 @@ declare module 'stripe' {
397
385
 
398
386
  type BillingAddressCollection = 'auto' | 'required';
399
387
 
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
-
551
388
  interface Consent {
552
389
  /**
553
390
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -1137,8 +974,6 @@ declare module 'stripe' {
1137
974
 
1138
975
  paypal?: PaymentMethodOptions.Paypal;
1139
976
 
1140
- payto?: PaymentMethodOptions.Payto;
1141
-
1142
977
  pix?: PaymentMethodOptions.Pix;
1143
978
 
1144
979
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1351,11 +1186,6 @@ declare module 'stripe' {
1351
1186
  interface Card {
1352
1187
  installments?: Card.Installments;
1353
1188
 
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
1189
  /**
1360
1190
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1361
1191
  */
@@ -1411,8 +1241,6 @@ declare module 'stripe' {
1411
1241
  enabled?: boolean;
1412
1242
  }
1413
1243
 
1414
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1415
-
1416
1244
  type RequestExtendedAuthorization = 'if_available' | 'never';
1417
1245
 
1418
1246
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1779,100 +1607,12 @@ declare module 'stripe' {
1779
1607
  * 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).
1780
1608
  */
1781
1609
  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>;
1787
1610
  }
1788
1611
 
1789
1612
  namespace Paypal {
1790
1613
  type SetupFutureUsage = 'none' | 'off_session';
1791
1614
  }
1792
1615
 
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
-
1876
1616
  interface Pix {
1877
1617
  /**
1878
1618
  * The number of seconds after which Pix payment will expire.
@@ -1969,8 +1709,6 @@ declare module 'stripe' {
1969
1709
  interface FinancialConnections {
1970
1710
  filters?: FinancialConnections.Filters;
1971
1711
 
1972
- manual_entry?: FinancialConnections.ManualEntry;
1973
-
1974
1712
  /**
1975
1713
  * The list of permissions to request. The `payment_method` permission must be included.
1976
1714
  */
@@ -1993,39 +1731,19 @@ declare module 'stripe' {
1993
1731
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1994
1732
  */
1995
1733
  account_subcategories?: Array<Filters.AccountSubcategory>;
1996
-
1997
- /**
1998
- * The institution to use to filter for possible accounts to link.
1999
- */
2000
- institution?: string;
2001
1734
  }
2002
1735
 
2003
1736
  namespace Filters {
2004
1737
  type AccountSubcategory = 'checking' | 'savings';
2005
1738
  }
2006
1739
 
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
-
2018
1740
  type Permission =
2019
1741
  | 'balances'
2020
1742
  | 'ownership'
2021
1743
  | 'payment_method'
2022
1744
  | 'transactions';
2023
1745
 
2024
- type Prefetch =
2025
- | 'balances'
2026
- | 'inferred_balances'
2027
- | 'ownership'
2028
- | 'transactions';
1746
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2029
1747
  }
2030
1748
 
2031
1749
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2036,30 +1754,6 @@ declare module 'stripe' {
2036
1754
 
2037
1755
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
2038
1756
 
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
-
2063
1757
  interface PhoneNumberCollection {
2064
1758
  /**
2065
1759
  * Indicates whether phone number collection is enabled for the session
@@ -2566,7 +2260,7 @@ declare module 'stripe' {
2566
2260
  }
2567
2261
  }
2568
2262
 
2569
- type UiMode = 'custom' | 'embedded' | 'hosted';
2263
+ type UiMode = 'embedded' | 'hosted';
2570
2264
  }
2571
2265
  }
2572
2266
  }