stripe 17.0.0 → 17.2.0-beta.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 (152) hide show
  1. package/CHANGELOG.md +895 -148
  2. package/README.md +6 -7
  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/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources.js +42 -10
  25. package/cjs/stripe.core.js +1 -1
  26. package/esm/resources/AccountNotices.js +18 -0
  27. package/esm/resources/Capital/FinancingOffers.js +18 -0
  28. package/esm/resources/Capital/FinancingSummary.js +9 -0
  29. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  30. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  31. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  32. package/esm/resources/GiftCards/Cards.js +20 -0
  33. package/esm/resources/GiftCards/Transactions.js +30 -0
  34. package/esm/resources/Invoices.js +17 -0
  35. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  36. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  37. package/esm/resources/Margins.js +19 -0
  38. package/esm/resources/Orders.js +21 -0
  39. package/esm/resources/PaymentIntents.js +4 -0
  40. package/esm/resources/Quotes.js +32 -0
  41. package/esm/resources/SubscriptionSchedules.js +4 -0
  42. package/esm/resources/Tax/Associations.js +6 -0
  43. package/esm/resources/Tax/Forms.js +17 -0
  44. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  45. package/esm/resources/Terminal/Readers.js +12 -0
  46. package/esm/resources.js +29 -0
  47. package/esm/stripe.core.js +1 -1
  48. package/package.json +1 -1
  49. package/types/AccountLinksResource.d.ts +5 -1
  50. package/types/AccountNotices.d.ts +113 -0
  51. package/types/AccountNoticesResource.d.ts +98 -0
  52. package/types/AccountSessions.d.ts +45 -0
  53. package/types/AccountSessionsResource.d.ts +309 -0
  54. package/types/Accounts.d.ts +113 -1
  55. package/types/AccountsResource.d.ts +270 -0
  56. package/types/Billing/MeterErrorReports.d.ts +106 -0
  57. package/types/Capital/FinancingOffers.d.ts +188 -0
  58. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  59. package/types/Capital/FinancingSummary.d.ts +106 -0
  60. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  61. package/types/Capital/FinancingTransactions.d.ts +135 -0
  62. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  63. package/types/Charges.d.ts +71 -0
  64. package/types/ChargesResource.d.ts +1294 -0
  65. package/types/Checkout/Sessions.d.ts +296 -4
  66. package/types/Checkout/SessionsResource.d.ts +351 -5
  67. package/types/ConfirmationTokens.d.ts +67 -0
  68. package/types/Coupons.d.ts +1 -1
  69. package/types/CouponsResource.d.ts +1 -1
  70. package/types/CreditNotes.d.ts +21 -0
  71. package/types/CreditNotesResource.d.ts +51 -0
  72. package/types/CustomersResource.d.ts +3 -0
  73. package/types/Disputes.d.ts +152 -0
  74. package/types/DisputesResource.d.ts +120 -0
  75. package/types/EventTypes.d.ts +545 -0
  76. package/types/Events.d.ts +90 -0
  77. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  78. package/types/FinancialConnections/Accounts.d.ts +29 -1
  79. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  80. package/types/FinancialConnections/Institutions.d.ts +93 -0
  81. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  82. package/types/FinancialConnections/Sessions.d.ts +49 -1
  83. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  84. package/types/GiftCards/Cards.d.ts +118 -0
  85. package/types/GiftCards/CardsResource.d.ts +159 -0
  86. package/types/GiftCards/Transactions.d.ts +129 -0
  87. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  88. package/types/InvoiceItems.d.ts +5 -0
  89. package/types/InvoiceItemsResource.d.ts +98 -0
  90. package/types/InvoiceLineItems.d.ts +23 -1
  91. package/types/InvoicePayments.d.ts +138 -0
  92. package/types/Invoices.d.ts +118 -2
  93. package/types/InvoicesResource.d.ts +5454 -1796
  94. package/types/Issuing/CardholdersResource.d.ts +2 -1
  95. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  96. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  97. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  98. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  99. package/types/Issuing/Settlements.d.ts +103 -0
  100. package/types/Issuing/Transactions.d.ts +2 -0
  101. package/types/Issuing/TransactionsResource.d.ts +5 -0
  102. package/types/LineItems.d.ts +7 -0
  103. package/types/Mandates.d.ts +77 -0
  104. package/types/MarginsResource.d.ts +114 -0
  105. package/types/Orders.d.ts +1084 -0
  106. package/types/OrdersResource.d.ts +2765 -0
  107. package/types/PaymentIntents.d.ts +503 -1
  108. package/types/PaymentIntentsResource.d.ts +7000 -3400
  109. package/types/PaymentLinks.d.ts +3 -0
  110. package/types/PaymentLinksResource.d.ts +6 -0
  111. package/types/PaymentMethodConfigurations.d.ts +36 -0
  112. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  113. package/types/PaymentMethods.d.ts +67 -0
  114. package/types/PaymentMethodsResource.d.ts +88 -0
  115. package/types/Prices.d.ts +22 -0
  116. package/types/PricesResource.d.ts +22 -0
  117. package/types/Products.d.ts +39 -0
  118. package/types/ProductsResource.d.ts +36 -0
  119. package/types/QuoteLines.d.ts +634 -0
  120. package/types/QuotePreviewInvoices.d.ts +1586 -0
  121. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  122. package/types/Quotes.d.ts +591 -1
  123. package/types/QuotesResource.d.ts +2526 -194
  124. package/types/SetupAttempts.d.ts +10 -0
  125. package/types/SetupIntents.d.ts +111 -1
  126. package/types/SetupIntentsResource.d.ts +522 -3
  127. package/types/Sources.d.ts +23 -0
  128. package/types/SubscriptionItems.d.ts +21 -0
  129. package/types/SubscriptionItemsResource.d.ts +109 -0
  130. package/types/SubscriptionSchedules.d.ts +200 -0
  131. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  132. package/types/Subscriptions.d.ts +82 -1
  133. package/types/SubscriptionsResource.d.ts +347 -2
  134. package/types/Tax/Associations.d.ts +126 -0
  135. package/types/Tax/AssociationsResource.d.ts +29 -0
  136. package/types/Tax/Forms.d.ts +133 -0
  137. package/types/Tax/FormsResource.d.ts +90 -0
  138. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  139. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  140. package/types/Terminal/Readers.d.ts +278 -0
  141. package/types/Terminal/ReadersResource.d.ts +215 -0
  142. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  143. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  144. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  145. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  146. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  147. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  148. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  149. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  150. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  151. package/types/WebhookEndpointsResource.d.ts +64 -0
  152. package/types/index.d.ts +52 -0
