stripe 17.8.0-beta.1 → 18.0.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 (208) hide show
  1. package/CHANGELOG.md +246 -1075
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  7. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  8. package/cjs/resources/Invoices.js +0 -26
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionItems.js +0 -9
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources/Terminal/Readers.js +0 -12
  14. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  15. package/cjs/resources.js +12 -48
  16. package/cjs/stripe.core.js +3 -14
  17. package/esm/apiVersion.js +1 -1
  18. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  19. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  20. package/esm/resources/Invoices.js +0 -26
  21. package/esm/resources/PaymentIntents.js +0 -8
  22. package/esm/resources/Quotes.js +0 -32
  23. package/esm/resources/SubscriptionItems.js +0 -9
  24. package/esm/resources/SubscriptionSchedules.js +0 -4
  25. package/esm/resources/Terminal/Readers.js +0 -12
  26. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  27. package/esm/resources.js +1 -33
  28. package/esm/stripe.core.js +3 -14
  29. package/package.json +1 -1
  30. package/types/AccountLinksResource.d.ts +1 -5
  31. package/types/AccountSessions.d.ts +0 -45
  32. package/types/AccountSessionsResource.d.ts +0 -243
  33. package/types/Accounts.d.ts +48 -211
  34. package/types/AccountsResource.d.ts +86 -503
  35. package/types/ApplicationFees.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +3 -1
  37. package/types/BalanceTransactionsResource.d.ts +1 -1
  38. package/types/BankAccounts.d.ts +9 -1
  39. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  40. package/types/Billing/CreditGrants.d.ts +2 -2
  41. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  42. package/types/Billing/Meters.d.ts +1 -1
  43. package/types/Billing/MetersResource.d.ts +2 -2
  44. package/types/Capabilities.d.ts +8 -0
  45. package/types/Cards.d.ts +1 -9
  46. package/types/Charges.d.ts +56 -153
  47. package/types/ChargesResource.d.ts +1 -1295
  48. package/types/Checkout/Sessions.d.ts +62 -336
  49. package/types/Checkout/SessionsResource.d.ts +69 -287
  50. package/types/ConfirmationTokens.d.ts +50 -99
  51. package/types/Coupons.d.ts +1 -1
  52. package/types/CouponsResource.d.ts +1 -1
  53. package/types/CreditNoteLineItems.d.ts +24 -22
  54. package/types/CreditNotes.d.ts +26 -23
  55. package/types/CreditNotesResource.d.ts +0 -15
  56. package/types/CustomerBalanceTransactions.d.ts +8 -1
  57. package/types/Customers.d.ts +3 -3
  58. package/types/CustomersResource.d.ts +3 -21
  59. package/types/EventTypes.d.ts +85 -545
  60. package/types/Events.d.ts +8 -93
  61. package/types/FinancialConnections/Accounts.d.ts +1 -29
  62. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  63. package/types/FinancialConnections/Sessions.d.ts +1 -49
  64. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  65. package/types/InvoiceItems.d.ts +60 -31
  66. package/types/InvoiceItemsResource.d.ts +26 -120
  67. package/types/InvoiceLineItems.d.ts +154 -91
  68. package/types/InvoicePayments.d.ts +2 -16
  69. package/types/InvoicePaymentsResource.d.ts +74 -0
  70. package/types/Invoices.d.ts +93 -214
  71. package/types/InvoicesResource.d.ts +307 -6599
  72. package/types/Issuing/Authorizations.d.ts +1 -1
  73. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  74. package/types/Issuing/CardholdersResource.d.ts +1 -2
  75. package/types/Issuing/Transactions.d.ts +0 -2
  76. package/types/Issuing/TransactionsResource.d.ts +0 -5
  77. package/types/LineItems.d.ts +0 -32
  78. package/types/Mandates.d.ts +8 -77
  79. package/types/PaymentIntents.d.ts +56 -648
  80. package/types/PaymentIntentsResource.d.ts +4120 -8122
  81. package/types/PaymentLinks.d.ts +49 -6
  82. package/types/PaymentLinksResource.d.ts +77 -12
  83. package/types/PaymentMethodConfigurations.d.ts +63 -135
  84. package/types/PaymentMethodConfigurationsResource.d.ts +116 -216
  85. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  86. package/types/PaymentMethods.d.ts +50 -99
  87. package/types/PaymentMethodsResource.d.ts +53 -148
  88. package/types/Persons.d.ts +17 -9
  89. package/types/Plans.d.ts +0 -7
  90. package/types/PlansResource.d.ts +0 -7
  91. package/types/Prices.d.ts +0 -33
  92. package/types/PricesResource.d.ts +2 -35
  93. package/types/Products.d.ts +0 -39
  94. package/types/ProductsResource.d.ts +0 -36
  95. package/types/Quotes.d.ts +1 -591
  96. package/types/QuotesResource.d.ts +200 -2532
  97. package/types/Refunds.d.ts +18 -14
  98. package/types/Reviews.d.ts +3 -2
  99. package/types/SetupAttempts.d.ts +15 -38
  100. package/types/SetupIntents.d.ts +3 -111
  101. package/types/SetupIntentsResource.d.ts +155 -642
  102. package/types/Sources.d.ts +0 -29
  103. package/types/SubscriptionItems.d.ts +9 -34
  104. package/types/SubscriptionItemsResource.d.ts +2 -203
  105. package/types/SubscriptionSchedules.d.ts +0 -251
  106. package/types/SubscriptionSchedulesResource.d.ts +9 -1333
  107. package/types/Subscriptions.d.ts +4 -124
  108. package/types/SubscriptionsResource.d.ts +10 -455
  109. package/types/Tax/RegistrationsResource.d.ts +1 -1
  110. package/types/Terminal/Configurations.d.ts +86 -3
  111. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  112. package/types/Terminal/Readers.d.ts +0 -290
  113. package/types/Terminal/ReadersResource.d.ts +0 -215
  114. package/types/TestHelpers/ConfirmationTokensResource.d.ts +50 -103
  115. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  116. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  117. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  118. package/types/TokensResource.d.ts +6 -1
  119. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  120. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  121. package/types/Treasury/FinancialAccountsResource.d.ts +1 -38
  122. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  123. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  124. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  125. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  126. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  127. package/types/V2/Core/EventsResource.d.ts +0 -5
  128. package/types/V2/EventDestinations.d.ts +1 -1
  129. package/types/V2/Events.d.ts +1 -1
  130. package/types/WebhookEndpointsResource.d.ts +19 -71
  131. package/types/index.d.ts +2 -64
  132. package/types/lib.d.ts +1 -1
  133. package/types/test/typescriptTest.ts +3 -6
  134. package/cjs/resources/AccountNotices.js +0 -21
  135. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  136. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  137. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  138. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  139. package/cjs/resources/GiftCards/Cards.js +0 -23
  140. package/cjs/resources/GiftCards/Transactions.js +0 -33
  141. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  142. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  143. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  144. package/cjs/resources/Margins.js +0 -22
  145. package/cjs/resources/Orders.js +0 -24
  146. package/cjs/resources/PaymentRecords.js +0 -29
  147. package/cjs/resources/Tax/Associations.js +0 -9
  148. package/cjs/resources/Tax/Forms.js +0 -20
  149. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  150. package/esm/resources/AccountNotices.js +0 -18
  151. package/esm/resources/Capital/FinancingOffers.js +0 -18
  152. package/esm/resources/Capital/FinancingSummary.js +0 -9
  153. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  154. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  155. package/esm/resources/GiftCards/Cards.js +0 -20
  156. package/esm/resources/GiftCards/Transactions.js +0 -30
  157. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  158. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  159. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  160. package/esm/resources/Margins.js +0 -19
  161. package/esm/resources/Orders.js +0 -21
  162. package/esm/resources/PaymentRecords.js +0 -26
  163. package/esm/resources/Tax/Associations.js +0 -6
  164. package/esm/resources/Tax/Forms.js +0 -17
  165. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  166. package/types/AccountNotices.d.ts +0 -113
  167. package/types/AccountNoticesResource.d.ts +0 -98
  168. package/types/Billing/MeterErrorReports.d.ts +0 -106
  169. package/types/Capital/FinancingOffers.d.ts +0 -188
  170. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  171. package/types/Capital/FinancingSummary.d.ts +0 -106
  172. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  173. package/types/Capital/FinancingTransactions.d.ts +0 -135
  174. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  175. package/types/Deprecations.d.ts +0 -215
  176. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  177. package/types/FinancialConnections/Institutions.d.ts +0 -93
  178. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  179. package/types/GiftCards/Cards.d.ts +0 -118
  180. package/types/GiftCards/CardsResource.d.ts +0 -159
  181. package/types/GiftCards/Transactions.d.ts +0 -129
  182. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  183. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  184. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  185. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  186. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  187. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  188. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  189. package/types/Issuing/Settlements.d.ts +0 -103
  190. package/types/Margins.d.ts +0 -56
  191. package/types/MarginsResource.d.ts +0 -114
  192. package/types/Orders.d.ts +0 -1189
  193. package/types/OrdersResource.d.ts +0 -2981
  194. package/types/PaymentAttemptRecords.d.ts +0 -242
  195. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  196. package/types/PaymentRecords.d.ts +0 -242
  197. package/types/PaymentRecordsResource.d.ts +0 -455
  198. package/types/QuoteLines.d.ts +0 -634
  199. package/types/QuotePreviewInvoices.d.ts +0 -1658
  200. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  201. package/types/Tax/Associations.d.ts +0 -126
  202. package/types/Tax/AssociationsResource.d.ts +0 -29
  203. package/types/Tax/Forms.d.ts +0 -220
  204. package/types/Tax/FormsResource.d.ts +0 -107
  205. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  206. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  207. package/types/UsageRecordSummaries.d.ts +0 -56
  208. package/types/UsageRecords.d.ts +0 -45
