stripe 18.1.0 → 18.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/CHANGELOG.md +1220 -140
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +91 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/AccountNotices.js +21 -0
  7. package/cjs/resources/BalanceSettings.js +10 -0
  8. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  9. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  10. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  11. package/cjs/resources/ExternalAccounts.js +23 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  14. package/cjs/resources/FxQuotes.js +15 -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 +4 -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 +13 -0
  25. package/cjs/resources/PaymentRecords.js +29 -0
  26. package/cjs/resources/Privacy/RedactionJobs.js +42 -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 +16 -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 +108 -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/FxQuotes.js +12 -0
  67. package/esm/resources/GiftCards/Cards.js +20 -0
  68. package/esm/resources/GiftCards/Transactions.js +30 -0
  69. package/esm/resources/Invoices.js +4 -0
  70. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  71. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  72. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  73. package/esm/resources/Margins.js +19 -0
  74. package/esm/resources/Orders.js +21 -0
  75. package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
  76. package/esm/resources/PaymentIntents.js +13 -0
  77. package/esm/resources/PaymentRecords.js +26 -0
  78. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  79. package/esm/resources/Quotes.js +32 -0
  80. package/esm/resources/SubscriptionSchedules.js +4 -0
  81. package/esm/resources/Tax/Associations.js +6 -0
  82. package/esm/resources/Tax/Forms.js +17 -0
  83. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  84. package/esm/resources/Terminal/Readers.js +12 -0
  85. package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
  86. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  87. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  88. package/esm/resources/V2/Core/Accounts.js +22 -0
  89. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  90. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  91. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  92. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
  93. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  94. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  95. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  96. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  97. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  98. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  99. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  100. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  101. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  102. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  103. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  104. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  105. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  106. package/esm/resources.js +84 -1
  107. package/esm/stripe.core.js +1 -1
  108. package/package.json +1 -1
  109. package/types/AccountLinksResource.d.ts +5 -1
  110. package/types/AccountNotices.d.ts +113 -0
  111. package/types/AccountNoticesResource.d.ts +98 -0
  112. package/types/AccountSessions.d.ts +45 -0
  113. package/types/AccountSessionsResource.d.ts +300 -0
  114. package/types/Accounts.d.ts +212 -1
  115. package/types/AccountsResource.d.ts +544 -0
  116. package/types/BalanceSettings.d.ts +89 -0
  117. package/types/BalanceSettingsResource.d.ts +108 -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/Capital/FinancingOffers.d.ts +188 -0
  127. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  128. package/types/Capital/FinancingSummary.d.ts +106 -0
  129. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  130. package/types/Capital/FinancingTransactions.d.ts +135 -0
  131. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  132. package/types/Cards.d.ts +5 -0
  133. package/types/CashBalances.d.ts +5 -0
  134. package/types/Charges.d.ts +166 -0
  135. package/types/ChargesResource.d.ts +1314 -0
  136. package/types/Checkout/Sessions.d.ts +315 -2
  137. package/types/Checkout/SessionsResource.d.ts +340 -1
  138. package/types/ConfirmationTokens.d.ts +125 -0
  139. package/types/Coupons.d.ts +33 -0
  140. package/types/CouponsResource.d.ts +21 -0
  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 +698 -0
  153. package/types/Events.d.ts +99 -0
  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/FxQuotes.d.ts +153 -0
  163. package/types/FxQuotesResource.d.ts +130 -0
  164. package/types/GiftCards/Cards.d.ts +118 -0
  165. package/types/GiftCards/CardsResource.d.ts +159 -0
  166. package/types/GiftCards/Transactions.d.ts +129 -0
  167. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  168. package/types/Identity/VerificationSessions.d.ts +5 -0
  169. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  170. package/types/InvoiceItems.d.ts +10 -0
  171. package/types/InvoiceItemsResource.d.ts +117 -6
  172. package/types/InvoiceLineItems.d.ts +45 -1
  173. package/types/InvoicePayments.d.ts +5 -0
  174. package/types/Invoices.d.ts +136 -3
  175. package/types/InvoicesResource.d.ts +1483 -3
  176. package/types/Issuing/CardholdersResource.d.ts +2 -1
  177. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  178. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  179. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  180. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  181. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  182. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  183. package/types/Issuing/Settlements.d.ts +113 -0
  184. package/types/Issuing/Transactions.d.ts +5 -0
  185. package/types/Issuing/TransactionsResource.d.ts +5 -0
  186. package/types/LineItems.d.ts +49 -0
  187. package/types/Mandates.d.ts +77 -0
  188. package/types/Margins.d.ts +56 -0
  189. package/types/MarginsResource.d.ts +114 -0
  190. package/types/Orders.d.ts +1199 -0
  191. package/types/OrdersResource.d.ts +3001 -0
  192. package/types/PaymentAttemptRecords.d.ts +2112 -0
  193. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  194. package/types/PaymentIntentAmountDetailsLineItems.d.ts +110 -0
  195. package/types/PaymentIntents.d.ts +728 -2
  196. package/types/PaymentIntentsResource.d.ts +8618 -4094
  197. package/types/PaymentLinks.d.ts +6 -0
  198. package/types/PaymentLinksResource.d.ts +12 -0
  199. package/types/PaymentMethodConfigurations.d.ts +180 -0
  200. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  201. package/types/PaymentMethods.d.ts +125 -0
  202. package/types/PaymentMethodsResource.d.ts +167 -2
  203. package/types/PaymentRecords.d.ts +2105 -0
  204. package/types/PaymentRecordsResource.d.ts +455 -0
  205. package/types/Payouts.d.ts +5 -0
  206. package/types/PayoutsResource.d.ts +5 -0
  207. package/types/Prices.d.ts +22 -0
  208. package/types/PricesResource.d.ts +22 -0
  209. package/types/Privacy/RedactionJobValidationErrors.d.ts +30 -0
  210. package/types/Privacy/RedactionJobs.d.ts +65 -0
  211. package/types/Privacy/RedactionJobsResource.d.ts +218 -0
  212. package/types/Products.d.ts +39 -0
  213. package/types/ProductsResource.d.ts +36 -0
  214. package/types/PromotionCodes.d.ts +5 -0
  215. package/types/PromotionCodesResource.d.ts +10 -0
  216. package/types/QuoteLines.d.ts +634 -0
  217. package/types/QuotePreviewInvoices.d.ts +1697 -0
  218. package/types/QuotePreviewSubscriptionSchedules.d.ts +785 -0
  219. package/types/Quotes.d.ts +603 -1
  220. package/types/QuotesResource.d.ts +2572 -218
  221. package/types/Refunds.d.ts +14 -0
  222. package/types/SetupAttempts.d.ts +50 -1
  223. package/types/SetupIntents.d.ts +121 -2
  224. package/types/SetupIntentsResource.d.ts +730 -3
  225. package/types/Sources.d.ts +29 -0
  226. package/types/SubscriptionItems.d.ts +23 -0
  227. package/types/SubscriptionItemsResource.d.ts +109 -0
  228. package/types/SubscriptionSchedules.d.ts +212 -0
  229. package/types/SubscriptionSchedulesResource.d.ts +1240 -5
  230. package/types/Subscriptions.d.ts +104 -1
  231. package/types/SubscriptionsResource.d.ts +397 -8
  232. package/types/Tax/Associations.d.ts +126 -0
  233. package/types/Tax/AssociationsResource.d.ts +29 -0
  234. package/types/Tax/Forms.d.ts +220 -0
  235. package/types/Tax/FormsResource.d.ts +107 -0
  236. package/types/TaxIds.d.ts +10 -0
  237. package/types/TaxIdsResource.d.ts +10 -0
  238. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  239. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  240. package/types/Terminal/Readers.d.ts +300 -0
  241. package/types/Terminal/ReadersResource.d.ts +220 -0
  242. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  243. package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
  244. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  245. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  246. package/types/Transfers.d.ts +5 -0
  247. package/types/TransfersResource.d.ts +5 -0
  248. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  249. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  250. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  251. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  252. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  253. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  254. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  255. package/types/V2/Core/AccountLinks.d.ts +106 -0
  256. package/types/V2/Core/AccountLinksResource.d.ts +90 -0
  257. package/types/V2/Core/Accounts/PersonsResource.d.ts +3770 -0
  258. package/types/V2/Core/Accounts.d.ts +8169 -0
  259. package/types/V2/Core/AccountsResource.d.ts +10203 -0
  260. package/types/V2/Core/Persons.d.ts +1867 -0
  261. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  262. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  263. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  264. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  265. package/types/V2/EventTypes.d.ts +812 -1
  266. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  267. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  268. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  269. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  270. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +546 -0
  271. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
  272. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
  273. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +288 -0
  274. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  275. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  276. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
  277. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  278. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  279. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  280. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  281. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  282. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  283. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
  284. package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
  285. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  286. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
  287. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  288. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +285 -0
  289. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  290. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +224 -0
  291. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  292. package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
  293. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  294. package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
  295. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  296. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
  297. package/types/WebhookEndpointsResource.d.ts +82 -0
  298. package/types/index.d.ts +145 -5
  299. package/types/lib.d.ts +11 -1
  300. package/types/test/typescriptTest.ts +3 -3
  301. 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,11 +108,25 @@ 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
  */