@@ -70,10 +70,15 @@ declare module 'stripe' {
70
70
  client_reference_id: string | null;
71
71
 
72
72
  /**
73
- * Client secret to be used when initializing Stripe.js embedded checkout.
73
+ * The client secret of the Session. Use this with [initCustomCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
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
+
77
82
  /**
78
83
  * Results of `consent_collection` for this session.
79
84
  */
@@ -211,6 +216,13 @@ declare module 'stripe' {
211
216
  */
212
217
  payment_status: Session.PaymentStatus;
213
218
 
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
+
214
226
  phone_number_collection?: Session.PhoneNumberCollection;
215
227
 
216
228
  /**
@@ -224,7 +236,7 @@ declare module 'stripe' {
224
236
  redirect_on_completion?: Session.RedirectOnCompletion;
225
237
 
226
238
  /**
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.
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.
228
240
  */
229
241
  return_url?: string;
230
242
 
@@ -373,6 +385,150 @@ declare module 'stripe' {
373
385
 
374
386
  type BillingAddressCollection = 'auto' | 'required';
375
387
 
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
+
376
532
  interface Consent {
377
533
  /**
378
534
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -947,6 +1103,8 @@ declare module 'stripe' {
947
1103
 
948
1104
  paypal?: PaymentMethodOptions.Paypal;
949
1105
 
1106
+ payto?: PaymentMethodOptions.Payto;
1107
+
950
1108
  pix?: PaymentMethodOptions.Pix;
951
1109
 
952
1110
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1488,12 +1646,100 @@ declare module 'stripe' {
1488
1646
  * 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).
1489
1647
  */
1490
1648
  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>;
1491
1654
  }
1492
1655
 
1493
1656
  namespace Paypal {
1494
1657
  type SetupFutureUsage = 'none' | 'off_session';
1495
1658
  }
1496
1659
 
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
+
1497
1743
  interface Pix {
1498
1744
  /**
1499
1745
  * The number of seconds after which Pix payment will expire.
@@ -1579,6 +1825,8 @@ declare module 'stripe' {
1579
1825
  interface FinancialConnections {
1580
1826
  filters?: FinancialConnections.Filters;
1581
1827
 
1828
+ manual_entry?: FinancialConnections.ManualEntry;
1829
+
1582
1830
  /**
1583
1831
  * The list of permissions to request. The `payment_method` permission must be included.
1584
1832
  */
@@ -1601,19 +1849,39 @@ declare module 'stripe' {
1601
1849
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1602
1850
  */
1603
1851
  account_subcategories?: Array<Filters.AccountSubcategory>;
1852
+
1853
+ /**
1854
+ * The institution to use to filter for possible accounts to link.
1855
+ */
1856
+ institution?: string;
1604
1857
  }
1605
1858
 
1606
1859
  namespace Filters {
1607
1860
  type AccountSubcategory = 'checking' | 'savings';
1608
1861
  }
1609
1862
 
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
+
1610
1874
  type Permission =
1611
1875
  | 'balances'
1612
1876
  | 'ownership'
1613
1877
  | 'payment_method'
1614
1878
  | 'transactions';
1615
1879
 
1616
- type Prefetch = 'balances' | 'ownership' | 'transactions';
1880
+ type Prefetch =
1881
+ | 'balances'
1882
+ | 'inferred_balances'
1883
+ | 'ownership'
1884
+ | 'transactions';
1617
1885
  }
1618
1886
 
1619
1887
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1624,6 +1892,30 @@ declare module 'stripe' {
1624
1892
 
1625
1893
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
1626
1894
 
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
+
1627
1919
  interface PhoneNumberCollection {
1628
1920
  /**
1629
1921
  * Indicates whether phone number collection is enabled for the session
@@ -2130,7 +2422,7 @@ declare module 'stripe' {
2130
2422
  }
2131
2423
  }
2132
2424
 
2133
- type UiMode = 'embedded' | 'hosted';
2425
+ type UiMode = 'custom' | 'embedded' | 'hosted';
2134
2426
  }
2135
2427
  }
2136
2428
  }