stripe 18.5.0-beta.2 → 18.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/CHANGELOG.md +33 -1327
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +5 -4
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -107
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/PaymentIntents.js +0 -13
  9. package/cjs/resources/Quotes.js +0 -32
  10. package/cjs/resources/SubscriptionSchedules.js +0 -4
  11. package/cjs/resources.js +32 -126
  12. package/cjs/stripe.core.js +1 -1
  13. package/esm/Error.js +0 -93
  14. package/esm/apiVersion.js +2 -1
  15. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  16. package/esm/resources/PaymentIntents.js +0 -13
  17. package/esm/resources/Quotes.js +0 -32
  18. package/esm/resources/SubscriptionSchedules.js +0 -4
  19. package/esm/resources.js +5 -91
  20. package/esm/stripe.core.js +1 -1
  21. package/package.json +1 -1
  22. package/types/AccountLinksResource.d.ts +1 -5
  23. package/types/AccountSessions.d.ts +45 -45
  24. package/types/AccountSessionsResource.d.ts +51 -252
  25. package/types/Accounts.d.ts +3 -214
  26. package/types/AccountsResource.d.ts +0 -544
  27. package/types/Balance.d.ts +2 -7
  28. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  29. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  30. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  31. package/types/Billing/CreditGrants.d.ts +0 -5
  32. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  33. package/types/Billing/Meters.d.ts +1 -1
  34. package/types/Billing/MetersResource.d.ts +1 -1
  35. package/types/BillingPortal/Configurations.d.ts +5 -0
  36. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  37. package/types/BillingPortal/Sessions.d.ts +0 -5
  38. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  39. package/types/Cards.d.ts +0 -5
  40. package/types/CashBalances.d.ts +0 -5
  41. package/types/Charges.d.ts +76 -171
  42. package/types/ChargesResource.d.ts +0 -1406
  43. package/types/Checkout/Sessions.d.ts +9 -313
  44. package/types/Checkout/SessionsResource.d.ts +10 -414
  45. package/types/ConfirmationTokens.d.ts +0 -125
  46. package/types/Coupons.d.ts +0 -33
  47. package/types/CouponsResource.d.ts +0 -21
  48. package/types/CreditNoteLineItems.d.ts +0 -17
  49. package/types/CreditNotes.d.ts +0 -5
  50. package/types/CreditNotesResource.d.ts +3 -8
  51. package/types/CustomerBalanceTransactions.d.ts +0 -2
  52. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  53. package/types/CustomerSessions.d.ts +0 -5
  54. package/types/CustomerSessionsResource.d.ts +1 -6
  55. package/types/Customers.d.ts +0 -2
  56. package/types/CustomersResource.d.ts +0 -8
  57. package/types/Discounts.d.ts +0 -10
  58. package/types/Disputes.d.ts +7 -31
  59. package/types/Errors.d.ts +2 -81
  60. package/types/EventTypes.d.ts +0 -664
  61. package/types/Events.d.ts +0 -97
  62. package/types/FileLinksResource.d.ts +1 -1
  63. package/types/Files.d.ts +1 -0
  64. package/types/FilesResource.d.ts +3 -1
  65. package/types/FinancialConnections/Accounts.d.ts +1 -36
  66. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  67. package/types/FinancialConnections/Sessions.d.ts +1 -51
  68. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  69. package/types/Identity/VerificationSessions.d.ts +0 -5
  70. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  71. package/types/InvoiceItems.d.ts +0 -10
  72. package/types/InvoiceItemsResource.d.ts +6 -117
  73. package/types/InvoiceLineItems.d.ts +1 -45
  74. package/types/InvoicePayments.d.ts +0 -5
  75. package/types/InvoicePaymentsResource.d.ts +1 -7
  76. package/types/Invoices.d.ts +6 -172
  77. package/types/InvoicesResource.d.ts +61 -1513
  78. package/types/Issuing/CardholdersResource.d.ts +1 -2
  79. package/types/Issuing/CardsResource.d.ts +10 -0
  80. package/types/Issuing/Transactions.d.ts +0 -5
  81. package/types/Issuing/TransactionsResource.d.ts +0 -5
  82. package/types/LineItems.d.ts +0 -49
  83. package/types/Mandates.d.ts +0 -77
  84. package/types/PaymentIntents.d.ts +63 -762
  85. package/types/PaymentIntentsResource.d.ts +5567 -11125
  86. package/types/PaymentLinks.d.ts +0 -6
  87. package/types/PaymentLinksResource.d.ts +1 -13
  88. package/types/PaymentMethodConfigurations.d.ts +0 -180
  89. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  90. package/types/PaymentMethods.d.ts +0 -125
  91. package/types/PaymentMethodsResource.d.ts +2 -167
  92. package/types/Payouts.d.ts +1 -1
  93. package/types/Prices.d.ts +0 -22
  94. package/types/PricesResource.d.ts +0 -22
  95. package/types/PromotionCodes.d.ts +5 -7
  96. package/types/PromotionCodesResource.d.ts +0 -10
  97. package/types/Quotes.d.ts +1 -594
  98. package/types/QuotesResource.d.ts +281 -2626
  99. package/types/Refunds.d.ts +0 -14
  100. package/types/SetupAttempts.d.ts +4 -48
  101. package/types/SetupIntents.d.ts +5 -119
  102. package/types/SetupIntentsResource.d.ts +3 -730
  103. package/types/Sources.d.ts +0 -29
  104. package/types/SubscriptionItems.d.ts +0 -21
  105. package/types/SubscriptionItemsResource.d.ts +0 -109
  106. package/types/SubscriptionSchedules.d.ts +39 -197
  107. package/types/SubscriptionSchedulesResource.d.ts +83 -1199
  108. package/types/Subscriptions.d.ts +1 -135
  109. package/types/SubscriptionsResource.d.ts +97 -449
  110. package/types/TaxIds.d.ts +0 -10
  111. package/types/TaxIdsResource.d.ts +0 -10
  112. package/types/Terminal/Configurations.d.ts +19 -0
  113. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  114. package/types/Terminal/Readers.d.ts +0 -20
  115. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  116. package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
  117. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  118. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  119. package/types/Transfers.d.ts +0 -5
  120. package/types/TransfersResource.d.ts +0 -5
  121. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  122. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  123. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  124. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  125. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  126. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  127. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  128. package/types/V2/EventTypes.d.ts +4 -964
  129. package/types/WebhookEndpointsResource.d.ts +2 -79
  130. package/types/index.d.ts +2 -147
  131. package/types/lib.d.ts +1 -11
  132. package/types/test/typescriptTest.ts +3 -3
  133. package/cjs/resources/AccountNotices.js +0 -21
  134. package/cjs/resources/BalanceSettings.js +0 -10
  135. package/cjs/resources/Billing/MeterUsage.js +0 -12
  136. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  137. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  138. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  139. package/cjs/resources/ExternalAccounts.js +0 -23
  140. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  141. package/cjs/resources/FxQuotes.js +0 -15
  142. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  143. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  144. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  145. package/cjs/resources/Margins.js +0 -22
  146. package/cjs/resources/Orders.js +0 -24
  147. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  148. package/cjs/resources/PaymentRecords.js +0 -29
  149. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  150. package/cjs/resources/Tax/Associations.js +0 -9
  151. package/cjs/resources/Tax/Forms.js +0 -20
  152. package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
  153. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  154. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  155. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  156. package/cjs/resources/V2/Core/Accounts.js +0 -25
  157. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  158. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  159. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  160. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  161. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  162. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  163. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  164. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  165. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  166. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  167. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  168. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  169. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  171. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  172. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  173. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -25
  174. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  175. package/esm/resources/AccountNotices.js +0 -18
  176. package/esm/resources/BalanceSettings.js +0 -7
  177. package/esm/resources/Billing/MeterUsage.js +0 -9
  178. package/esm/resources/Capital/FinancingOffers.js +0 -18
  179. package/esm/resources/Capital/FinancingSummary.js +0 -9
  180. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  181. package/esm/resources/ExternalAccounts.js +0 -20
  182. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  183. package/esm/resources/FxQuotes.js +0 -12
  184. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  185. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  186. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  187. package/esm/resources/Margins.js +0 -19
  188. package/esm/resources/Orders.js +0 -21
  189. package/esm/resources/PaymentAttemptRecords.js +0 -14
  190. package/esm/resources/PaymentRecords.js +0 -26
  191. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  192. package/esm/resources/Tax/Associations.js +0 -6
  193. package/esm/resources/Tax/Forms.js +0 -17
  194. package/esm/resources/Terminal/OnboardingLinks.js +0 -9
  195. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  196. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  197. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  198. package/esm/resources/V2/Core/Accounts.js +0 -22
  199. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  200. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  201. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  202. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  203. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  204. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  205. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  206. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  207. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  208. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  209. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  210. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  211. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  212. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  213. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  214. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  215. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -22
  216. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  217. package/types/AccountNotices.d.ts +0 -113
  218. package/types/AccountNoticesResource.d.ts +0 -98
  219. package/types/BalanceSettings.d.ts +0 -91
  220. package/types/BalanceSettingsResource.d.ts +0 -110
  221. package/types/Billing/MeterUsage.d.ts +0 -32
  222. package/types/Billing/MeterUsageResource.d.ts +0 -685
  223. package/types/Billing/MeterUsageRows.d.ts +0 -49
  224. package/types/Capital/FinancingOffers.d.ts +0 -188
  225. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  226. package/types/Capital/FinancingSummary.d.ts +0 -106
  227. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  228. package/types/Capital/FinancingTransactions.d.ts +0 -135
  229. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  230. package/types/ExternalAccountsResource.d.ts +0 -304
  231. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  232. package/types/FinancialConnections/Institutions.d.ts +0 -98
  233. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  234. package/types/FxQuotes.d.ts +0 -155
  235. package/types/FxQuotesResource.d.ts +0 -130
  236. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  237. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  238. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  239. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  240. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  241. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  242. package/types/Issuing/Settlements.d.ts +0 -113
  243. package/types/Margins.d.ts +0 -56
  244. package/types/MarginsResource.d.ts +0 -114
  245. package/types/Orders.d.ts +0 -1163
  246. package/types/OrdersResource.d.ts +0 -3139
  247. package/types/PaymentAttemptRecords.d.ts +0 -2166
  248. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  249. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  250. package/types/PaymentRecords.d.ts +0 -2159
  251. package/types/PaymentRecordsResource.d.ts +0 -455
  252. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  253. package/types/Privacy/RedactionJobs.d.ts +0 -111
  254. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  255. package/types/QuoteLines.d.ts +0 -634
  256. package/types/QuotePreviewInvoices.d.ts +0 -1734
  257. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -845
  258. package/types/Tax/Associations.d.ts +0 -82
  259. package/types/Tax/AssociationsResource.d.ts +0 -29
  260. package/types/Tax/Forms.d.ts +0 -220
  261. package/types/Tax/FormsResource.d.ts +0 -107
  262. package/types/Terminal/OnboardingLinks.d.ts +0 -57
  263. package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
  264. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  265. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  266. package/types/V2/Core/AccountLinks.d.ts +0 -168
  267. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  268. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3780
  269. package/types/V2/Core/Accounts.d.ts +0 -8813
  270. package/types/V2/Core/AccountsResource.d.ts +0 -10626
  271. package/types/V2/Core/Persons.d.ts +0 -1872
  272. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  273. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  274. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  275. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  276. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  277. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  278. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  279. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  280. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -580
  281. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -326
  282. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  283. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -289
  284. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  285. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  286. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  287. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  288. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  289. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  290. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  291. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  292. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  293. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  294. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  295. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  296. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  297. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  298. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -262
  299. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  300. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  301. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  302. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
  303. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  304. package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
  305. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  306. package/types/V2/Payments/OffSessionPayments.d.ts +0 -179
  307. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -174
  308. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
