stripe 17.3.0-beta.1 → 17.3.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 (166) hide show
  1. package/CHANGELOG.md +148 -918
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.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/V2/Core/EventDestinations.js +41 -0
  12. package/cjs/resources/V2/Core.js +2 -0
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/apiVersion.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/V2/Core/EventDestinations.js +38 -0
  23. package/esm/resources/V2/Core.js +2 -0
  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 +0 -45
  29. package/types/AccountSessionsResource.d.ts +0 -324
  30. package/types/Accounts.d.ts +1 -155
  31. package/types/AccountsResource.d.ts +1 -415
  32. package/types/Charges.d.ts +0 -83
  33. package/types/ChargesResource.d.ts +0 -1294
  34. package/types/Checkout/Sessions.d.ts +79 -302
  35. package/types/Checkout/SessionsResource.d.ts +85 -354
  36. package/types/ConfirmationTokens.d.ts +0 -82
  37. package/types/Coupons.d.ts +1 -1
  38. package/types/CouponsResource.d.ts +1 -1
  39. package/types/CreditNotes.d.ts +0 -21
  40. package/types/CreditNotesResource.d.ts +0 -51
  41. package/types/CustomersResource.d.ts +0 -6
  42. package/types/Disputes.d.ts +3 -3
  43. package/types/EventTypes.d.ts +18 -545
  44. package/types/Events.d.ts +1 -90
  45. package/types/FinancialConnections/Accounts.d.ts +1 -29
  46. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  47. package/types/FinancialConnections/Sessions.d.ts +1 -49
  48. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  49. package/types/InvoiceItems.d.ts +0 -5
  50. package/types/InvoiceItemsResource.d.ts +0 -98
  51. package/types/InvoiceLineItems.d.ts +1 -28
  52. package/types/Invoices.d.ts +2 -124
  53. package/types/InvoicesResource.d.ts +1855 -5503
  54. package/types/Issuing/CardholdersResource.d.ts +1 -2
  55. package/types/Issuing/Transactions.d.ts +0 -2
  56. package/types/Issuing/TransactionsResource.d.ts +0 -5
  57. package/types/LineItems.d.ts +0 -7
  58. package/types/Mandates.d.ts +0 -77
  59. package/types/PaymentIntents.d.ts +1 -613
  60. package/types/PaymentIntentsResource.d.ts +3687 -7740
  61. package/types/PaymentLinks.d.ts +0 -6
  62. package/types/PaymentLinksResource.d.ts +0 -12
  63. package/types/PaymentMethodConfigurations.d.ts +0 -36
  64. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  65. package/types/PaymentMethods.d.ts +0 -82
  66. package/types/PaymentMethodsResource.d.ts +0 -115
  67. package/types/Prices.d.ts +0 -22
  68. package/types/PricesResource.d.ts +0 -22
  69. package/types/Products.d.ts +0 -39
  70. package/types/ProductsResource.d.ts +0 -36
  71. package/types/Quotes.d.ts +1 -591
  72. package/types/QuotesResource.d.ts +199 -2531
  73. package/types/Refunds.d.ts +1 -4
  74. package/types/SetupAttempts.d.ts +0 -11
  75. package/types/SetupIntents.d.ts +1 -112
  76. package/types/SetupIntentsResource.d.ts +3 -594
  77. package/types/Sources.d.ts +0 -23
  78. package/types/SubscriptionItems.d.ts +0 -21
  79. package/types/SubscriptionItemsResource.d.ts +0 -109
  80. package/types/SubscriptionSchedules.d.ts +0 -200
  81. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  82. package/types/Subscriptions.d.ts +1 -82
  83. package/types/SubscriptionsResource.d.ts +2 -347
  84. package/types/Terminal/Readers.d.ts +0 -278
  85. package/types/Terminal/ReadersResource.d.ts +0 -215
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -87
  87. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  88. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  89. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  90. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  91. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  92. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  93. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  94. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  95. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  96. package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
  97. package/types/V2/Core/EventsResource.d.ts +1 -1
  98. package/types/V2/CoreResource.d.ts +1 -0
  99. package/types/V2/EventDestinations.d.ts +164 -0
  100. package/types/WebhookEndpointsResource.d.ts +4 -65
  101. package/types/index.d.ts +2 -53
  102. package/types/lib.d.ts +1 -1
  103. package/types/test/typescriptTest.ts +3 -3
  104. package/cjs/resources/AccountNotices.js +0 -21
  105. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  106. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  107. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  108. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  109. package/cjs/resources/GiftCards/Cards.js +0 -23
  110. package/cjs/resources/GiftCards/Transactions.js +0 -33
  111. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  112. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  113. package/cjs/resources/Margins.js +0 -22
  114. package/cjs/resources/Orders.js +0 -24
  115. package/cjs/resources/Tax/Associations.js +0 -9
  116. package/cjs/resources/Tax/Forms.js +0 -20
  117. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  118. package/esm/resources/AccountNotices.js +0 -18
  119. package/esm/resources/Capital/FinancingOffers.js +0 -18
  120. package/esm/resources/Capital/FinancingSummary.js +0 -9
  121. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  122. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  123. package/esm/resources/GiftCards/Cards.js +0 -20
  124. package/esm/resources/GiftCards/Transactions.js +0 -30
  125. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  126. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  127. package/esm/resources/Margins.js +0 -19
  128. package/esm/resources/Orders.js +0 -21
  129. package/esm/resources/Tax/Associations.js +0 -6
  130. package/esm/resources/Tax/Forms.js +0 -17
  131. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  132. package/types/AccountNotices.d.ts +0 -113
  133. package/types/AccountNoticesResource.d.ts +0 -98
  134. package/types/Billing/MeterErrorReports.d.ts +0 -106
  135. package/types/Capital/FinancingOffers.d.ts +0 -188
  136. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  137. package/types/Capital/FinancingSummary.d.ts +0 -106
  138. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  139. package/types/Capital/FinancingTransactions.d.ts +0 -135
  140. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  141. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  142. package/types/FinancialConnections/Institutions.d.ts +0 -93
  143. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  144. package/types/GiftCards/Cards.d.ts +0 -118
  145. package/types/GiftCards/CardsResource.d.ts +0 -159
  146. package/types/GiftCards/Transactions.d.ts +0 -129
  147. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  148. package/types/InvoicePayments.d.ts +0 -138
  149. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  150. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  151. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  152. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  153. package/types/Issuing/Settlements.d.ts +0 -103
  154. package/types/Margins.d.ts +0 -56
  155. package/types/MarginsResource.d.ts +0 -114
  156. package/types/Orders.d.ts +0 -1154
  157. package/types/OrdersResource.d.ts +0 -2911
  158. package/types/QuoteLines.d.ts +0 -634
  159. package/types/QuotePreviewInvoices.d.ts +0 -1601
  160. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  161. package/types/Tax/Associations.d.ts +0 -126
  162. package/types/Tax/AssociationsResource.d.ts +0 -29
  163. package/types/Tax/Forms.d.ts +0 -220
  164. package/types/Tax/FormsResource.d.ts +0 -107
  165. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  166. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -25,7 +25,7 @@ declare module 'stripe' {
25
25
  billing_address_collection?: SessionCreateParams.BillingAddressCollection;
26
26
 
27
27
  /**
28
- * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`.
28
+ * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded`.
29
29
  */
30
30
  cancel_url?: string;
31
31
 
@@ -187,13 +187,6 @@ declare module 'stripe' {
187
187
  */
188
188
  payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;
189
189
 
190
- /**
191
- * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
192
- *
193
- * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
194
- */
195
- permissions?: SessionCreateParams.Permissions;
196
-
197
190
  /**
198
191
  * Controls phone number collection settings for the session.
199
192
  *
@@ -209,7 +202,7 @@ declare module 'stripe' {
209
202
 
210
203
  /**
211
204
  * The URL to redirect your customer back to after they authenticate or cancel their payment on the
212
- * payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`
205
+ * payment method's app or site. This parameter is required if ui_mode is `embedded`
213
206
  * and redirect-based payment methods are enabled on the session.
214
207
  */
215
208
  return_url?: string;
@@ -249,7 +242,7 @@ declare module 'stripe' {
249
242
  /**
250
243
  * The URL to which Stripe should send customers when payment or setup
251
244
  * is complete.
252
- * This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
245
+ * This parameter is not allowed if ui_mode is `embedded`. If you'd like to use
253
246
  * information from the successful Checkout Session on your page, read the
254
247
  * guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
255
248
  */
@@ -1075,6 +1068,11 @@ declare module 'stripe' {
1075
1068
  */
1076
1069
  ideal?: PaymentMethodOptions.Ideal;
1077
1070
 
1071
+ /**
1072
+ * contains details about the Kakao Pay payment method options.
1073
+ */
1074
+ kakao_pay?: PaymentMethodOptions.KakaoPay;
1075
+
1078
1076
  /**
1079
1077
  * contains details about the Klarna payment method options.
1080
1078
  */
@@ -1085,6 +1083,11 @@ declare module 'stripe' {
1085
1083
  */
1086
1084
  konbini?: PaymentMethodOptions.Konbini;
1087
1085
 
1086
+ /**
1087
+ * contains details about the Korean card payment method options.
1088
+ */
1089
+ kr_card?: PaymentMethodOptions.KrCard;
1090
+
1088
1091
  /**
1089
1092
  * contains details about the Link payment method options.
1090
1093
  */
@@ -1100,6 +1103,11 @@ declare module 'stripe' {
1100
1103
  */
1101
1104
  multibanco?: PaymentMethodOptions.Multibanco;
1102
1105
 
1106
+ /**
1107
+ * contains details about the Kakao Pay payment method options.
1108
+ */
1109
+ naver_pay?: PaymentMethodOptions.NaverPay;
1110
+
1103
1111
  /**
1104
1112
  * contains details about the OXXO payment method options.
1105
1113
  */
@@ -1110,6 +1118,11 @@ declare module 'stripe' {
1110
1118
  */
1111
1119
  p24?: PaymentMethodOptions.P24;
1112
1120
 
1121
+ /**
1122
+ * contains details about the PAYCO payment method options.
1123
+ */
1124
+ payco?: PaymentMethodOptions.Payco;
1125
+
1113
1126
  /**
1114
1127
  * contains details about the PayNow payment method options.
1115
1128
  */
@@ -1120,11 +1133,6 @@ declare module 'stripe' {
1120
1133
  */
1121
1134
  paypal?: PaymentMethodOptions.Paypal;
1122
1135
 
1123
- /**
1124
- * contains details about the PayTo payment method options.
1125
- */
1126
- payto?: PaymentMethodOptions.Payto;
1127
-
1128
1136
  /**
1129
1137
  * contains details about the Pix payment method options.
1130
1138
  */
@@ -1135,6 +1143,11 @@ declare module 'stripe' {
1135
1143
  */
1136
1144
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1137
1145
 
1146
+ /**
1147
+ * contains details about the Samsung Pay payment method options.
1148
+ */
1149
+ samsung_pay?: PaymentMethodOptions.SamsungPay;
1150
+
1138
1151
  /**
1139
1152
  * contains details about the Sepa Debit payment method options.
1140
1153
  */
@@ -1556,6 +1569,23 @@ declare module 'stripe' {
1556
1569
  setup_future_usage?: 'none';
1557
1570
  }
1558
1571
 
1572
+ interface KakaoPay {
1573
+ /**
1574
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1575
+ *
1576
+ * 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.
1577
+ *
1578
+ * 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.
1579
+ *
1580
+ * 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).
1581
+ */
1582
+ setup_future_usage?: KakaoPay.SetupFutureUsage;
1583
+ }
1584
+
1585
+ namespace KakaoPay {
1586
+ type SetupFutureUsage = 'none' | 'off_session';
1587
+ }
1588
+
1559
1589
  interface Klarna {
1560
1590
  /**
1561
1591
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1587,6 +1617,23 @@ declare module 'stripe' {
1587
1617
  setup_future_usage?: 'none';
1588
1618
  }
1589
1619
 
1620
+ interface KrCard {
1621
+ /**
1622
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1623
+ *
1624
+ * 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.
1625
+ *
1626
+ * 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.
1627
+ *
1628
+ * 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).
1629
+ */
1630
+ setup_future_usage?: KrCard.SetupFutureUsage;
1631
+ }
1632
+
1633
+ namespace KrCard {
1634
+ type SetupFutureUsage = 'none' | 'off_session';
1635
+ }
1636
+
1590
1637
  interface Link {
1591
1638
  /**
1592
1639
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1630,6 +1677,23 @@ declare module 'stripe' {
1630
1677
  setup_future_usage?: 'none';
1631
1678
  }
1632
1679
 
1680
+ interface NaverPay {
1681
+ /**
1682
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1683
+ *
1684
+ * 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.
1685
+ *
1686
+ * 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.
1687
+ *
1688
+ * 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).
1689
+ */
1690
+ setup_future_usage?: NaverPay.SetupFutureUsage;
1691
+ }
1692
+
1693
+ namespace NaverPay {
1694
+ type SetupFutureUsage = 'none' | 'off_session';
1695
+ }
1696
+
1633
1697
  interface Oxxo {
1634
1698
  /**
1635
1699
  * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1666,6 +1730,8 @@ declare module 'stripe' {
1666
1730
  tos_shown_and_accepted?: boolean;
1667
1731
  }
1668
1732
 
1733
+ interface Payco {}
1734
+
1669
1735
  interface Paynow {
1670
1736
  /**
1671
1737
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1695,11 +1761,6 @@ declare module 'stripe' {
1695
1761
  */
1696
1762
  reference?: string;
1697
1763
 
1698
- /**
1699
- * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1700
- */
1701
- reference_id?: string;
1702
-
1703
1764
  /**
1704
1765
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
1705
1766
  */
@@ -1717,11 +1778,6 @@ declare module 'stripe' {
1717
1778
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1718
1779
  */
1719
1780
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
1720
-
1721
- /**
1722
- * 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.
1723
- */
1724
- subsellers?: Array<string>;
1725
1781
  }
1726
1782
 
1727
1783
  namespace Paypal {
@@ -1751,92 +1807,6 @@ declare module 'stripe' {
1751
1807
  type SetupFutureUsage = 'none' | 'off_session';
1752
1808
  }
1753
1809
 
1754
- interface Payto {
1755
- /**
1756
- * Additional fields for Mandate creation
1757
- */
1758
- mandate_options?: Payto.MandateOptions;
1759
-
1760
- /**
1761
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1762
- *
1763
- * 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.
1764
- *
1765
- * 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.
1766
- *
1767
- * 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).
1768
- */
1769
- setup_future_usage?: Payto.SetupFutureUsage;
1770
- }
1771
-
1772
- namespace Payto {
1773
- interface MandateOptions {
1774
- /**
1775
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1776
- */
1777
- amount?: number;
1778
-
1779
- /**
1780
- * 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.
1781
- */
1782
- amount_type?: MandateOptions.AmountType;
1783
-
1784
- /**
1785
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1786
- */
1787
- end_date?: string;
1788
-
1789
- /**
1790
- * The periodicity at which payments will be collected.
1791
- */
1792
- payment_schedule?: MandateOptions.PaymentSchedule;
1793
-
1794
- /**
1795
- * 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.
1796
- */
1797
- payments_per_period?: number;
1798
-
1799
- /**
1800
- * The purpose for which payments are made. Defaults to retail.
1801
- */
1802
- purpose?: MandateOptions.Purpose;
1803
-
1804
- /**
1805
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1806
- */
1807
- start_date?: string;
1808
- }
1809
-
1810
- namespace MandateOptions {
1811
- type AmountType = 'fixed' | 'maximum';
1812
-
1813
- type PaymentSchedule =
1814
- | 'adhoc'
1815
- | 'annual'
1816
- | 'daily'
1817
- | 'fortnightly'
1818
- | 'monthly'
1819
- | 'quarterly'
1820
- | 'semi_annual'
1821
- | 'weekly';
1822
-
1823
- type Purpose =
1824
- | 'dependant_support'
1825
- | 'government'
1826
- | 'loan'
1827
- | 'mortgage'
1828
- | 'other'
1829
- | 'pension'
1830
- | 'personal'
1831
- | 'retail'
1832
- | 'salary'
1833
- | 'tax'
1834
- | 'utility';
1835
- }
1836
-
1837
- type SetupFutureUsage = 'none' | 'off_session';
1838
- }
1839
-
1840
1810
  interface Pix {
1841
1811
  /**
1842
1812
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -1861,6 +1831,8 @@ declare module 'stripe' {
1861
1831
  type SetupFutureUsage = 'none' | 'off_session';
1862
1832
  }
1863
1833
 
1834
+ interface SamsungPay {}
1835
+
1864
1836
  interface SepaDebit {
1865
1837
  /**
1866
1838
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1941,11 +1913,7 @@ declare module 'stripe' {
1941
1913
  | 'payment_method'
1942
1914
  | 'transactions';
1943
1915
 
1944
- type Prefetch =
1945
- | 'balances'
1946
- | 'inferred_balances'
1947
- | 'ownership'
1948
- | 'transactions';
1916
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1949
1917
  }
1950
1918
 
1951
1919
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1999,7 +1967,6 @@ declare module 'stripe' {
1999
1967
  | 'eps'
2000
1968
  | 'fpx'
2001
1969
  | 'giropay'
2002
- | 'gopay'
2003
1970
  | 'grabpay'
2004
1971
  | 'ideal'
2005
1972
  | 'kakao_pay'
@@ -2007,7 +1974,6 @@ declare module 'stripe' {
2007
1974
  | 'konbini'
2008
1975
  | 'kr_card'
2009
1976
  | 'link'
2010
- | 'mb_way'
2011
1977
  | 'mobilepay'
2012
1978
  | 'multibanco'
2013
1979
  | 'naver_pay'
@@ -2016,15 +1982,11 @@ declare module 'stripe' {
2016
1982
  | 'payco'
2017
1983
  | 'paynow'
2018
1984
  | 'paypal'
2019
- | 'payto'
2020
1985
  | 'pix'
2021
1986
  | 'promptpay'
2022
- | 'qris'
2023
- | 'rechnung'
2024
1987
  | 'revolut_pay'
2025
1988
  | 'samsung_pay'
2026
1989
  | 'sepa_debit'
2027
- | 'shopeepay'
2028
1990
  | 'sofort'
2029
1991
  | 'swish'
2030
1992
  | 'twint'
@@ -2032,30 +1994,6 @@ declare module 'stripe' {
2032
1994
  | 'wechat_pay'
2033
1995
  | 'zip';
2034
1996
 
2035
- interface Permissions {
2036
- /**
2037
- * Permissions for updating the Checkout Session.
2038
- */
2039
- update?: Permissions.Update;
2040
- }
2041
-
2042
- namespace Permissions {
2043
- interface Update {
2044
- /**
2045
- * Determines which entity is allowed to update the shipping details.
2046
- *
2047
- * 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.
2048
- *
2049
- * 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.
2050
- */
2051
- shipping_details?: Update.ShippingDetails;
2052
- }
2053
-
2054
- namespace Update {
2055
- type ShippingDetails = 'client_only' | 'server_only';
2056
- }
2057
- }
2058
-
2059
1997
  interface PhoneNumberCollection {
2060
1998
  /**
2061
1999
  * Set to `true` to enable phone number collection.
@@ -2637,7 +2575,7 @@ declare module 'stripe' {
2637
2575
  type Required = 'if_supported' | 'never';
2638
2576
  }
2639
2577
 
2640
- type UiMode = 'custom' | 'embedded' | 'hosted';
2578
+ type UiMode = 'embedded' | 'hosted';
2641
2579
  }
2642
2580
 
2643
2581
  interface SessionRetrieveParams {
@@ -2648,11 +2586,6 @@ declare module 'stripe' {
2648
2586
  }
2649
2587
 
2650
2588
  interface SessionUpdateParams {
2651
- /**
2652
- * Information about the customer collected within the Checkout Session.
2653
- */
2654
- collected_information?: SessionUpdateParams.CollectedInformation;
2655
-
2656
2589
  /**
2657
2590
  * Specifies which fields in the response should be expanded.
2658
2591
  */
@@ -2662,208 +2595,6 @@ declare module 'stripe' {
2662
2595
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2663
2596
  */
2664
2597
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
2665
-
2666
- /**
2667
- * The shipping rate options to apply to this Session. Up to a maximum of 5.
2668
- */
2669
- shipping_options?: Stripe.Emptyable<
2670
- Array<SessionUpdateParams.ShippingOption>
2671
- >;
2672
- }
2673
-
2674
- namespace SessionUpdateParams {
2675
- interface CollectedInformation {
2676
- /**
2677
- * The shipping details to apply to this Session.
2678
- */
2679
- shipping_details?: CollectedInformation.ShippingDetails;
2680
- }
2681
-
2682
- namespace CollectedInformation {
2683
- interface ShippingDetails {
2684
- /**
2685
- * The address of the customer
2686
- */
2687
- address: ShippingDetails.Address;
2688
-
2689
- /**
2690
- * The name of customer
2691
- */
2692
- name: string;
2693
- }
2694
-
2695
- namespace ShippingDetails {
2696
- interface Address {
2697
- /**
2698
- * City, district, suburb, town, or village.
2699
- */
2700
- city?: string;
2701
-
2702
- /**
2703
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2704
- */
2705
- country: string;
2706
-
2707
- /**
2708
- * Address line 1 (e.g., street, PO Box, or company name).
2709
- */
2710
- line1: string;
2711
-
2712
- /**
2713
- * Address line 2 (e.g., apartment, suite, unit, or building).
2714
- */
2715
- line2?: string;
2716
-
2717
- /**
2718
- * ZIP or postal code.
2719
- */
2720
- postal_code?: string;
2721
-
2722
- /**
2723
- * State, county, province, or region.
2724
- */
2725
- state?: string;
2726
- }
2727
- }
2728
- }
2729
-
2730
- interface ShippingOption {
2731
- /**
2732
- * The ID of the Shipping Rate to use for this shipping option.
2733
- */
2734
- shipping_rate?: string;
2735
-
2736
- /**
2737
- * Parameters to be passed to Shipping Rate creation for this shipping option.
2738
- */
2739
- shipping_rate_data?: ShippingOption.ShippingRateData;
2740
- }
2741
-
2742
- namespace ShippingOption {
2743
- interface ShippingRateData {
2744
- /**
2745
- * The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
2746
- */
2747
- delivery_estimate?: ShippingRateData.DeliveryEstimate;
2748
-
2749
- /**
2750
- * The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
2751
- */
2752
- display_name: string;
2753
-
2754
- /**
2755
- * Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
2756
- */
2757
- fixed_amount?: ShippingRateData.FixedAmount;
2758
-
2759
- /**
2760
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2761
- */
2762
- metadata?: Stripe.MetadataParam;
2763
-
2764
- /**
2765
- * Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2766
- */
2767
- tax_behavior?: ShippingRateData.TaxBehavior;
2768
-
2769
- /**
2770
- * A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
2771
- */
2772
- tax_code?: string;
2773
-
2774
- /**
2775
- * The type of calculation to use on the shipping rate.
2776
- */
2777
- type?: 'fixed_amount';
2778
- }
2779
-
2780
- namespace ShippingRateData {
2781
- interface DeliveryEstimate {
2782
- /**
2783
- * The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
2784
- */
2785
- maximum?: DeliveryEstimate.Maximum;
2786
-
2787
- /**
2788
- * The lower bound of the estimated range. If empty, represents no lower bound.
2789
- */
2790
- minimum?: DeliveryEstimate.Minimum;
2791
- }
2792
-
2793
- namespace DeliveryEstimate {
2794
- interface Maximum {
2795
- /**
2796
- * A unit of time.
2797
- */
2798
- unit: Maximum.Unit;
2799
-
2800
- /**
2801
- * Must be greater than 0.
2802
- */
2803
- value: number;
2804
- }
2805
-
2806
- namespace Maximum {
2807
- type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
2808
- }
2809
-
2810
- interface Minimum {
2811
- /**
2812
- * A unit of time.
2813
- */
2814
- unit: Minimum.Unit;
2815
-
2816
- /**
2817
- * Must be greater than 0.
2818
- */
2819
- value: number;
2820
- }
2821
-
2822
- namespace Minimum {
2823
- type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
2824
- }
2825
- }
2826
-
2827
- interface FixedAmount {
2828
- /**
2829
- * A non-negative integer in cents representing how much to charge.
2830
- */
2831
- amount: number;
2832
-
2833
- /**
2834
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2835
- */
2836
- currency: string;
2837
-
2838
- /**
2839
- * Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
2840
- */
2841
- currency_options?: {
2842
- [key: string]: FixedAmount.CurrencyOptions;
2843
- };
2844
- }
2845
-
2846
- namespace FixedAmount {
2847
- interface CurrencyOptions {
2848
- /**
2849
- * A non-negative integer in cents representing how much to charge.
2850
- */
2851
- amount: number;
2852
-
2853
- /**
2854
- * Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2855
- */
2856
- tax_behavior?: CurrencyOptions.TaxBehavior;
2857
- }
2858
-
2859
- namespace CurrencyOptions {
2860
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
2861
- }
2862
- }
2863
-
2864
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
2865
- }
2866
- }
2867
2598
  }
2868
2599
 
2869
2600
  interface SessionListParams extends PaginationParams {