112
123
  description: string | null;
113
124
 
125
+ /**
126
+ * The FX Quote used for the PaymentIntent.
127
+ */
128
+ fx_quote?: string | null;
129
+
114
130
  /**
115
131
  * The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
116
132
  */
@@ -141,6 +157,8 @@ declare module 'stripe' {
141
157
  */
142
158
  on_behalf_of: string | Stripe.Account | null;
143
159
 
160
+ payment_details?: PaymentIntent.PaymentDetails;
161
+
144
162
  /**
145
163
  * ID of the payment method used in this PaymentIntent.
146
164
  */
@@ -178,6 +196,11 @@ declare module 'stripe' {
178
196
  */
179
197
  review: string | Stripe.Review | null;
180
198
 
199
+ /**
200
+ * Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
201
+ */
202
+ secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
203
+
181
204
  /**
182
205
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
183
206
  *
@@ -233,10 +256,48 @@ declare module 'stripe' {
233
256
 
234
257
  namespace PaymentIntent {
235
258
  interface AmountDetails {
259
+ /**
260
+ * The amount an item was discounted for.
261
+ */
262
+ discount_amount?: number;
263
+
264
+ /**
265
+ * A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
266
+ */
267
+ line_items?: ApiList<Stripe.PaymentIntentAmountDetailsLineItem>;
268
+
269
+ shipping?: AmountDetails.Shipping;
270
+
271
+ tax?: AmountDetails.Tax;
272
+
236
273
  tip?: AmountDetails.Tip;
237
274
  }
238
275
 
239
276
  namespace AmountDetails {
277
+ interface Shipping {
278
+ /**
279
+ * Portion of the amount that is for shipping.
280
+ */
281
+ amount: number | null;
282
+
283
+ /**
284
+ * The postal code that represents the shipping source.
285
+ */
286
+ from_postal_code: string | null;
287
+
288
+ /**
289
+ * The postal code that represents the shipping destination.
290
+ */
291
+ to_postal_code: string | null;
292
+ }
293
+
294
+ interface Tax {
295
+ /**
296
+ * Total portion of the amount that is for tax.
297
+ */
298
+ total_tax_amount: number | null;
299
+ }
300
+
240
301
  interface Tip {
241
302
  /**
242
303
  * Portion of the amount that corresponds to a tip.
@@ -245,6 +306,25 @@ declare module 'stripe' {
245
306
  }
246
307
  }
247
308
 
309
+ interface AsyncWorkflows {
310
+ inputs?: AsyncWorkflows.Inputs;
311
+ }
312
+
313
+ namespace AsyncWorkflows {
314
+ interface Inputs {
315
+ tax?: Inputs.Tax;
316
+ }
317
+
318
+ namespace Inputs {
319
+ interface Tax {
320
+ /**
321
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
322
+ */
323
+ calculation: string;
324
+ }
325
+ }
326
+ }
327
+
248
328
  interface AutomaticPaymentMethods {
249
329
  /**
250
330
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -440,12 +520,16 @@ declare module 'stripe' {
440
520
  | 'email_invalid'
441
521
  | 'expired_card'
442
522
  | 'financial_connections_account_inactive'
523
+ | 'financial_connections_institution_unavailable'
443
524
  | 'financial_connections_no_successful_transaction_refresh'
444
525
  | 'forwarding_api_inactive'
445
526
  | 'forwarding_api_invalid_parameter'
446
527
  | 'forwarding_api_retryable_upstream_error'
447
528
  | 'forwarding_api_upstream_connection_error'
448
529
  | 'forwarding_api_upstream_connection_timeout'
530
+ | 'gift_card_balance_insufficient'
531
+ | 'gift_card_code_exists'
532
+ | 'gift_card_inactive'
449
533
  | 'idempotency_key_in_use'
450
534
  | 'incorrect_address'
451
535
  | 'incorrect_cvc'
@@ -535,6 +619,7 @@ declare module 'stripe' {
535
619
  | 'return_intent_already_processed'
536
620
  | 'routing_number_invalid'
537
621
  | 'secret_key_required'
622
+ | 'sensitive_data_access_expired'
538
623
  | 'sepa_unsupported_account'
539
624
  | 'setup_attempt_failed'
540
625
  | 'setup_intent_authentication_failure'
@@ -554,6 +639,7 @@ declare module 'stripe' {
554
639
  | 'taxes_calculation_failed'
555
640
  | 'terminal_location_country_unsupported'
556
641
  | 'terminal_reader_busy'
642
+ | 'terminal_reader_collected_data_invalid'
557
643
  | 'terminal_reader_hardware_fault'
558
644
  | 'terminal_reader_invalid_location_for_activation'
559
645
  | 'terminal_reader_invalid_location_for_payment'
@@ -566,7 +652,9 @@ declare module 'stripe' {
566
652
  | 'token_in_use'
567
653
  | 'transfer_source_balance_parameters_mismatch'
568
654
  | 'transfers_not_allowed'
569
- | 'url_invalid';
655
+ | 'url_invalid'
656
+ | 'v2_account_disconnection_unsupported'
657
+ | 'v2_account_missing_configuration';
570
658
 
571
659
  type Type =
572
660
  | 'api_error'
@@ -1330,6 +1418,299 @@ declare module 'stripe' {
1330
1418
  }
1331
1419
  }
1332
1420
 
1421
+ interface PaymentDetails {
1422
+ car_rental?: PaymentDetails.CarRental;
1423
+
1424
+ /**
1425
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1426
+ */
1427
+ customer_reference?: string | null;
1428
+
1429
+ event_details?: PaymentDetails.EventDetails;
1430
+
1431
+ /**
1432
+ * A unique value assigned by the business to identify the transaction.
1433
+ */
1434
+ order_reference?: string | null;
1435
+
1436
+ subscription?: PaymentDetails.Subscription;
1437
+ }
1438
+
1439
+ namespace PaymentDetails {
1440
+ interface CarRental {
1441
+ affiliate?: CarRental.Affiliate;
1442
+
1443
+ /**
1444
+ * The booking number associated with the car rental.
1445
+ */
1446
+ booking_number: string;
1447
+
1448
+ /**
1449
+ * Class code of the car.
1450
+ */
1451
+ car_class_code?: string;
1452
+
1453
+ /**
1454
+ * Make of the car.
1455
+ */
1456
+ car_make?: string;
1457
+
1458
+ /**
1459
+ * Model of the car.
1460
+ */
1461
+ car_model?: string;
1462
+
1463
+ /**
1464
+ * The name of the rental car company.
1465
+ */
1466
+ company?: string;
1467
+
1468
+ /**
1469
+ * The customer service phone number of the car rental company.
1470
+ */
1471
+ customer_service_phone_number?: string;
1472
+
1473
+ /**
1474
+ * Number of days the car is being rented.
1475
+ */
1476
+ days_rented: number;
1477
+
1478
+ delivery?: CarRental.Delivery;
1479
+
1480
+ /**
1481
+ * The details of the drivers associated with the trip.
1482
+ */
1483
+ drivers?: Array<CarRental.Driver>;
1484
+
1485
+ /**
1486
+ * List of additional charges being billed.
1487
+ */
1488
+ extra_charges?: Array<CarRental.ExtraCharge>;
1489
+
1490
+ /**
1491
+ * Indicates if the customer did not keep nor cancel their booking.
1492
+ */
1493
+ no_show?: boolean;
1494
+
1495
+ pickup_address?: Stripe.Address;
1496
+
1497
+ /**
1498
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1499
+ */
1500
+ pickup_at: number;
1501
+
1502
+ /**
1503
+ * Rental rate.
1504
+ */
1505
+ rate_amount?: number;
1506
+
1507
+ /**
1508
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1509
+ */
1510
+ rate_interval?: CarRental.RateInterval;
1511
+
1512
+ /**
1513
+ * The full name of the person or entity renting the car.
1514
+ */
1515
+ renter_name?: string;
1516
+
1517
+ return_address?: Stripe.Address;
1518
+
1519
+ /**
1520
+ * Car return time. Measured in seconds since the Unix epoch.
1521
+ */
1522
+ return_at: number;
1523
+
1524
+ /**
1525
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1526
+ */
1527
+ tax_exempt?: boolean;
1528
+ }
1529
+
1530
+ namespace CarRental {
1531
+ interface Affiliate {
1532
+ /**
1533
+ * The name of the affiliate that originated the purchase.
1534
+ */
1535
+ name?: string;
1536
+ }
1537
+
1538
+ interface Delivery {
1539
+ /**
1540
+ * The delivery method for the payment
1541
+ */
1542
+ mode?: Delivery.Mode;
1543
+
1544
+ recipient?: Delivery.Recipient;
1545
+ }
1546
+
1547
+ namespace Delivery {
1548
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1549
+
1550
+ interface Recipient {
1551
+ /**
1552
+ * The email of the recipient the ticket is delivered to.
1553
+ */
1554
+ email?: string;
1555
+
1556
+ /**
1557
+ * The name of the recipient the ticket is delivered to.
1558
+ */
1559
+ name?: string;
1560
+
1561
+ /**
1562
+ * The phone number of the recipient the ticket is delivered to.
1563
+ */
1564
+ phone?: string;
1565
+ }
1566
+ }
1567
+
1568
+ interface Driver {
1569
+ /**
1570
+ * Full name of the driver on the reservation.
1571
+ */
1572
+ name?: string;
1573
+ }
1574
+
1575
+ type ExtraCharge =
1576
+ | 'extra_mileage'
1577
+ | 'gas'
1578
+ | 'late_return'
1579
+ | 'one_way_service'
1580
+ | 'parking_violation';
1581
+
1582
+ type RateInterval = 'day' | 'month' | 'week';
1583
+ }
1584
+
1585
+ interface EventDetails {
1586
+ /**
1587
+ * Indicates if the tickets are digitally checked when entering the venue.
1588
+ */
1589
+ access_controlled_venue?: boolean;
1590
+
1591
+ address?: Stripe.Address;
1592
+
1593
+ affiliate?: EventDetails.Affiliate;
1594
+
1595
+ /**
1596
+ * The name of the company
1597
+ */
1598
+ company?: string;
1599
+
1600
+ delivery?: EventDetails.Delivery;
1601
+
1602
+ /**
1603
+ * Event end time. Measured in seconds since the Unix epoch.
1604
+ */
1605
+ ends_at?: number;
1606
+
1607
+ /**
1608
+ * Type of the event entertainment (concert, sports event etc)
1609
+ */
1610
+ genre?: string;
1611
+
1612
+ /**
1613
+ * The name of the event.
1614
+ */
1615
+ name?: string;
1616
+
1617
+ /**
1618
+ * Event start time. Measured in seconds since the Unix epoch.
1619
+ */
1620
+ starts_at?: number;
1621
+ }
1622
+
1623
+ namespace EventDetails {
1624
+ interface Affiliate {
1625
+ /**
1626
+ * The name of the affiliate that originated the purchase.
1627
+ */
1628
+ name?: string;
1629
+ }
1630
+
1631
+ interface Delivery {
1632
+ /**
1633
+ * The delivery method for the payment
1634
+ */
1635
+ mode?: Delivery.Mode;
1636
+
1637
+ recipient?: Delivery.Recipient;
1638
+ }
1639
+
1640
+ namespace Delivery {
1641
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1642
+
1643
+ interface Recipient {
1644
+ /**
1645
+ * The email of the recipient the ticket is delivered to.
1646
+ */
1647
+ email?: string;
1648
+
1649
+ /**
1650
+ * The name of the recipient the ticket is delivered to.
1651
+ */
1652
+ name?: string;
1653
+
1654
+ /**
1655
+ * The phone number of the recipient the ticket is delivered to.
1656
+ */
1657
+ phone?: string;
1658
+ }
1659
+ }
1660
+ }
1661
+
1662
+ interface Subscription {
1663
+ affiliate?: Subscription.Affiliate;
1664
+
1665
+ /**
1666
+ * Info whether the subscription will be auto renewed upon expiry.
1667
+ */
1668
+ auto_renewal?: boolean;
1669
+
1670
+ billing_interval?: Subscription.BillingInterval;
1671
+
1672
+ /**
1673
+ * Subscription end time. Measured in seconds since the Unix epoch.
1674
+ */
1675
+ ends_at?: number;
1676
+
1677
+ /**
1678
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1679
+ */
1680
+ name?: string;
1681
+
1682
+ /**
1683
+ * Subscription start time. Measured in seconds since the Unix epoch.
1684
+ */
1685
+ starts_at?: number;
1686
+ }
1687
+
1688
+ namespace Subscription {
1689
+ interface Affiliate {
1690
+ /**
1691
+ * The name of the affiliate that originated the purchase.
1692
+ */
1693
+ name?: string;
1694
+ }
1695
+
1696
+ interface BillingInterval {
1697
+ /**
1698
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1699
+ */
1700
+ count?: number;
1701
+
1702
+ /**
1703
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1704
+ */
1705
+ interval?: BillingInterval.Interval;
1706
+ }
1707
+
1708
+ namespace BillingInterval {
1709
+ type Interval = 'day' | 'month' | 'week' | 'year';
1710
+ }
1711
+ }
1712
+ }
1713
+
1333
1714
  interface PaymentMethodConfigurationDetails {
1334
1715
  /**
1335
1716
  * ID of the payment method configuration used.
@@ -1381,8 +1762,12 @@ declare module 'stripe' {
1381
1762
 
1382
1763
  giropay?: PaymentMethodOptions.Giropay;
1383
1764
 
1765
+ gopay?: PaymentMethodOptions.Gopay;
1766
+
1384
1767
  grabpay?: PaymentMethodOptions.Grabpay;
1385
1768
 
1769
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1770
+
1386
1771
  ideal?: PaymentMethodOptions.Ideal;
1387
1772
 
1388
1773
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -1397,6 +1782,8 @@ declare module 'stripe' {
1397
1782
 
1398
1783
  link?: PaymentMethodOptions.Link;
1399
1784
 
1785
+ mb_way?: PaymentMethodOptions.MbWay;
1786
+
1400
1787
  mobilepay?: PaymentMethodOptions.Mobilepay;
1401
1788
 
1402
1789
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1417,18 +1804,28 @@ declare module 'stripe' {
1417
1804
 
1418
1805
  paypal?: PaymentMethodOptions.Paypal;
1419
1806
 
1807
+ payto?: PaymentMethodOptions.Payto;
1808
+
1420
1809
  pix?: PaymentMethodOptions.Pix;
1421
1810
 
1422
1811
  promptpay?: PaymentMethodOptions.Promptpay;
1423
1812
 
1813
+ qris?: PaymentMethodOptions.Qris;
1814
+
1815
+ rechnung?: PaymentMethodOptions.Rechnung;
1816
+
1424
1817
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1425
1818
 
1426
1819
  samsung_pay?: PaymentMethodOptions.SamsungPay;
1427
1820
 
1428
1821
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1429
1822
 
1823
+ shopeepay?: PaymentMethodOptions.Shopeepay;
1824
+
1430
1825
  sofort?: PaymentMethodOptions.Sofort;
1431
1826
 
1827
+ stripe_balance?: PaymentMethodOptions.StripeBalance;
1828
+
1432
1829
  swish?: PaymentMethodOptions.Swish;
1433
1830
 
1434
1831
  twint?: PaymentMethodOptions.Twint;
@@ -1730,6 +2127,11 @@ declare module 'stripe' {
1730
2127
  */
1731
2128
  network: Card.Network | null;
1732
2129
 
2130
+ /**
2131
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2132
+ */
2133
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
2134
+
1733
2135
  /**
1734
2136
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1735
2137
  */
@@ -1750,6 +2152,11 @@ declare module 'stripe' {
1750
2152
  */
1751
2153
  request_overcapture?: Card.RequestOvercapture;
1752
2154
 
2155
+ /**
2156
+ * Request partial authorization on this PaymentIntent.
2157
+ */
2158
+ request_partial_authorization?: Card.RequestPartialAuthorization;
2159
+
1753
2160
  /**
1754
2161
  * 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.
1755
2162
  */
@@ -1780,6 +2187,8 @@ declare module 'stripe' {
1780
2187
  * 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.
1781
2188
  */
1782
2189
  statement_descriptor_suffix_kanji?: string;
2190
+
2191
+ statement_details?: Card.StatementDetails;
1783
2192
  }
1784
2193
 
1785
2194
  namespace Card {
@@ -1906,6 +2315,8 @@ declare module 'stripe' {
1906
2315
  | 'unknown'
1907
2316
  | 'visa';
1908
2317
 
2318
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2319
+
1909
2320
  type RequestExtendedAuthorization = 'if_available' | 'never';
1910
2321
 
1911
2322
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1914,9 +2325,54 @@ declare module 'stripe' {
1914
2325
 
1915
2326
  type RequestOvercapture = 'if_available' | 'never';
1916
2327
 
2328
+ type RequestPartialAuthorization = 'if_available' | 'never';
2329
+
1917
2330
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1918
2331
 
1919
2332
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2333
+
2334
+ interface StatementDetails {
2335
+ address?: StatementDetails.Address;
2336
+
2337
+ /**
2338
+ * Phone number
2339
+ */
2340
+ phone?: string;
2341
+ }
2342
+
2343
+ namespace StatementDetails {
2344
+ interface Address {
2345
+ /**
2346
+ * City, district, suburb, town, or village.
2347
+ */
2348
+ city?: string;
2349
+
2350
+ /**
2351
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2352
+ */
2353
+ country?: string;
2354
+
2355
+ /**
2356
+ * Address line 1 (e.g., street, PO Box, or company name).
2357
+ */
2358
+ line1?: string;
2359
+
2360
+ /**
2361
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2362
+ */
2363
+ line2?: string;
2364
+
2365
+ /**
2366
+ * ZIP or postal code.
2367
+ */
2368
+ postal_code?: string;
2369
+
2370
+ /**
2371
+ * State, county, province, or region.
2372
+ */
2373
+ state?: string;
2374
+ }
2375
+ }
1920
2376
  }
1921
2377
 
1922
2378
  interface CardPresent {
@@ -2074,6 +2530,19 @@ declare module 'stripe' {
2074
2530
  setup_future_usage?: 'none';
2075
2531
  }
2076
2532
 
2533
+ interface Gopay {
2534
+ /**
2535
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2536
+ *
2537
+ * 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.
2538
+ *
2539
+ * 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.
2540
+ *
2541
+ * 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).
2542
+ */
2543
+ setup_future_usage?: 'none';
2544
+ }
2545
+
2077
2546
  interface Grabpay {
2078
2547
  /**
2079
2548
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2087,6 +2556,29 @@ declare module 'stripe' {
2087
2556
  setup_future_usage?: 'none';
2088
2557
  }
2089
2558
 
2559
+ interface IdBankTransfer {
2560
+ /**
2561
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2562
+ */
2563
+ expires_after?: number | null;
2564
+
2565
+ /**
2566
+ * 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.
2567
+ */
2568
+ expires_at: number | null;
2569
+
2570
+ /**
2571
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2572
+ *
2573
+ * 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.
2574
+ *
2575
+ * 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.
2576
+ *
2577
+ * 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).
2578
+ */
2579
+ setup_future_usage?: 'none';
2580
+ }
2581
+
2090
2582
  interface Ideal {
2091
2583
  /**
2092
2584
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2234,6 +2726,19 @@ declare module 'stripe' {
2234
2726
  type SetupFutureUsage = 'none' | 'off_session';
2235
2727
  }
2236
2728
 
2729
+ interface MbWay {
2730
+ /**
2731
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2732
+ *
2733
+ * 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.
2734
+ *
2735
+ * 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.
2736
+ *
2737
+ * 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).
2738
+ */
2739
+ setup_future_usage?: 'none';
2740
+ }
2741
+
2237
2742
  interface Mobilepay {
2238
2743
  /**
2239
2744
  * Controls when the funds will be captured from the customer's account.
@@ -2368,6 +2873,11 @@ declare module 'stripe' {
2368
2873
  */
2369
2874
  capture_method?: 'manual';
2370
2875
 
2876
+ /**
2877
+ * The line items purchased by the customer.
2878
+ */
2879
+ line_items?: Array<Paypal.LineItem>;
2880
+
2371
2881
  /**
2372
2882
  * Preferred locale of the PayPal checkout page that the customer is redirected to.
2373
2883
  */
@@ -2378,6 +2888,11 @@ declare module 'stripe' {
2378
2888
  */
2379
2889
  reference: string | null;
2380
2890
 
2891
+ /**
2892
+ * 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.
2893
+ */
2894
+ reference_id?: string | null;
2895
+
2381
2896
  /**
2382
2897
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2383
2898
  *
@@ -2388,9 +2903,151 @@ declare module 'stripe' {
2388
2903
  * 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).
2389
2904
  */
2390
2905
  setup_future_usage?: Paypal.SetupFutureUsage;
2906
+
2907
+ /**
2908
+ * 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.
2909
+ */
2910
+ subsellers?: Array<string>;
2391
2911
  }
2392
2912
 
2393
2913
  namespace Paypal {
2914
+ interface LineItem {
2915
+ /**
2916
+ * Type of the line item.
2917
+ */
2918
+ category?: LineItem.Category;
2919
+
2920
+ /**
2921
+ * Description of the line item.
2922
+ */
2923
+ description?: string;
2924
+
2925
+ /**
2926
+ * Descriptive name of the line item.
2927
+ */
2928
+ name: string;
2929
+
2930
+ /**
2931
+ * Quantity of the line item. Cannot be a negative number.
2932
+ */
2933
+ quantity: number;
2934
+
2935
+ /**
2936
+ * Client facing stock keeping unit, article number or similar.
2937
+ */
2938
+ sku?: string;
2939
+
2940
+ /**
2941
+ * 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).
2942
+ */
2943
+ sold_by?: string;
2944
+
2945
+ tax?: LineItem.Tax;
2946
+
2947
+ /**
2948
+ * Price for a single unit of the line item in minor units. Cannot be a negative number.
2949
+ */
2950
+ unit_amount: number;
2951
+ }
2952
+
2953
+ namespace LineItem {
2954
+ type Category = 'digital_goods' | 'donation' | 'physical_goods';
2955
+
2956
+ interface Tax {
2957
+ /**
2958
+ * The tax for a single unit of the line item in minor units. Cannot be a negative number.
2959
+ */
2960
+ amount: number;
2961
+
2962
+ /**
2963
+ * The tax behavior for the line item.
2964
+ */
2965
+ behavior: Tax.Behavior;
2966
+ }
2967
+
2968
+ namespace Tax {
2969
+ type Behavior = 'exclusive' | 'inclusive';
2970
+ }
2971
+ }
2972
+
2973
+ type SetupFutureUsage = 'none' | 'off_session';
2974
+ }
2975
+
2976
+ interface Payto {
2977
+ mandate_options?: Payto.MandateOptions;
2978
+
2979
+ /**
2980
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2981
+ *
2982
+ * 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.
2983
+ *
2984
+ * 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.
2985
+ *
2986
+ * 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).
2987
+ */
2988
+ setup_future_usage?: Payto.SetupFutureUsage;
2989
+ }
2990
+
2991
+ namespace Payto {
2992
+ interface MandateOptions {
2993
+ /**
2994
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2995
+ */
2996
+ amount: number | null;
2997
+
2998
+ /**
2999
+ * 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.
3000
+ */
3001
+ amount_type: MandateOptions.AmountType | null;
3002
+
3003
+ /**
3004
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3005
+ */
3006
+ end_date: string | null;
3007
+
3008
+ /**
3009
+ * The periodicity at which payments will be collected.
3010
+ */
3011
+ payment_schedule: MandateOptions.PaymentSchedule | null;
3012
+
3013
+ /**
3014
+ * 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.
3015
+ */
3016
+ payments_per_period: number | null;
3017
+
3018
+ /**
3019
+ * The purpose for which payments are made. Defaults to retail.
3020
+ */
3021
+ purpose: MandateOptions.Purpose | null;
3022
+ }
3023
+
3024
+ namespace MandateOptions {
3025
+ type AmountType = 'fixed' | 'maximum';
3026
+
3027
+ type PaymentSchedule =
3028
+ | 'adhoc'
3029
+ | 'annual'
3030
+ | 'daily'
3031
+ | 'fortnightly'
3032
+ | 'monthly'
3033
+ | 'quarterly'
3034
+ | 'semi_annual'
3035
+ | 'weekly';
3036
+
3037
+ type Purpose =
3038
+ | 'dependant_support'
3039
+ | 'government'
3040
+ | 'loan'
3041
+ | 'mortgage'
3042
+ | 'other'
3043
+ | 'pension'
3044
+ | 'personal'
3045
+ | 'retail'
3046
+ | 'salary'
3047
+ | 'tax'
3048
+ | 'utility';
3049
+ }
3050
+
2394
3051
  type SetupFutureUsage = 'none' | 'off_session';
2395
3052
  }
2396
3053
 
@@ -2430,6 +3087,21 @@ declare module 'stripe' {
2430
3087
  setup_future_usage?: 'none';
2431
3088
  }
2432
3089
 
3090
+ interface Qris {
3091
+ /**
3092
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3093
+ *
3094
+ * 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.
3095
+ *
3096
+ * 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.
3097
+ *
3098
+ * 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).
3099
+ */
3100
+ setup_future_usage?: 'none';
3101
+ }
3102
+
3103
+ interface Rechnung {}
3104
+
2433
3105
  interface RevolutPay {
2434
3106
  /**
2435
3107
  * Controls when the funds will be captured from the customer's account.
@@ -2490,6 +3162,19 @@ declare module 'stripe' {
2490
3162
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2491
3163
  }
2492
3164
 
3165
+ interface Shopeepay {
3166
+ /**
3167
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3168
+ *
3169
+ * 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.
3170
+ *
3171
+ * 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.
3172
+ *
3173
+ * 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).
3174
+ */
3175
+ setup_future_usage?: 'none';
3176
+ }
3177
+
2493
3178
  interface Sofort {
2494
3179
  /**
2495
3180
  * Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -2521,6 +3206,23 @@ declare module 'stripe' {
2521
3206
  type SetupFutureUsage = 'none' | 'off_session';
2522
3207
  }
2523
3208
 
3209
+ interface StripeBalance {
3210
+ /**
3211
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3212
+ *
3213
+ * 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.
3214
+ *
3215
+ * 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.
3216
+ *
3217
+ * 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).
3218
+ */
3219
+ setup_future_usage?: StripeBalance.SetupFutureUsage;
3220
+ }
3221
+
3222
+ namespace StripeBalance {
3223
+ type SetupFutureUsage = 'none' | 'off_session';
3224
+ }
3225
+
2524
3226
  interface Swish {
2525
3227
  /**
2526
3228
  * A reference for this payment to be displayed in the Swish app.
@@ -2588,6 +3290,8 @@ declare module 'stripe' {
2588
3290
  interface FinancialConnections {
2589
3291
  filters?: FinancialConnections.Filters;
2590
3292
 
3293
+ manual_entry?: FinancialConnections.ManualEntry;
3294
+
2591
3295
  /**
2592
3296
  * The list of permissions to request. The `payment_method` permission must be included.
2593
3297
  */
@@ -2610,19 +3314,39 @@ declare module 'stripe' {
2610
3314
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2611
3315
  */
2612
3316
  account_subcategories?: Array<Filters.AccountSubcategory>;
3317
+
3318
+ /**
3319
+ * The institution to use to filter for possible accounts to link.
3320
+ */
3321
+ institution?: string;
2613
3322
  }
2614
3323
 
2615
3324
  namespace Filters {
2616
3325
  type AccountSubcategory = 'checking' | 'savings';
2617
3326
  }
2618
3327
 
3328
+ interface ManualEntry {
3329
+ /**
3330
+ * Settings for configuring manual entry of account details.
3331
+ */
3332
+ mode?: ManualEntry.Mode;
3333
+ }
3334
+
3335
+ namespace ManualEntry {
3336
+ type Mode = 'automatic' | 'custom';
3337
+ }
3338
+
2619
3339
  type Permission =
2620
3340
  | 'balances'
2621
3341
  | 'ownership'
2622
3342
  | 'payment_method'
2623
3343
  | 'transactions';
2624
3344
 
2625
- type Prefetch = 'balances' | 'ownership' | 'transactions';
3345
+ type Prefetch =
3346
+ | 'balances'
3347
+ | 'inferred_balances'
3348
+ | 'ownership'
3349
+ | 'transactions';
2626
3350
  }
2627
3351
 
2628
3352
  interface MandateOptions {
@@ -2721,6 +3445,8 @@ declare module 'stripe' {
2721
3445
  }
2722
3446
  }
2723
3447
 
3448
+ type SecretKeyConfirmation = 'optional' | 'required';
3449
+
2724
3450
  type SetupFutureUsage = 'off_session' | 'on_session';
2725
3451
 
2726
3452
  interface Shipping {