stripe 18.4.0 → 18.5.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 (296) hide show
  1. package/CHANGELOG.md +1322 -37
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +107 -1
  5. package/cjs/apiVersion.js +2 -3
  6. package/cjs/resources/AccountNotices.js +21 -0
  7. package/cjs/resources/BalanceSettings.js +10 -0
  8. package/cjs/resources/Billing/MeterUsage.js +12 -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/FxQuotes.js +15 -0
  16. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  17. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  18. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  19. package/cjs/resources/Margins.js +22 -0
  20. package/cjs/resources/Orders.js +24 -0
  21. package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
  22. package/cjs/resources/PaymentIntents.js +13 -0
  23. package/cjs/resources/PaymentRecords.js +29 -0
  24. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  25. package/cjs/resources/Quotes.js +32 -0
  26. package/cjs/resources/SubscriptionSchedules.js +4 -0
  27. package/cjs/resources/Tax/Associations.js +9 -0
  28. package/cjs/resources/Tax/Forms.js +20 -0
  29. package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
  30. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  31. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  32. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  33. package/cjs/resources/V2/Core/Accounts.js +25 -0
  34. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  35. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  36. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  37. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -0
  38. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  39. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  40. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  41. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  42. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  43. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  44. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  45. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  46. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  47. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  48. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  49. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  50. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  51. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  52. package/cjs/resources.js +102 -10
  53. package/cjs/stripe.core.js +1 -1
  54. package/esm/Error.js +93 -0
  55. package/esm/apiVersion.js +1 -2
  56. package/esm/resources/AccountNotices.js +18 -0
  57. package/esm/resources/BalanceSettings.js +7 -0
  58. package/esm/resources/Billing/MeterUsage.js +9 -0
  59. package/esm/resources/Capital/FinancingOffers.js +18 -0
  60. package/esm/resources/Capital/FinancingSummary.js +9 -0
  61. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  62. package/esm/resources/ExternalAccounts.js +20 -0
  63. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  64. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  65. package/esm/resources/FxQuotes.js +12 -0
  66. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  67. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  68. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  69. package/esm/resources/Margins.js +19 -0
  70. package/esm/resources/Orders.js +21 -0
  71. package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
  72. package/esm/resources/PaymentIntents.js +13 -0
  73. package/esm/resources/PaymentRecords.js +26 -0
  74. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  75. package/esm/resources/Quotes.js +32 -0
  76. package/esm/resources/SubscriptionSchedules.js +4 -0
  77. package/esm/resources/Tax/Associations.js +6 -0
  78. package/esm/resources/Tax/Forms.js +17 -0
  79. package/esm/resources/Terminal/OnboardingLinks.js +9 -0
  80. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  81. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  82. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  83. package/esm/resources/V2/Core/Accounts.js +22 -0
  84. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  85. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  86. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  87. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -0
  88. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  89. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  90. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  91. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  92. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  93. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  94. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  95. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  96. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  97. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  98. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  99. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  100. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  101. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  102. package/esm/resources.js +86 -1
  103. package/esm/stripe.core.js +1 -1
  104. package/package.json +1 -1
  105. package/types/AccountLinksResource.d.ts +5 -1
  106. package/types/AccountNotices.d.ts +113 -0
  107. package/types/AccountNoticesResource.d.ts +98 -0
  108. package/types/AccountSessions.d.ts +45 -0
  109. package/types/AccountSessionsResource.d.ts +264 -0
  110. package/types/Accounts.d.ts +212 -1
  111. package/types/AccountsResource.d.ts +544 -0
  112. package/types/BalanceSettings.d.ts +91 -0
  113. package/types/BalanceSettingsResource.d.ts +110 -0
  114. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  115. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  116. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  117. package/types/Billing/CreditGrants.d.ts +5 -0
  118. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  119. package/types/Billing/MeterUsage.d.ts +32 -0
  120. package/types/Billing/MeterUsageResource.d.ts +685 -0
  121. package/types/Billing/MeterUsageRows.d.ts +49 -0
  122. package/types/BillingPortal/Sessions.d.ts +5 -0
  123. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  124. package/types/Capital/FinancingOffers.d.ts +188 -0
  125. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  126. package/types/Capital/FinancingSummary.d.ts +106 -0
  127. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  128. package/types/Capital/FinancingTransactions.d.ts +135 -0
  129. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  130. package/types/Cards.d.ts +5 -0
  131. package/types/CashBalances.d.ts +5 -0
  132. package/types/Charges.d.ts +166 -0
  133. package/types/ChargesResource.d.ts +1406 -0
  134. package/types/Checkout/Sessions.d.ts +314 -1
  135. package/types/Checkout/SessionsResource.d.ts +414 -1
  136. package/types/ConfirmationTokens.d.ts +125 -0
  137. package/types/Coupons.d.ts +33 -0
  138. package/types/CouponsResource.d.ts +21 -0
  139. package/types/CreditNoteLineItems.d.ts +17 -0
  140. package/types/CreditNotes.d.ts +5 -0
  141. package/types/CreditNotesResource.d.ts +5 -0
  142. package/types/CustomerBalanceTransactions.d.ts +2 -0
  143. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  144. package/types/CustomerSessions.d.ts +5 -0
  145. package/types/CustomerSessionsResource.d.ts +6 -1
  146. package/types/Customers.d.ts +2 -0
  147. package/types/CustomersResource.d.ts +8 -0
  148. package/types/Discounts.d.ts +10 -0
  149. package/types/Disputes.d.ts +29 -0
  150. package/types/Errors.d.ts +81 -2
  151. package/types/EventTypes.d.ts +664 -0
  152. package/types/Events.d.ts +97 -0
  153. package/types/ExternalAccountsResource.d.ts +304 -0
  154. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  155. package/types/FinancialConnections/Accounts.d.ts +36 -1
  156. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  157. package/types/FinancialConnections/Institutions.d.ts +98 -0
  158. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  159. package/types/FinancialConnections/Sessions.d.ts +51 -1
  160. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  161. package/types/FxQuotes.d.ts +155 -0
  162. package/types/FxQuotesResource.d.ts +130 -0
  163. package/types/Identity/VerificationSessions.d.ts +5 -0
  164. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  165. package/types/InvoiceItems.d.ts +10 -0
  166. package/types/InvoiceItemsResource.d.ts +117 -6
  167. package/types/InvoiceLineItems.d.ts +45 -1
  168. package/types/InvoicePayments.d.ts +5 -0
  169. package/types/Invoices.d.ts +171 -3
  170. package/types/InvoicesResource.d.ts +1537 -26
  171. package/types/Issuing/CardholdersResource.d.ts +2 -1
  172. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  173. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  174. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  175. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  176. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  177. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  178. package/types/Issuing/Settlements.d.ts +113 -0
  179. package/types/Issuing/Transactions.d.ts +5 -0
  180. package/types/Issuing/TransactionsResource.d.ts +5 -0
  181. package/types/LineItems.d.ts +49 -0
  182. package/types/Mandates.d.ts +77 -0
  183. package/types/Margins.d.ts +56 -0
  184. package/types/MarginsResource.d.ts +114 -0
  185. package/types/Orders.d.ts +1163 -0
  186. package/types/OrdersResource.d.ts +3139 -0
  187. package/types/PaymentAttemptRecords.d.ts +2166 -0
  188. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  189. package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
  190. package/types/PaymentIntents.d.ts +768 -2
  191. package/types/PaymentIntentsResource.d.ts +11341 -5700
  192. package/types/PaymentLinks.d.ts +6 -0
  193. package/types/PaymentLinksResource.d.ts +12 -0
  194. package/types/PaymentMethodConfigurations.d.ts +180 -0
  195. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  196. package/types/PaymentMethods.d.ts +125 -0
  197. package/types/PaymentMethodsResource.d.ts +167 -2
  198. package/types/PaymentRecords.d.ts +2159 -0
  199. package/types/PaymentRecordsResource.d.ts +455 -0
  200. package/types/Payouts.d.ts +5 -0
  201. package/types/PayoutsResource.d.ts +5 -0
  202. package/types/Prices.d.ts +22 -0
  203. package/types/PricesResource.d.ts +22 -0
  204. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  205. package/types/Privacy/RedactionJobs.d.ts +111 -0
  206. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  207. package/types/PromotionCodes.d.ts +5 -0
  208. package/types/PromotionCodesResource.d.ts +10 -0
  209. package/types/QuoteLines.d.ts +634 -0
  210. package/types/QuotePreviewInvoices.d.ts +1734 -0
  211. package/types/QuotePreviewSubscriptionSchedules.d.ts +845 -0
  212. package/types/Quotes.d.ts +594 -1
  213. package/types/QuotesResource.d.ts +2577 -232
  214. package/types/Refunds.d.ts +14 -0
  215. package/types/SetupAttempts.d.ts +47 -1
  216. package/types/SetupIntents.d.ts +118 -2
  217. package/types/SetupIntentsResource.d.ts +730 -3
  218. package/types/Sources.d.ts +29 -0
  219. package/types/SubscriptionItems.d.ts +21 -0
  220. package/types/SubscriptionItemsResource.d.ts +109 -0
  221. package/types/SubscriptionSchedules.d.ts +205 -0
  222. package/types/SubscriptionSchedulesResource.d.ts +1237 -9
  223. package/types/Subscriptions.d.ts +135 -1
  224. package/types/SubscriptionsResource.d.ts +472 -8
  225. package/types/Tax/Associations.d.ts +82 -0
  226. package/types/Tax/AssociationsResource.d.ts +29 -0
  227. package/types/Tax/Forms.d.ts +220 -0
  228. package/types/Tax/FormsResource.d.ts +107 -0
  229. package/types/TaxIds.d.ts +10 -0
  230. package/types/TaxIdsResource.d.ts +10 -0
  231. package/types/Terminal/OnboardingLinks.d.ts +57 -0
  232. package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
  233. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  234. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  235. package/types/Terminal/Readers.d.ts +20 -0
  236. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  237. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  238. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  239. package/types/Transfers.d.ts +5 -0
  240. package/types/TransfersResource.d.ts +5 -0
  241. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  242. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  243. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  244. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  245. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  246. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  247. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  248. package/types/V2/Core/AccountLinks.d.ts +168 -0
  249. package/types/V2/Core/AccountLinksResource.d.ts +152 -0
  250. package/types/V2/Core/Accounts/PersonsResource.d.ts +3780 -0
  251. package/types/V2/Core/Accounts.d.ts +8813 -0
  252. package/types/V2/Core/AccountsResource.d.ts +10626 -0
  253. package/types/V2/Core/Persons.d.ts +1872 -0
  254. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  255. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  256. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  257. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  258. package/types/V2/EventTypes.d.ts +965 -5
  259. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  260. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  261. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  262. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  263. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +580 -0
  264. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +326 -0
  265. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
  266. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +289 -0
  267. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  268. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  269. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
  270. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  271. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  272. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  273. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  274. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  275. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  276. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
  277. package/types/V2/MoneyManagement/PayoutMethods.d.ts +160 -0
  278. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  279. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
  280. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  281. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +262 -0
  282. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  283. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
  284. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  285. package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
  286. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  287. package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
  288. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  289. package/types/V2/Payments/OffSessionPayments.d.ts +179 -0
  290. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +174 -0
  291. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +68 -0
  292. package/types/WebhookEndpointsResource.d.ts +78 -0
  293. package/types/index.d.ts +145 -2
  294. package/types/lib.d.ts +11 -1
  295. package/types/test/typescriptTest.ts +3 -3
  296. package/types/InvoicePaymentsResource.d.ts +0 -74
