stripe 17.2.0-beta.2 → 17.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +117 -899
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
  12. package/cjs/resources/V2/Core/Events.js +50 -7
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Webhooks.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  23. package/esm/resources/V2/Core/Events.js +50 -7
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +5 -75
  29. package/types/AccountSessionsResource.d.ts +5 -354
  30. package/types/Accounts.d.ts +3 -127
  31. package/types/AccountsResource.d.ts +2 -296
  32. package/types/Billing/CreditGrants.d.ts +2 -2
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  34. package/types/Billing/Meters.d.ts +0 -2
  35. package/types/Charges.d.ts +0 -152
  36. package/types/ChargesResource.d.ts +0 -1294
  37. package/types/Checkout/Sessions.d.ts +5 -309
  38. package/types/Checkout/SessionsResource.d.ts +5 -356
  39. package/types/ConfirmationTokens.d.ts +0 -137
  40. package/types/Coupons.d.ts +1 -1
  41. package/types/CouponsResource.d.ts +1 -1
  42. package/types/CreditNotes.d.ts +0 -21
  43. package/types/CreditNotesResource.d.ts +0 -51
  44. package/types/CustomersResource.d.ts +2 -22
  45. package/types/Disputes.d.ts +0 -152
  46. package/types/DisputesResource.d.ts +0 -120
  47. package/types/EventTypes.d.ts +2 -564
  48. package/types/Events.d.ts +0 -91
  49. package/types/FinancialConnections/Accounts.d.ts +1 -29
  50. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  51. package/types/FinancialConnections/Sessions.d.ts +1 -49
  52. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  53. package/types/Forwarding/Requests.d.ts +0 -5
  54. package/types/InvoiceItems.d.ts +0 -5
  55. package/types/InvoiceItemsResource.d.ts +0 -98
  56. package/types/InvoiceLineItems.d.ts +1 -31
  57. package/types/Invoices.d.ts +3 -134
  58. package/types/InvoicesResource.d.ts +1836 -5515
  59. package/types/Issuing/Authorizations.d.ts +1 -1
  60. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/Issuing/Transactions.d.ts +0 -2
  63. package/types/Issuing/TransactionsResource.d.ts +0 -5
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -85
  66. package/types/PaymentIntents.d.ts +1 -643
  67. package/types/PaymentIntentsResource.d.ts +3463 -7739
  68. package/types/PaymentLinks.d.ts +0 -3
  69. package/types/PaymentLinksResource.d.ts +0 -6
  70. package/types/PaymentMethodConfigurations.d.ts +0 -36
  71. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  72. package/types/PaymentMethods.d.ts +0 -137
  73. package/types/PaymentMethodsResource.d.ts +0 -158
  74. package/types/Persons.d.ts +1 -1
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -591
  80. package/types/QuotesResource.d.ts +199 -2531
  81. package/types/SetupAttempts.d.ts +0 -19
  82. package/types/SetupIntents.d.ts +1 -112
  83. package/types/SetupIntentsResource.d.ts +3 -669
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -200
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -82
  90. package/types/SubscriptionsResource.d.ts +3 -348
  91. package/types/Tax/CalculationLineItems.d.ts +0 -1
  92. package/types/Tax/Calculations.d.ts +1 -33
  93. package/types/Tax/CalculationsResource.d.ts +1 -7
  94. package/types/Tax/Registrations.d.ts +0 -82
  95. package/types/Tax/RegistrationsResource.d.ts +0 -109
  96. package/types/Tax/Transactions.d.ts +1 -8
  97. package/types/TaxIds.d.ts +1 -7
  98. package/types/TaxIdsResource.d.ts +1 -7
  99. package/types/TaxRates.d.ts +0 -25
  100. package/types/TaxRatesResource.d.ts +0 -2
  101. package/types/Terminal/Readers.d.ts +0 -278
  102. package/types/Terminal/ReadersResource.d.ts +0 -215
  103. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  104. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  105. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  106. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  107. package/types/TokensResource.d.ts +1 -1
  108. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  109. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/UsageRecordSummaries.d.ts +1 -1
  115. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  116. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  117. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  118. package/types/V2/EventTypes.d.ts +3 -1
  119. package/types/WebhookEndpointsResource.d.ts +0 -66
  120. package/types/index.d.ts +0 -53
  121. package/cjs/resources/AccountNotices.js +0 -21
  122. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  123. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  124. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  125. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  126. package/cjs/resources/GiftCards/Cards.js +0 -23
  127. package/cjs/resources/GiftCards/Transactions.js +0 -33
  128. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  129. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  130. package/cjs/resources/Margins.js +0 -22
  131. package/cjs/resources/Orders.js +0 -24
  132. package/cjs/resources/Tax/Associations.js +0 -9
  133. package/cjs/resources/Tax/Forms.js +0 -20
  134. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  135. package/esm/resources/AccountNotices.js +0 -18
  136. package/esm/resources/Capital/FinancingOffers.js +0 -18
  137. package/esm/resources/Capital/FinancingSummary.js +0 -9
  138. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  139. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  140. package/esm/resources/GiftCards/Cards.js +0 -20
  141. package/esm/resources/GiftCards/Transactions.js +0 -30
  142. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  143. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  144. package/esm/resources/Margins.js +0 -19
  145. package/esm/resources/Orders.js +0 -21
  146. package/esm/resources/Tax/Associations.js +0 -6
  147. package/esm/resources/Tax/Forms.js +0 -17
  148. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  149. package/types/AccountNotices.d.ts +0 -113
  150. package/types/AccountNoticesResource.d.ts +0 -98
  151. package/types/Billing/MeterErrorReports.d.ts +0 -106
  152. package/types/Capital/FinancingOffers.d.ts +0 -188
  153. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  154. package/types/Capital/FinancingSummary.d.ts +0 -106
  155. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  156. package/types/Capital/FinancingTransactions.d.ts +0 -135
  157. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  158. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  159. package/types/FinancialConnections/Institutions.d.ts +0 -93
  160. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  161. package/types/GiftCards/Cards.d.ts +0 -118
  162. package/types/GiftCards/CardsResource.d.ts +0 -159
  163. package/types/GiftCards/Transactions.d.ts +0 -129
  164. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  165. package/types/InvoicePayments.d.ts +0 -138
  166. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  167. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  168. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  169. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  170. package/types/Issuing/Settlements.d.ts +0 -103
  171. package/types/Margins.d.ts +0 -56
  172. package/types/MarginsResource.d.ts +0 -114
  173. package/types/Orders.d.ts +0 -1154
  174. package/types/OrdersResource.d.ts +0 -2911
  175. package/types/QuoteLines.d.ts +0 -634
  176. package/types/QuotePreviewInvoices.d.ts +0 -1596
  177. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  178. package/types/Tax/Associations.d.ts +0 -126
  179. package/types/Tax/AssociationsResource.d.ts +0 -29
  180. package/types/Tax/Forms.d.ts +0 -133
  181. package/types/Tax/FormsResource.d.ts +0 -90
  182. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  183. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -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,156 +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`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, 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
- | 'by_tin'
465
- | 'ca_bn'
466
- | 'ca_gst_hst'
467
- | 'ca_pst_bc'
468
- | 'ca_pst_mb'
469
- | 'ca_pst_sk'
470
- | 'ca_qst'
471
- | 'ch_uid'
472
- | 'ch_vat'
473
- | 'cl_tin'
474
- | 'cn_tin'
475
- | 'co_nit'
476
- | 'cr_tin'
477
- | 'de_stn'
478
- | 'do_rcn'
479
- | 'ec_ruc'
480
- | 'eg_tin'
481
- | 'es_cif'
482
- | 'eu_oss_vat'
483
- | 'eu_vat'
484
- | 'gb_vat'
485
- | 'ge_vat'
486
- | 'hk_br'
487
- | 'hr_oib'
488
- | 'hu_tin'
489
- | 'id_npwp'
490
- | 'il_vat'
491
- | 'in_gst'
492
- | 'is_vat'
493
- | 'jp_cn'
494
- | 'jp_rn'
495
- | 'jp_trn'
496
- | 'ke_pin'
497
- | 'kr_brn'
498
- | 'kz_bin'
499
- | 'li_uid'
500
- | 'ma_vat'
501
- | 'md_vat'
502
- | 'mx_rfc'
503
- | 'my_frp'
504
- | 'my_itn'
505
- | 'my_sst'
506
- | 'ng_tin'
507
- | 'no_vat'
508
- | 'no_voec'
509
- | 'nz_gst'
510
- | 'om_vat'
511
- | 'pe_ruc'
512
- | 'ph_tin'
513
- | 'ro_tin'
514
- | 'rs_pib'
515
- | 'ru_inn'
516
- | 'ru_kpp'
517
- | 'sa_vat'
518
- | 'sg_gst'
519
- | 'sg_uen'
520
- | 'si_tin'
521
- | 'sv_nit'
522
- | 'th_vat'
523
- | 'tr_tin'
524
- | 'tw_vat'
525
- | 'tz_vat'
526
- | 'ua_vat'
527
- | 'unknown'
528
- | 'us_ein'
529
- | 'uy_ruc'
530
- | 'uz_tin'
531
- | 'uz_vat'
532
- | 've_rif'
533
- | 'vn_tin'
534
- | 'za_vat';
535
- }
536
- }
537
-
538
376
  interface Consent {
539
377
  /**
540
378
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -652,7 +490,7 @@ declare module 'stripe' {
652
490
 
653
491
  interface TaxId {
654
492
  /**
655
- * 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`
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`, or `unknown`
656
494
  */
657
495
  type: TaxId.Type;
658
496
 
@@ -674,7 +512,6 @@ declare module 'stripe' {
674
512
  | 'bo_tin'
675
513
  | 'br_cnpj'
676
514
  | 'br_cpf'
677
- | 'by_tin'
678
515
  | 'ca_bn'
679
516
  | 'ca_gst_hst'
680
517
  | 'ca_pst_bc'
@@ -710,8 +547,6 @@ declare module 'stripe' {
710
547
  | 'kr_brn'
711
548
  | 'kz_bin'
712
549
  | 'li_uid'
713
- | 'ma_vat'
714
- | 'md_vat'
715
550
  | 'mx_rfc'
716
551
  | 'my_frp'
717
552
  | 'my_itn'
@@ -735,13 +570,10 @@ declare module 'stripe' {
735
570
  | 'th_vat'
736
571
  | 'tr_tin'
737
572
  | 'tw_vat'
738
- | 'tz_vat'
739
573
  | 'ua_vat'
740
574
  | 'unknown'
741
575
  | 'us_ein'
742
576
  | 'uy_ruc'
743
- | 'uz_tin'
744
- | 'uz_vat'
745
577
  | 've_rif'
746
578
  | 'vn_tin'
747
579
  | 'za_vat';
@@ -1115,8 +947,6 @@ declare module 'stripe' {
1115
947
 
1116
948
  paypal?: PaymentMethodOptions.Paypal;
1117
949
 
1118
- payto?: PaymentMethodOptions.Payto;
1119
-
1120
950
  pix?: PaymentMethodOptions.Pix;
1121
951
 
1122
952
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1658,100 +1488,12 @@ declare module 'stripe' {
1658
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).
1659
1489
  */
1660
1490
  setup_future_usage?: Paypal.SetupFutureUsage;
1661
-
1662
- /**
1663
- * 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.
1664
- */
1665
- subsellers?: Array<string>;
1666
1491
  }
1667
1492
 
1668
1493
  namespace Paypal {
1669
1494
  type SetupFutureUsage = 'none' | 'off_session';
1670
1495
  }
1671
1496
 
1672
- interface Payto {
1673
- mandate_options?: Payto.MandateOptions;
1674
-
1675
- /**
1676
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1677
- *
1678
- * 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.
1679
- *
1680
- * 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.
1681
- *
1682
- * 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).
1683
- */
1684
- setup_future_usage?: Payto.SetupFutureUsage;
1685
- }
1686
-
1687
- namespace Payto {
1688
- interface MandateOptions {
1689
- /**
1690
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1691
- */
1692
- amount: number | null;
1693
-
1694
- /**
1695
- * 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.
1696
- */
1697
- amount_type: MandateOptions.AmountType | null;
1698
-
1699
- /**
1700
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1701
- */
1702
- end_date: string | null;
1703
-
1704
- /**
1705
- * The periodicity at which payments will be collected.
1706
- */
1707
- payment_schedule: MandateOptions.PaymentSchedule | null;
1708
-
1709
- /**
1710
- * 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.
1711
- */
1712
- payments_per_period: number | null;
1713
-
1714
- /**
1715
- * The purpose for which payments are made. Defaults to retail.
1716
- */
1717
- purpose: MandateOptions.Purpose | null;
1718
-
1719
- /**
1720
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1721
- */
1722
- start_date: string | null;
1723
- }
1724
-
1725
- namespace MandateOptions {
1726
- type AmountType = 'fixed' | 'maximum';
1727
-
1728
- type PaymentSchedule =
1729
- | 'adhoc'
1730
- | 'annual'
1731
- | 'daily'
1732
- | 'fortnightly'
1733
- | 'monthly'
1734
- | 'quarterly'
1735
- | 'semi_annual'
1736
- | 'weekly';
1737
-
1738
- type Purpose =
1739
- | 'dependant_support'
1740
- | 'government'
1741
- | 'loan'
1742
- | 'mortgage'
1743
- | 'other'
1744
- | 'pension'
1745
- | 'personal'
1746
- | 'retail'
1747
- | 'salary'
1748
- | 'tax'
1749
- | 'utility';
1750
- }
1751
-
1752
- type SetupFutureUsage = 'none' | 'off_session';
1753
- }
1754
-
1755
1497
  interface Pix {
1756
1498
  /**
1757
1499
  * The number of seconds after which Pix payment will expire.
@@ -1837,8 +1579,6 @@ declare module 'stripe' {
1837
1579
  interface FinancialConnections {
1838
1580
  filters?: FinancialConnections.Filters;
1839
1581
 
1840
- manual_entry?: FinancialConnections.ManualEntry;
1841
-
1842
1582
  /**
1843
1583
  * The list of permissions to request. The `payment_method` permission must be included.
1844
1584
  */
@@ -1861,39 +1601,19 @@ declare module 'stripe' {
1861
1601
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1862
1602
  */
1863
1603
  account_subcategories?: Array<Filters.AccountSubcategory>;
1864
-
1865
- /**
1866
- * The institution to use to filter for possible accounts to link.
1867
- */
1868
- institution?: string;
1869
1604
  }
1870
1605
 
1871
1606
  namespace Filters {
1872
1607
  type AccountSubcategory = 'checking' | 'savings';
1873
1608
  }
1874
1609
 
1875
- interface ManualEntry {
1876
- /**
1877
- * Settings for configuring manual entry of account details.
1878
- */
1879
- mode?: ManualEntry.Mode;
1880
- }
1881
-
1882
- namespace ManualEntry {
1883
- type Mode = 'automatic' | 'custom';
1884
- }
1885
-
1886
1610
  type Permission =
1887
1611
  | 'balances'
1888
1612
  | 'ownership'
1889
1613
  | 'payment_method'
1890
1614
  | 'transactions';
1891
1615
 
1892
- type Prefetch =
1893
- | 'balances'
1894
- | 'inferred_balances'
1895
- | 'ownership'
1896
- | 'transactions';
1616
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1897
1617
  }
1898
1618
 
1899
1619
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1904,30 +1624,6 @@ declare module 'stripe' {
1904
1624
 
1905
1625
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
1906
1626
 
1907
- interface Permissions {
1908
- /**
1909
- * Permissions for updating the Checkout Session.
1910
- */
1911
- update: Permissions.Update | null;
1912
- }
1913
-
1914
- namespace Permissions {
1915
- interface Update {
1916
- /**
1917
- * Determines which entity is allowed to update the shipping details.
1918
- *
1919
- * 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.
1920
- *
1921
- * 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.
1922
- */
1923
- shipping_details: Update.ShippingDetails | null;
1924
- }
1925
-
1926
- namespace Update {
1927
- type ShippingDetails = 'client_only' | 'server_only';
1928
- }
1929
- }
1930
-
1931
1627
  interface PhoneNumberCollection {
1932
1628
  /**
1933
1629
  * Indicates whether phone number collection is enabled for the session
@@ -2434,7 +2130,7 @@ declare module 'stripe' {
2434
2130
  }
2435
2131
  }
2436
2132
 
2437
- type UiMode = 'custom' | 'embedded' | 'hosted';
2133
+ type UiMode = 'embedded' | 'hosted';
2438
2134
  }
2439
2135
  }
2440
2136
  }