@@ -106,26 +106,17 @@ 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
-
118
109
  /**
119
110
  * An arbitrary string attached to the object. Often useful for displaying to users.
120
111
  */
121
112
  description: string | null;
122
113
 
123
114
  /**
124
- * The FX Quote used for the PaymentIntent.
115
+ * The list of payment method types to exclude from use with this payment.
125
116
  */
126
- fx_quote?: string | null;
127
-
128
- hooks?: PaymentIntent.Hooks;
117
+ excluded_payment_method_types: Array<
118
+ PaymentIntent.ExcludedPaymentMethodType
119
+ > | null;
129
120
 
130
121
  /**
131
122
  * The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
@@ -157,8 +148,6 @@ declare module 'stripe' {
157
148
  */
158
149
  on_behalf_of: string | Stripe.Account | null;
159
150
 
160
- payment_details?: PaymentIntent.PaymentDetails;
161
-
162
151
  /**
163
152
  * ID of the payment method used in this PaymentIntent.
164
153
  */
@@ -196,11 +185,6 @@ declare module 'stripe' {
196
185
  */
197
186
  review: string | Stripe.Review | null;
198
187
 
199
- /**
200
- * Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
201
- */
202
- secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
203
-
204
188
  /**
205
189
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
206
190
  *
@@ -256,48 +240,10 @@ declare module 'stripe' {
256
240
 
257
241
  namespace PaymentIntent {
258
242
  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
-
273
243
  tip?: AmountDetails.Tip;
274
244
  }
275
245
 
276
246
  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
-
301
247
  interface Tip {
302
248
  /**
303
249
  * Portion of the amount that corresponds to a tip.
@@ -338,24 +284,54 @@ declare module 'stripe' {
338
284
 
339
285
  type ConfirmationMethod = 'automatic' | 'manual';
340
286
 
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
- }
287
+ type ExcludedPaymentMethodType =
288
+ | 'acss_debit'
289
+ | 'affirm'
290
+ | 'afterpay_clearpay'
291
+ | 'alipay'
292
+ | 'alma'
293
+ | 'amazon_pay'
294
+ | 'au_becs_debit'
295
+ | 'bacs_debit'
296
+ | 'bancontact'
297
+ | 'billie'
298
+ | 'blik'
299
+ | 'boleto'
300
+ | 'card'
301
+ | 'cashapp'
302
+ | 'crypto'
303
+ | 'customer_balance'
304
+ | 'eps'
305
+ | 'fpx'
306
+ | 'giropay'
307
+ | 'grabpay'
308
+ | 'ideal'
309
+ | 'kakao_pay'
310
+ | 'klarna'
311
+ | 'konbini'
312
+ | 'kr_card'
313
+ | 'mobilepay'
314
+ | 'multibanco'
315
+ | 'naver_pay'
316
+ | 'nz_bank_account'
317
+ | 'oxxo'
318
+ | 'p24'
319
+ | 'pay_by_bank'
320
+ | 'payco'
321
+ | 'paynow'
322
+ | 'paypal'
323
+ | 'pix'
324
+ | 'promptpay'
325
+ | 'revolut_pay'
326
+ | 'samsung_pay'
327
+ | 'satispay'
328
+ | 'sepa_debit'
329
+ | 'sofort'
330
+ | 'swish'
331
+ | 'twint'
332
+ | 'us_bank_account'
333
+ | 'wechat_pay'
334
+ | 'zip';
359
335
 
360
336
  interface LastPaymentError {
361
337
  /**
@@ -394,7 +370,7 @@ declare module 'stripe' {
394
370
  network_advice_code?: string;
395
371
 
396
372
  /**
397
- * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
373
+ * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
398
374
  */
399
375
  network_decline_code?: string;
400
376
 
@@ -515,12 +491,12 @@ declare module 'stripe' {
515
491
  | 'coupon_expired'
516
492
  | 'customer_max_payment_methods'
517
493
  | 'customer_max_subscriptions'
494
+ | 'customer_session_expired'
518
495
  | 'customer_tax_location_invalid'
519
496
  | 'debit_not_authorized'
520
497
  | 'email_invalid'
521
498
  | 'expired_card'
522
499
  | 'financial_connections_account_inactive'
523
- | 'financial_connections_institution_unavailable'
524
500
  | 'financial_connections_no_successful_transaction_refresh'
525
501
  | 'forwarding_api_inactive'
526
502
  | 'forwarding_api_invalid_parameter'
@@ -533,6 +509,7 @@ declare module 'stripe' {
533
509
  | 'incorrect_cvc'
534
510
  | 'incorrect_number'
535
511
  | 'incorrect_zip'
512
+ | 'india_recurring_payment_mandate_canceled'
536
513
  | 'instant_payouts_config_disabled'
537
514
  | 'instant_payouts_currency_disabled'
538
515
  | 'instant_payouts_limit_exceeded'
@@ -617,7 +594,6 @@ declare module 'stripe' {
617
594
  | 'return_intent_already_processed'
618
595
  | 'routing_number_invalid'
619
596
  | 'secret_key_required'
620
- | 'sensitive_data_access_expired'
621
597
  | 'sepa_unsupported_account'
622
598
  | 'setup_attempt_failed'
623
599
  | 'setup_intent_authentication_failure'
@@ -637,7 +613,6 @@ declare module 'stripe' {
637
613
  | 'taxes_calculation_failed'
638
614
  | 'terminal_location_country_unsupported'
639
615
  | 'terminal_reader_busy'
640
- | 'terminal_reader_collected_data_invalid'
641
616
  | 'terminal_reader_hardware_fault'
642
617
  | 'terminal_reader_invalid_location_for_activation'
643
618
  | 'terminal_reader_invalid_location_for_payment'
@@ -650,9 +625,7 @@ declare module 'stripe' {
650
625
  | 'token_in_use'
651
626
  | 'transfer_source_balance_parameters_mismatch'
652
627
  | 'transfers_not_allowed'
653
- | 'url_invalid'
654
- | 'v2_account_disconnection_unsupported'
655
- | 'v2_account_missing_configuration';
628
+ | 'url_invalid';
656
629
 
657
630
  type Type =
658
631
  | 'api_error'
@@ -1416,338 +1389,6 @@ declare module 'stripe' {
1416
1389
  }
1417
1390
  }
1418
1391
 
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
-
1751
1392
  interface PaymentMethodConfigurationDetails {
1752
1393
  /**
1753
1394
  * ID of the payment method configuration used.
@@ -1801,12 +1442,8 @@ declare module 'stripe' {
1801
1442
 
1802
1443
  giropay?: PaymentMethodOptions.Giropay;
1803
1444
 
1804
- gopay?: PaymentMethodOptions.Gopay;
1805
-
1806
1445
  grabpay?: PaymentMethodOptions.Grabpay;
1807
1446
 
1808
- id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1809
-
1810
1447
  ideal?: PaymentMethodOptions.Ideal;
1811
1448
 
1812
1449
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -1821,8 +1458,6 @@ declare module 'stripe' {
1821
1458
 
1822
1459
  link?: PaymentMethodOptions.Link;
1823
1460
 
1824
- mb_way?: PaymentMethodOptions.MbWay;
1825
-
1826
1461
  mobilepay?: PaymentMethodOptions.Mobilepay;
1827
1462
 
1828
1463
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1843,16 +1478,10 @@ declare module 'stripe' {
1843
1478
 
1844
1479
  paypal?: PaymentMethodOptions.Paypal;
1845
1480
 
1846
- payto?: PaymentMethodOptions.Payto;
1847
-
1848
1481
  pix?: PaymentMethodOptions.Pix;
1849
1482
 
1850
1483
  promptpay?: PaymentMethodOptions.Promptpay;
1851
1484
 
1852
- qris?: PaymentMethodOptions.Qris;
1853
-
1854
- rechnung?: PaymentMethodOptions.Rechnung;
1855
-
1856
1485
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1857
1486
 
1858
1487
  samsung_pay?: PaymentMethodOptions.SamsungPay;
@@ -1861,12 +1490,8 @@ declare module 'stripe' {
1861
1490
 
1862
1491
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1863
1492
 
1864
- shopeepay?: PaymentMethodOptions.Shopeepay;
1865
-
1866
1493
  sofort?: PaymentMethodOptions.Sofort;
1867
1494
 
1868
- stripe_balance?: PaymentMethodOptions.StripeBalance;
1869
-
1870
1495
  swish?: PaymentMethodOptions.Swish;
1871
1496
 
1872
1497
  twint?: PaymentMethodOptions.Twint;
@@ -2173,11 +1798,6 @@ declare module 'stripe' {
2173
1798
  */
2174
1799
  network: Card.Network | null;
2175
1800
 
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
-
2181
1801
  /**
2182
1802
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
2183
1803
  */
@@ -2198,11 +1818,6 @@ declare module 'stripe' {
2198
1818
  */
2199
1819
  request_overcapture?: Card.RequestOvercapture;
2200
1820
 
2201
- /**
2202
- * Request partial authorization on this PaymentIntent.
2203
- */
2204
- request_partial_authorization?: Card.RequestPartialAuthorization;
2205
-
2206
1821
  /**
2207
1822
  * 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.
2208
1823
  */
@@ -2233,8 +1848,6 @@ declare module 'stripe' {
2233
1848
  * 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.
2234
1849
  */
2235
1850
  statement_descriptor_suffix_kanji?: string;
2236
-
2237
- statement_details?: Card.StatementDetails;
2238
1851
  }
2239
1852
 
2240
1853
  namespace Card {
@@ -2369,8 +1982,6 @@ declare module 'stripe' {
2369
1982
  | 'unknown'
2370
1983
  | 'visa';
2371
1984
 
2372
- type RequestDecrementalAuthorization = 'if_available' | 'never';
2373
-
2374
1985
  type RequestExtendedAuthorization = 'if_available' | 'never';
2375
1986
 
2376
1987
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2379,54 +1990,9 @@ declare module 'stripe' {
2379
1990
 
2380
1991
  type RequestOvercapture = 'if_available' | 'never';
2381
1992
 
2382
- type RequestPartialAuthorization = 'if_available' | 'never';
2383
-
2384
1993
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
2385
1994
 
2386
1995
  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
- }
2430
1996
  }
2431
1997
 
2432
1998
  interface CardPresent {
@@ -2597,23 +2163,6 @@ declare module 'stripe' {
2597
2163
  setup_future_usage?: 'none';
2598
2164
  }
2599
2165
 
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
-
2617
2166
  interface Grabpay {
2618
2167
  /**
2619
2168
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2627,29 +2176,6 @@ declare module 'stripe' {
2627
2176
  setup_future_usage?: 'none';
2628
2177
  }
2629
2178
 
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
-
2653
2179
  interface Ideal {
2654
2180
  /**
2655
2181
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2801,19 +2327,6 @@ declare module 'stripe' {
2801
2327
  type SetupFutureUsage = 'none' | 'off_session';
2802
2328
  }
2803
2329
 
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
-
2817
2330
  interface Mobilepay {
2818
2331
  /**
2819
2332
  * Controls when the funds will be captured from the customer's account.
@@ -2948,11 +2461,6 @@ declare module 'stripe' {
2948
2461
  */
2949
2462
  capture_method?: 'manual';
2950
2463
 
2951
- /**
2952
- * The line items purchased by the customer.
2953
- */
2954
- line_items?: Array<Paypal.LineItem>;
2955
-
2956
2464
  /**
2957
2465
  * Preferred locale of the PayPal checkout page that the customer is redirected to.
2958
2466
  */
@@ -2963,11 +2471,6 @@ declare module 'stripe' {
2963
2471
  */
2964
2472
  reference: string | null;
2965
2473
 
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
-
2971
2474
  /**
2972
2475
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2973
2476
  *
@@ -2978,155 +2481,18 @@ declare module 'stripe' {
2978
2481
  * 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).
2979
2482
  */
2980
2483
  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>;
2986
2484
  }
2987
2485
 
2988
2486
  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
2487
  type SetupFutureUsage = 'none' | 'off_session';
3049
2488
  }
3050
2489
 
3051
- interface Payto {
3052
- mandate_options?: Payto.MandateOptions;
3053
-
2490
+ interface Pix {
3054
2491
  /**
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).
2492
+ * Determines if the amount includes the IOF tax.
3062
2493
  */
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';
2494
+ amount_includes_iof?: Pix.AmountIncludesIof;
3101
2495
 
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
-
3126
- type SetupFutureUsage = 'none' | 'off_session';
3127
- }
3128
-
3129
- interface Pix {
3130
2496
  /**
3131
2497
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
3132
2498
  */
@@ -3149,20 +2515,11 @@ declare module 'stripe' {
3149
2515
  setup_future_usage?: 'none';
3150
2516
  }
3151
2517
 
3152
- interface Promptpay {
3153
- /**
3154
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3155
- *
3156
- * 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.
3157
- *
3158
- * 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.
3159
- *
3160
- * 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).
3161
- */
3162
- setup_future_usage?: 'none';
2518
+ namespace Pix {
2519
+ type AmountIncludesIof = 'always' | 'never';
3163
2520
  }
3164
2521
 
3165
- interface Qris {
2522
+ interface Promptpay {
3166
2523
  /**
3167
2524
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3168
2525
  *
@@ -3175,8 +2532,6 @@ declare module 'stripe' {
3175
2532
  setup_future_usage?: 'none';
3176
2533
  }
3177
2534
 
3178
- interface Rechnung {}
3179
-
3180
2535
  interface RevolutPay {
3181
2536
  /**
3182
2537
  * Controls when the funds will be captured from the customer's account.
@@ -3244,19 +2599,6 @@ declare module 'stripe' {
3244
2599
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
3245
2600
  }
3246
2601
 
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
-
3260
2602
  interface Sofort {
3261
2603
  /**
3262
2604
  * Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -3288,23 +2630,6 @@ declare module 'stripe' {
3288
2630
  type SetupFutureUsage = 'none' | 'off_session';
3289
2631
  }
3290
2632
 
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
-
3308
2633
  interface Swish {
3309
2634
  /**
3310
2635
  * A reference for this payment to be displayed in the Swish app.
@@ -3372,8 +2697,6 @@ declare module 'stripe' {
3372
2697
  interface FinancialConnections {
3373
2698
  filters?: FinancialConnections.Filters;
3374
2699
 
3375
- manual_entry?: FinancialConnections.ManualEntry;
3376
-
3377
2700
  /**
3378
2701
  * The list of permissions to request. The `payment_method` permission must be included.
3379
2702
  */
@@ -3396,39 +2719,19 @@ declare module 'stripe' {
3396
2719
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
3397
2720
  */
3398
2721
  account_subcategories?: Array<Filters.AccountSubcategory>;
3399
-
3400
- /**
3401
- * The institution to use to filter for possible accounts to link.
3402
- */
3403
- institution?: string;
3404
2722
  }
3405
2723
 
3406
2724
  namespace Filters {
3407
2725
  type AccountSubcategory = 'checking' | 'savings';
3408
2726
  }
3409
2727
 
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
-
3421
2728
  type Permission =
3422
2729
  | 'balances'
3423
2730
  | 'ownership'
3424
2731
  | 'payment_method'
3425
2732
  | 'transactions';
3426
2733
 
3427
- type Prefetch =
3428
- | 'balances'
3429
- | 'inferred_balances'
3430
- | 'ownership'
3431
- | 'transactions';
2734
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
3432
2735
  }
3433
2736
 
3434
2737
  interface MandateOptions {
@@ -3527,8 +2830,6 @@ declare module 'stripe' {
3527
2830
  }
3528
2831
  }
3529
2832
 
3530
- type SecretKeyConfirmation = 'optional' | 'required';
3531
-
3532
2833
  type SetupFutureUsage = 'off_session' | 'on_session';
3533
2834
 
3534
2835
  interface Shipping {