@@ -106,11 +106,27 @@ declare module 'stripe' {
106
106
  */
107
107
  customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
108
108
 
109
+ /**
110
+ * ID of the Account this PaymentIntent belongs to, if one exists.
111
+ *
112
+ * Payment methods attached to other Accounts cannot be used with this PaymentIntent.
113
+ *
114
+ * 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.
115
+ */
116
+ customer_account?: string | null;
117
+
109
118
  /**
110
119
  * An arbitrary string attached to the object. Often useful for displaying to users.
111
120
  */
112
121
  description: string | null;
113
122
 
123
+ /**
124
+ * The FX Quote used for the PaymentIntent.
125
+ */
126
+ fx_quote?: string | null;
127
+
128
+ hooks?: PaymentIntent.Hooks;
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.
@@ -277,6 +338,25 @@ declare module 'stripe' {
277
338
 
278
339
  type ConfirmationMethod = 'automatic' | 'manual';
279
340
 
341
+ interface Hooks {
342
+ inputs?: Hooks.Inputs;
343
+ }
344
+
345
+ namespace Hooks {
346
+ interface Inputs {
347
+ tax?: Inputs.Tax;
348
+ }
349
+
350
+ namespace Inputs {
351
+ interface Tax {
352
+ /**
353
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
354
+ */
355
+ calculation: string;
356
+ }
357
+ }
358
+ }
359
+
280
360
  interface LastPaymentError {
281
361
  /**
282
362
  * For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
@@ -440,6 +520,7 @@ 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'
@@ -536,6 +617,7 @@ declare module 'stripe' {
536
617
  | 'return_intent_already_processed'
537
618
  | 'routing_number_invalid'
538
619
  | 'secret_key_required'
620
+ | 'sensitive_data_access_expired'
539
621
  | 'sepa_unsupported_account'
540
622
  | 'setup_attempt_failed'
541
623
  | 'setup_intent_authentication_failure'
@@ -555,6 +637,7 @@ declare module 'stripe' {
555
637
  | 'taxes_calculation_failed'
556
638
  | 'terminal_location_country_unsupported'
557
639
  | 'terminal_reader_busy'
640
+ | 'terminal_reader_collected_data_invalid'
558
641
  | 'terminal_reader_hardware_fault'
559
642
  | 'terminal_reader_invalid_location_for_activation'
560
643
  | 'terminal_reader_invalid_location_for_payment'
@@ -567,7 +650,9 @@ declare module 'stripe' {
567
650
  | 'token_in_use'
568
651
  | 'transfer_source_balance_parameters_mismatch'
569
652
  | 'transfers_not_allowed'
570
- | 'url_invalid';
653
+ | 'url_invalid'
654
+ | 'v2_account_disconnection_unsupported'
655
+ | 'v2_account_missing_configuration';
571
656
 
572
657
  type Type =
573
658
  | 'api_error'
@@ -1331,6 +1416,338 @@ declare module 'stripe' {
1331
1416
  }
1332
1417
  }
1333
1418
 
1419
+ interface PaymentDetails {
1420
+ car_rental?: PaymentDetails.CarRental;
1421
+
1422
+ /**
1423
+ * 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.
1424
+ */
1425
+ customer_reference?: string | null;
1426
+
1427
+ event_details?: PaymentDetails.EventDetails;
1428
+
1429
+ /**
1430
+ * A unique value assigned by the business to identify the transaction.
1431
+ */
1432
+ order_reference?: string | null;
1433
+
1434
+ subscription?: PaymentDetails.Subscription;
1435
+ }
1436
+
1437
+ namespace PaymentDetails {
1438
+ interface CarRental {
1439
+ affiliate?: CarRental.Affiliate;
1440
+
1441
+ /**
1442
+ * The booking number associated with the car rental.
1443
+ */
1444
+ booking_number: string;
1445
+
1446
+ /**
1447
+ * Class code of the car.
1448
+ */
1449
+ car_class_code?: string;
1450
+
1451
+ /**
1452
+ * Make of the car.
1453
+ */
1454
+ car_make?: string;
1455
+
1456
+ /**
1457
+ * Model of the car.
1458
+ */
1459
+ car_model?: string;
1460
+
1461
+ /**
1462
+ * The name of the rental car company.
1463
+ */
1464
+ company?: string;
1465
+
1466
+ /**
1467
+ * The customer service phone number of the car rental company.
1468
+ */
1469
+ customer_service_phone_number?: string;
1470
+
1471
+ /**
1472
+ * Number of days the car is being rented.
1473
+ */
1474
+ days_rented: number;
1475
+
1476
+ delivery?: CarRental.Delivery;
1477
+
1478
+ distance?: CarRental.Distance;
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
+ * Name of the pickup location.
1504
+ */
1505
+ pickup_location_name?: string;
1506
+
1507
+ /**
1508
+ * Rental rate.
1509
+ */
1510
+ rate_amount?: number;
1511
+
1512
+ /**
1513
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1514
+ */
1515
+ rate_interval?: CarRental.RateInterval;
1516
+
1517
+ /**
1518
+ * The full name of the person or entity renting the car.
1519
+ */
1520
+ renter_name?: string;
1521
+
1522
+ return_address?: Stripe.Address;
1523
+
1524
+ /**
1525
+ * Car return time. Measured in seconds since the Unix epoch.
1526
+ */
1527
+ return_at: number;
1528
+
1529
+ /**
1530
+ * Name of the return location.
1531
+ */
1532
+ return_location_name?: string;
1533
+
1534
+ /**
1535
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1536
+ */
1537
+ tax_exempt?: boolean;
1538
+
1539
+ /**
1540
+ * The vehicle identification number of the car.
1541
+ */
1542
+ vehicle_identification_number?: string;
1543
+ }
1544
+
1545
+ namespace CarRental {
1546
+ interface Affiliate {
1547
+ /**
1548
+ * The name of the affiliate that originated the purchase.
1549
+ */
1550
+ name?: string;
1551
+ }
1552
+
1553
+ interface Delivery {
1554
+ /**
1555
+ * The delivery method for the payment
1556
+ */
1557
+ mode?: Delivery.Mode;
1558
+
1559
+ recipient?: Delivery.Recipient;
1560
+ }
1561
+
1562
+ namespace Delivery {
1563
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1564
+
1565
+ interface Recipient {
1566
+ /**
1567
+ * The email of the recipient the ticket is delivered to.
1568
+ */
1569
+ email?: string;
1570
+
1571
+ /**
1572
+ * The name of the recipient the ticket is delivered to.
1573
+ */
1574
+ name?: string;
1575
+
1576
+ /**
1577
+ * The phone number of the recipient the ticket is delivered to.
1578
+ */
1579
+ phone?: string;
1580
+ }
1581
+ }
1582
+
1583
+ interface Distance {
1584
+ /**
1585
+ * Distance traveled.
1586
+ */
1587
+ amount?: number;
1588
+
1589
+ /**
1590
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1591
+ */
1592
+ unit?: string;
1593
+ }
1594
+
1595
+ interface Driver {
1596
+ /**
1597
+ * Driver's identification number.
1598
+ */
1599
+ driver_identification_number?: string;
1600
+
1601
+ /**
1602
+ * Driver's tax number.
1603
+ */
1604
+ driver_tax_number?: string;
1605
+
1606
+ /**
1607
+ * Full name of the driver on the reservation.
1608
+ */
1609
+ name?: string;
1610
+ }
1611
+
1612
+ type ExtraCharge =
1613
+ | 'extra_mileage'
1614
+ | 'gas'
1615
+ | 'late_return'
1616
+ | 'one_way_service'
1617
+ | 'parking_violation';
1618
+
1619
+ type RateInterval = 'day' | 'month' | 'week';
1620
+ }
1621
+
1622
+ interface EventDetails {
1623
+ /**
1624
+ * Indicates if the tickets are digitally checked when entering the venue.
1625
+ */
1626
+ access_controlled_venue?: boolean;
1627
+
1628
+ address?: Stripe.Address;
1629
+
1630
+ affiliate?: EventDetails.Affiliate;
1631
+
1632
+ /**
1633
+ * The name of the company
1634
+ */
1635
+ company?: string;
1636
+
1637
+ delivery?: EventDetails.Delivery;
1638
+
1639
+ /**
1640
+ * Event end time. Measured in seconds since the Unix epoch.
1641
+ */
1642
+ ends_at?: number;
1643
+
1644
+ /**
1645
+ * Type of the event entertainment (concert, sports event etc)
1646
+ */
1647
+ genre?: string;
1648
+
1649
+ /**
1650
+ * The name of the event.
1651
+ */
1652
+ name?: string;
1653
+
1654
+ /**
1655
+ * Event start time. Measured in seconds since the Unix epoch.
1656
+ */
1657
+ starts_at?: number;
1658
+ }
1659
+
1660
+ namespace EventDetails {
1661
+ interface Affiliate {
1662
+ /**
1663
+ * The name of the affiliate that originated the purchase.
1664
+ */
1665
+ name?: string;
1666
+ }
1667
+
1668
+ interface Delivery {
1669
+ /**
1670
+ * The delivery method for the payment
1671
+ */
1672
+ mode?: Delivery.Mode;
1673
+
1674
+ recipient?: Delivery.Recipient;
1675
+ }
1676
+
1677
+ namespace Delivery {
1678
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1679
+
1680
+ interface Recipient {
1681
+ /**
1682
+ * The email of the recipient the ticket is delivered to.
1683
+ */
1684
+ email?: string;
1685
+
1686
+ /**
1687
+ * The name of the recipient the ticket is delivered to.
1688
+ */
1689
+ name?: string;
1690
+
1691
+ /**
1692
+ * The phone number of the recipient the ticket is delivered to.
1693
+ */
1694
+ phone?: string;
1695
+ }
1696
+ }
1697
+ }
1698
+
1699
+ interface Subscription {
1700
+ affiliate?: Subscription.Affiliate;
1701
+
1702
+ /**
1703
+ * Info whether the subscription will be auto renewed upon expiry.
1704
+ */
1705
+ auto_renewal?: boolean;
1706
+
1707
+ billing_interval?: Subscription.BillingInterval;
1708
+
1709
+ /**
1710
+ * Subscription end time. Measured in seconds since the Unix epoch.
1711
+ */
1712
+ ends_at?: number;
1713
+
1714
+ /**
1715
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1716
+ */
1717
+ name?: string;
1718
+
1719
+ /**
1720
+ * Subscription start time. Measured in seconds since the Unix epoch.
1721
+ */
1722
+ starts_at?: number;
1723
+ }
1724
+
1725
+ namespace Subscription {
1726
+ interface Affiliate {
1727
+ /**
1728
+ * The name of the affiliate that originated the purchase.
1729
+ */
1730
+ name?: string;
1731
+ }
1732
+
1733
+ interface BillingInterval {
1734
+ /**
1735
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1736
+ */
1737
+ count?: number;
1738
+
1739
+ /**
1740
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1741
+ */
1742
+ interval?: BillingInterval.Interval;
1743
+ }
1744
+
1745
+ namespace BillingInterval {
1746
+ type Interval = 'day' | 'month' | 'week' | 'year';
1747
+ }
1748
+ }
1749
+ }
1750
+
1334
1751
  interface PaymentMethodConfigurationDetails {
1335
1752
  /**
1336
1753
  * ID of the payment method configuration used.
@@ -1384,8 +1801,12 @@ declare module 'stripe' {
1384
1801
 
1385
1802
  giropay?: PaymentMethodOptions.Giropay;
1386
1803
 
1804
+ gopay?: PaymentMethodOptions.Gopay;
1805
+
1387
1806
  grabpay?: PaymentMethodOptions.Grabpay;
1388
1807
 
1808
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1809
+
1389
1810
  ideal?: PaymentMethodOptions.Ideal;
1390
1811
 
1391
1812
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -1400,6 +1821,8 @@ declare module 'stripe' {
1400
1821
 
1401
1822
  link?: PaymentMethodOptions.Link;
1402
1823
 
1824
+ mb_way?: PaymentMethodOptions.MbWay;
1825
+
1403
1826
  mobilepay?: PaymentMethodOptions.Mobilepay;
1404
1827
 
1405
1828
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1420,10 +1843,16 @@ declare module 'stripe' {
1420
1843
 
1421
1844
  paypal?: PaymentMethodOptions.Paypal;
1422
1845
 
1846
+ payto?: PaymentMethodOptions.Payto;
1847
+
1423
1848
  pix?: PaymentMethodOptions.Pix;
1424
1849
 
1425
1850
  promptpay?: PaymentMethodOptions.Promptpay;
1426
1851
 
1852
+ qris?: PaymentMethodOptions.Qris;
1853
+
1854
+ rechnung?: PaymentMethodOptions.Rechnung;
1855
+
1427
1856
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1428
1857
 
1429
1858
  samsung_pay?: PaymentMethodOptions.SamsungPay;
@@ -1432,8 +1861,12 @@ declare module 'stripe' {
1432
1861
 
1433
1862
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1434
1863
 
1864
+ shopeepay?: PaymentMethodOptions.Shopeepay;
1865
+
1435
1866
  sofort?: PaymentMethodOptions.Sofort;
1436
1867
 
1868
+ stripe_balance?: PaymentMethodOptions.StripeBalance;
1869
+
1437
1870
  swish?: PaymentMethodOptions.Swish;
1438
1871
 
1439
1872
  twint?: PaymentMethodOptions.Twint;
@@ -1740,6 +2173,11 @@ declare module 'stripe' {
1740
2173
  */
1741
2174
  network: Card.Network | null;
1742
2175
 
2176
+ /**
2177
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2178
+ */
2179
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
2180
+
1743
2181
  /**
1744
2182
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1745
2183
  */
@@ -1760,6 +2198,11 @@ declare module 'stripe' {
1760
2198
  */
1761
2199
  request_overcapture?: Card.RequestOvercapture;
1762
2200
 
2201
+ /**
2202
+ * Request partial authorization on this PaymentIntent.
2203
+ */
2204
+ request_partial_authorization?: Card.RequestPartialAuthorization;
2205
+
1763
2206
  /**
1764
2207
  * 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.
1765
2208
  */
@@ -1790,6 +2233,8 @@ declare module 'stripe' {
1790
2233
  * 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.
1791
2234
  */
1792
2235
  statement_descriptor_suffix_kanji?: string;
2236
+
2237
+ statement_details?: Card.StatementDetails;
1793
2238
  }
1794
2239
 
1795
2240
  namespace Card {
@@ -1924,6 +2369,8 @@ declare module 'stripe' {
1924
2369
  | 'unknown'
1925
2370
  | 'visa';
1926
2371
 
2372
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2373
+
1927
2374
  type RequestExtendedAuthorization = 'if_available' | 'never';
1928
2375
 
1929
2376
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1932,9 +2379,54 @@ declare module 'stripe' {
1932
2379
 
1933
2380
  type RequestOvercapture = 'if_available' | 'never';
1934
2381
 
2382
+ type RequestPartialAuthorization = 'if_available' | 'never';
2383
+
1935
2384
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1936
2385
 
1937
2386
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2387
+
2388
+ interface StatementDetails {
2389
+ address?: StatementDetails.Address;
2390
+
2391
+ /**
2392
+ * Phone number
2393
+ */
2394
+ phone?: string;
2395
+ }
2396
+
2397
+ namespace StatementDetails {
2398
+ interface Address {
2399
+ /**
2400
+ * City, district, suburb, town, or village.
2401
+ */
2402
+ city?: string;
2403
+
2404
+ /**
2405
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2406
+ */
2407
+ country?: string;
2408
+
2409
+ /**
2410
+ * Address line 1 (e.g., street, PO Box, or company name).
2411
+ */
2412
+ line1?: string;
2413
+
2414
+ /**
2415
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2416
+ */
2417
+ line2?: string;
2418
+
2419
+ /**
2420
+ * ZIP or postal code.
2421
+ */
2422
+ postal_code?: string;
2423
+
2424
+ /**
2425
+ * State, county, province, or region.
2426
+ */
2427
+ state?: string;
2428
+ }
2429
+ }
1938
2430
  }
1939
2431
 
1940
2432
  interface CardPresent {
@@ -2105,6 +2597,23 @@ declare module 'stripe' {
2105
2597
  setup_future_usage?: 'none';
2106
2598
  }
2107
2599
 
2600
+ interface Gopay {
2601
+ /**
2602
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2603
+ *
2604
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2605
+ *
2606
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2607
+ *
2608
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2609
+ */
2610
+ setup_future_usage?: Gopay.SetupFutureUsage;
2611
+ }
2612
+
2613
+ namespace Gopay {
2614
+ type SetupFutureUsage = 'none' | 'off_session';
2615
+ }
2616
+
2108
2617
  interface Grabpay {
2109
2618
  /**
2110
2619
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2118,6 +2627,29 @@ declare module 'stripe' {
2118
2627
  setup_future_usage?: 'none';
2119
2628
  }
2120
2629
 
2630
+ interface IdBankTransfer {
2631
+ /**
2632
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2633
+ */
2634
+ expires_after?: number | null;
2635
+
2636
+ /**
2637
+ * 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.
2638
+ */
2639
+ expires_at: number | null;
2640
+
2641
+ /**
2642
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2643
+ *
2644
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2645
+ *
2646
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2647
+ *
2648
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2649
+ */
2650
+ setup_future_usage?: 'none';
2651
+ }
2652
+
2121
2653
  interface Ideal {
2122
2654
  /**
2123
2655
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2269,6 +2801,19 @@ declare module 'stripe' {
2269
2801
  type SetupFutureUsage = 'none' | 'off_session';
2270
2802
  }
2271
2803
 
2804
+ interface MbWay {
2805
+ /**
2806
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2807
+ *
2808
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2809
+ *
2810
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2811
+ *
2812
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2813
+ */
2814
+ setup_future_usage?: 'none';
2815
+ }
2816
+
2272
2817
  interface Mobilepay {
2273
2818
  /**
2274
2819
  * Controls when the funds will be captured from the customer's account.
@@ -2403,6 +2948,11 @@ declare module 'stripe' {
2403
2948
  */
2404
2949
  capture_method?: 'manual';
2405
2950
 
2951
+ /**
2952
+ * The line items purchased by the customer.
2953
+ */
2954
+ line_items?: Array<Paypal.LineItem>;
2955
+
2406
2956
  /**
2407
2957
  * Preferred locale of the PayPal checkout page that the customer is redirected to.
2408
2958
  */
@@ -2413,6 +2963,11 @@ declare module 'stripe' {
2413
2963
  */
2414
2964
  reference: string | null;
2415
2965
 
2966
+ /**
2967
+ * 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.
2968
+ */
2969
+ reference_id?: string | null;
2970
+
2416
2971
  /**
2417
2972
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2418
2973
  *
@@ -2423,9 +2978,151 @@ declare module 'stripe' {
2423
2978
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2424
2979
  */
2425
2980
  setup_future_usage?: Paypal.SetupFutureUsage;
2981
+
2982
+ /**
2983
+ * 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.
2984
+ */
2985
+ subsellers?: Array<string>;
2426
2986
  }
2427
2987
 
2428
2988
  namespace Paypal {
2989
+ interface LineItem {
2990
+ /**
2991
+ * Type of the line item.
2992
+ */
2993
+ category?: LineItem.Category;
2994
+
2995
+ /**
2996
+ * Description of the line item.
2997
+ */
2998
+ description?: string;
2999
+
3000
+ /**
3001
+ * Descriptive name of the line item.
3002
+ */
3003
+ name: string;
3004
+
3005
+ /**
3006
+ * Quantity of the line item. Cannot be a negative number.
3007
+ */
3008
+ quantity: number;
3009
+
3010
+ /**
3011
+ * Client facing stock keeping unit, article number or similar.
3012
+ */
3013
+ sku?: string;
3014
+
3015
+ /**
3016
+ * 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).
3017
+ */
3018
+ sold_by?: string;
3019
+
3020
+ tax?: LineItem.Tax;
3021
+
3022
+ /**
3023
+ * Price for a single unit of the line item in minor units. Cannot be a negative number.
3024
+ */
3025
+ unit_amount: number;
3026
+ }
3027
+
3028
+ namespace LineItem {
3029
+ type Category = 'digital_goods' | 'donation' | 'physical_goods';
3030
+
3031
+ interface Tax {
3032
+ /**
3033
+ * The tax for a single unit of the line item in minor units. Cannot be a negative number.
3034
+ */
3035
+ amount: number;
3036
+
3037
+ /**
3038
+ * The tax behavior for the line item.
3039
+ */
3040
+ behavior: Tax.Behavior;
3041
+ }
3042
+
3043
+ namespace Tax {
3044
+ type Behavior = 'exclusive' | 'inclusive';
3045
+ }
3046
+ }
3047
+
3048
+ type SetupFutureUsage = 'none' | 'off_session';
3049
+ }
3050
+
3051
+ interface Payto {
3052
+ mandate_options?: Payto.MandateOptions;
3053
+
3054
+ /**
3055
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3056
+ *
3057
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3058
+ *
3059
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3060
+ *
3061
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
3062
+ */
3063
+ setup_future_usage?: Payto.SetupFutureUsage;
3064
+ }
3065
+
3066
+ namespace Payto {
3067
+ interface MandateOptions {
3068
+ /**
3069
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
3070
+ */
3071
+ amount: number | null;
3072
+
3073
+ /**
3074
+ * 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.
3075
+ */
3076
+ amount_type: MandateOptions.AmountType | null;
3077
+
3078
+ /**
3079
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3080
+ */
3081
+ end_date: string | null;
3082
+
3083
+ /**
3084
+ * The periodicity at which payments will be collected.
3085
+ */
3086
+ payment_schedule: MandateOptions.PaymentSchedule | null;
3087
+
3088
+ /**
3089
+ * 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.
3090
+ */
3091
+ payments_per_period: number | null;
3092
+
3093
+ /**
3094
+ * The purpose for which payments are made. Defaults to retail.
3095
+ */
3096
+ purpose: MandateOptions.Purpose | null;
3097
+ }
3098
+
3099
+ namespace MandateOptions {
3100
+ type AmountType = 'fixed' | 'maximum';
3101
+
3102
+ type PaymentSchedule =
3103
+ | 'adhoc'
3104
+ | 'annual'
3105
+ | 'daily'
3106
+ | 'fortnightly'
3107
+ | 'monthly'
3108
+ | 'quarterly'
3109
+ | 'semi_annual'
3110
+ | 'weekly';
3111
+
3112
+ type Purpose =
3113
+ | 'dependant_support'
3114
+ | 'government'
3115
+ | 'loan'
3116
+ | 'mortgage'
3117
+ | 'other'
3118
+ | 'pension'
3119
+ | 'personal'
3120
+ | 'retail'
3121
+ | 'salary'
3122
+ | 'tax'
3123
+ | 'utility';
3124
+ }
3125
+
2429
3126
  type SetupFutureUsage = 'none' | 'off_session';
2430
3127
  }
2431
3128
 
@@ -2465,6 +3162,21 @@ declare module 'stripe' {
2465
3162
  setup_future_usage?: 'none';
2466
3163
  }
2467
3164
 
3165
+ interface Qris {
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://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3170
+ *
3171
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
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://docs.stripe.com/strong-customer-authentication).
3174
+ */
3175
+ setup_future_usage?: 'none';
3176
+ }
3177
+
3178
+ interface Rechnung {}
3179
+
2468
3180
  interface RevolutPay {
2469
3181
  /**
2470
3182
  * Controls when the funds will be captured from the customer's account.
@@ -2532,6 +3244,19 @@ declare module 'stripe' {
2532
3244
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2533
3245
  }
2534
3246
 
3247
+ interface Shopeepay {
3248
+ /**
3249
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3250
+ *
3251
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3252
+ *
3253
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3254
+ *
3255
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
3256
+ */
3257
+ setup_future_usage?: 'none';
3258
+ }
3259
+
2535
3260
  interface Sofort {
2536
3261
  /**
2537
3262
  * Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -2563,6 +3288,23 @@ declare module 'stripe' {
2563
3288
  type SetupFutureUsage = 'none' | 'off_session';
2564
3289
  }
2565
3290
 
3291
+ interface StripeBalance {
3292
+ /**
3293
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3294
+ *
3295
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3296
+ *
3297
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3298
+ *
3299
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
3300
+ */
3301
+ setup_future_usage?: StripeBalance.SetupFutureUsage;
3302
+ }
3303
+
3304
+ namespace StripeBalance {
3305
+ type SetupFutureUsage = 'none' | 'off_session';
3306
+ }
3307
+
2566
3308
  interface Swish {
2567
3309
  /**
2568
3310
  * A reference for this payment to be displayed in the Swish app.
@@ -2630,6 +3372,8 @@ declare module 'stripe' {
2630
3372
  interface FinancialConnections {
2631
3373
  filters?: FinancialConnections.Filters;
2632
3374
 
3375
+ manual_entry?: FinancialConnections.ManualEntry;
3376
+
2633
3377
  /**
2634
3378
  * The list of permissions to request. The `payment_method` permission must be included.
2635
3379
  */
@@ -2652,19 +3396,39 @@ declare module 'stripe' {
2652
3396
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2653
3397
  */
2654
3398
  account_subcategories?: Array<Filters.AccountSubcategory>;
3399
+
3400
+ /**
3401
+ * The institution to use to filter for possible accounts to link.
3402
+ */
3403
+ institution?: string;
2655
3404
  }
2656
3405
 
2657
3406
  namespace Filters {
2658
3407
  type AccountSubcategory = 'checking' | 'savings';
2659
3408
  }
2660
3409
 
3410
+ interface ManualEntry {
3411
+ /**
3412
+ * Settings for configuring manual entry of account details.
3413
+ */
3414
+ mode?: ManualEntry.Mode;
3415
+ }
3416
+
3417
+ namespace ManualEntry {
3418
+ type Mode = 'automatic' | 'custom';
3419
+ }
3420
+
2661
3421
  type Permission =
2662
3422
  | 'balances'
2663
3423
  | 'ownership'
2664
3424
  | 'payment_method'
2665
3425
  | 'transactions';
2666
3426
 
2667
- type Prefetch = 'balances' | 'ownership' | 'transactions';
3427
+ type Prefetch =
3428
+ | 'balances'
3429
+ | 'inferred_balances'
3430
+ | 'ownership'
3431
+ | 'transactions';
2668
3432
  }
2669
3433
 
2670
3434
  interface MandateOptions {
@@ -2763,6 +3527,8 @@ declare module 'stripe' {
2763
3527
  }
2764
3528
  }
2765
3529
 
3530
+ type SecretKeyConfirmation = 'optional' | 'required';
3531
+
2766
3532
  type SetupFutureUsage = 'off_session' | 'on_session';
2767
3533
 
2768
3534
  interface Shipping {