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
@@ -34,13 +34,6 @@ declare module 'stripe' {
34
34
  */
35
35
  customer?: string;
36
36
 
37
- /**
38
- * ID of the Account this SetupIntent belongs to, if one exists.
39
- *
40
- * If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
41
- */
42
- customer_account?: string;
43
-
44
37
  /**
45
38
  * An arbitrary string attached to the object. Often useful for displaying to users.
46
39
  */
@@ -95,7 +88,7 @@ declare module 'stripe' {
95
88
  payment_method_options?: SetupIntentCreateParams.PaymentMethodOptions;
96
89
 
97
90
  /**
98
- * The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
91
+ * The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
99
92
  */
100
93
  payment_method_types?: Array<string>;
101
94
 
@@ -268,6 +261,11 @@ declare module 'stripe' {
268
261
  */
269
262
  cashapp?: PaymentMethodData.Cashapp;
270
263
 
264
+ /**
265
+ * If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
266
+ */
267
+ crypto?: PaymentMethodData.Crypto;
268
+
271
269
  /**
272
270
  * If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
273
271
  */
@@ -288,21 +286,11 @@ declare module 'stripe' {
288
286
  */
289
287
  giropay?: PaymentMethodData.Giropay;
290
288
 
291
- /**
292
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
293
- */
294
- gopay?: PaymentMethodData.Gopay;
295
-
296
289
  /**
297
290
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
298
291
  */
299
292
  grabpay?: PaymentMethodData.Grabpay;
300
293
 
301
- /**
302
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
303
- */
304
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
305
-
306
294
  /**
307
295
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
308
296
  */
@@ -338,11 +326,6 @@ declare module 'stripe' {
338
326
  */
339
327
  link?: PaymentMethodData.Link;
340
328
 
341
- /**
342
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
343
- */
344
- mb_way?: PaymentMethodData.MbWay;
345
-
346
329
  /**
347
330
  * 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`.
348
331
  */
@@ -398,11 +381,6 @@ declare module 'stripe' {
398
381
  */
399
382
  paypal?: PaymentMethodData.Paypal;
400
383
 
401
- /**
402
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
403
- */
404
- payto?: PaymentMethodData.Payto;
405
-
406
384
  /**
407
385
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
408
386
  */
@@ -413,21 +391,11 @@ declare module 'stripe' {
413
391
  */
414
392
  promptpay?: PaymentMethodData.Promptpay;
415
393
 
416
- /**
417
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
418
- */
419
- qris?: PaymentMethodData.Qris;
420
-
421
394
  /**
422
395
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
423
396
  */
424
397
  radar_options?: PaymentMethodData.RadarOptions;
425
398
 
426
- /**
427
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
428
- */
429
- rechnung?: PaymentMethodData.Rechnung;
430
-
431
399
  /**
432
400
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
433
401
  */
@@ -448,21 +416,11 @@ declare module 'stripe' {
448
416
  */
449
417
  sepa_debit?: PaymentMethodData.SepaDebit;
450
418
 
451
- /**
452
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
453
- */
454
- shopeepay?: PaymentMethodData.Shopeepay;
455
-
456
419
  /**
457
420
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
458
421
  */
459
422
  sofort?: PaymentMethodData.Sofort;
460
423
 
461
- /**
462
- * This hash contains details about the Stripe balance payment method.
463
- */
464
- stripe_balance?: PaymentMethodData.StripeBalance;
465
-
466
424
  /**
467
425
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
468
426
  */
@@ -590,6 +548,8 @@ declare module 'stripe' {
590
548
 
591
549
  interface Cashapp {}
592
550
 
551
+ interface Crypto {}
552
+
593
553
  interface CustomerBalance {}
594
554
 
595
555
  interface Eps {
@@ -673,21 +633,8 @@ declare module 'stripe' {
673
633
 
674
634
  interface Giropay {}
675
635
 
676
- interface Gopay {}
677
-
678
636
  interface Grabpay {}
679
637
 
680
- interface IdBankTransfer {
681
- /**
682
- * Bank where the account is held.
683
- */
684
- bank?: IdBankTransfer.Bank;
685
- }
686
-
687
- namespace IdBankTransfer {
688
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
689
- }
690
-
691
638
  interface Ideal {
692
639
  /**
693
640
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -700,6 +647,7 @@ declare module 'stripe' {
700
647
  | 'abn_amro'
701
648
  | 'asn_bank'
702
649
  | 'bunq'
650
+ | 'buut'
703
651
  | 'handelsbanken'
704
652
  | 'ing'
705
653
  | 'knab'
@@ -751,8 +699,6 @@ declare module 'stripe' {
751
699
 
752
700
  interface Link {}
753
701
 
754
- interface MbWay {}
755
-
756
702
  interface Mobilepay {}
757
703
 
758
704
  interface Multibanco {}
@@ -844,29 +790,10 @@ declare module 'stripe' {
844
790
 
845
791
  interface Paypal {}
846
792
 
847
- interface Payto {
848
- /**
849
- * The account number for the bank account.
850
- */
851
- account_number?: string;
852
-
853
- /**
854
- * Bank-State-Branch number of the bank account.
855
- */
856
- bsb_number?: string;
857
-
858
- /**
859
- * The PayID alias for the bank account.
860
- */
861
- pay_id?: string;
862
- }
863
-
864
793
  interface Pix {}
865
794
 
866
795
  interface Promptpay {}
867
796
 
868
- interface Qris {}
869
-
870
797
  interface RadarOptions {
871
798
  /**
872
799
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -874,32 +801,6 @@ declare module 'stripe' {
874
801
  session?: string;
875
802
  }
876
803
 
877
- interface Rechnung {
878
- /**
879
- * Customer's date of birth
880
- */
881
- dob: Rechnung.Dob;
882
- }
883
-
884
- namespace Rechnung {
885
- interface Dob {
886
- /**
887
- * The day of birth, between 1 and 31.
888
- */
889
- day: number;
890
-
891
- /**
892
- * The month of birth, between 1 and 12.
893
- */
894
- month: number;
895
-
896
- /**
897
- * The four-digit year of birth.
898
- */
899
- year: number;
900
- }
901
- }
902
-
903
804
  interface RevolutPay {}
904
805
 
905
806
  interface SamsungPay {}
@@ -913,8 +814,6 @@ declare module 'stripe' {
913
814
  iban: string;
914
815
  }
915
816
 
916
- interface Shopeepay {}
917
-
918
817
  interface Sofort {
919
818
  /**
920
819
  * Two-letter ISO code representing the country the bank account is located in.
@@ -926,22 +825,6 @@ declare module 'stripe' {
926
825
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
927
826
  }
928
827
 
929
- interface StripeBalance {
930
- /**
931
- * The connected account ID whose Stripe balance to use as the source of payment
932
- */
933
- account?: string;
934
-
935
- /**
936
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
937
- */
938
- source_type?: StripeBalance.SourceType;
939
- }
940
-
941
- namespace StripeBalance {
942
- type SourceType = 'bank_account' | 'card' | 'fpx';
943
- }
944
-
945
828
  interface Swish {}
946
829
 
947
830
  interface Twint {}
@@ -960,20 +843,18 @@ declare module 'stripe' {
960
843
  | 'blik'
961
844
  | 'boleto'
962
845
  | 'cashapp'
846
+ | 'crypto'
963
847
  | 'customer_balance'
964
848
  | 'eps'
965
849
  | 'fpx'
966
850
  | 'giropay'
967
- | 'gopay'
968
851
  | 'grabpay'
969
- | 'id_bank_transfer'
970
852
  | 'ideal'
971
853
  | 'kakao_pay'
972
854
  | 'klarna'
973
855
  | 'konbini'
974
856
  | 'kr_card'
975
857
  | 'link'
976
- | 'mb_way'
977
858
  | 'mobilepay'
978
859
  | 'multibanco'
979
860
  | 'naver_pay'
@@ -984,18 +865,13 @@ declare module 'stripe' {
984
865
  | 'payco'
985
866
  | 'paynow'
986
867
  | 'paypal'
987
- | 'payto'
988
868
  | 'pix'
989
869
  | 'promptpay'
990
- | 'qris'
991
- | 'rechnung'
992
870
  | 'revolut_pay'
993
871
  | 'samsung_pay'
994
872
  | 'satispay'
995
873
  | 'sepa_debit'
996
- | 'shopeepay'
997
874
  | 'sofort'
998
- | 'stripe_balance'
999
875
  | 'swish'
1000
876
  | 'twint'
1001
877
  | 'us_bank_account'
@@ -1066,6 +942,11 @@ declare module 'stripe' {
1066
942
  */
1067
943
  card_present?: PaymentMethodOptions.CardPresent;
1068
944
 
945
+ /**
946
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
947
+ */
948
+ klarna?: PaymentMethodOptions.Klarna;
949
+
1069
950
  /**
1070
951
  * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1071
952
  */
@@ -1076,11 +957,6 @@ declare module 'stripe' {
1076
957
  */
1077
958
  paypal?: PaymentMethodOptions.Paypal;
1078
959
 
1079
- /**
1080
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
1081
- */
1082
- payto?: PaymentMethodOptions.Payto;
1083
-
1084
960
  /**
1085
961
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1086
962
  */
@@ -1369,101 +1245,167 @@ declare module 'stripe' {
1369
1245
 
1370
1246
  interface CardPresent {}
1371
1247
 
1372
- interface Link {
1248
+ interface Klarna {
1373
1249
  /**
1374
- * [Deprecated] This is a legacy parameter that no longer has any function.
1375
- * @deprecated
1250
+ * The currency of the SetupIntent. Three letter ISO currency code.
1376
1251
  */
1377
- persistent_token?: string;
1378
- }
1252
+ currency?: string;
1379
1253
 
1380
- interface Paypal {
1381
1254
  /**
1382
- * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1255
+ * On-demand details if setting up a payment method for on-demand payments.
1383
1256
  */
1384
- billing_agreement_id?: string;
1385
-
1386
- currency?: string;
1257
+ on_demand?: Klarna.OnDemand;
1387
1258
 
1388
1259
  /**
1389
- * 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.
1260
+ * Preferred language of the Klarna authorization page that the customer is redirected to
1390
1261
  */
1391
- subsellers?: Array<string>;
1392
- }
1262
+ preferred_locale?: Klarna.PreferredLocale;
1393
1263
 
1394
- interface Payto {
1395
1264
  /**
1396
- * Additional fields for Mandate creation.
1265
+ * Subscription details if setting up or charging a subscription
1397
1266
  */
1398
- mandate_options?: Payto.MandateOptions;
1267
+ subscriptions?: Stripe.Emptyable<Array<Klarna.Subscription>>;
1399
1268
  }
1400
1269
 
1401
- namespace Payto {
1402
- interface MandateOptions {
1270
+ namespace Klarna {
1271
+ interface OnDemand {
1403
1272
  /**
1404
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1273
+ * Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1405
1274
  */
1406
- amount?: number;
1275
+ average_amount?: number;
1407
1276
 
1408
1277
  /**
1409
- * 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.
1278
+ * The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1410
1279
  */
1411
- amount_type?: MandateOptions.AmountType;
1280
+ maximum_amount?: number;
1412
1281
 
1413
1282
  /**
1414
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1283
+ * The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1415
1284
  */
1416
- end_date?: string;
1285
+ minimum_amount?: number;
1417
1286
 
1418
1287
  /**
1419
- * The periodicity at which payments will be collected.
1288
+ * Interval at which the customer is making purchases
1420
1289
  */
1421
- payment_schedule?: MandateOptions.PaymentSchedule;
1290
+ purchase_interval?: OnDemand.PurchaseInterval;
1291
+
1292
+ /**
1293
+ * The number of `purchase_interval` between charges
1294
+ */
1295
+ purchase_interval_count?: number;
1296
+ }
1297
+
1298
+ namespace OnDemand {
1299
+ type PurchaseInterval = 'day' | 'month' | 'week' | 'year';
1300
+ }
1301
+
1302
+ type PreferredLocale =
1303
+ | 'cs-CZ'
1304
+ | 'da-DK'
1305
+ | 'de-AT'
1306
+ | 'de-CH'
1307
+ | 'de-DE'
1308
+ | 'el-GR'
1309
+ | 'en-AT'
1310
+ | 'en-AU'
1311
+ | 'en-BE'
1312
+ | 'en-CA'
1313
+ | 'en-CH'
1314
+ | 'en-CZ'
1315
+ | 'en-DE'
1316
+ | 'en-DK'
1317
+ | 'en-ES'
1318
+ | 'en-FI'
1319
+ | 'en-FR'
1320
+ | 'en-GB'
1321
+ | 'en-GR'
1322
+ | 'en-IE'
1323
+ | 'en-IT'
1324
+ | 'en-NL'
1325
+ | 'en-NO'
1326
+ | 'en-NZ'
1327
+ | 'en-PL'
1328
+ | 'en-PT'
1329
+ | 'en-RO'
1330
+ | 'en-SE'
1331
+ | 'en-US'
1332
+ | 'es-ES'
1333
+ | 'es-US'
1334
+ | 'fi-FI'
1335
+ | 'fr-BE'
1336
+ | 'fr-CA'
1337
+ | 'fr-CH'
1338
+ | 'fr-FR'
1339
+ | 'it-CH'
1340
+ | 'it-IT'
1341
+ | 'nb-NO'
1342
+ | 'nl-BE'
1343
+ | 'nl-NL'
1344
+ | 'pl-PL'
1345
+ | 'pt-PT'
1346
+ | 'ro-RO'
1347
+ | 'sv-FI'
1348
+ | 'sv-SE';
1349
+
1350
+ interface Subscription {
1351
+ /**
1352
+ * Unit of time between subscription charges.
1353
+ */
1354
+ interval: Subscription.Interval;
1355
+
1356
+ /**
1357
+ * The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1358
+ */
1359
+ interval_count?: number;
1422
1360
 
1423
1361
  /**
1424
- * 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.
1362
+ * Name for subscription.
1425
1363
  */
1426
- payments_per_period?: number;
1364
+ name?: string;
1427
1365
 
1428
1366
  /**
1429
- * The purpose for which payments are made. Defaults to retail.
1367
+ * Describes the upcoming charge for this subscription.
1430
1368
  */
1431
- purpose?: MandateOptions.Purpose;
1369
+ next_billing: Subscription.NextBilling;
1432
1370
 
1433
1371
  /**
1434
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1372
+ * A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1435
1373
  */
1436
- start_date?: string;
1374
+ reference: string;
1437
1375
  }
1438
1376
 
1439
- namespace MandateOptions {
1440
- type AmountType = 'fixed' | 'maximum';
1377
+ namespace Subscription {
1378
+ type Interval = 'day' | 'month' | 'week' | 'year';
1379
+
1380
+ interface NextBilling {
1381
+ /**
1382
+ * The amount of the next charge for the subscription.
1383
+ */
1384
+ amount: number;
1441
1385
 
1442
- type PaymentSchedule =
1443
- | 'adhoc'
1444
- | 'annual'
1445
- | 'daily'
1446
- | 'fortnightly'
1447
- | 'monthly'
1448
- | 'quarterly'
1449
- | 'semi_annual'
1450
- | 'weekly';
1451
-
1452
- type Purpose =
1453
- | 'dependant_support'
1454
- | 'government'
1455
- | 'loan'
1456
- | 'mortgage'
1457
- | 'other'
1458
- | 'pension'
1459
- | 'personal'
1460
- | 'retail'
1461
- | 'salary'
1462
- | 'tax'
1463
- | 'utility';
1386
+ /**
1387
+ * The date of the next charge for the subscription in YYYY-MM-DD format.
1388
+ */
1389
+ date: string;
1390
+ }
1464
1391
  }
1465
1392
  }
1466
1393
 
1394
+ interface Link {
1395
+ /**
1396
+ * [Deprecated] This is a legacy parameter that no longer has any function.
1397
+ * @deprecated
1398
+ */
1399
+ persistent_token?: string;
1400
+ }
1401
+
1402
+ interface Paypal {
1403
+ /**
1404
+ * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1405
+ */
1406
+ billing_agreement_id?: string;
1407
+ }
1408
+
1467
1409
  interface SepaDebit {
1468
1410
  /**
1469
1411
  * Additional fields for Mandate creation
@@ -1509,11 +1451,6 @@ declare module 'stripe' {
1509
1451
  */
1510
1452
  filters?: FinancialConnections.Filters;
1511
1453
 
1512
- /**
1513
- * Customize manual entry behavior
1514
- */
1515
- manual_entry?: FinancialConnections.ManualEntry;
1516
-
1517
1454
  /**
1518
1455
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1519
1456
  */
@@ -1536,39 +1473,19 @@ declare module 'stripe' {
1536
1473
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1537
1474
  */
1538
1475
  account_subcategories?: Array<Filters.AccountSubcategory>;
1539
-
1540
- /**
1541
- * ID of the institution to use to filter for selectable accounts.
1542
- */
1543
- institution?: string;
1544
1476
  }
1545
1477
 
1546
1478
  namespace Filters {
1547
1479
  type AccountSubcategory = 'checking' | 'savings';
1548
1480
  }
1549
1481
 
1550
- interface ManualEntry {
1551
- /**
1552
- * Settings for configuring manual entry of account details.
1553
- */
1554
- mode: ManualEntry.Mode;
1555
- }
1556
-
1557
- namespace ManualEntry {
1558
- type Mode = 'automatic' | 'custom';
1559
- }
1560
-
1561
1482
  type Permission =
1562
1483
  | 'balances'
1563
1484
  | 'ownership'
1564
1485
  | 'payment_method'
1565
1486
  | 'transactions';
1566
1487
 
1567
- type Prefetch =
1568
- | 'balances'
1569
- | 'inferred_balances'
1570
- | 'ownership'
1571
- | 'transactions';
1488
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1572
1489
  }
1573
1490
 
1574
1491
  interface MandateOptions {
@@ -1635,13 +1552,6 @@ declare module 'stripe' {
1635
1552
  */
1636
1553
  customer?: string;
1637
1554
 
1638
- /**
1639
- * ID of the Account this SetupIntent belongs to, if one exists.
1640
- *
1641
- * If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
1642
- */
1643
- customer_account?: string;
1644
-
1645
1555
  /**
1646
1556
  * An arbitrary string attached to the object. Often useful for displaying to users.
1647
1557
  */
@@ -1686,7 +1596,7 @@ declare module 'stripe' {
1686
1596
  payment_method_options?: SetupIntentUpdateParams.PaymentMethodOptions;
1687
1597
 
1688
1598
  /**
1689
- * The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
1599
+ * The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
1690
1600
  */
1691
1601
  payment_method_types?: Array<string>;
1692
1602
  }
@@ -1770,6 +1680,11 @@ declare module 'stripe' {
1770
1680
  */
1771
1681
  cashapp?: PaymentMethodData.Cashapp;
1772
1682
 
1683
+ /**
1684
+ * If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
1685
+ */
1686
+ crypto?: PaymentMethodData.Crypto;
1687
+
1773
1688
  /**
1774
1689
  * If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1775
1690
  */
@@ -1790,21 +1705,11 @@ declare module 'stripe' {
1790
1705
  */
1791
1706
  giropay?: PaymentMethodData.Giropay;
1792
1707
 
1793
- /**
1794
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1795
- */
1796
- gopay?: PaymentMethodData.Gopay;
1797
-
1798
1708
  /**
1799
1709
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1800
1710
  */
1801
1711
  grabpay?: PaymentMethodData.Grabpay;
1802
1712
 
1803
- /**
1804
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1805
- */
1806
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
1807
-
1808
1713
  /**
1809
1714
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1810
1715
  */
@@ -1840,11 +1745,6 @@ declare module 'stripe' {
1840
1745
  */
1841
1746
  link?: PaymentMethodData.Link;
1842
1747
 
1843
- /**
1844
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1845
- */
1846
- mb_way?: PaymentMethodData.MbWay;
1847
-
1848
1748
  /**
1849
1749
  * 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`.
1850
1750
  */
@@ -1900,11 +1800,6 @@ declare module 'stripe' {
1900
1800
  */
1901
1801
  paypal?: PaymentMethodData.Paypal;
1902
1802
 
1903
- /**
1904
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1905
- */
1906
- payto?: PaymentMethodData.Payto;
1907
-
1908
1803
  /**
1909
1804
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1910
1805
  */
@@ -1915,21 +1810,11 @@ declare module 'stripe' {
1915
1810
  */
1916
1811
  promptpay?: PaymentMethodData.Promptpay;
1917
1812
 
1918
- /**
1919
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1920
- */
1921
- qris?: PaymentMethodData.Qris;
1922
-
1923
1813
  /**
1924
1814
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1925
1815
  */
1926
1816
  radar_options?: PaymentMethodData.RadarOptions;
1927
1817
 
1928
- /**
1929
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1930
- */
1931
- rechnung?: PaymentMethodData.Rechnung;
1932
-
1933
1818
  /**
1934
1819
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1935
1820
  */
@@ -1950,21 +1835,11 @@ declare module 'stripe' {
1950
1835
  */
1951
1836
  sepa_debit?: PaymentMethodData.SepaDebit;
1952
1837
 
1953
- /**
1954
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1955
- */
1956
- shopeepay?: PaymentMethodData.Shopeepay;
1957
-
1958
1838
  /**
1959
1839
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1960
1840
  */
1961
1841
  sofort?: PaymentMethodData.Sofort;
1962
1842
 
1963
- /**
1964
- * This hash contains details about the Stripe balance payment method.
1965
- */
1966
- stripe_balance?: PaymentMethodData.StripeBalance;
1967
-
1968
1843
  /**
1969
1844
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1970
1845
  */
@@ -2092,6 +1967,8 @@ declare module 'stripe' {
2092
1967
 
2093
1968
  interface Cashapp {}
2094
1969
 
1970
+ interface Crypto {}
1971
+
2095
1972
  interface CustomerBalance {}
2096
1973
 
2097
1974
  interface Eps {
@@ -2175,21 +2052,8 @@ declare module 'stripe' {
2175
2052
 
2176
2053
  interface Giropay {}
2177
2054
 
2178
- interface Gopay {}
2179
-
2180
2055
  interface Grabpay {}
2181
2056
 
2182
- interface IdBankTransfer {
2183
- /**
2184
- * Bank where the account is held.
2185
- */
2186
- bank?: IdBankTransfer.Bank;
2187
- }
2188
-
2189
- namespace IdBankTransfer {
2190
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
2191
- }
2192
-
2193
2057
  interface Ideal {
2194
2058
  /**
2195
2059
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -2202,6 +2066,7 @@ declare module 'stripe' {
2202
2066
  | 'abn_amro'
2203
2067
  | 'asn_bank'
2204
2068
  | 'bunq'
2069
+ | 'buut'
2205
2070
  | 'handelsbanken'
2206
2071
  | 'ing'
2207
2072
  | 'knab'
@@ -2253,8 +2118,6 @@ declare module 'stripe' {
2253
2118
 
2254
2119
  interface Link {}
2255
2120
 
2256
- interface MbWay {}
2257
-
2258
2121
  interface Mobilepay {}
2259
2122
 
2260
2123
  interface Multibanco {}
@@ -2346,29 +2209,10 @@ declare module 'stripe' {
2346
2209
 
2347
2210
  interface Paypal {}
2348
2211
 
2349
- interface Payto {
2350
- /**
2351
- * The account number for the bank account.
2352
- */
2353
- account_number?: string;
2354
-
2355
- /**
2356
- * Bank-State-Branch number of the bank account.
2357
- */
2358
- bsb_number?: string;
2359
-
2360
- /**
2361
- * The PayID alias for the bank account.
2362
- */
2363
- pay_id?: string;
2364
- }
2365
-
2366
2212
  interface Pix {}
2367
2213
 
2368
2214
  interface Promptpay {}
2369
2215
 
2370
- interface Qris {}
2371
-
2372
2216
  interface RadarOptions {
2373
2217
  /**
2374
2218
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -2376,32 +2220,6 @@ declare module 'stripe' {
2376
2220
  session?: string;
2377
2221
  }
2378
2222
 
2379
- interface Rechnung {
2380
- /**
2381
- * Customer's date of birth
2382
- */
2383
- dob: Rechnung.Dob;
2384
- }
2385
-
2386
- namespace Rechnung {
2387
- interface Dob {
2388
- /**
2389
- * The day of birth, between 1 and 31.
2390
- */
2391
- day: number;
2392
-
2393
- /**
2394
- * The month of birth, between 1 and 12.
2395
- */
2396
- month: number;
2397
-
2398
- /**
2399
- * The four-digit year of birth.
2400
- */
2401
- year: number;
2402
- }
2403
- }
2404
-
2405
2223
  interface RevolutPay {}
2406
2224
 
2407
2225
  interface SamsungPay {}
@@ -2415,8 +2233,6 @@ declare module 'stripe' {
2415
2233
  iban: string;
2416
2234
  }
2417
2235
 
2418
- interface Shopeepay {}
2419
-
2420
2236
  interface Sofort {
2421
2237
  /**
2422
2238
  * Two-letter ISO code representing the country the bank account is located in.
@@ -2428,22 +2244,6 @@ declare module 'stripe' {
2428
2244
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
2429
2245
  }
2430
2246
 
2431
- interface StripeBalance {
2432
- /**
2433
- * The connected account ID whose Stripe balance to use as the source of payment
2434
- */
2435
- account?: string;
2436
-
2437
- /**
2438
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2439
- */
2440
- source_type?: StripeBalance.SourceType;
2441
- }
2442
-
2443
- namespace StripeBalance {
2444
- type SourceType = 'bank_account' | 'card' | 'fpx';
2445
- }
2446
-
2447
2247
  interface Swish {}
2448
2248
 
2449
2249
  interface Twint {}
@@ -2462,20 +2262,18 @@ declare module 'stripe' {
2462
2262
  | 'blik'
2463
2263
  | 'boleto'
2464
2264
  | 'cashapp'
2265
+ | 'crypto'
2465
2266
  | 'customer_balance'
2466
2267
  | 'eps'
2467
2268
  | 'fpx'
2468
2269
  | 'giropay'
2469
- | 'gopay'
2470
2270
  | 'grabpay'
2471
- | 'id_bank_transfer'
2472
2271
  | 'ideal'
2473
2272
  | 'kakao_pay'
2474
2273
  | 'klarna'
2475
2274
  | 'konbini'
2476
2275
  | 'kr_card'
2477
2276
  | 'link'
2478
- | 'mb_way'
2479
2277
  | 'mobilepay'
2480
2278
  | 'multibanco'
2481
2279
  | 'naver_pay'
@@ -2486,18 +2284,13 @@ declare module 'stripe' {
2486
2284
  | 'payco'
2487
2285
  | 'paynow'
2488
2286
  | 'paypal'
2489
- | 'payto'
2490
2287
  | 'pix'
2491
2288
  | 'promptpay'
2492
- | 'qris'
2493
- | 'rechnung'
2494
2289
  | 'revolut_pay'
2495
2290
  | 'samsung_pay'
2496
2291
  | 'satispay'
2497
2292
  | 'sepa_debit'
2498
- | 'shopeepay'
2499
2293
  | 'sofort'
2500
- | 'stripe_balance'
2501
2294
  | 'swish'
2502
2295
  | 'twint'
2503
2296
  | 'us_bank_account'
@@ -2568,6 +2361,11 @@ declare module 'stripe' {
2568
2361
  */
2569
2362
  card_present?: PaymentMethodOptions.CardPresent;
2570
2363
 
2364
+ /**
2365
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
2366
+ */
2367
+ klarna?: PaymentMethodOptions.Klarna;
2368
+
2571
2369
  /**
2572
2370
  * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2573
2371
  */
@@ -2578,11 +2376,6 @@ declare module 'stripe' {
2578
2376
  */
2579
2377
  paypal?: PaymentMethodOptions.Paypal;
2580
2378
 
2581
- /**
2582
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2583
- */
2584
- payto?: PaymentMethodOptions.Payto;
2585
-
2586
2379
  /**
2587
2380
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2588
2381
  */
@@ -2871,101 +2664,167 @@ declare module 'stripe' {
2871
2664
 
2872
2665
  interface CardPresent {}
2873
2666
 
2874
- interface Link {
2667
+ interface Klarna {
2875
2668
  /**
2876
- * [Deprecated] This is a legacy parameter that no longer has any function.
2877
- * @deprecated
2669
+ * The currency of the SetupIntent. Three letter ISO currency code.
2878
2670
  */
2879
- persistent_token?: string;
2880
- }
2671
+ currency?: string;
2881
2672
 
2882
- interface Paypal {
2883
2673
  /**
2884
- * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2674
+ * On-demand details if setting up a payment method for on-demand payments.
2885
2675
  */
2886
- billing_agreement_id?: string;
2887
-
2888
- currency?: string;
2676
+ on_demand?: Klarna.OnDemand;
2889
2677
 
2890
2678
  /**
2891
- * 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.
2679
+ * Preferred language of the Klarna authorization page that the customer is redirected to
2892
2680
  */
2893
- subsellers?: Array<string>;
2894
- }
2681
+ preferred_locale?: Klarna.PreferredLocale;
2895
2682
 
2896
- interface Payto {
2897
2683
  /**
2898
- * Additional fields for Mandate creation.
2684
+ * Subscription details if setting up or charging a subscription
2899
2685
  */
2900
- mandate_options?: Payto.MandateOptions;
2686
+ subscriptions?: Stripe.Emptyable<Array<Klarna.Subscription>>;
2901
2687
  }
2902
2688
 
2903
- namespace Payto {
2904
- interface MandateOptions {
2689
+ namespace Klarna {
2690
+ interface OnDemand {
2905
2691
  /**
2906
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2692
+ * Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
2907
2693
  */
2908
- amount?: number;
2694
+ average_amount?: number;
2909
2695
 
2910
2696
  /**
2911
- * 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.
2697
+ * The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
2912
2698
  */
2913
- amount_type?: MandateOptions.AmountType;
2699
+ maximum_amount?: number;
2914
2700
 
2915
2701
  /**
2916
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2702
+ * The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
2917
2703
  */
2918
- end_date?: string;
2704
+ minimum_amount?: number;
2919
2705
 
2920
2706
  /**
2921
- * The periodicity at which payments will be collected.
2707
+ * Interval at which the customer is making purchases
2922
2708
  */
2923
- payment_schedule?: MandateOptions.PaymentSchedule;
2709
+ purchase_interval?: OnDemand.PurchaseInterval;
2924
2710
 
2925
2711
  /**
2926
- * 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.
2712
+ * The number of `purchase_interval` between charges
2713
+ */
2714
+ purchase_interval_count?: number;
2715
+ }
2716
+
2717
+ namespace OnDemand {
2718
+ type PurchaseInterval = 'day' | 'month' | 'week' | 'year';
2719
+ }
2720
+
2721
+ type PreferredLocale =
2722
+ | 'cs-CZ'
2723
+ | 'da-DK'
2724
+ | 'de-AT'
2725
+ | 'de-CH'
2726
+ | 'de-DE'
2727
+ | 'el-GR'
2728
+ | 'en-AT'
2729
+ | 'en-AU'
2730
+ | 'en-BE'
2731
+ | 'en-CA'
2732
+ | 'en-CH'
2733
+ | 'en-CZ'
2734
+ | 'en-DE'
2735
+ | 'en-DK'
2736
+ | 'en-ES'
2737
+ | 'en-FI'
2738
+ | 'en-FR'
2739
+ | 'en-GB'
2740
+ | 'en-GR'
2741
+ | 'en-IE'
2742
+ | 'en-IT'
2743
+ | 'en-NL'
2744
+ | 'en-NO'
2745
+ | 'en-NZ'
2746
+ | 'en-PL'
2747
+ | 'en-PT'
2748
+ | 'en-RO'
2749
+ | 'en-SE'
2750
+ | 'en-US'
2751
+ | 'es-ES'
2752
+ | 'es-US'
2753
+ | 'fi-FI'
2754
+ | 'fr-BE'
2755
+ | 'fr-CA'
2756
+ | 'fr-CH'
2757
+ | 'fr-FR'
2758
+ | 'it-CH'
2759
+ | 'it-IT'
2760
+ | 'nb-NO'
2761
+ | 'nl-BE'
2762
+ | 'nl-NL'
2763
+ | 'pl-PL'
2764
+ | 'pt-PT'
2765
+ | 'ro-RO'
2766
+ | 'sv-FI'
2767
+ | 'sv-SE';
2768
+
2769
+ interface Subscription {
2770
+ /**
2771
+ * Unit of time between subscription charges.
2772
+ */
2773
+ interval: Subscription.Interval;
2774
+
2775
+ /**
2776
+ * The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
2927
2777
  */
2928
- payments_per_period?: number;
2778
+ interval_count?: number;
2929
2779
 
2930
2780
  /**
2931
- * The purpose for which payments are made. Defaults to retail.
2781
+ * Name for subscription.
2932
2782
  */
2933
- purpose?: MandateOptions.Purpose;
2783
+ name?: string;
2934
2784
 
2935
2785
  /**
2936
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2786
+ * Describes the upcoming charge for this subscription.
2937
2787
  */
2938
- start_date?: string;
2788
+ next_billing: Subscription.NextBilling;
2789
+
2790
+ /**
2791
+ * A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
2792
+ */
2793
+ reference: string;
2939
2794
  }
2940
2795
 
2941
- namespace MandateOptions {
2942
- type AmountType = 'fixed' | 'maximum';
2796
+ namespace Subscription {
2797
+ type Interval = 'day' | 'month' | 'week' | 'year';
2943
2798
 
2944
- type PaymentSchedule =
2945
- | 'adhoc'
2946
- | 'annual'
2947
- | 'daily'
2948
- | 'fortnightly'
2949
- | 'monthly'
2950
- | 'quarterly'
2951
- | 'semi_annual'
2952
- | 'weekly';
2953
-
2954
- type Purpose =
2955
- | 'dependant_support'
2956
- | 'government'
2957
- | 'loan'
2958
- | 'mortgage'
2959
- | 'other'
2960
- | 'pension'
2961
- | 'personal'
2962
- | 'retail'
2963
- | 'salary'
2964
- | 'tax'
2965
- | 'utility';
2799
+ interface NextBilling {
2800
+ /**
2801
+ * The amount of the next charge for the subscription.
2802
+ */
2803
+ amount: number;
2804
+
2805
+ /**
2806
+ * The date of the next charge for the subscription in YYYY-MM-DD format.
2807
+ */
2808
+ date: string;
2809
+ }
2966
2810
  }
2967
2811
  }
2968
2812
 
2813
+ interface Link {
2814
+ /**
2815
+ * [Deprecated] This is a legacy parameter that no longer has any function.
2816
+ * @deprecated
2817
+ */
2818
+ persistent_token?: string;
2819
+ }
2820
+
2821
+ interface Paypal {
2822
+ /**
2823
+ * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2824
+ */
2825
+ billing_agreement_id?: string;
2826
+ }
2827
+
2969
2828
  interface SepaDebit {
2970
2829
  /**
2971
2830
  * Additional fields for Mandate creation
@@ -3011,11 +2870,6 @@ declare module 'stripe' {
3011
2870
  */
3012
2871
  filters?: FinancialConnections.Filters;
3013
2872
 
3014
- /**
3015
- * Customize manual entry behavior
3016
- */
3017
- manual_entry?: FinancialConnections.ManualEntry;
3018
-
3019
2873
  /**
3020
2874
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
3021
2875
  */
@@ -3038,39 +2892,19 @@ declare module 'stripe' {
3038
2892
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3039
2893
  */
3040
2894
  account_subcategories?: Array<Filters.AccountSubcategory>;
3041
-
3042
- /**
3043
- * ID of the institution to use to filter for selectable accounts.
3044
- */
3045
- institution?: string;
3046
2895
  }
3047
2896
 
3048
2897
  namespace Filters {
3049
2898
  type AccountSubcategory = 'checking' | 'savings';
3050
2899
  }
3051
2900
 
3052
- interface ManualEntry {
3053
- /**
3054
- * Settings for configuring manual entry of account details.
3055
- */
3056
- mode: ManualEntry.Mode;
3057
- }
3058
-
3059
- namespace ManualEntry {
3060
- type Mode = 'automatic' | 'custom';
3061
- }
3062
-
3063
2901
  type Permission =
3064
2902
  | 'balances'
3065
2903
  | 'ownership'
3066
2904
  | 'payment_method'
3067
2905
  | 'transactions';
3068
2906
 
3069
- type Prefetch =
3070
- | 'balances'
3071
- | 'inferred_balances'
3072
- | 'ownership'
3073
- | 'transactions';
2907
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
3074
2908
  }
3075
2909
 
3076
2910
  interface MandateOptions {
@@ -3114,11 +2948,6 @@ declare module 'stripe' {
3114
2948
  */
3115
2949
  customer?: string;
3116
2950
 
3117
- /**
3118
- * Only return SetupIntents for the account specified by this customer ID.
3119
- */
3120
- customer_account?: string;
3121
-
3122
2951
  /**
3123
2952
  * Specifies which fields in the response should be expanded.
3124
2953
  */
@@ -3319,6 +3148,11 @@ declare module 'stripe' {
3319
3148
  */
3320
3149
  cashapp?: PaymentMethodData.Cashapp;
3321
3150
 
3151
+ /**
3152
+ * If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
3153
+ */
3154
+ crypto?: PaymentMethodData.Crypto;
3155
+
3322
3156
  /**
3323
3157
  * If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
3324
3158
  */
@@ -3339,21 +3173,11 @@ declare module 'stripe' {
3339
3173
  */
3340
3174
  giropay?: PaymentMethodData.Giropay;
3341
3175
 
3342
- /**
3343
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
3344
- */
3345
- gopay?: PaymentMethodData.Gopay;
3346
-
3347
3176
  /**
3348
3177
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
3349
3178
  */
3350
3179
  grabpay?: PaymentMethodData.Grabpay;
3351
3180
 
3352
- /**
3353
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
3354
- */
3355
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
3356
-
3357
3181
  /**
3358
3182
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
3359
3183
  */
@@ -3389,11 +3213,6 @@ declare module 'stripe' {
3389
3213
  */
3390
3214
  link?: PaymentMethodData.Link;
3391
3215
 
3392
- /**
3393
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
3394
- */
3395
- mb_way?: PaymentMethodData.MbWay;
3396
-
3397
3216
  /**
3398
3217
  * 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`.
3399
3218
  */
@@ -3449,11 +3268,6 @@ declare module 'stripe' {
3449
3268
  */
3450
3269
  paypal?: PaymentMethodData.Paypal;
3451
3270
 
3452
- /**
3453
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
3454
- */
3455
- payto?: PaymentMethodData.Payto;
3456
-
3457
3271
  /**
3458
3272
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
3459
3273
  */
@@ -3464,21 +3278,11 @@ declare module 'stripe' {
3464
3278
  */
3465
3279
  promptpay?: PaymentMethodData.Promptpay;
3466
3280
 
3467
- /**
3468
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
3469
- */
3470
- qris?: PaymentMethodData.Qris;
3471
-
3472
3281
  /**
3473
3282
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
3474
3283
  */
3475
3284
  radar_options?: PaymentMethodData.RadarOptions;
3476
3285
 
3477
- /**
3478
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3479
- */
3480
- rechnung?: PaymentMethodData.Rechnung;
3481
-
3482
3286
  /**
3483
3287
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3484
3288
  */
@@ -3499,21 +3303,11 @@ declare module 'stripe' {
3499
3303
  */
3500
3304
  sepa_debit?: PaymentMethodData.SepaDebit;
3501
3305
 
3502
- /**
3503
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
3504
- */
3505
- shopeepay?: PaymentMethodData.Shopeepay;
3506
-
3507
3306
  /**
3508
3307
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
3509
3308
  */
3510
3309
  sofort?: PaymentMethodData.Sofort;
3511
3310
 
3512
- /**
3513
- * This hash contains details about the Stripe balance payment method.
3514
- */
3515
- stripe_balance?: PaymentMethodData.StripeBalance;
3516
-
3517
3311
  /**
3518
3312
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
3519
3313
  */
@@ -3641,6 +3435,8 @@ declare module 'stripe' {
3641
3435
 
3642
3436
  interface Cashapp {}
3643
3437
 
3438
+ interface Crypto {}
3439
+
3644
3440
  interface CustomerBalance {}
3645
3441
 
3646
3442
  interface Eps {
@@ -3724,21 +3520,8 @@ declare module 'stripe' {
3724
3520
 
3725
3521
  interface Giropay {}
3726
3522
 
3727
- interface Gopay {}
3728
-
3729
3523
  interface Grabpay {}
3730
3524
 
3731
- interface IdBankTransfer {
3732
- /**
3733
- * Bank where the account is held.
3734
- */
3735
- bank?: IdBankTransfer.Bank;
3736
- }
3737
-
3738
- namespace IdBankTransfer {
3739
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
3740
- }
3741
-
3742
3525
  interface Ideal {
3743
3526
  /**
3744
3527
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -3751,6 +3534,7 @@ declare module 'stripe' {
3751
3534
  | 'abn_amro'
3752
3535
  | 'asn_bank'
3753
3536
  | 'bunq'
3537
+ | 'buut'
3754
3538
  | 'handelsbanken'
3755
3539
  | 'ing'
3756
3540
  | 'knab'
@@ -3802,8 +3586,6 @@ declare module 'stripe' {
3802
3586
 
3803
3587
  interface Link {}
3804
3588
 
3805
- interface MbWay {}
3806
-
3807
3589
  interface Mobilepay {}
3808
3590
 
3809
3591
  interface Multibanco {}
@@ -3895,29 +3677,10 @@ declare module 'stripe' {
3895
3677
 
3896
3678
  interface Paypal {}
3897
3679
 
3898
- interface Payto {
3899
- /**
3900
- * The account number for the bank account.
3901
- */
3902
- account_number?: string;
3903
-
3904
- /**
3905
- * Bank-State-Branch number of the bank account.
3906
- */
3907
- bsb_number?: string;
3908
-
3909
- /**
3910
- * The PayID alias for the bank account.
3911
- */
3912
- pay_id?: string;
3913
- }
3914
-
3915
3680
  interface Pix {}
3916
3681
 
3917
3682
  interface Promptpay {}
3918
3683
 
3919
- interface Qris {}
3920
-
3921
3684
  interface RadarOptions {
3922
3685
  /**
3923
3686
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -3925,32 +3688,6 @@ declare module 'stripe' {
3925
3688
  session?: string;
3926
3689
  }
3927
3690
 
3928
- interface Rechnung {
3929
- /**
3930
- * Customer's date of birth
3931
- */
3932
- dob: Rechnung.Dob;
3933
- }
3934
-
3935
- namespace Rechnung {
3936
- interface Dob {
3937
- /**
3938
- * The day of birth, between 1 and 31.
3939
- */
3940
- day: number;
3941
-
3942
- /**
3943
- * The month of birth, between 1 and 12.
3944
- */
3945
- month: number;
3946
-
3947
- /**
3948
- * The four-digit year of birth.
3949
- */
3950
- year: number;
3951
- }
3952
- }
3953
-
3954
3691
  interface RevolutPay {}
3955
3692
 
3956
3693
  interface SamsungPay {}
@@ -3964,8 +3701,6 @@ declare module 'stripe' {
3964
3701
  iban: string;
3965
3702
  }
3966
3703
 
3967
- interface Shopeepay {}
3968
-
3969
3704
  interface Sofort {
3970
3705
  /**
3971
3706
  * Two-letter ISO code representing the country the bank account is located in.
@@ -3977,22 +3712,6 @@ declare module 'stripe' {
3977
3712
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
3978
3713
  }
3979
3714
 
3980
- interface StripeBalance {
3981
- /**
3982
- * The connected account ID whose Stripe balance to use as the source of payment
3983
- */
3984
- account?: string;
3985
-
3986
- /**
3987
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
3988
- */
3989
- source_type?: StripeBalance.SourceType;
3990
- }
3991
-
3992
- namespace StripeBalance {
3993
- type SourceType = 'bank_account' | 'card' | 'fpx';
3994
- }
3995
-
3996
3715
  interface Swish {}
3997
3716
 
3998
3717
  interface Twint {}
@@ -4011,20 +3730,18 @@ declare module 'stripe' {
4011
3730
  | 'blik'
4012
3731
  | 'boleto'
4013
3732
  | 'cashapp'
3733
+ | 'crypto'
4014
3734
  | 'customer_balance'
4015
3735
  | 'eps'
4016
3736
  | 'fpx'
4017
3737
  | 'giropay'
4018
- | 'gopay'
4019
3738
  | 'grabpay'
4020
- | 'id_bank_transfer'
4021
3739
  | 'ideal'
4022
3740
  | 'kakao_pay'
4023
3741
  | 'klarna'
4024
3742
  | 'konbini'
4025
3743
  | 'kr_card'
4026
3744
  | 'link'
4027
- | 'mb_way'
4028
3745
  | 'mobilepay'
4029
3746
  | 'multibanco'
4030
3747
  | 'naver_pay'
@@ -4035,18 +3752,13 @@ declare module 'stripe' {
4035
3752
  | 'payco'
4036
3753
  | 'paynow'
4037
3754
  | 'paypal'
4038
- | 'payto'
4039
3755
  | 'pix'
4040
3756
  | 'promptpay'
4041
- | 'qris'
4042
- | 'rechnung'
4043
3757
  | 'revolut_pay'
4044
3758
  | 'samsung_pay'
4045
3759
  | 'satispay'
4046
3760
  | 'sepa_debit'
4047
- | 'shopeepay'
4048
3761
  | 'sofort'
4049
- | 'stripe_balance'
4050
3762
  | 'swish'
4051
3763
  | 'twint'
4052
3764
  | 'us_bank_account'
@@ -4117,6 +3829,11 @@ declare module 'stripe' {
4117
3829
  */
4118
3830
  card_present?: PaymentMethodOptions.CardPresent;
4119
3831
 
3832
+ /**
3833
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
3834
+ */
3835
+ klarna?: PaymentMethodOptions.Klarna;
3836
+
4120
3837
  /**
4121
3838
  * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
4122
3839
  */
@@ -4127,11 +3844,6 @@ declare module 'stripe' {
4127
3844
  */
4128
3845
  paypal?: PaymentMethodOptions.Paypal;
4129
3846
 
4130
- /**
4131
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
4132
- */
4133
- payto?: PaymentMethodOptions.Payto;
4134
-
4135
3847
  /**
4136
3848
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
4137
3849
  */
@@ -4420,101 +4132,167 @@ declare module 'stripe' {
4420
4132
 
4421
4133
  interface CardPresent {}
4422
4134
 
4423
- interface Link {
4135
+ interface Klarna {
4424
4136
  /**
4425
- * [Deprecated] This is a legacy parameter that no longer has any function.
4426
- * @deprecated
4137
+ * The currency of the SetupIntent. Three letter ISO currency code.
4427
4138
  */
4428
- persistent_token?: string;
4429
- }
4139
+ currency?: string;
4430
4140
 
4431
- interface Paypal {
4432
4141
  /**
4433
- * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
4142
+ * On-demand details if setting up a payment method for on-demand payments.
4434
4143
  */
4435
- billing_agreement_id?: string;
4436
-
4437
- currency?: string;
4144
+ on_demand?: Klarna.OnDemand;
4438
4145
 
4439
4146
  /**
4440
- * 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.
4147
+ * Preferred language of the Klarna authorization page that the customer is redirected to
4441
4148
  */
4442
- subsellers?: Array<string>;
4443
- }
4149
+ preferred_locale?: Klarna.PreferredLocale;
4444
4150
 
4445
- interface Payto {
4446
4151
  /**
4447
- * Additional fields for Mandate creation.
4152
+ * Subscription details if setting up or charging a subscription
4448
4153
  */
4449
- mandate_options?: Payto.MandateOptions;
4154
+ subscriptions?: Stripe.Emptyable<Array<Klarna.Subscription>>;
4450
4155
  }
4451
4156
 
4452
- namespace Payto {
4453
- interface MandateOptions {
4157
+ namespace Klarna {
4158
+ interface OnDemand {
4454
4159
  /**
4455
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
4160
+ * Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
4456
4161
  */
4457
- amount?: number;
4162
+ average_amount?: number;
4458
4163
 
4459
4164
  /**
4460
- * 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.
4165
+ * The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
4461
4166
  */
4462
- amount_type?: MandateOptions.AmountType;
4167
+ maximum_amount?: number;
4463
4168
 
4464
4169
  /**
4465
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4170
+ * The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
4466
4171
  */
4467
- end_date?: string;
4172
+ minimum_amount?: number;
4468
4173
 
4469
4174
  /**
4470
- * The periodicity at which payments will be collected.
4175
+ * Interval at which the customer is making purchases
4471
4176
  */
4472
- payment_schedule?: MandateOptions.PaymentSchedule;
4177
+ purchase_interval?: OnDemand.PurchaseInterval;
4473
4178
 
4474
4179
  /**
4475
- * 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.
4180
+ * The number of `purchase_interval` between charges
4476
4181
  */
4477
- payments_per_period?: number;
4182
+ purchase_interval_count?: number;
4183
+ }
4184
+
4185
+ namespace OnDemand {
4186
+ type PurchaseInterval = 'day' | 'month' | 'week' | 'year';
4187
+ }
4188
+
4189
+ type PreferredLocale =
4190
+ | 'cs-CZ'
4191
+ | 'da-DK'
4192
+ | 'de-AT'
4193
+ | 'de-CH'
4194
+ | 'de-DE'
4195
+ | 'el-GR'
4196
+ | 'en-AT'
4197
+ | 'en-AU'
4198
+ | 'en-BE'
4199
+ | 'en-CA'
4200
+ | 'en-CH'
4201
+ | 'en-CZ'
4202
+ | 'en-DE'
4203
+ | 'en-DK'
4204
+ | 'en-ES'
4205
+ | 'en-FI'
4206
+ | 'en-FR'
4207
+ | 'en-GB'
4208
+ | 'en-GR'
4209
+ | 'en-IE'
4210
+ | 'en-IT'
4211
+ | 'en-NL'
4212
+ | 'en-NO'
4213
+ | 'en-NZ'
4214
+ | 'en-PL'
4215
+ | 'en-PT'
4216
+ | 'en-RO'
4217
+ | 'en-SE'
4218
+ | 'en-US'
4219
+ | 'es-ES'
4220
+ | 'es-US'
4221
+ | 'fi-FI'
4222
+ | 'fr-BE'
4223
+ | 'fr-CA'
4224
+ | 'fr-CH'
4225
+ | 'fr-FR'
4226
+ | 'it-CH'
4227
+ | 'it-IT'
4228
+ | 'nb-NO'
4229
+ | 'nl-BE'
4230
+ | 'nl-NL'
4231
+ | 'pl-PL'
4232
+ | 'pt-PT'
4233
+ | 'ro-RO'
4234
+ | 'sv-FI'
4235
+ | 'sv-SE';
4236
+
4237
+ interface Subscription {
4238
+ /**
4239
+ * Unit of time between subscription charges.
4240
+ */
4241
+ interval: Subscription.Interval;
4242
+
4243
+ /**
4244
+ * The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
4245
+ */
4246
+ interval_count?: number;
4247
+
4248
+ /**
4249
+ * Name for subscription.
4250
+ */
4251
+ name?: string;
4478
4252
 
4479
4253
  /**
4480
- * The purpose for which payments are made. Defaults to retail.
4254
+ * Describes the upcoming charge for this subscription.
4481
4255
  */
4482
- purpose?: MandateOptions.Purpose;
4256
+ next_billing: Subscription.NextBilling;
4483
4257
 
4484
4258
  /**
4485
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
4259
+ * A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
4486
4260
  */
4487
- start_date?: string;
4261
+ reference: string;
4488
4262
  }
4489
4263
 
4490
- namespace MandateOptions {
4491
- type AmountType = 'fixed' | 'maximum';
4264
+ namespace Subscription {
4265
+ type Interval = 'day' | 'month' | 'week' | 'year';
4492
4266
 
4493
- type PaymentSchedule =
4494
- | 'adhoc'
4495
- | 'annual'
4496
- | 'daily'
4497
- | 'fortnightly'
4498
- | 'monthly'
4499
- | 'quarterly'
4500
- | 'semi_annual'
4501
- | 'weekly';
4502
-
4503
- type Purpose =
4504
- | 'dependant_support'
4505
- | 'government'
4506
- | 'loan'
4507
- | 'mortgage'
4508
- | 'other'
4509
- | 'pension'
4510
- | 'personal'
4511
- | 'retail'
4512
- | 'salary'
4513
- | 'tax'
4514
- | 'utility';
4267
+ interface NextBilling {
4268
+ /**
4269
+ * The amount of the next charge for the subscription.
4270
+ */
4271
+ amount: number;
4272
+
4273
+ /**
4274
+ * The date of the next charge for the subscription in YYYY-MM-DD format.
4275
+ */
4276
+ date: string;
4277
+ }
4515
4278
  }
4516
4279
  }
4517
4280
 
4281
+ interface Link {
4282
+ /**
4283
+ * [Deprecated] This is a legacy parameter that no longer has any function.
4284
+ * @deprecated
4285
+ */
4286
+ persistent_token?: string;
4287
+ }
4288
+
4289
+ interface Paypal {
4290
+ /**
4291
+ * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
4292
+ */
4293
+ billing_agreement_id?: string;
4294
+ }
4295
+
4518
4296
  interface SepaDebit {
4519
4297
  /**
4520
4298
  * Additional fields for Mandate creation
@@ -4560,11 +4338,6 @@ declare module 'stripe' {
4560
4338
  */
4561
4339
  filters?: FinancialConnections.Filters;
4562
4340
 
4563
- /**
4564
- * Customize manual entry behavior
4565
- */
4566
- manual_entry?: FinancialConnections.ManualEntry;
4567
-
4568
4341
  /**
4569
4342
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
4570
4343
  */
@@ -4587,39 +4360,19 @@ declare module 'stripe' {
4587
4360
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
4588
4361
  */
4589
4362
  account_subcategories?: Array<Filters.AccountSubcategory>;
4590
-
4591
- /**
4592
- * ID of the institution to use to filter for selectable accounts.
4593
- */
4594
- institution?: string;
4595
4363
  }
4596
4364
 
4597
4365
  namespace Filters {
4598
4366
  type AccountSubcategory = 'checking' | 'savings';
4599
4367
  }
4600
4368
 
4601
- interface ManualEntry {
4602
- /**
4603
- * Settings for configuring manual entry of account details.
4604
- */
4605
- mode: ManualEntry.Mode;
4606
- }
4607
-
4608
- namespace ManualEntry {
4609
- type Mode = 'automatic' | 'custom';
4610
- }
4611
-
4612
4369
  type Permission =
4613
4370
  | 'balances'
4614
4371
  | 'ownership'
4615
4372
  | 'payment_method'
4616
4373
  | 'transactions';
4617
4374
 
4618
- type Prefetch =
4619
- | 'balances'
4620
- | 'inferred_balances'
4621
- | 'ownership'
4622
- | 'transactions';
4375
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
4623
4376
  }
4624
4377
 
4625
4378
  interface MandateOptions {