stripe 18.3.0-beta.2 → 18.3.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 (296) hide show
  1. package/CHANGELOG.md +59 -1249
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -91
  6. package/cjs/RequestSender.js +1 -1
  7. package/cjs/apiVersion.js +3 -2
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  10. package/cjs/resources/PaymentIntents.js +0 -13
  11. package/cjs/resources/Quotes.js +0 -32
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources.js +10 -98
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Error.js +0 -79
  16. package/esm/RequestSender.js +1 -1
  17. package/esm/apiVersion.js +2 -1
  18. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  19. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  20. package/esm/resources/PaymentIntents.js +0 -13
  21. package/esm/resources/Quotes.js +0 -32
  22. package/esm/resources/SubscriptionSchedules.js +0 -4
  23. package/esm/resources.js +1 -82
  24. package/esm/stripe.core.js +1 -1
  25. package/package.json +1 -1
  26. package/types/AccountLinksResource.d.ts +1 -5
  27. package/types/AccountSessions.d.ts +31 -76
  28. package/types/AccountSessionsResource.d.ts +48 -312
  29. package/types/Accounts.d.ts +30 -213
  30. package/types/AccountsResource.d.ts +85 -540
  31. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  32. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  33. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  34. package/types/Billing/CreditGrants.d.ts +0 -5
  35. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  36. package/types/BillingPortal/Sessions.d.ts +1 -6
  37. package/types/BillingPortal/SessionsResource.d.ts +5 -13
  38. package/types/Cards.d.ts +0 -5
  39. package/types/CashBalances.d.ts +0 -5
  40. package/types/Charges.d.ts +52 -182
  41. package/types/ChargesResource.d.ts +0 -1406
  42. package/types/Checkout/Sessions.d.ts +1 -314
  43. package/types/Checkout/SessionsResource.d.ts +62 -340
  44. package/types/ConfirmationTokens.d.ts +22 -136
  45. package/types/Coupons.d.ts +0 -33
  46. package/types/CouponsResource.d.ts +0 -21
  47. package/types/CreditNoteLineItems.d.ts +0 -17
  48. package/types/CreditNotes.d.ts +0 -5
  49. package/types/CreditNotesResource.d.ts +9 -14
  50. package/types/CustomerBalanceTransactions.d.ts +0 -2
  51. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  52. package/types/CustomerSessions.d.ts +1 -6
  53. package/types/CustomerSessionsResource.d.ts +2 -7
  54. package/types/Customers.d.ts +0 -2
  55. package/types/CustomersResource.d.ts +1 -8
  56. package/types/Discounts.d.ts +0 -10
  57. package/types/Disputes.d.ts +6 -2
  58. package/types/Errors.d.ts +2 -69
  59. package/types/EventTypes.d.ts +0 -664
  60. package/types/Events.d.ts +1 -98
  61. package/types/FinancialConnections/Accounts.d.ts +1 -36
  62. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  63. package/types/FinancialConnections/Sessions.d.ts +1 -51
  64. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  65. package/types/Identity/VerificationSessions.d.ts +33 -4
  66. package/types/Identity/VerificationSessionsResource.d.ts +14 -4
  67. package/types/InvoiceItems.d.ts +1 -14
  68. package/types/InvoiceItemsResource.d.ts +6 -117
  69. package/types/InvoiceLineItems.d.ts +1 -45
  70. package/types/InvoicePayments.d.ts +0 -5
  71. package/types/InvoicePaymentsResource.d.ts +74 -0
  72. package/types/Invoices.d.ts +4 -133
  73. package/types/InvoicesResource.d.ts +37 -1446
  74. package/types/Issuing/CardholdersResource.d.ts +1 -2
  75. package/types/Issuing/Transactions.d.ts +0 -5
  76. package/types/Issuing/TransactionsResource.d.ts +0 -5
  77. package/types/LineItems.d.ts +0 -49
  78. package/types/Mandates.d.ts +4 -77
  79. package/types/PaymentIntents.d.ts +35 -770
  80. package/types/PaymentIntentsResource.d.ts +4268 -8619
  81. package/types/PaymentLinks.d.ts +0 -6
  82. package/types/PaymentLinksResource.d.ts +0 -12
  83. package/types/PaymentMethodConfigurations.d.ts +0 -180
  84. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  85. package/types/PaymentMethods.d.ts +16 -134
  86. package/types/PaymentMethodsResource.d.ts +12 -167
  87. package/types/Payouts.d.ts +0 -5
  88. package/types/PayoutsResource.d.ts +0 -5
  89. package/types/Prices.d.ts +0 -22
  90. package/types/PricesResource.d.ts +0 -22
  91. package/types/PromotionCodes.d.ts +0 -5
  92. package/types/PromotionCodesResource.d.ts +0 -10
  93. package/types/Quotes.d.ts +8 -592
  94. package/types/QuotesResource.d.ts +278 -2617
  95. package/types/Refunds.d.ts +0 -14
  96. package/types/SetupAttempts.d.ts +4 -48
  97. package/types/SetupIntents.d.ts +17 -119
  98. package/types/SetupIntentsResource.d.ts +413 -660
  99. package/types/Sources.d.ts +0 -29
  100. package/types/SubscriptionItems.d.ts +0 -30
  101. package/types/SubscriptionItemsResource.d.ts +0 -109
  102. package/types/SubscriptionSchedules.d.ts +16 -207
  103. package/types/SubscriptionSchedulesResource.d.ts +14 -1236
  104. package/types/Subscriptions.d.ts +15 -108
  105. package/types/SubscriptionsResource.d.ts +30 -402
  106. package/types/Tax/Registrations.d.ts +9 -0
  107. package/types/Tax/RegistrationsResource.d.ts +12 -0
  108. package/types/TaxIds.d.ts +0 -10
  109. package/types/TaxIdsResource.d.ts +0 -10
  110. package/types/Terminal/Configurations.d.ts +1 -0
  111. package/types/Terminal/LocationsResource.d.ts +1 -1
  112. package/types/Terminal/Readers.d.ts +6 -26
  113. package/types/Terminal/ReadersResource.d.ts +4 -4
  114. package/types/TestHelpers/ConfirmationTokensResource.d.ts +15 -128
  115. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  116. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  117. package/types/TokensResource.d.ts +3 -0
  118. package/types/Transfers.d.ts +0 -5
  119. package/types/TransfersResource.d.ts +0 -5
  120. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  121. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  122. package/types/Treasury/FinancialAccountsResource.d.ts +9 -37
  123. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  124. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  125. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  126. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  127. package/types/V2/EventTypes.d.ts +4 -906
  128. package/types/WebhookEndpointsResource.d.ts +2 -79
  129. package/types/index.d.ts +6 -142
  130. package/types/lib.d.ts +11 -11
  131. package/types/test/typescriptTest.ts +3 -3
  132. package/cjs/resources/AccountNotices.js +0 -21
  133. package/cjs/resources/BalanceSettings.js +0 -10
  134. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  135. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  136. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  137. package/cjs/resources/ExternalAccounts.js +0 -23
  138. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  139. package/cjs/resources/FxQuotes.js +0 -15
  140. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  141. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  142. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  143. package/cjs/resources/Margins.js +0 -22
  144. package/cjs/resources/Orders.js +0 -24
  145. package/cjs/resources/PaymentRecords.js +0 -29
  146. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  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/cjs/resources/V2/Core/AccountLinks.js +0 -9
  151. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  152. package/cjs/resources/V2/Core/Accounts.js +0 -25
  153. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  154. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  155. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  156. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  157. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  158. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  159. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  160. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  161. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  162. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  163. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  164. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  165. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  166. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  167. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  168. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  169. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -25
  170. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  171. package/esm/resources/AccountNotices.js +0 -18
  172. package/esm/resources/BalanceSettings.js +0 -7
  173. package/esm/resources/Capital/FinancingOffers.js +0 -18
  174. package/esm/resources/Capital/FinancingSummary.js +0 -9
  175. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  176. package/esm/resources/ExternalAccounts.js +0 -20
  177. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  178. package/esm/resources/FxQuotes.js +0 -12
  179. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  180. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  181. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  182. package/esm/resources/Margins.js +0 -19
  183. package/esm/resources/Orders.js +0 -21
  184. package/esm/resources/PaymentRecords.js +0 -26
  185. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  186. package/esm/resources/Tax/Associations.js +0 -6
  187. package/esm/resources/Tax/Forms.js +0 -17
  188. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  189. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  190. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  191. package/esm/resources/V2/Core/Accounts.js +0 -22
  192. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  193. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  194. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  195. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  196. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  197. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  198. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  199. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  200. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  201. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  202. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  203. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  204. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  205. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  206. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  207. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  208. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -22
  209. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  210. package/types/AccountNotices.d.ts +0 -113
  211. package/types/AccountNoticesResource.d.ts +0 -98
  212. package/types/BalanceSettings.d.ts +0 -89
  213. package/types/BalanceSettingsResource.d.ts +0 -108
  214. package/types/Capital/FinancingOffers.d.ts +0 -188
  215. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  216. package/types/Capital/FinancingSummary.d.ts +0 -106
  217. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  218. package/types/Capital/FinancingTransactions.d.ts +0 -135
  219. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  220. package/types/ExternalAccountsResource.d.ts +0 -304
  221. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  222. package/types/FinancialConnections/Institutions.d.ts +0 -98
  223. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  224. package/types/FxQuotes.d.ts +0 -153
  225. package/types/FxQuotesResource.d.ts +0 -130
  226. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  227. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  228. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  229. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  230. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  231. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  232. package/types/Issuing/Settlements.d.ts +0 -113
  233. package/types/Margins.d.ts +0 -56
  234. package/types/MarginsResource.d.ts +0 -114
  235. package/types/Orders.d.ts +0 -1159
  236. package/types/OrdersResource.d.ts +0 -2967
  237. package/types/PaymentAttemptRecords.d.ts +0 -2132
  238. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  239. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  240. package/types/PaymentRecords.d.ts +0 -2125
  241. package/types/PaymentRecordsResource.d.ts +0 -455
  242. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  243. package/types/Privacy/RedactionJobs.d.ts +0 -111
  244. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  245. package/types/QuoteLines.d.ts +0 -634
  246. package/types/QuotePreviewInvoices.d.ts +0 -1695
  247. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -831
  248. package/types/Tax/Associations.d.ts +0 -82
  249. package/types/Tax/AssociationsResource.d.ts +0 -29
  250. package/types/Tax/Forms.d.ts +0 -220
  251. package/types/Tax/FormsResource.d.ts +0 -107
  252. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  253. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  254. package/types/V2/Core/AccountLinks.d.ts +0 -106
  255. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  256. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3770
  257. package/types/V2/Core/Accounts.d.ts +0 -8169
  258. package/types/V2/Core/AccountsResource.d.ts +0 -10203
  259. package/types/V2/Core/Persons.d.ts +0 -1867
  260. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  261. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  262. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  263. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  264. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  265. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  266. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  267. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  268. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -546
  269. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  270. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  271. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -288
  272. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  273. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  274. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  275. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  276. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  277. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  278. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  279. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  280. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  281. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  282. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -151
  283. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  284. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  285. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  286. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -243
  287. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  288. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  289. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  290. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
  291. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  292. package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
  293. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  294. package/types/V2/Payments/OffSessionPayments.d.ts +0 -162
  295. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -159
  296. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -76,11 +76,6 @@ declare module 'stripe' {
76
76
  */
77
77
  customer?: string;
78
78
 
79
- /**
80
- * ID of an existing Account, if one exists. Has the same behavior as `customer`.
81
- */
82
- customer_account?: string;
83
-
84
79
  /**
85
80
  * Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
86
81
  *
@@ -129,7 +124,7 @@ declare module 'stripe' {
129
124
  invoice_creation?: SessionCreateParams.InvoiceCreation;
130
125
 
131
126
  /**
132
- * A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
127
+ * A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
133
128
  *
134
129
  * For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
135
130
  *
@@ -709,11 +704,6 @@ declare module 'stripe' {
709
704
  */
710
705
  dynamic_tax_rates?: Array<string>;
711
706
 
712
- /**
713
- * 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`.
714
- */
715
- metadata?: Stripe.MetadataParam;
716
-
717
707
  /**
718
708
  * 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.
719
709
  */
@@ -1222,11 +1212,6 @@ declare module 'stripe' {
1222
1212
  */
1223
1213
  paypal?: PaymentMethodOptions.Paypal;
1224
1214
 
1225
- /**
1226
- * contains details about the PayTo payment method options.
1227
- */
1228
- payto?: PaymentMethodOptions.Payto;
1229
-
1230
1215
  /**
1231
1216
  * contains details about the Pix payment method options.
1232
1217
  */
@@ -1496,11 +1481,6 @@ declare module 'stripe' {
1496
1481
  */
1497
1482
  installments?: Card.Installments;
1498
1483
 
1499
- /**
1500
- * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1501
- */
1502
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1503
-
1504
1484
  /**
1505
1485
  * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1506
1486
  */
@@ -1562,8 +1542,6 @@ declare module 'stripe' {
1562
1542
  enabled?: boolean;
1563
1543
  }
1564
1544
 
1565
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1566
-
1567
1545
  type RequestExtendedAuthorization = 'if_available' | 'never';
1568
1546
 
1569
1547
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1778,6 +1756,56 @@ declare module 'stripe' {
1778
1756
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1779
1757
  */
1780
1758
  setup_future_usage?: 'none';
1759
+
1760
+ /**
1761
+ * Subscription details if the Checkout Session sets up a future subscription.
1762
+ */
1763
+ subscriptions?: Stripe.Emptyable<Array<Klarna.Subscription>>;
1764
+ }
1765
+
1766
+ namespace Klarna {
1767
+ interface Subscription {
1768
+ /**
1769
+ * Unit of time between subscription charges.
1770
+ */
1771
+ interval: Subscription.Interval;
1772
+
1773
+ /**
1774
+ * The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1775
+ */
1776
+ interval_count?: number;
1777
+
1778
+ /**
1779
+ * Name for subscription.
1780
+ */
1781
+ name?: string;
1782
+
1783
+ /**
1784
+ * Describes the upcoming charge for this subscription.
1785
+ */
1786
+ next_billing: Subscription.NextBilling;
1787
+
1788
+ /**
1789
+ * A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1790
+ */
1791
+ reference: string;
1792
+ }
1793
+
1794
+ namespace Subscription {
1795
+ type Interval = 'day' | 'month' | 'week' | 'year';
1796
+
1797
+ interface NextBilling {
1798
+ /**
1799
+ * The amount of the next charge for the subscription.
1800
+ */
1801
+ amount: number;
1802
+
1803
+ /**
1804
+ * The date of the next charge for the subscription in YYYY-MM-DD format.
1805
+ */
1806
+ date: string;
1807
+ }
1808
+ }
1781
1809
  }
1782
1810
 
1783
1811
  interface Konbini {
@@ -1959,11 +1987,6 @@ declare module 'stripe' {
1959
1987
  */
1960
1988
  reference?: string;
1961
1989
 
1962
- /**
1963
- * 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.
1964
- */
1965
- reference_id?: string;
1966
-
1967
1990
  /**
1968
1991
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
1969
1992
  */
@@ -1981,11 +2004,6 @@ declare module 'stripe' {
1981
2004
  * 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`.
1982
2005
  */
1983
2006
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
1984
-
1985
- /**
1986
- * 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.
1987
- */
1988
- subsellers?: Array<string>;
1989
2007
  }
1990
2008
 
1991
2009
  namespace Paypal {
@@ -2015,92 +2033,6 @@ declare module 'stripe' {
2015
2033
  type SetupFutureUsage = 'none' | 'off_session';
2016
2034
  }
2017
2035
 
2018
- interface Payto {
2019
- /**
2020
- * Additional fields for Mandate creation
2021
- */
2022
- mandate_options?: Payto.MandateOptions;
2023
-
2024
- /**
2025
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2026
- *
2027
- * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2028
- *
2029
- * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2030
- *
2031
- * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2032
- */
2033
- setup_future_usage?: Payto.SetupFutureUsage;
2034
- }
2035
-
2036
- namespace Payto {
2037
- interface MandateOptions {
2038
- /**
2039
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2040
- */
2041
- amount?: number;
2042
-
2043
- /**
2044
- * 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.
2045
- */
2046
- amount_type?: MandateOptions.AmountType;
2047
-
2048
- /**
2049
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2050
- */
2051
- end_date?: string;
2052
-
2053
- /**
2054
- * The periodicity at which payments will be collected.
2055
- */
2056
- payment_schedule?: MandateOptions.PaymentSchedule;
2057
-
2058
- /**
2059
- * 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.
2060
- */
2061
- payments_per_period?: number;
2062
-
2063
- /**
2064
- * The purpose for which payments are made. Defaults to retail.
2065
- */
2066
- purpose?: MandateOptions.Purpose;
2067
-
2068
- /**
2069
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2070
- */
2071
- start_date?: string;
2072
- }
2073
-
2074
- namespace MandateOptions {
2075
- type AmountType = 'fixed' | 'maximum';
2076
-
2077
- type PaymentSchedule =
2078
- | 'adhoc'
2079
- | 'annual'
2080
- | 'daily'
2081
- | 'fortnightly'
2082
- | 'monthly'
2083
- | 'quarterly'
2084
- | 'semi_annual'
2085
- | 'weekly';
2086
-
2087
- type Purpose =
2088
- | 'dependant_support'
2089
- | 'government'
2090
- | 'loan'
2091
- | 'mortgage'
2092
- | 'other'
2093
- | 'pension'
2094
- | 'personal'
2095
- | 'retail'
2096
- | 'salary'
2097
- | 'tax'
2098
- | 'utility';
2099
- }
2100
-
2101
- type SetupFutureUsage = 'none' | 'off_session';
2102
- }
2103
-
2104
2036
  interface Pix {
2105
2037
  /**
2106
2038
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -2234,11 +2166,7 @@ declare module 'stripe' {
2234
2166
  | 'payment_method'
2235
2167
  | 'transactions';
2236
2168
 
2237
- type Prefetch =
2238
- | 'balances'
2239
- | 'inferred_balances'
2240
- | 'ownership'
2241
- | 'transactions';
2169
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2242
2170
  }
2243
2171
 
2244
2172
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2289,11 +2217,11 @@ declare module 'stripe' {
2289
2217
  | 'boleto'
2290
2218
  | 'card'
2291
2219
  | 'cashapp'
2220
+ | 'crypto'
2292
2221
  | 'customer_balance'
2293
2222
  | 'eps'
2294
2223
  | 'fpx'
2295
2224
  | 'giropay'
2296
- | 'gopay'
2297
2225
  | 'grabpay'
2298
2226
  | 'ideal'
2299
2227
  | 'kakao_pay'
@@ -2301,7 +2229,6 @@ declare module 'stripe' {
2301
2229
  | 'konbini'
2302
2230
  | 'kr_card'
2303
2231
  | 'link'
2304
- | 'mb_way'
2305
2232
  | 'mobilepay'
2306
2233
  | 'multibanco'
2307
2234
  | 'naver_pay'
@@ -2311,16 +2238,12 @@ declare module 'stripe' {
2311
2238
  | 'payco'
2312
2239
  | 'paynow'
2313
2240
  | 'paypal'
2314
- | 'payto'
2315
2241
  | 'pix'
2316
2242
  | 'promptpay'
2317
- | 'qris'
2318
- | 'rechnung'
2319
2243
  | 'revolut_pay'
2320
2244
  | 'samsung_pay'
2321
2245
  | 'satispay'
2322
2246
  | 'sepa_debit'
2323
- | 'shopeepay'
2324
2247
  | 'sofort'
2325
2248
  | 'swish'
2326
2249
  | 'twint'
@@ -2329,20 +2252,6 @@ declare module 'stripe' {
2329
2252
  | 'zip';
2330
2253
 
2331
2254
  interface Permissions {
2332
- /**
2333
- * Permissions for updating the Checkout Session.
2334
- */
2335
- update?: Permissions.Update;
2336
-
2337
- /**
2338
- * Determines which entity is allowed to update the line items.
2339
- *
2340
- * 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.
2341
- *
2342
- * 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.
2343
- */
2344
- update_line_items?: Permissions.UpdateLineItems;
2345
-
2346
2255
  /**
2347
2256
  * Determines which entity is allowed to update the shipping details.
2348
2257
  *
@@ -2354,34 +2263,6 @@ declare module 'stripe' {
2354
2263
  }
2355
2264
 
2356
2265
  namespace Permissions {
2357
- interface Update {
2358
- /**
2359
- * Determines which entity is allowed to update the line items.
2360
- *
2361
- * 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.
2362
- *
2363
- * 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.
2364
- */
2365
- line_items?: Update.LineItems;
2366
-
2367
- /**
2368
- * Determines which entity is allowed to update the shipping details.
2369
- *
2370
- * 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.
2371
- *
2372
- * 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.
2373
- */
2374
- shipping_details?: Update.ShippingDetails;
2375
- }
2376
-
2377
- namespace Update {
2378
- type LineItems = 'client_only' | 'server_only';
2379
-
2380
- type ShippingDetails = 'client_only' | 'server_only';
2381
- }
2382
-
2383
- type UpdateLineItems = 'client_only' | 'server_only';
2384
-
2385
2266
  type UpdateShippingDetails = 'client_only' | 'server_only';
2386
2267
  }
2387
2268
 
@@ -2886,15 +2767,12 @@ declare module 'stripe' {
2886
2767
  transfer_data?: SubscriptionData.TransferData;
2887
2768
 
2888
2769
  /**
2889
- * Unix timestamp representing the end of the trial period the customer
2890
- * will get before being charged for the first time. Has to be at least
2891
- * 48 hours in the future.
2770
+ * Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
2892
2771
  */
2893
2772
  trial_end?: number;
2894
2773
 
2895
2774
  /**
2896
- * Integer representing the number of trial period days before the
2897
- * customer is charged for the first time. Has to be at least 1.
2775
+ * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
2898
2776
  */
2899
2777
  trial_period_days?: number;
2900
2778
 
@@ -2905,7 +2783,13 @@ declare module 'stripe' {
2905
2783
  }
2906
2784
 
2907
2785
  namespace SubscriptionData {
2908
- type BillingMode = 'classic' | 'flexible';
2786
+ interface BillingMode {
2787
+ type: BillingMode.Type;
2788
+ }
2789
+
2790
+ namespace BillingMode {
2791
+ type Type = 'classic' | 'flexible';
2792
+ }
2909
2793
 
2910
2794
  interface InvoiceSettings {
2911
2795
  /**
@@ -3024,23 +2908,6 @@ declare module 'stripe' {
3024
2908
  */
3025
2909
  expand?: Array<string>;
3026
2910
 
3027
- /**
3028
- * A list of items the customer is purchasing.
3029
- *
3030
- * When updating line items, you must retransmit the entire array of line items.
3031
- *
3032
- * To retain an existing line item, specify its `id`.
3033
- *
3034
- * To update an existing line item, specify its `id` along with the new values of the fields to update.
3035
- *
3036
- * To add a new line item, specify one of `price` or `price_data` and `quantity`.
3037
- *
3038
- * To remove an existing line item, omit the line item's ID from the retransmitted array.
3039
- *
3040
- * To reorder a line item, specify it at the desired position in the retransmitted array.
3041
- */
3042
- line_items?: Array<SessionUpdateParams.LineItem>;
3043
-
3044
2911
  /**
3045
2912
  * 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`.
3046
2913
  */
@@ -3110,146 +2977,6 @@ declare module 'stripe' {
3110
2977
  }
3111
2978
  }
3112
2979
 
3113
- interface LineItem {
3114
- /**
3115
- * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
3116
- */
3117
- adjustable_quantity?: LineItem.AdjustableQuantity;
3118
-
3119
- /**
3120
- * ID of an existing line item.
3121
- */
3122
- id?: string;
3123
-
3124
- /**
3125
- * 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`.
3126
- */
3127
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3128
-
3129
- /**
3130
- * The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
3131
- */
3132
- price?: string;
3133
-
3134
- /**
3135
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
3136
- */
3137
- price_data?: LineItem.PriceData;
3138
-
3139
- /**
3140
- * The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
3141
- */
3142
- quantity?: number;
3143
-
3144
- /**
3145
- * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
3146
- */
3147
- tax_rates?: Stripe.Emptyable<Array<string>>;
3148
- }
3149
-
3150
- namespace LineItem {
3151
- interface AdjustableQuantity {
3152
- /**
3153
- * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
3154
- */
3155
- enabled: boolean;
3156
-
3157
- /**
3158
- * 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.
3159
- */
3160
- maximum?: number;
3161
-
3162
- /**
3163
- * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
3164
- */
3165
- minimum?: number;
3166
- }
3167
-
3168
- interface PriceData {
3169
- /**
3170
- * 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).
3171
- */
3172
- currency: string;
3173
-
3174
- /**
3175
- * 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.
3176
- */
3177
- product?: string;
3178
-
3179
- /**
3180
- * Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
3181
- */
3182
- product_data?: PriceData.ProductData;
3183
-
3184
- /**
3185
- * The recurring components of a price such as `interval` and `interval_count`.
3186
- */
3187
- recurring?: PriceData.Recurring;
3188
-
3189
- /**
3190
- * Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
3191
- */
3192
- tax_behavior?: PriceData.TaxBehavior;
3193
-
3194
- /**
3195
- * A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
3196
- */
3197
- unit_amount?: number;
3198
-
3199
- /**
3200
- * Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
3201
- */
3202
- unit_amount_decimal?: string;
3203
- }
3204
-
3205
- namespace PriceData {
3206
- interface ProductData {
3207
- /**
3208
- * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
3209
- */
3210
- description?: string;
3211
-
3212
- /**
3213
- * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3214
- */
3215
- images?: Array<string>;
3216
-
3217
- /**
3218
- * 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`.
3219
- */
3220
- metadata?: Stripe.MetadataParam;
3221
-
3222
- /**
3223
- * The product's name, meant to be displayable to the customer.
3224
- */
3225
- name: string;
3226
-
3227
- /**
3228
- * A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
3229
- */
3230
- tax_code?: string;
3231
- }
3232
-
3233
- interface Recurring {
3234
- /**
3235
- * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
3236
- */
3237
- interval: Recurring.Interval;
3238
-
3239
- /**
3240
- * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
3241
- */
3242
- interval_count?: number;
3243
- }
3244
-
3245
- namespace Recurring {
3246
- type Interval = 'day' | 'month' | 'week' | 'year';
3247
- }
3248
-
3249
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3250
- }
3251
- }
3252
-
3253
2980
  interface ShippingOption {
3254
2981
  /**
3255
2982
  * The ID of the Shipping Rate to use for this shipping option.
@@ -3400,11 +3127,6 @@ declare module 'stripe' {
3400
3127
  */
3401
3128
  customer?: string;
3402
3129
 
3403
- /**
3404
- * Only return the Checkout Sessions for the Account specified.
3405
- */
3406
- customer_account?: string;
3407
-
3408
3130
  /**
3409
3131
  * Only return the Checkout Sessions for the Customer details specified.
3410
3132
  */