stripe 18.0.0 → 18.1.0-beta.2

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 (303) hide show
  1. package/CHANGELOG.md +1187 -110
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +1 -3
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +91 -1
  6. package/cjs/apiVersion.js +1 -1
  7. package/cjs/resources/AccountNotices.js +21 -0
  8. package/cjs/resources/BalanceSettings.js +10 -0
  9. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  10. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  11. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  12. package/cjs/resources/ExternalAccounts.js +23 -0
  13. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  14. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  15. package/cjs/resources/GiftCards/Cards.js +23 -0
  16. package/cjs/resources/GiftCards/Transactions.js +33 -0
  17. package/cjs/resources/Invoices.js +17 -0
  18. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  19. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  20. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  21. package/cjs/resources/Margins.js +22 -0
  22. package/cjs/resources/Orders.js +24 -0
  23. package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
  24. package/cjs/resources/PaymentIntents.js +8 -0
  25. package/cjs/resources/PaymentRecords.js +29 -0
  26. package/cjs/resources/Privacy/RedactionJobs.js +46 -0
  27. package/cjs/resources/Quotes.js +32 -0
  28. package/cjs/resources/SubscriptionSchedules.js +4 -0
  29. package/cjs/resources/Tax/Associations.js +9 -0
  30. package/cjs/resources/Tax/Forms.js +20 -0
  31. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  32. package/cjs/resources/Terminal/Readers.js +12 -0
  33. package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
  34. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  35. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  36. package/cjs/resources/V2/Core/Accounts.js +25 -0
  37. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  38. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  39. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  40. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
  41. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  42. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  43. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +12 -0
  44. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  45. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  46. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  47. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  48. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  49. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  50. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  51. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  52. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  53. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  54. package/cjs/resources.js +106 -18
  55. package/cjs/stripe.core.js +1 -1
  56. package/esm/Error.js +79 -0
  57. package/esm/apiVersion.js +1 -1
  58. package/esm/resources/AccountNotices.js +18 -0
  59. package/esm/resources/BalanceSettings.js +7 -0
  60. package/esm/resources/Capital/FinancingOffers.js +18 -0
  61. package/esm/resources/Capital/FinancingSummary.js +9 -0
  62. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  63. package/esm/resources/ExternalAccounts.js +20 -0
  64. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  65. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  66. package/esm/resources/GiftCards/Cards.js +20 -0
  67. package/esm/resources/GiftCards/Transactions.js +30 -0
  68. package/esm/resources/Invoices.js +17 -0
  69. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  70. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  71. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  72. package/esm/resources/Margins.js +19 -0
  73. package/esm/resources/Orders.js +21 -0
  74. package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
  75. package/esm/resources/PaymentIntents.js +8 -0
  76. package/esm/resources/PaymentRecords.js +26 -0
  77. package/esm/resources/Privacy/RedactionJobs.js +43 -0
  78. package/esm/resources/Quotes.js +32 -0
  79. package/esm/resources/SubscriptionSchedules.js +4 -0
  80. package/esm/resources/Tax/Associations.js +6 -0
  81. package/esm/resources/Tax/Forms.js +17 -0
  82. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  83. package/esm/resources/Terminal/Readers.js +12 -0
  84. package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
  85. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  86. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  87. package/esm/resources/V2/Core/Accounts.js +22 -0
  88. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  89. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  90. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  91. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
  92. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  93. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  94. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +9 -0
  95. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  96. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  97. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  98. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  99. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  100. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  101. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  102. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  103. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  104. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  105. package/esm/resources.js +83 -1
  106. package/esm/stripe.core.js +1 -1
  107. package/package.json +1 -1
  108. package/types/AccountLinksResource.d.ts +5 -1
  109. package/types/AccountNotices.d.ts +113 -0
  110. package/types/AccountNoticesResource.d.ts +98 -0
  111. package/types/AccountSessions.d.ts +45 -0
  112. package/types/AccountSessionsResource.d.ts +300 -0
  113. package/types/Accounts.d.ts +228 -1
  114. package/types/AccountsResource.d.ts +572 -0
  115. package/types/BalanceSettings.d.ts +85 -0
  116. package/types/BalanceSettingsResource.d.ts +108 -0
  117. package/types/BankAccounts.d.ts +2 -0
  118. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  119. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  120. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  121. package/types/Billing/CreditGrants.d.ts +5 -0
  122. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  123. package/types/Billing/MeterErrorReports.d.ts +106 -0
  124. package/types/BillingPortal/Sessions.d.ts +5 -0
  125. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  126. package/types/Capabilities.d.ts +2 -0
  127. package/types/Capital/FinancingOffers.d.ts +188 -0
  128. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  129. package/types/Capital/FinancingSummary.d.ts +106 -0
  130. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  131. package/types/Capital/FinancingTransactions.d.ts +135 -0
  132. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  133. package/types/Cards.d.ts +5 -0
  134. package/types/CashBalances.d.ts +5 -0
  135. package/types/Charges.d.ts +166 -0
  136. package/types/ChargesResource.d.ts +1294 -0
  137. package/types/Checkout/Sessions.d.ts +335 -4
  138. package/types/Checkout/SessionsResource.d.ts +270 -2
  139. package/types/ConfirmationTokens.d.ts +151 -0
  140. package/types/Coupons.d.ts +1 -1
  141. package/types/CreditNoteLineItems.d.ts +17 -0
  142. package/types/CreditNotes.d.ts +9 -0
  143. package/types/CreditNotesResource.d.ts +5 -0
  144. package/types/CustomerBalanceTransactions.d.ts +2 -0
  145. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  146. package/types/CustomerSessions.d.ts +5 -0
  147. package/types/CustomerSessionsResource.d.ts +6 -1
  148. package/types/Customers.d.ts +2 -0
  149. package/types/CustomersResource.d.ts +8 -0
  150. package/types/Discounts.d.ts +10 -0
  151. package/types/Errors.d.ts +69 -2
  152. package/types/EventTypes.d.ts +681 -0
  153. package/types/Events.d.ts +101 -1
  154. package/types/ExternalAccountsResource.d.ts +304 -0
  155. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  156. package/types/FinancialConnections/Accounts.d.ts +31 -1
  157. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  158. package/types/FinancialConnections/Institutions.d.ts +93 -0
  159. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  160. package/types/FinancialConnections/Sessions.d.ts +51 -1
  161. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  162. package/types/GiftCards/Cards.d.ts +118 -0
  163. package/types/GiftCards/CardsResource.d.ts +159 -0
  164. package/types/GiftCards/Transactions.d.ts +129 -0
  165. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  166. package/types/Identity/VerificationSessions.d.ts +5 -0
  167. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  168. package/types/InvoiceItems.d.ts +10 -0
  169. package/types/InvoiceItemsResource.d.ts +117 -6
  170. package/types/InvoiceLineItems.d.ts +45 -1
  171. package/types/InvoicePayments.d.ts +5 -0
  172. package/types/Invoices.d.ts +142 -3
  173. package/types/InvoicesResource.d.ts +1546 -4
  174. package/types/Issuing/CardholdersResource.d.ts +2 -1
  175. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  176. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  177. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  178. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  179. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  180. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  181. package/types/Issuing/Settlements.d.ts +113 -0
  182. package/types/Issuing/Transactions.d.ts +5 -0
  183. package/types/Issuing/TransactionsResource.d.ts +5 -0
  184. package/types/LineItems.d.ts +49 -0
  185. package/types/LoginLinks.d.ts +2 -1
  186. package/types/Mandates.d.ts +77 -0
  187. package/types/Margins.d.ts +56 -0
  188. package/types/MarginsResource.d.ts +114 -0
  189. package/types/Orders.d.ts +1189 -0
  190. package/types/OrdersResource.d.ts +2981 -0
  191. package/types/PaymentAttemptRecords.d.ts +2112 -0
  192. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  193. package/types/PaymentIntents.d.ts +680 -2
  194. package/types/PaymentIntentsResource.d.ts +8438 -3942
  195. package/types/PaymentLinks.d.ts +6 -0
  196. package/types/PaymentLinksResource.d.ts +12 -0
  197. package/types/PaymentMethodConfigurations.d.ts +180 -0
  198. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  199. package/types/PaymentMethodDomains.d.ts +28 -0
  200. package/types/PaymentMethods.d.ts +120 -0
  201. package/types/PaymentMethodsResource.d.ts +170 -5
  202. package/types/PaymentRecords.d.ts +2105 -0
  203. package/types/PaymentRecordsResource.d.ts +455 -0
  204. package/types/Payouts.d.ts +5 -0
  205. package/types/PayoutsResource.d.ts +5 -0
  206. package/types/Persons.d.ts +2 -0
  207. package/types/Prices.d.ts +22 -0
  208. package/types/PricesResource.d.ts +22 -0
  209. package/types/Privacy/RedactionJobRootObjects.d.ts +35 -0
  210. package/types/Privacy/RedactionJobValidationErrors.d.ts +30 -0
  211. package/types/Privacy/RedactionJobs.d.ts +43 -0
  212. package/types/Privacy/RedactionJobsResource.d.ts +240 -0
  213. package/types/Products.d.ts +39 -0
  214. package/types/ProductsResource.d.ts +36 -0
  215. package/types/PromotionCodes.d.ts +5 -0
  216. package/types/PromotionCodesResource.d.ts +10 -0
  217. package/types/QuoteLines.d.ts +634 -0
  218. package/types/QuotePreviewInvoices.d.ts +1686 -0
  219. package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
  220. package/types/Quotes.d.ts +601 -1
  221. package/types/QuotesResource.d.ts +2565 -218
  222. package/types/Refunds.d.ts +14 -0
  223. package/types/SetupAttempts.d.ts +51 -1
  224. package/types/SetupIntents.d.ts +122 -2
  225. package/types/SetupIntentsResource.d.ts +739 -12
  226. package/types/Sources.d.ts +29 -0
  227. package/types/SubscriptionItems.d.ts +23 -0
  228. package/types/SubscriptionItemsResource.d.ts +109 -0
  229. package/types/SubscriptionSchedules.d.ts +205 -0
  230. package/types/SubscriptionSchedulesResource.d.ts +1237 -9
  231. package/types/Subscriptions.d.ts +97 -1
  232. package/types/SubscriptionsResource.d.ts +390 -8
  233. package/types/Tax/Associations.d.ts +126 -0
  234. package/types/Tax/AssociationsResource.d.ts +29 -0
  235. package/types/Tax/CalculationLineItems.d.ts +1 -1
  236. package/types/Tax/Forms.d.ts +220 -0
  237. package/types/Tax/FormsResource.d.ts +107 -0
  238. package/types/Tax/Registrations.d.ts +9 -0
  239. package/types/Tax/RegistrationsResource.d.ts +12 -0
  240. package/types/TaxIds.d.ts +10 -0
  241. package/types/TaxIdsResource.d.ts +10 -0
  242. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  243. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  244. package/types/Terminal/Readers.d.ts +300 -0
  245. package/types/Terminal/ReadersResource.d.ts +220 -0
  246. package/types/TestHelpers/ConfirmationTokensResource.d.ts +174 -3
  247. package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
  248. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  249. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  250. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  251. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  252. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  253. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  254. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  255. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  256. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  257. package/types/V2/Core/AccountLinks.d.ts +101 -0
  258. package/types/V2/Core/AccountLinksResource.d.ts +90 -0
  259. package/types/V2/Core/Accounts/PersonsResource.d.ts +3760 -0
  260. package/types/V2/Core/Accounts.d.ts +8057 -0
  261. package/types/V2/Core/AccountsResource.d.ts +10184 -0
  262. package/types/V2/Core/Persons.d.ts +1857 -0
  263. package/types/V2/Core/Vault/GbBankAccounts.d.ts +155 -0
  264. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  265. package/types/V2/Core/Vault/UsBankAccounts.d.ts +65 -0
  266. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  267. package/types/V2/EventTypes.d.ts +683 -1
  268. package/types/V2/FinancialAddressCreditSimulations.d.ts +22 -0
  269. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +27 -0
  270. package/types/V2/MoneyManagement/Adjustments.d.ts +105 -0
  271. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  272. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +540 -0
  273. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
  274. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
  275. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +287 -0
  276. package/types/V2/MoneyManagement/InboundTransfers.d.ts +201 -0
  277. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  278. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +141 -0
  279. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +93 -0
  280. package/types/V2/MoneyManagement/OutboundPayments.d.ts +273 -0
  281. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  282. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +92 -0
  283. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  284. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +246 -0
  285. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
  286. package/types/V2/MoneyManagement/PayoutMethods.d.ts +146 -0
  287. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  288. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +82 -0
  289. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  290. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +280 -0
  291. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  292. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +219 -0
  293. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  294. package/types/V2/MoneyManagement/TransactionEntries.d.ts +151 -0
  295. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  296. package/types/V2/MoneyManagement/Transactions.d.ts +166 -0
  297. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  298. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
  299. package/types/WebhookEndpointsResource.d.ts +82 -2
  300. package/types/index.d.ts +142 -5
  301. package/types/lib.d.ts +11 -1
  302. package/types/test/typescriptTest.ts +3 -3
  303. package/types/InvoicePaymentsResource.d.ts +0 -74