@@ -147,6 +147,17 @@ declare module 'stripe' {
147
147
  */
148
148
  mode?: SessionCreateParams.Mode;
149
149
 
150
+ /**
151
+ * A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
152
+ *
153
+ * There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
154
+ *
155
+ * For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
156
+ *
157
+ * For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
158
+ */
159
+ optional_items?: Array<SessionCreateParams.OptionalItem>;
160
+
150
161
  /**
151
162
  * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
152
163
  */
@@ -240,9 +251,10 @@ declare module 'stripe' {
240
251
  shipping_options?: Array<SessionCreateParams.ShippingOption>;
241
252
 
242
253
  /**
243
- * Describes the type of transaction being performed by Checkout in order to customize
244
- * relevant text on the page, such as the submit button. `submit_type` can only be
245
- * specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
254
+ * Describes the type of transaction being performed by Checkout in order
255
+ * to customize relevant text on the page, such as the submit button.
256
+ * `submit_type` can only be specified on Checkout Sessions in
257
+ * `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
246
258
  */
247
259
  submit_type?: SessionCreateParams.SubmitType;
248
260
 
@@ -687,11 +699,6 @@ declare module 'stripe' {
687
699
  */
688
700
  dynamic_tax_rates?: Array<string>;
689
701
 
690
- /**
691
- * 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`.
692
- */
693
- metadata?: Stripe.MetadataParam;
694
-
695
702
  /**
696
703
  * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
697
704
  */
@@ -738,12 +745,12 @@ declare module 'stripe' {
738
745
  currency: string;
739
746
 
740
747
  /**
741
- * The ID of the product that this price will belong to. One of `product` or `product_data` is required.
748
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
742
749
  */
743
750
  product?: string;
744
751
 
745
752
  /**
746
- * Data used to generate a new product object inline. One of `product` or `product_data` is required.
753
+ * Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
747
754
  */
748
755
  product_data?: PriceData.ProductData;
749
756
 
@@ -861,9 +868,45 @@ declare module 'stripe' {
861
868
 
862
869
  type Mode = 'payment' | 'setup' | 'subscription';
863
870
 
871
+ interface OptionalItem {
872
+ /**
873
+ * When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
874
+ */
875
+ adjustable_quantity?: OptionalItem.AdjustableQuantity;
876
+
877
+ /**
878
+ * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
879
+ */
880
+ price: string;
881
+
882
+ /**
883
+ * The initial quantity of the line item created when a customer chooses to add this optional item to their order.
884
+ */
885
+ quantity: number;
886
+ }
887
+
888
+ namespace OptionalItem {
889
+ interface AdjustableQuantity {
890
+ /**
891
+ * Set to true if the quantity can be adjusted to any non-negative integer.
892
+ */
893
+ enabled: boolean;
894
+
895
+ /**
896
+ * The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
897
+ */
898
+ maximum?: number;
899
+
900
+ /**
901
+ * The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
902
+ */
903
+ minimum?: number;
904
+ }
905
+ }
906
+
864
907
  interface PaymentIntentData {
865
908
  /**
866
- * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
909
+ * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
867
910
  */
868
911
  application_fee_amount?: number;
869
912
 
@@ -1164,11 +1207,6 @@ declare module 'stripe' {
1164
1207
  */
1165
1208
  paypal?: PaymentMethodOptions.Paypal;
1166
1209
 
1167
- /**
1168
- * contains details about the PayTo payment method options.
1169
- */
1170
- payto?: PaymentMethodOptions.Payto;
1171
-
1172
1210
  /**
1173
1211
  * contains details about the Pix payment method options.
1174
1212
  */
@@ -1438,11 +1476,6 @@ declare module 'stripe' {
1438
1476
  */
1439
1477
  installments?: Card.Installments;
1440
1478
 
1441
- /**
1442
- * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1443
- */
1444
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1445
-
1446
1479
  /**
1447
1480
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1448
1481
  */
@@ -1504,8 +1537,6 @@ declare module 'stripe' {
1504
1537
  enabled?: boolean;
1505
1538
  }
1506
1539
 
1507
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1508
-
1509
1540
  type RequestExtendedAuthorization = 'if_available' | 'never';
1510
1541
 
1511
1542
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1901,11 +1932,6 @@ declare module 'stripe' {
1901
1932
  */
1902
1933
  reference?: string;
1903
1934
 
1904
- /**
1905
- * 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.
1906
- */
1907
- reference_id?: string;
1908
-
1909
1935
  /**
1910
1936
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
1911
1937
  */
@@ -1923,11 +1949,6 @@ declare module 'stripe' {
1923
1949
  * 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`.
1924
1950
  */
1925
1951
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
1926
-
1927
- /**
1928
- * 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.
1929
- */
1930
- subsellers?: Array<string>;
1931
1952
  }
1932
1953
 
1933
1954
  namespace Paypal {
@@ -1957,92 +1978,6 @@ declare module 'stripe' {
1957
1978
  type SetupFutureUsage = 'none' | 'off_session';
1958
1979
  }
1959
1980
 
1960
- interface Payto {
1961
- /**
1962
- * Additional fields for Mandate creation
1963
- */
1964
- mandate_options?: Payto.MandateOptions;
1965
-
1966
- /**
1967
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1968
- *
1969
- * 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.
1970
- *
1971
- * 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.
1972
- *
1973
- * 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).
1974
- */
1975
- setup_future_usage?: Payto.SetupFutureUsage;
1976
- }
1977
-
1978
- namespace Payto {
1979
- interface MandateOptions {
1980
- /**
1981
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1982
- */
1983
- amount?: number;
1984
-
1985
- /**
1986
- * 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.
1987
- */
1988
- amount_type?: MandateOptions.AmountType;
1989
-
1990
- /**
1991
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1992
- */
1993
- end_date?: string;
1994
-
1995
- /**
1996
- * The periodicity at which payments will be collected.
1997
- */
1998
- payment_schedule?: MandateOptions.PaymentSchedule;
1999
-
2000
- /**
2001
- * 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.
2002
- */
2003
- payments_per_period?: number;
2004
-
2005
- /**
2006
- * The purpose for which payments are made. Defaults to retail.
2007
- */
2008
- purpose?: MandateOptions.Purpose;
2009
-
2010
- /**
2011
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2012
- */
2013
- start_date?: string;
2014
- }
2015
-
2016
- namespace MandateOptions {
2017
- type AmountType = 'fixed' | 'maximum';
2018
-
2019
- type PaymentSchedule =
2020
- | 'adhoc'
2021
- | 'annual'
2022
- | 'daily'
2023
- | 'fortnightly'
2024
- | 'monthly'
2025
- | 'quarterly'
2026
- | 'semi_annual'
2027
- | 'weekly';
2028
-
2029
- type Purpose =
2030
- | 'dependant_support'
2031
- | 'government'
2032
- | 'loan'
2033
- | 'mortgage'
2034
- | 'other'
2035
- | 'pension'
2036
- | 'personal'
2037
- | 'retail'
2038
- | 'salary'
2039
- | 'tax'
2040
- | 'utility';
2041
- }
2042
-
2043
- type SetupFutureUsage = 'none' | 'off_session';
2044
- }
2045
-
2046
1981
  interface Pix {
2047
1982
  /**
2048
1983
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -2176,11 +2111,7 @@ declare module 'stripe' {
2176
2111
  | 'payment_method'
2177
2112
  | 'transactions';
2178
2113
 
2179
- type Prefetch =
2180
- | 'balances'
2181
- | 'inferred_balances'
2182
- | 'ownership'
2183
- | 'transactions';
2114
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2184
2115
  }
2185
2116
 
2186
2117
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2226,6 +2157,7 @@ declare module 'stripe' {
2226
2157
  | 'au_becs_debit'
2227
2158
  | 'bacs_debit'
2228
2159
  | 'bancontact'
2160
+ | 'billie'
2229
2161
  | 'blik'
2230
2162
  | 'boleto'
2231
2163
  | 'card'
@@ -2234,7 +2166,6 @@ declare module 'stripe' {
2234
2166
  | 'eps'
2235
2167
  | 'fpx'
2236
2168
  | 'giropay'
2237
- | 'gopay'
2238
2169
  | 'grabpay'
2239
2170
  | 'ideal'
2240
2171
  | 'kakao_pay'
@@ -2242,7 +2173,6 @@ declare module 'stripe' {
2242
2173
  | 'konbini'
2243
2174
  | 'kr_card'
2244
2175
  | 'link'
2245
- | 'mb_way'
2246
2176
  | 'mobilepay'
2247
2177
  | 'multibanco'
2248
2178
  | 'naver_pay'
@@ -2252,15 +2182,12 @@ declare module 'stripe' {
2252
2182
  | 'payco'
2253
2183
  | 'paynow'
2254
2184
  | 'paypal'
2255
- | 'payto'
2256
2185
  | 'pix'
2257
2186
  | 'promptpay'
2258
- | 'qris'
2259
- | 'rechnung'
2260
2187
  | 'revolut_pay'
2261
2188
  | 'samsung_pay'
2189
+ | 'satispay'
2262
2190
  | 'sepa_debit'
2263
- | 'shopeepay'
2264
2191
  | 'sofort'
2265
2192
  | 'swish'
2266
2193
  | 'twint'
@@ -2270,37 +2197,17 @@ declare module 'stripe' {
2270
2197
 
2271
2198
  interface Permissions {
2272
2199
  /**
2273
- * Permissions for updating the Checkout Session.
2200
+ * Determines which entity is allowed to update the shipping details.
2201
+ *
2202
+ * 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.
2203
+ *
2204
+ * 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.
2274
2205
  */
2275
- update?: Permissions.Update;
2206
+ update_shipping_details?: Permissions.UpdateShippingDetails;
2276
2207
  }
2277
2208
 
2278
2209
  namespace Permissions {
2279
- interface Update {
2280
- /**
2281
- * Determines which entity is allowed to update the line items.
2282
- *
2283
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2284
- *
2285
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2286
- */
2287
- line_items?: Update.LineItems;
2288
-
2289
- /**
2290
- * Determines which entity is allowed to update the shipping details.
2291
- *
2292
- * 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.
2293
- *
2294
- * 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.
2295
- */
2296
- shipping_details?: Update.ShippingDetails;
2297
- }
2298
-
2299
- namespace Update {
2300
- type LineItems = 'client_only' | 'server_only';
2301
-
2302
- type ShippingDetails = 'client_only' | 'server_only';
2303
- }
2210
+ type UpdateShippingDetails = 'client_only' | 'server_only';
2304
2211
  }
2305
2212
 
2306
2213
  interface PhoneNumberCollection {
@@ -2908,23 +2815,6 @@ declare module 'stripe' {
2908
2815
  */
2909
2816
  expand?: Array<string>;
2910
2817
 
2911
- /**
2912
- * A list of items the customer is purchasing.
2913
- *
2914
- * When updating line items, you must retransmit the entire array of line items.
2915
- *
2916
- * To retain an existing line item, specify its `id`.
2917
- *
2918
- * To update an existing line item, specify its `id` along with the new values of the fields to update.
2919
- *
2920
- * To add a new line item, specify a `price` and `quantity`. We don't currently support recurring prices.
2921
- *
2922
- * To remove an existing line item, omit the line item's ID from the retransmitted array.
2923
- *
2924
- * To reorder a line item, specify it at the desired position in the retransmitted array.
2925
- */
2926
- line_items?: Array<SessionUpdateParams.LineItem>;
2927
-
2928
2818
  /**
2929
2819
  * 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`.
2930
2820
  */
@@ -2994,57 +2884,6 @@ declare module 'stripe' {
2994
2884
  }
2995
2885
  }
2996
2886
 
2997
- interface LineItem {
2998
- /**
2999
- * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
3000
- */
3001
- adjustable_quantity?: LineItem.AdjustableQuantity;
3002
-
3003
- /**
3004
- * ID of an existing line item.
3005
- */
3006
- id?: string;
3007
-
3008
- /**
3009
- * 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`.
3010
- */
3011
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3012
-
3013
- /**
3014
- * The ID of the [Price](https://stripe.com/docs/api/prices).
3015
- */
3016
- price?: string;
3017
-
3018
- /**
3019
- * The quantity of the line item being purchased.
3020
- */
3021
- quantity?: number;
3022
-
3023
- /**
3024
- * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
3025
- */
3026
- tax_rates?: Stripe.Emptyable<Array<string>>;
3027
- }
3028
-
3029
- namespace LineItem {
3030
- interface AdjustableQuantity {
3031
- /**
3032
- * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
3033
- */
3034
- enabled: boolean;
3035
-
3036
- /**
3037
- * The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
3038
- */
3039
- maximum?: number;
3040
-
3041
- /**
3042
- * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
3043
- */
3044
- minimum?: number;
3045
- }
3046
- }
3047
-
3048
2887
  interface ShippingOption {
3049
2888
  /**
3050
2889
  * The ID of the Shipping Rate to use for this shipping option.
@@ -3184,63 +3023,6 @@ declare module 'stripe' {
3184
3023
  }
3185
3024
  }
3186
3025
 
3187
- namespace SessionUpdateParams {
3188
- interface CollectedInformation {
3189
- /**
3190
- * The shipping details to apply to this Session.
3191
- */
3192
- shipping_details?: CollectedInformation.ShippingDetails;
3193
- }
3194
-
3195
- namespace CollectedInformation {
3196
- interface ShippingDetails {
3197
- /**
3198
- * The address of the customer
3199
- */
3200
- address: ShippingDetails.Address;
3201
-
3202
- /**
3203
- * The name of customer
3204
- */
3205
- name: string;
3206
- }
3207
-
3208
- namespace ShippingDetails {
3209
- interface Address {
3210
- /**
3211
- * City, district, suburb, town, or village.
3212
- */
3213
- city?: string;
3214
-
3215
- /**
3216
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3217
- */
3218
- country: string;
3219
-
3220
- /**
3221
- * Address line 1 (e.g., street, PO Box, or company name).
3222
- */
3223
- line1: string;
3224
-
3225
- /**
3226
- * Address line 2 (e.g., apartment, suite, unit, or building).
3227
- */
3228
- line2?: string;
3229
-
3230
- /**
3231
- * ZIP or postal code.
3232
- */
3233
- postal_code?: string;
3234
-
3235
- /**
3236
- * State, county, province, or region.
3237
- */
3238
- state?: string;
3239
- }
3240
- }
3241
- }
3242
- }
3243
-
3244
3026
  interface SessionListParams extends PaginationParams {
3245
3027
  /**
3246
3028
  * Only return Checkout Sessions that were created during the given date interval.
@@ -3310,7 +3092,7 @@ declare module 'stripe' {
3310
3092
 
3311
3093
  class SessionsResource {
3312
3094
  /**
3313
- * Creates a Session object.
3095
+ * Creates a Checkout Session object.
3314
3096
  */
3315
3097
  create(
3316
3098
  params?: SessionCreateParams,
@@ -3321,7 +3103,7 @@ declare module 'stripe' {
3321
3103
  ): Promise<Stripe.Response<Stripe.Checkout.Session>>;
3322
3104
 
3323
3105
  /**
3324
- * Retrieves a Session object.
3106
+ * Retrieves a Checkout Session object.
3325
3107
  */
3326
3108
  retrieve(
3327
3109
  id: string,
@@ -3334,7 +3116,7 @@ declare module 'stripe' {
3334
3116
  ): Promise<Stripe.Response<Stripe.Checkout.Session>>;
3335
3117
 
3336
3118
  /**
3337
- * Updates a Session object.
3119
+ * Updates a Checkout Session object.
3338
3120
  */
3339
3121
  update(
3340
3122
  id: string,
@@ -3352,9 +3134,9 @@ declare module 'stripe' {
3352
3134
  list(options?: RequestOptions): ApiListPromise<Stripe.Checkout.Session>;
3353
3135
 
3354
3136
  /**
3355
- * A Session can be expired when it is in one of these statuses: open
3137
+ * A Checkout Session can be expired when it is in one of these statuses: open
3356
3138
  *
3357
- * After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
3139
+ * After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
3358
3140
  */
3359
3141
  expire(
3360
3142
  id: string,