@@ -53,6 +53,8 @@ declare module 'stripe' {
53
53
  */
54
54
  application_fee_amount: number | null;
55
55
 
56
+ async_workflows?: PaymentIntent.AsyncWorkflows;
57
+
56
58
  /**
57
59
  * Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
58
60
  */
@@ -106,6 +108,15 @@ declare module 'stripe' {
106
108
  */
107
109
  customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
108
110
 
111
+ /**
112
+ * ID of the Account this PaymentIntent belongs to, if one exists.
113
+ *
114
+ * Payment methods attached to other Accounts cannot be used with this PaymentIntent.
115
+ *
116
+ * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
117
+ */
118
+ customer_account?: string | null;
119
+
109
120
  /**
110
121
  * An arbitrary string attached to the object. Often useful for displaying to users.
111
122
  */
@@ -141,6 +152,8 @@ declare module 'stripe' {
141
152
  */
142
153
  on_behalf_of: string | Stripe.Account | null;
143
154
 
155
+ payment_details?: PaymentIntent.PaymentDetails;
156
+
144
157
  /**
145
158
  * ID of the payment method used in this PaymentIntent.
146
159
  */
@@ -178,6 +191,11 @@ declare module 'stripe' {
178
191
  */
179
192
  review: string | Stripe.Review | null;
180
193
 
194
+ /**
195
+ * Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
196
+ */
197
+ secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
198
+
181
199
  /**
182
200
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
183
201
  *
@@ -245,6 +263,25 @@ declare module 'stripe' {
245
263
  }
246
264
  }
247
265
 
266
+ interface AsyncWorkflows {
267
+ inputs?: AsyncWorkflows.Inputs;
268
+ }
269
+
270
+ namespace AsyncWorkflows {
271
+ interface Inputs {
272
+ tax?: Inputs.Tax;
273
+ }
274
+
275
+ namespace Inputs {
276
+ interface Tax {
277
+ /**
278
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
279
+ */
280
+ calculation: string;
281
+ }
282
+ }
283
+ }
284
+
248
285
  interface AutomaticPaymentMethods {
249
286
  /**
250
287
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -440,12 +477,16 @@ declare module 'stripe' {
440
477
  | 'email_invalid'
441
478
  | 'expired_card'
442
479
  | 'financial_connections_account_inactive'
480
+ | 'financial_connections_institution_unavailable'
443
481
  | 'financial_connections_no_successful_transaction_refresh'
444
482
  | 'forwarding_api_inactive'
445
483
  | 'forwarding_api_invalid_parameter'
446
484
  | 'forwarding_api_retryable_upstream_error'
447
485
  | 'forwarding_api_upstream_connection_error'
448
486
  | 'forwarding_api_upstream_connection_timeout'
487
+ | 'gift_card_balance_insufficient'
488
+ | 'gift_card_code_exists'
489
+ | 'gift_card_inactive'
449
490
  | 'idempotency_key_in_use'
450
491
  | 'incorrect_address'
451
492
  | 'incorrect_cvc'
@@ -535,6 +576,7 @@ declare module 'stripe' {
535
576
  | 'return_intent_already_processed'
536
577
  | 'routing_number_invalid'
537
578
  | 'secret_key_required'
579
+ | 'sensitive_data_access_expired'
538
580
  | 'sepa_unsupported_account'
539
581
  | 'setup_attempt_failed'
540
582
  | 'setup_intent_authentication_failure'
@@ -550,9 +592,11 @@ declare module 'stripe' {
550
592
  | 'status_transition_invalid'
551
593
  | 'stripe_tax_inactive'
552
594
  | 'tax_id_invalid'
595
+ | 'tax_id_prohibited'
553
596
  | 'taxes_calculation_failed'
554
597
  | 'terminal_location_country_unsupported'
555
598
  | 'terminal_reader_busy'
599
+ | 'terminal_reader_collected_data_invalid'
556
600
  | 'terminal_reader_hardware_fault'
557
601
  | 'terminal_reader_invalid_location_for_activation'
558
602
  | 'terminal_reader_invalid_location_for_payment'
@@ -565,7 +609,9 @@ declare module 'stripe' {
565
609
  | 'token_in_use'
566
610
  | 'transfer_source_balance_parameters_mismatch'
567
611
  | 'transfers_not_allowed'
568
- | 'url_invalid';
612
+ | 'url_invalid'
613
+ | 'v2_account_disconnection_unsupported'
614
+ | 'v2_account_missing_configuration';
569
615
 
570
616
  type Type =
571
617
  | 'api_error'
@@ -1329,6 +1375,289 @@ declare module 'stripe' {
1329
1375
  }
1330
1376
  }
1331
1377
 
1378
+ interface PaymentDetails {
1379
+ car_rental?: PaymentDetails.CarRental;
1380
+
1381
+ event_details?: PaymentDetails.EventDetails;
1382
+
1383
+ subscription?: PaymentDetails.Subscription;
1384
+ }
1385
+
1386
+ namespace PaymentDetails {
1387
+ interface CarRental {
1388
+ affiliate?: CarRental.Affiliate;
1389
+
1390
+ /**
1391
+ * The booking number associated with the car rental.
1392
+ */
1393
+ booking_number: string;
1394
+
1395
+ /**
1396
+ * Class code of the car.
1397
+ */
1398
+ car_class_code?: string;
1399
+
1400
+ /**
1401
+ * Make of the car.
1402
+ */
1403
+ car_make?: string;
1404
+
1405
+ /**
1406
+ * Model of the car.
1407
+ */
1408
+ car_model?: string;
1409
+
1410
+ /**
1411
+ * The name of the rental car company.
1412
+ */
1413
+ company?: string;
1414
+
1415
+ /**
1416
+ * The customer service phone number of the car rental company.
1417
+ */
1418
+ customer_service_phone_number?: string;
1419
+
1420
+ /**
1421
+ * Number of days the car is being rented.
1422
+ */
1423
+ days_rented: number;
1424
+
1425
+ delivery?: CarRental.Delivery;
1426
+
1427
+ /**
1428
+ * The details of the drivers associated with the trip.
1429
+ */
1430
+ drivers?: Array<CarRental.Driver>;
1431
+
1432
+ /**
1433
+ * List of additional charges being billed.
1434
+ */
1435
+ extra_charges?: Array<CarRental.ExtraCharge>;
1436
+
1437
+ /**
1438
+ * Indicates if the customer did not keep nor cancel their booking.
1439
+ */
1440
+ no_show?: boolean;
1441
+
1442
+ pickup_address?: Stripe.Address;
1443
+
1444
+ /**
1445
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1446
+ */
1447
+ pickup_at: number;
1448
+
1449
+ /**
1450
+ * Rental rate.
1451
+ */
1452
+ rate_amount?: number;
1453
+
1454
+ /**
1455
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1456
+ */
1457
+ rate_interval?: CarRental.RateInterval;
1458
+
1459
+ /**
1460
+ * The full name of the person or entity renting the car.
1461
+ */
1462
+ renter_name?: string;
1463
+
1464
+ return_address?: Stripe.Address;
1465
+
1466
+ /**
1467
+ * Car return time. Measured in seconds since the Unix epoch.
1468
+ */
1469
+ return_at: number;
1470
+
1471
+ /**
1472
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1473
+ */
1474
+ tax_exempt?: boolean;
1475
+ }
1476
+
1477
+ namespace CarRental {
1478
+ interface Affiliate {
1479
+ /**
1480
+ * The name of the affiliate that originated the purchase.
1481
+ */
1482
+ name?: string;
1483
+ }
1484
+
1485
+ interface Delivery {
1486
+ /**
1487
+ * The delivery method for the payment
1488
+ */
1489
+ mode?: Delivery.Mode;
1490
+
1491
+ recipient?: Delivery.Recipient;
1492
+ }
1493
+
1494
+ namespace Delivery {
1495
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1496
+
1497
+ interface Recipient {
1498
+ /**
1499
+ * The email of the recipient the ticket is delivered to.
1500
+ */
1501
+ email?: string;
1502
+
1503
+ /**
1504
+ * The name of the recipient the ticket is delivered to.
1505
+ */
1506
+ name?: string;
1507
+
1508
+ /**
1509
+ * The phone number of the recipient the ticket is delivered to.
1510
+ */
1511
+ phone?: string;
1512
+ }
1513
+ }
1514
+
1515
+ interface Driver {
1516
+ /**
1517
+ * Full name of the driver on the reservation.
1518
+ */
1519
+ name?: string;
1520
+ }
1521
+
1522
+ type ExtraCharge =
1523
+ | 'extra_mileage'
1524
+ | 'gas'
1525
+ | 'late_return'
1526
+ | 'one_way_service'
1527
+ | 'parking_violation';
1528
+
1529
+ type RateInterval = 'day' | 'month' | 'week';
1530
+ }
1531
+
1532
+ interface EventDetails {
1533
+ /**
1534
+ * Indicates if the tickets are digitally checked when entering the venue.
1535
+ */
1536
+ access_controlled_venue?: boolean;
1537
+
1538
+ address?: Stripe.Address;
1539
+
1540
+ affiliate?: EventDetails.Affiliate;
1541
+
1542
+ /**
1543
+ * The name of the company
1544
+ */
1545
+ company?: string;
1546
+
1547
+ delivery?: EventDetails.Delivery;
1548
+
1549
+ /**
1550
+ * Event end time. Measured in seconds since the Unix epoch.
1551
+ */
1552
+ ends_at?: number;
1553
+
1554
+ /**
1555
+ * Type of the event entertainment (concert, sports event etc)
1556
+ */
1557
+ genre?: string;
1558
+
1559
+ /**
1560
+ * The name of the event.
1561
+ */
1562
+ name?: string;
1563
+
1564
+ /**
1565
+ * Event start time. Measured in seconds since the Unix epoch.
1566
+ */
1567
+ starts_at?: number;
1568
+ }
1569
+
1570
+ namespace EventDetails {
1571
+ interface Affiliate {
1572
+ /**
1573
+ * The name of the affiliate that originated the purchase.
1574
+ */
1575
+ name?: string;
1576
+ }
1577
+
1578
+ interface Delivery {
1579
+ /**
1580
+ * The delivery method for the payment
1581
+ */
1582
+ mode?: Delivery.Mode;
1583
+
1584
+ recipient?: Delivery.Recipient;
1585
+ }
1586
+
1587
+ namespace Delivery {
1588
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1589
+
1590
+ interface Recipient {
1591
+ /**
1592
+ * The email of the recipient the ticket is delivered to.
1593
+ */
1594
+ email?: string;
1595
+
1596
+ /**
1597
+ * The name of the recipient the ticket is delivered to.
1598
+ */
1599
+ name?: string;
1600
+
1601
+ /**
1602
+ * The phone number of the recipient the ticket is delivered to.
1603
+ */
1604
+ phone?: string;
1605
+ }
1606
+ }
1607
+ }
1608
+
1609
+ interface Subscription {
1610
+ affiliate?: Subscription.Affiliate;
1611
+
1612
+ /**
1613
+ * Info whether the subscription will be auto renewed upon expiry.
1614
+ */
1615
+ auto_renewal?: boolean;
1616
+
1617
+ billing_interval?: Subscription.BillingInterval;
1618
+
1619
+ /**
1620
+ * Subscription end time. Measured in seconds since the Unix epoch.
1621
+ */
1622
+ ends_at?: number;
1623
+
1624
+ /**
1625
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1626
+ */
1627
+ name?: string;
1628
+
1629
+ /**
1630
+ * Subscription start time. Measured in seconds since the Unix epoch.
1631
+ */
1632
+ starts_at?: number;
1633
+ }
1634
+
1635
+ namespace Subscription {
1636
+ interface Affiliate {
1637
+ /**
1638
+ * The name of the affiliate that originated the purchase.
1639
+ */
1640
+ name?: string;
1641
+ }
1642
+
1643
+ interface BillingInterval {
1644
+ /**
1645
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1646
+ */
1647
+ count?: number;
1648
+
1649
+ /**
1650
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1651
+ */
1652
+ interval?: BillingInterval.Interval;
1653
+ }
1654
+
1655
+ namespace BillingInterval {
1656
+ type Interval = 'day' | 'month' | 'week' | 'year';
1657
+ }
1658
+ }
1659
+ }
1660
+
1332
1661
  interface PaymentMethodConfigurationDetails {
1333
1662
  /**
1334
1663
  * ID of the payment method configuration used.
@@ -1360,6 +1689,8 @@ declare module 'stripe' {
1360
1689
 
1361
1690
  bancontact?: PaymentMethodOptions.Bancontact;
1362
1691
 
1692
+ billie?: PaymentMethodOptions.Billie;
1693
+
1363
1694
  blik?: PaymentMethodOptions.Blik;
1364
1695
 
1365
1696
  boleto?: PaymentMethodOptions.Boleto;
@@ -1378,8 +1709,12 @@ declare module 'stripe' {
1378
1709
 
1379
1710
  giropay?: PaymentMethodOptions.Giropay;
1380
1711
 
1712
+ gopay?: PaymentMethodOptions.Gopay;
1713
+
1381
1714
  grabpay?: PaymentMethodOptions.Grabpay;
1382
1715
 
1716
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1717
+
1383
1718
  ideal?: PaymentMethodOptions.Ideal;
1384
1719
 
1385
1720
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -1394,6 +1729,8 @@ declare module 'stripe' {
1394
1729
 
1395
1730
  link?: PaymentMethodOptions.Link;
1396
1731
 
1732
+ mb_way?: PaymentMethodOptions.MbWay;
1733
+
1397
1734
  mobilepay?: PaymentMethodOptions.Mobilepay;
1398
1735
 
1399
1736
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1414,18 +1751,28 @@ declare module 'stripe' {
1414
1751
 
1415
1752
  paypal?: PaymentMethodOptions.Paypal;
1416
1753
 
1754
+ payto?: PaymentMethodOptions.Payto;
1755
+
1417
1756
  pix?: PaymentMethodOptions.Pix;
1418
1757
 
1419
1758
  promptpay?: PaymentMethodOptions.Promptpay;
1420
1759
 
1760
+ qris?: PaymentMethodOptions.Qris;
1761
+
1762
+ rechnung?: PaymentMethodOptions.Rechnung;
1763
+
1421
1764
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1422
1765
 
1423
1766
  samsung_pay?: PaymentMethodOptions.SamsungPay;
1424
1767
 
1425
1768
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1426
1769
 
1770
+ shopeepay?: PaymentMethodOptions.Shopeepay;
1771
+
1427
1772
  sofort?: PaymentMethodOptions.Sofort;
1428
1773
 
1774
+ stripe_balance?: PaymentMethodOptions.StripeBalance;
1775
+
1429
1776
  swish?: PaymentMethodOptions.Swish;
1430
1777
 
1431
1778
  twint?: PaymentMethodOptions.Twint;
@@ -1667,6 +2014,8 @@ declare module 'stripe' {
1667
2014
  type SetupFutureUsage = 'none' | 'off_session';
1668
2015
  }
1669
2016
 
2017
+ interface Billie {}
2018
+
1670
2019
  interface Blik {
1671
2020
  /**
1672
2021
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1725,6 +2074,11 @@ declare module 'stripe' {
1725
2074
  */
1726
2075
  network: Card.Network | null;
1727
2076
 
2077
+ /**
2078
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2079
+ */
2080
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
2081
+
1728
2082
  /**
1729
2083
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1730
2084
  */
@@ -1745,6 +2099,11 @@ declare module 'stripe' {
1745
2099
  */
1746
2100
  request_overcapture?: Card.RequestOvercapture;
1747
2101
 
2102
+ /**
2103
+ * Request partial authorization on this PaymentIntent.
2104
+ */
2105
+ request_partial_authorization?: Card.RequestPartialAuthorization;
2106
+
1748
2107
  /**
1749
2108
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1750
2109
  */
@@ -1775,6 +2134,8 @@ declare module 'stripe' {
1775
2134
  * Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1776
2135
  */
1777
2136
  statement_descriptor_suffix_kanji?: string;
2137
+
2138
+ statement_details?: Card.StatementDetails;
1778
2139
  }
1779
2140
 
1780
2141
  namespace Card {
@@ -1901,6 +2262,8 @@ declare module 'stripe' {
1901
2262
  | 'unknown'
1902
2263
  | 'visa';
1903
2264
 
2265
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2266
+
1904
2267
  type RequestExtendedAuthorization = 'if_available' | 'never';
1905
2268
 
1906
2269
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1909,9 +2272,54 @@ declare module 'stripe' {
1909
2272
 
1910
2273
  type RequestOvercapture = 'if_available' | 'never';
1911
2274
 
2275
+ type RequestPartialAuthorization = 'if_available' | 'never';
2276
+
1912
2277
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1913
2278
 
1914
2279
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2280
+
2281
+ interface StatementDetails {
2282
+ address?: StatementDetails.Address;
2283
+
2284
+ /**
2285
+ * Phone number
2286
+ */
2287
+ phone?: string;
2288
+ }
2289
+
2290
+ namespace StatementDetails {
2291
+ interface Address {
2292
+ /**
2293
+ * City, district, suburb, town, or village.
2294
+ */
2295
+ city?: string;
2296
+
2297
+ /**
2298
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2299
+ */
2300
+ country?: string;
2301
+
2302
+ /**
2303
+ * Address line 1 (e.g., street, PO Box, or company name).
2304
+ */
2305
+ line1?: string;
2306
+
2307
+ /**
2308
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2309
+ */
2310
+ line2?: string;
2311
+
2312
+ /**
2313
+ * ZIP or postal code.
2314
+ */
2315
+ postal_code?: string;
2316
+
2317
+ /**
2318
+ * State, county, province, or region.
2319
+ */
2320
+ state?: string;
2321
+ }
2322
+ }
1915
2323
  }
1916
2324
 
1917
2325
  interface CardPresent {
@@ -2069,6 +2477,19 @@ declare module 'stripe' {
2069
2477
  setup_future_usage?: 'none';
2070
2478
  }
2071
2479
 
2480
+ interface Gopay {
2481
+ /**
2482
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2483
+ *
2484
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2485
+ *
2486
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2487
+ *
2488
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2489
+ */
2490
+ setup_future_usage?: 'none';
2491
+ }
2492
+
2072
2493
  interface Grabpay {
2073
2494
  /**
2074
2495
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2082,6 +2503,29 @@ declare module 'stripe' {
2082
2503
  setup_future_usage?: 'none';
2083
2504
  }
2084
2505
 
2506
+ interface IdBankTransfer {
2507
+ /**
2508
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2509
+ */
2510
+ expires_after?: number | null;
2511
+
2512
+ /**
2513
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2514
+ */
2515
+ expires_at: number | null;
2516
+
2517
+ /**
2518
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2519
+ *
2520
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2521
+ *
2522
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2523
+ *
2524
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2525
+ */
2526
+ setup_future_usage?: 'none';
2527
+ }
2528
+
2085
2529
  interface Ideal {
2086
2530
  /**
2087
2531
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2229,6 +2673,19 @@ declare module 'stripe' {
2229
2673
  type SetupFutureUsage = 'none' | 'off_session';
2230
2674
  }
2231
2675
 
2676
+ interface MbWay {
2677
+ /**
2678
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2679
+ *
2680
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2681
+ *
2682
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2683
+ *
2684
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2685
+ */
2686
+ setup_future_usage?: 'none';
2687
+ }
2688
+
2232
2689
  interface Mobilepay {
2233
2690
  /**
2234
2691
  * Controls when the funds will be captured from the customer's account.
@@ -2363,6 +2820,11 @@ declare module 'stripe' {
2363
2820
  */
2364
2821
  capture_method?: 'manual';
2365
2822
 
2823
+ /**
2824
+ * The line items purchased by the customer.
2825
+ */
2826
+ line_items?: Array<Paypal.LineItem>;
2827
+
2366
2828
  /**
2367
2829
  * Preferred locale of the PayPal checkout page that the customer is redirected to.
2368
2830
  */
@@ -2373,6 +2835,11 @@ declare module 'stripe' {
2373
2835
  */
2374
2836
  reference: string | null;
2375
2837
 
2838
+ /**
2839
+ * 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.
2840
+ */
2841
+ reference_id?: string | null;
2842
+
2376
2843
  /**
2377
2844
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2378
2845
  *
@@ -2383,9 +2850,151 @@ declare module 'stripe' {
2383
2850
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2384
2851
  */
2385
2852
  setup_future_usage?: Paypal.SetupFutureUsage;
2853
+
2854
+ /**
2855
+ * 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.
2856
+ */
2857
+ subsellers?: Array<string>;
2386
2858
  }
2387
2859
 
2388
2860
  namespace Paypal {
2861
+ interface LineItem {
2862
+ /**
2863
+ * Type of the line item.
2864
+ */
2865
+ category?: LineItem.Category;
2866
+
2867
+ /**
2868
+ * Description of the line item.
2869
+ */
2870
+ description?: string;
2871
+
2872
+ /**
2873
+ * Descriptive name of the line item.
2874
+ */
2875
+ name: string;
2876
+
2877
+ /**
2878
+ * Quantity of the line item. Cannot be a negative number.
2879
+ */
2880
+ quantity: number;
2881
+
2882
+ /**
2883
+ * Client facing stock keeping unit, article number or similar.
2884
+ */
2885
+ sku?: string;
2886
+
2887
+ /**
2888
+ * The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
2889
+ */
2890
+ sold_by?: string;
2891
+
2892
+ tax?: LineItem.Tax;
2893
+
2894
+ /**
2895
+ * Price for a single unit of the line item in minor units. Cannot be a negative number.
2896
+ */
2897
+ unit_amount: number;
2898
+ }
2899
+
2900
+ namespace LineItem {
2901
+ type Category = 'digital_goods' | 'donation' | 'physical_goods';
2902
+
2903
+ interface Tax {
2904
+ /**
2905
+ * The tax for a single unit of the line item in minor units. Cannot be a negative number.
2906
+ */
2907
+ amount: number;
2908
+
2909
+ /**
2910
+ * The tax behavior for the line item.
2911
+ */
2912
+ behavior: Tax.Behavior;
2913
+ }
2914
+
2915
+ namespace Tax {
2916
+ type Behavior = 'exclusive' | 'inclusive';
2917
+ }
2918
+ }
2919
+
2920
+ type SetupFutureUsage = 'none' | 'off_session';
2921
+ }
2922
+
2923
+ interface Payto {
2924
+ mandate_options?: Payto.MandateOptions;
2925
+
2926
+ /**
2927
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2928
+ *
2929
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2930
+ *
2931
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2932
+ *
2933
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2934
+ */
2935
+ setup_future_usage?: Payto.SetupFutureUsage;
2936
+ }
2937
+
2938
+ namespace Payto {
2939
+ interface MandateOptions {
2940
+ /**
2941
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2942
+ */
2943
+ amount: number | null;
2944
+
2945
+ /**
2946
+ * 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.
2947
+ */
2948
+ amount_type: MandateOptions.AmountType | null;
2949
+
2950
+ /**
2951
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2952
+ */
2953
+ end_date: string | null;
2954
+
2955
+ /**
2956
+ * The periodicity at which payments will be collected.
2957
+ */
2958
+ payment_schedule: MandateOptions.PaymentSchedule | null;
2959
+
2960
+ /**
2961
+ * 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.
2962
+ */
2963
+ payments_per_period: number | null;
2964
+
2965
+ /**
2966
+ * The purpose for which payments are made. Defaults to retail.
2967
+ */
2968
+ purpose: MandateOptions.Purpose | null;
2969
+ }
2970
+
2971
+ namespace MandateOptions {
2972
+ type AmountType = 'fixed' | 'maximum';
2973
+
2974
+ type PaymentSchedule =
2975
+ | 'adhoc'
2976
+ | 'annual'
2977
+ | 'daily'
2978
+ | 'fortnightly'
2979
+ | 'monthly'
2980
+ | 'quarterly'
2981
+ | 'semi_annual'
2982
+ | 'weekly';
2983
+
2984
+ type Purpose =
2985
+ | 'dependant_support'
2986
+ | 'government'
2987
+ | 'loan'
2988
+ | 'mortgage'
2989
+ | 'other'
2990
+ | 'pension'
2991
+ | 'personal'
2992
+ | 'retail'
2993
+ | 'salary'
2994
+ | 'tax'
2995
+ | 'utility';
2996
+ }
2997
+
2389
2998
  type SetupFutureUsage = 'none' | 'off_session';
2390
2999
  }
2391
3000
 
@@ -2425,6 +3034,21 @@ declare module 'stripe' {
2425
3034
  setup_future_usage?: 'none';
2426
3035
  }
2427
3036
 
3037
+ interface Qris {
3038
+ /**
3039
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3040
+ *
3041
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3042
+ *
3043
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3044
+ *
3045
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
3046
+ */
3047
+ setup_future_usage?: 'none';
3048
+ }
3049
+
3050
+ interface Rechnung {}
3051
+
2428
3052
  interface RevolutPay {
2429
3053
  /**
2430
3054
  * Controls when the funds will be captured from the customer's account.
@@ -2485,6 +3109,19 @@ declare module 'stripe' {
2485
3109
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2486
3110
  }
2487
3111
 
3112
+ interface Shopeepay {
3113
+ /**
3114
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3115
+ *
3116
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3117
+ *
3118
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3119
+ *
3120
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
3121
+ */
3122
+ setup_future_usage?: 'none';
3123
+ }
3124
+
2488
3125
  interface Sofort {
2489
3126
  /**
2490
3127
  * Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -2516,6 +3153,23 @@ declare module 'stripe' {
2516
3153
  type SetupFutureUsage = 'none' | 'off_session';
2517
3154
  }
2518
3155
 
3156
+ interface StripeBalance {
3157
+ /**
3158
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3159
+ *
3160
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3161
+ *
3162
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3163
+ *
3164
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
3165
+ */
3166
+ setup_future_usage?: StripeBalance.SetupFutureUsage;
3167
+ }
3168
+
3169
+ namespace StripeBalance {
3170
+ type SetupFutureUsage = 'none' | 'off_session';
3171
+ }
3172
+
2519
3173
  interface Swish {
2520
3174
  /**
2521
3175
  * A reference for this payment to be displayed in the Swish app.
@@ -2583,6 +3237,8 @@ declare module 'stripe' {
2583
3237
  interface FinancialConnections {
2584
3238
  filters?: FinancialConnections.Filters;
2585
3239
 
3240
+ manual_entry?: FinancialConnections.ManualEntry;
3241
+
2586
3242
  /**
2587
3243
  * The list of permissions to request. The `payment_method` permission must be included.
2588
3244
  */
@@ -2605,19 +3261,39 @@ declare module 'stripe' {
2605
3261
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2606
3262
  */
2607
3263
  account_subcategories?: Array<Filters.AccountSubcategory>;
3264
+
3265
+ /**
3266
+ * The institution to use to filter for possible accounts to link.
3267
+ */
3268
+ institution?: string;
2608
3269
  }
2609
3270
 
2610
3271
  namespace Filters {
2611
3272
  type AccountSubcategory = 'checking' | 'savings';
2612
3273
  }
2613
3274
 
3275
+ interface ManualEntry {
3276
+ /**
3277
+ * Settings for configuring manual entry of account details.
3278
+ */
3279
+ mode?: ManualEntry.Mode;
3280
+ }
3281
+
3282
+ namespace ManualEntry {
3283
+ type Mode = 'automatic' | 'custom';
3284
+ }
3285
+
2614
3286
  type Permission =
2615
3287
  | 'balances'
2616
3288
  | 'ownership'
2617
3289
  | 'payment_method'
2618
3290
  | 'transactions';
2619
3291
 
2620
- type Prefetch = 'balances' | 'ownership' | 'transactions';
3292
+ type Prefetch =
3293
+ | 'balances'
3294
+ | 'inferred_balances'
3295
+ | 'ownership'
3296
+ | 'transactions';
2621
3297
  }
2622
3298
 
2623
3299
  interface MandateOptions {
@@ -2716,6 +3392,8 @@ declare module 'stripe' {
2716
3392
  }
2717
3393
  }
2718
3394
 
3395
+ type SecretKeyConfirmation = 'optional' | 'required';
3396
+
2719
3397
  type SetupFutureUsage = 'off_session' | 'on_session';
2720
3398
 
2721
3399
  interface Shipping {