stripe 19.4.0-alpha.2 → 20.0.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 (445) hide show
  1. package/CHANGELOG.md +38 -1720
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -115
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/Mandates.js +0 -5
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/PaymentMethods.js +0 -4
  11. package/cjs/resources/Quotes.js +0 -32
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources/Subscriptions.js +0 -4
  14. package/cjs/resources.js +8 -148
  15. package/cjs/stripe.core.js +1 -1
  16. package/cjs/utils.js +2 -1
  17. package/esm/Error.js +0 -100
  18. package/esm/apiVersion.js +2 -1
  19. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  20. package/esm/resources/Mandates.js +0 -5
  21. package/esm/resources/PaymentIntents.js +0 -8
  22. package/esm/resources/PaymentMethods.js +0 -4
  23. package/esm/resources/Quotes.js +0 -32
  24. package/esm/resources/SubscriptionSchedules.js +0 -4
  25. package/esm/resources/Subscriptions.js +0 -4
  26. package/esm/resources.js +0 -135
  27. package/esm/stripe.core.js +1 -1
  28. package/esm/utils.js +2 -1
  29. package/package.json +1 -1
  30. package/types/AccountLinksResource.d.ts +1 -5
  31. package/types/AccountSessions.d.ts +0 -45
  32. package/types/AccountSessionsResource.d.ts +0 -264
  33. package/types/Accounts.d.ts +2 -215
  34. package/types/AccountsResource.d.ts +2 -634
  35. package/types/ApplicationFees.d.ts +1 -6
  36. package/types/Balance.d.ts +0 -82
  37. package/types/BalanceTransactions.d.ts +1 -2
  38. package/types/BankAccounts.d.ts +2 -4
  39. package/types/Billing/AlertTriggereds.d.ts +1 -16
  40. package/types/Billing/Alerts.d.ts +1 -116
  41. package/types/Billing/AlertsResource.d.ts +2 -149
  42. package/types/Billing/CreditBalanceSummary.d.ts +2 -123
  43. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -20
  44. package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
  45. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  46. package/types/Billing/CreditGrants.d.ts +1 -76
  47. package/types/Billing/CreditGrantsResource.d.ts +4 -45
  48. package/types/Billing/MeterEventSummaries.d.ts +0 -7
  49. package/types/Billing/Meters.d.ts +0 -5
  50. package/types/Billing/MetersResource.d.ts +0 -17
  51. package/types/BillingPortal/Configurations.d.ts +5 -0
  52. package/types/BillingPortal/Sessions.d.ts +0 -5
  53. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  54. package/types/Capabilities.d.ts +0 -2
  55. package/types/Cards.d.ts +0 -19
  56. package/types/CashBalances.d.ts +0 -5
  57. package/types/Charges.d.ts +8 -191
  58. package/types/ChargesResource.d.ts +0 -1406
  59. package/types/Checkout/Sessions.d.ts +2 -427
  60. package/types/Checkout/SessionsResource.d.ts +2 -682
  61. package/types/ConfirmationTokens.d.ts +5 -141
  62. package/types/Coupons.d.ts +0 -35
  63. package/types/CouponsResource.d.ts +0 -23
  64. package/types/CreditNoteLineItems.d.ts +0 -17
  65. package/types/CreditNotes.d.ts +0 -5
  66. package/types/CreditNotesResource.d.ts +0 -5
  67. package/types/CustomerBalanceTransactions.d.ts +0 -2
  68. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  69. package/types/CustomerSessions.d.ts +0 -46
  70. package/types/CustomerSessionsResource.d.ts +2 -48
  71. package/types/Customers.d.ts +0 -2
  72. package/types/CustomersResource.d.ts +5 -8
  73. package/types/Discounts.d.ts +0 -20
  74. package/types/Disputes.d.ts +0 -40
  75. package/types/DisputesResource.d.ts +0 -11
  76. package/types/Errors.d.ts +0 -85
  77. package/types/EventTypes.d.ts +27 -621
  78. package/types/Events.d.ts +2 -95
  79. package/types/FinancialConnections/Accounts.d.ts +34 -36
  80. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  81. package/types/FinancialConnections/Sessions.d.ts +2 -52
  82. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  83. package/types/Identity/VerificationReports.d.ts +0 -10
  84. package/types/Identity/VerificationReportsResource.d.ts +0 -5
  85. package/types/Identity/VerificationSessions.d.ts +0 -5
  86. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  87. package/types/InvoiceItems.d.ts +2 -127
  88. package/types/InvoiceItemsResource.d.ts +6 -117
  89. package/types/InvoiceLineItems.d.ts +3 -171
  90. package/types/InvoicePaymentsResource.d.ts +5 -0
  91. package/types/Invoices.d.ts +5 -217
  92. package/types/InvoicesResource.d.ts +4 -1712
  93. package/types/Issuing/CardholdersResource.d.ts +1 -2
  94. package/types/Issuing/Cards.d.ts +25 -0
  95. package/types/Issuing/Transactions.d.ts +0 -5
  96. package/types/Issuing/TransactionsResource.d.ts +0 -5
  97. package/types/LineItems.d.ts +0 -49
  98. package/types/Mandates.d.ts +1 -135
  99. package/types/MandatesResource.d.ts +0 -31
  100. package/types/PaymentAttemptRecords.d.ts +16 -147
  101. package/types/PaymentIntentAmountDetailsLineItems.d.ts +13 -7
  102. package/types/PaymentIntents.d.ts +27 -786
  103. package/types/PaymentIntentsResource.d.ts +4722 -9378
  104. package/types/PaymentLinks.d.ts +0 -6
  105. package/types/PaymentLinksResource.d.ts +0 -12
  106. package/types/PaymentMethodConfigurations.d.ts +0 -216
  107. package/types/PaymentMethodConfigurationsResource.d.ts +0 -300
  108. package/types/PaymentMethods.d.ts +5 -146
  109. package/types/PaymentMethodsResource.d.ts +3 -187
  110. package/types/PaymentRecords.d.ts +16 -147
  111. package/types/Persons.d.ts +0 -30
  112. package/types/Prices.d.ts +0 -22
  113. package/types/PricesResource.d.ts +0 -22
  114. package/types/PromotionCodes.d.ts +0 -5
  115. package/types/PromotionCodesResource.d.ts +0 -10
  116. package/types/Quotes.d.ts +1 -982
  117. package/types/QuotesResource.d.ts +293 -3226
  118. package/types/Refunds.d.ts +10 -6
  119. package/types/SetupAttempts.d.ts +4 -52
  120. package/types/SetupIntents.d.ts +2 -239
  121. package/types/SetupIntentsResource.d.ts +7 -1044
  122. package/types/Sources.d.ts +0 -29
  123. package/types/SubscriptionItems.d.ts +0 -26
  124. package/types/SubscriptionItemsResource.d.ts +0 -109
  125. package/types/SubscriptionSchedules.d.ts +0 -403
  126. package/types/SubscriptionSchedulesResource.d.ts +0 -1404
  127. package/types/Subscriptions.d.ts +1 -370
  128. package/types/SubscriptionsResource.d.ts +8 -757
  129. package/types/Tax/Associations.d.ts +1 -1
  130. package/types/Tax/RegistrationsResource.d.ts +1 -1
  131. package/types/TaxIds.d.ts +0 -10
  132. package/types/TaxIdsResource.d.ts +0 -10
  133. package/types/Terminal/Configurations.d.ts +0 -9
  134. package/types/Terminal/ConfigurationsResource.d.ts +18 -46
  135. package/types/Terminal/Readers.d.ts +0 -20
  136. package/types/TestHelpers/ConfirmationTokensResource.d.ts +1 -126
  137. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +27 -0
  138. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  139. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  140. package/types/TokensResource.d.ts +0 -44
  141. package/types/Transfers.d.ts +0 -9
  142. package/types/TransfersResource.d.ts +0 -7
  143. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  144. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  145. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  146. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  147. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  148. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  149. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  150. package/types/V2/Billing/MeterEvents.d.ts +2 -1
  151. package/types/V2/Core/EventTypes.d.ts +10 -8680
  152. package/types/V2/Core/Events.d.ts +0 -14
  153. package/types/V2/Core/EventsResource.d.ts +2 -17
  154. package/types/WebhookEndpointsResource.d.ts +6 -75
  155. package/types/Webhooks.d.ts +0 -2
  156. package/types/apiVersion.d.ts +2 -1
  157. package/types/index.d.ts +0 -227
  158. package/types/lib.d.ts +0 -10
  159. package/cjs/resources/AccountNotices.js +0 -21
  160. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
  161. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  162. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  163. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  164. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +0 -28
  165. package/cjs/resources/ExternalAccounts.js +0 -23
  166. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  167. package/cjs/resources/FxQuotes.js +0 -15
  168. package/cjs/resources/Identity/BlocklistEntries.js +0 -25
  169. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  170. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  171. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  172. package/cjs/resources/Issuing/Programs.js +0 -22
  173. package/cjs/resources/Margins.js +0 -22
  174. package/cjs/resources/Orders.js +0 -24
  175. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  176. package/cjs/resources/Tax/Forms.js +0 -20
  177. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  178. package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +0 -16
  179. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
  180. package/cjs/resources/V2/Billing/BillSettings.js +0 -27
  181. package/cjs/resources/V2/Billing/Cadences.js +0 -23
  182. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
  183. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
  184. package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
  185. package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
  186. package/cjs/resources/V2/Billing/Intents.js +0 -36
  187. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
  188. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
  189. package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
  190. package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
  191. package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
  192. package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -12
  193. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -26
  194. package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
  195. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
  196. package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
  197. package/cjs/resources/V2/Billing/Profiles.js +0 -19
  198. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
  199. package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
  200. package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
  201. package/cjs/resources/V2/Billing/RateCards.js +0 -29
  202. package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
  203. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  204. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  205. package/cjs/resources/V2/Core/Accounts.js +0 -25
  206. package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
  207. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -33
  208. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -37
  209. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  210. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -29
  211. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  212. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  213. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  214. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  215. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  216. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  217. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  218. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  219. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  220. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  221. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
  222. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  223. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  224. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
  225. package/cjs/resources/V2/Reporting/ReportRuns.js +0 -13
  226. package/cjs/resources/V2/Reporting/Reports.js +0 -12
  227. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  228. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
  229. package/esm/resources/AccountNotices.js +0 -18
  230. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
  231. package/esm/resources/Capital/FinancingOffers.js +0 -18
  232. package/esm/resources/Capital/FinancingSummary.js +0 -9
  233. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  234. package/esm/resources/DelegatedCheckout/RequestedSessions.js +0 -25
  235. package/esm/resources/ExternalAccounts.js +0 -20
  236. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  237. package/esm/resources/FxQuotes.js +0 -12
  238. package/esm/resources/Identity/BlocklistEntries.js +0 -22
  239. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  240. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  241. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  242. package/esm/resources/Issuing/Programs.js +0 -19
  243. package/esm/resources/Margins.js +0 -19
  244. package/esm/resources/Orders.js +0 -21
  245. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  246. package/esm/resources/Tax/Forms.js +0 -17
  247. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  248. package/esm/resources/TestHelpers/Capital/FinancingOffers.js +0 -13
  249. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
  250. package/esm/resources/V2/Billing/BillSettings.js +0 -24
  251. package/esm/resources/V2/Billing/Cadences.js +0 -20
  252. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
  253. package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
  254. package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
  255. package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
  256. package/esm/resources/V2/Billing/Intents.js +0 -33
  257. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
  258. package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
  259. package/esm/resources/V2/Billing/LicenseFees.js +0 -24
  260. package/esm/resources/V2/Billing/LicensedItems.js +0 -22
  261. package/esm/resources/V2/Billing/MeteredItems.js +0 -19
  262. package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -9
  263. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -23
  264. package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
  265. package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
  266. package/esm/resources/V2/Billing/PricingPlans.js +0 -26
  267. package/esm/resources/V2/Billing/Profiles.js +0 -16
  268. package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
  269. package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
  270. package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
  271. package/esm/resources/V2/Billing/RateCards.js +0 -26
  272. package/esm/resources/V2/Billing/ServiceActions.js +0 -17
  273. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  274. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  275. package/esm/resources/V2/Core/Accounts.js +0 -22
  276. package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
  277. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -30
  278. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -34
  279. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  280. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -26
  281. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  282. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  283. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  284. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  285. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  286. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  287. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  288. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  289. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  290. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  291. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
  292. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  293. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  294. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
  295. package/esm/resources/V2/Reporting/ReportRuns.js +0 -10
  296. package/esm/resources/V2/Reporting/Reports.js +0 -9
  297. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  298. package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
  299. package/types/AccountNotices.d.ts +0 -113
  300. package/types/AccountNoticesResource.d.ts +0 -98
  301. package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
  302. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -694
  303. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -58
  304. package/types/Capital/FinancingOffers.d.ts +0 -188
  305. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  306. package/types/Capital/FinancingSummary.d.ts +0 -106
  307. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  308. package/types/Capital/FinancingTransactions.d.ts +0 -135
  309. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  310. package/types/DelegatedCheckout/RequestedSessions.d.ts +0 -384
  311. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +0 -599
  312. package/types/ExternalAccountsResource.d.ts +0 -304
  313. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  314. package/types/FinancialConnections/Institutions.d.ts +0 -98
  315. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  316. package/types/FxQuotes.d.ts +0 -155
  317. package/types/FxQuotesResource.d.ts +0 -130
  318. package/types/Identity/BlocklistEntries.d.ts +0 -78
  319. package/types/Identity/BlocklistEntriesResource.d.ts +0 -146
  320. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  321. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  322. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  323. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  324. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  325. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  326. package/types/Issuing/Programs.d.ts +0 -42
  327. package/types/Issuing/ProgramsResource.d.ts +0 -96
  328. package/types/Issuing/Settlements.d.ts +0 -113
  329. package/types/Margins.d.ts +0 -56
  330. package/types/MarginsResource.d.ts +0 -114
  331. package/types/Orders.d.ts +0 -1163
  332. package/types/OrdersResource.d.ts +0 -3139
  333. package/types/PaymentMethodBalances.d.ts +0 -63
  334. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  335. package/types/Privacy/RedactionJobs.d.ts +0 -111
  336. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  337. package/types/QuoteLines.d.ts +0 -634
  338. package/types/QuotePreviewInvoices.d.ts +0 -1784
  339. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -1108
  340. package/types/Tax/Forms.d.ts +0 -220
  341. package/types/Tax/FormsResource.d.ts +0 -107
  342. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  343. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  344. package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +0 -130
  345. package/types/TransitBalances.d.ts +0 -40
  346. package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
  347. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
  348. package/types/V2/Billing/BillSettings.d.ts +0 -120
  349. package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
  350. package/types/V2/Billing/Cadences.d.ts +0 -735
  351. package/types/V2/Billing/CadencesResource.d.ts +0 -516
  352. package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -318
  353. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
  354. package/types/V2/Billing/CollectionSettings.d.ts +0 -341
  355. package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -683
  356. package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
  357. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
  358. package/types/V2/Billing/IntentActions.d.ts +0 -459
  359. package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
  360. package/types/V2/Billing/Intents.d.ts +0 -117
  361. package/types/V2/Billing/IntentsResource.d.ts +0 -575
  362. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
  363. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
  364. package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
  365. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
  366. package/types/V2/Billing/LicenseFees.d.ts +0 -164
  367. package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
  368. package/types/V2/Billing/LicensedItems.d.ts +0 -73
  369. package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
  370. package/types/V2/Billing/MeteredItems.d.ts +0 -101
  371. package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
  372. package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
  373. package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +0 -57
  374. package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +0 -40
  375. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
  376. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -120
  377. package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
  378. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
  379. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
  380. package/types/V2/Billing/PricingPlans.d.ts +0 -84
  381. package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
  382. package/types/V2/Billing/Profiles.d.ts +0 -70
  383. package/types/V2/Billing/ProfilesResource.d.ts +0 -150
  384. package/types/V2/Billing/RateCardRates.d.ts +0 -144
  385. package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
  386. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
  387. package/types/V2/Billing/RateCardVersions.d.ts +0 -39
  388. package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
  389. package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
  390. package/types/V2/Billing/RateCards.d.ts +0 -98
  391. package/types/V2/Billing/RateCardsResource.d.ts +0 -162
  392. package/types/V2/Billing/ServiceActions.d.ts +0 -274
  393. package/types/V2/Billing/ServiceActionsResource.d.ts +0 -370
  394. package/types/V2/Core/AccountLinks.d.ts +0 -168
  395. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  396. package/types/V2/Core/AccountPersons.d.ts +0 -615
  397. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -1153
  398. package/types/V2/Core/Accounts.d.ts +0 -7478
  399. package/types/V2/Core/AccountsResource.d.ts +0 -6723
  400. package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
  401. package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
  402. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  403. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -194
  404. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -116
  405. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -198
  406. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  407. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  408. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  409. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  410. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
  411. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
  412. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -178
  413. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -126
  414. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -212
  415. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  416. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
  417. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  418. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -283
  419. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -247
  420. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  421. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -330
  422. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -256
  423. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -213
  424. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -201
  425. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
  426. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  427. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  428. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -307
  429. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  430. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -186
  431. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  432. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
  433. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
  434. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  435. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  436. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  437. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  438. package/types/V2/Payments/OffSessionPayments.d.ts +0 -326
  439. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -401
  440. package/types/V2/Reporting/ReportRuns.d.ts +0 -154
  441. package/types/V2/Reporting/ReportRunsResource.d.ts +0 -75
  442. package/types/V2/Reporting/Reports.d.ts +0 -120
  443. package/types/V2/Reporting/ReportsResource.d.ts +0 -30
  444. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -73
  445. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -49
@@ -39,8 +39,6 @@ declare module 'stripe' {
39
39
  */
40
40
  cancel_url?: string;
41
41
 
42
- checkout_items?: Array<SessionCreateParams.CheckoutItem>;
43
-
44
42
  /**
45
43
  * A unique string to reference the Checkout Session. This can be a
46
44
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -83,11 +81,6 @@ declare module 'stripe' {
83
81
  */
84
82
  customer?: string;
85
83
 
86
- /**
87
- * ID of an existing Account, if one exists. Has the same behavior as `customer`.
88
- */
89
- customer_account?: string;
90
-
91
84
  /**
92
85
  * Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
93
86
  *
@@ -497,54 +490,6 @@ declare module 'stripe' {
497
490
  }
498
491
  }
499
492
 
500
- interface CheckoutItem {
501
- type: CheckoutItem.Type;
502
-
503
- rate_card_subscription_item?: CheckoutItem.RateCardSubscriptionItem;
504
-
505
- pricing_plan_subscription_item?: CheckoutItem.PricingPlanSubscriptionItem;
506
- }
507
-
508
- namespace CheckoutItem {
509
- interface PricingPlanSubscriptionItem {
510
- pricing_plan: string;
511
-
512
- pricing_plan_version?: string;
513
-
514
- metadata?: Stripe.MetadataParam;
515
-
516
- component_configurations?: {
517
- [key: string]: PricingPlanSubscriptionItem.ComponentConfigurations;
518
- };
519
- }
520
-
521
- namespace PricingPlanSubscriptionItem {
522
- interface ComponentConfigurations {
523
- type: 'license_fee_component';
524
-
525
- license_fee_component?: ComponentConfigurations.LicenseFeeComponent;
526
- }
527
-
528
- namespace ComponentConfigurations {
529
- interface LicenseFeeComponent {
530
- quantity: number;
531
- }
532
- }
533
- }
534
-
535
- interface RateCardSubscriptionItem {
536
- rate_card: string;
537
-
538
- metadata?: Stripe.MetadataParam;
539
-
540
- rate_card_version?: string;
541
- }
542
-
543
- type Type =
544
- | 'rate_card_subscription_item'
545
- | 'pricing_plan_subscription_item';
546
- }
547
-
548
493
  interface ConsentCollection {
549
494
  /**
550
495
  * Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
@@ -785,55 +730,12 @@ declare module 'stripe' {
785
730
  */
786
731
  coupon?: string;
787
732
 
788
- /**
789
- * Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
790
- */
791
- coupon_data?: Discount.CouponData;
792
-
793
733
  /**
794
734
  * The ID of a promotion code to apply to this Session.
795
735
  */
796
736
  promotion_code?: string;
797
737
  }
798
738
 
799
- namespace Discount {
800
- interface CouponData {
801
- /**
802
- * A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
803
- */
804
- amount_off?: number;
805
-
806
- /**
807
- * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
808
- */
809
- currency?: string;
810
-
811
- /**
812
- * Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
813
- */
814
- duration?: CouponData.Duration;
815
-
816
- /**
817
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
818
- */
819
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
820
-
821
- /**
822
- * Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
823
- */
824
- name?: string;
825
-
826
- /**
827
- * A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
828
- */
829
- percent_off?: number;
830
- }
831
-
832
- namespace CouponData {
833
- type Duration = 'forever' | 'once' | 'repeating';
834
- }
835
- }
836
-
837
739
  type ExcludedPaymentMethodType =
838
740
  | 'acss_debit'
839
741
  | 'affirm'
@@ -854,7 +756,6 @@ declare module 'stripe' {
854
756
  | 'eps'
855
757
  | 'fpx'
856
758
  | 'giropay'
857
- | 'gopay'
858
759
  | 'grabpay'
859
760
  | 'ideal'
860
761
  | 'kakao_pay'
@@ -872,17 +773,12 @@ declare module 'stripe' {
872
773
  | 'payco'
873
774
  | 'paynow'
874
775
  | 'paypal'
875
- | 'paypay'
876
- | 'payto'
877
776
  | 'pix'
878
777
  | 'promptpay'
879
- | 'qris'
880
- | 'rechnung'
881
778
  | 'revolut_pay'
882
779
  | 'samsung_pay'
883
780
  | 'satispay'
884
781
  | 'sepa_debit'
885
- | 'shopeepay'
886
782
  | 'sofort'
887
783
  | 'swish'
888
784
  | 'twint'
@@ -1000,11 +896,6 @@ declare module 'stripe' {
1000
896
  */
1001
897
  dynamic_tax_rates?: Array<string>;
1002
898
 
1003
- /**
1004
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1005
- */
1006
- metadata?: Stripe.MetadataParam;
1007
-
1008
899
  /**
1009
900
  * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
1010
901
  */
@@ -1573,11 +1464,6 @@ declare module 'stripe' {
1573
1464
  */
1574
1465
  paypal?: PaymentMethodOptions.Paypal;
1575
1466
 
1576
- /**
1577
- * contains details about the PayTo payment method options.
1578
- */
1579
- payto?: PaymentMethodOptions.Payto;
1580
-
1581
1467
  /**
1582
1468
  * contains details about the Pix payment method options.
1583
1469
  */
@@ -1891,11 +1777,6 @@ declare module 'stripe' {
1891
1777
  */
1892
1778
  installments?: Card.Installments;
1893
1779
 
1894
- /**
1895
- * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1896
- */
1897
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1898
-
1899
1780
  /**
1900
1781
  * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1901
1782
  */
@@ -1957,8 +1838,6 @@ declare module 'stripe' {
1957
1838
  enabled?: boolean;
1958
1839
  }
1959
1840
 
1960
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1961
-
1962
1841
  type RequestExtendedAuthorization = 'if_available' | 'never';
1963
1842
 
1964
1843
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2441,11 +2320,6 @@ declare module 'stripe' {
2441
2320
  */
2442
2321
  reference?: string;
2443
2322
 
2444
- /**
2445
- * 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.
2446
- */
2447
- reference_id?: string;
2448
-
2449
2323
  /**
2450
2324
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
2451
2325
  */
@@ -2463,11 +2337,6 @@ declare module 'stripe' {
2463
2337
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2464
2338
  */
2465
2339
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
2466
-
2467
- /**
2468
- * 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.
2469
- */
2470
- subsellers?: Array<string>;
2471
2340
  }
2472
2341
 
2473
2342
  namespace Paypal {
@@ -2497,92 +2366,6 @@ declare module 'stripe' {
2497
2366
  type SetupFutureUsage = 'none' | 'off_session';
2498
2367
  }
2499
2368
 
2500
- interface Payto {
2501
- /**
2502
- * Additional fields for Mandate creation
2503
- */
2504
- mandate_options?: Payto.MandateOptions;
2505
-
2506
- /**
2507
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2508
- *
2509
- * 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.
2510
- *
2511
- * 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.
2512
- *
2513
- * 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).
2514
- */
2515
- setup_future_usage?: Payto.SetupFutureUsage;
2516
- }
2517
-
2518
- namespace Payto {
2519
- interface MandateOptions {
2520
- /**
2521
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2522
- */
2523
- amount?: number;
2524
-
2525
- /**
2526
- * 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.
2527
- */
2528
- amount_type?: MandateOptions.AmountType;
2529
-
2530
- /**
2531
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2532
- */
2533
- end_date?: string;
2534
-
2535
- /**
2536
- * The periodicity at which payments will be collected.
2537
- */
2538
- payment_schedule?: MandateOptions.PaymentSchedule;
2539
-
2540
- /**
2541
- * 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.
2542
- */
2543
- payments_per_period?: number;
2544
-
2545
- /**
2546
- * The purpose for which payments are made. Defaults to retail.
2547
- */
2548
- purpose?: MandateOptions.Purpose;
2549
-
2550
- /**
2551
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2552
- */
2553
- start_date?: string;
2554
- }
2555
-
2556
- namespace MandateOptions {
2557
- type AmountType = 'fixed' | 'maximum';
2558
-
2559
- type PaymentSchedule =
2560
- | 'adhoc'
2561
- | 'annual'
2562
- | 'daily'
2563
- | 'fortnightly'
2564
- | 'monthly'
2565
- | 'quarterly'
2566
- | 'semi_annual'
2567
- | 'weekly';
2568
-
2569
- type Purpose =
2570
- | 'dependant_support'
2571
- | 'government'
2572
- | 'loan'
2573
- | 'mortgage'
2574
- | 'other'
2575
- | 'pension'
2576
- | 'personal'
2577
- | 'retail'
2578
- | 'salary'
2579
- | 'tax'
2580
- | 'utility';
2581
- }
2582
-
2583
- type SetupFutureUsage = 'none' | 'off_session';
2584
- }
2585
-
2586
2369
  interface Pix {
2587
2370
  /**
2588
2371
  * Determines if the amount includes the IOF tax. Defaults to `never`.
@@ -2594,11 +2377,6 @@ declare module 'stripe' {
2594
2377
  */
2595
2378
  expires_after_seconds?: number;
2596
2379
 
2597
- /**
2598
- * Additional fields for mandate creation.
2599
- */
2600
- mandate_options?: Pix.MandateOptions;
2601
-
2602
2380
  /**
2603
2381
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2604
2382
  *
@@ -2608,68 +2386,11 @@ declare module 'stripe' {
2608
2386
  *
2609
2387
  * 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).
2610
2388
  */
2611
- setup_future_usage?: Pix.SetupFutureUsage;
2389
+ setup_future_usage?: 'none';
2612
2390
  }
2613
2391
 
2614
2392
  namespace Pix {
2615
2393
  type AmountIncludesIof = 'always' | 'never';
2616
-
2617
- interface MandateOptions {
2618
- /**
2619
- * Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2620
- */
2621
- amount?: number;
2622
-
2623
- /**
2624
- * Determines if the amount includes the IOF tax. Defaults to `never`.
2625
- */
2626
- amount_includes_iof?: MandateOptions.AmountIncludesIof;
2627
-
2628
- /**
2629
- * Type of amount. Defaults to `maximum`.
2630
- */
2631
- amount_type?: MandateOptions.AmountType;
2632
-
2633
- /**
2634
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2635
- */
2636
- currency?: string;
2637
-
2638
- /**
2639
- * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2640
- */
2641
- end_date?: string;
2642
-
2643
- /**
2644
- * Schedule at which the future payments will be charged. Defaults to `weekly`.
2645
- */
2646
- payment_schedule?: MandateOptions.PaymentSchedule;
2647
-
2648
- /**
2649
- * Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2650
- */
2651
- reference?: string;
2652
-
2653
- /**
2654
- * Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
2655
- */
2656
- start_date?: string;
2657
- }
2658
-
2659
- namespace MandateOptions {
2660
- type AmountIncludesIof = 'always' | 'never';
2661
-
2662
- type AmountType = 'fixed' | 'maximum';
2663
-
2664
- type PaymentSchedule =
2665
- | 'halfyearly'
2666
- | 'monthly'
2667
- | 'quarterly'
2668
- | 'weekly'
2669
- | 'yearly';
2670
- }
2671
-
2672
- type SetupFutureUsage = 'none' | 'off_session';
2673
2394
  }
2674
2395
 
2675
2396
  interface RevolutPay {
@@ -2823,11 +2544,7 @@ declare module 'stripe' {
2823
2544
  | 'payment_method'
2824
2545
  | 'transactions';
2825
2546
 
2826
- type Prefetch =
2827
- | 'balances'
2828
- | 'inferred_balances'
2829
- | 'ownership'
2830
- | 'transactions';
2547
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2831
2548
  }
2832
2549
 
2833
2550
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2883,7 +2600,6 @@ declare module 'stripe' {
2883
2600
  | 'eps'
2884
2601
  | 'fpx'
2885
2602
  | 'giropay'
2886
- | 'gopay'
2887
2603
  | 'grabpay'
2888
2604
  | 'ideal'
2889
2605
  | 'kakao_pay'
@@ -2902,17 +2618,12 @@ declare module 'stripe' {
2902
2618
  | 'payco'
2903
2619
  | 'paynow'
2904
2620
  | 'paypal'
2905
- | 'paypay'
2906
- | 'payto'
2907
2621
  | 'pix'
2908
2622
  | 'promptpay'
2909
- | 'qris'
2910
- | 'rechnung'
2911
2623
  | 'revolut_pay'
2912
2624
  | 'samsung_pay'
2913
2625
  | 'satispay'
2914
2626
  | 'sepa_debit'
2915
- | 'shopeepay'
2916
2627
  | 'sofort'
2917
2628
  | 'swish'
2918
2629
  | 'twint'
@@ -2921,27 +2632,6 @@ declare module 'stripe' {
2921
2632
  | 'zip';
2922
2633
 
2923
2634
  interface Permissions {
2924
- /**
2925
- * Permissions for updating the Checkout Session.
2926
- */
2927
- update?: Permissions.Update;
2928
-
2929
- /**
2930
- * Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
2931
- *
2932
- * Default is `client_only`. Stripe Checkout client will automatically handle discount updates. If set to `server_only`, only your server is allowed to update discounts.
2933
- */
2934
- update_discounts?: Permissions.UpdateDiscounts;
2935
-
2936
- /**
2937
- * Determines which entity is allowed to update the line items.
2938
- *
2939
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2940
- *
2941
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2942
- */
2943
- update_line_items?: Permissions.UpdateLineItems;
2944
-
2945
2635
  /**
2946
2636
  * Determines which entity is allowed to update the shipping details.
2947
2637
  *
@@ -2953,36 +2643,6 @@ declare module 'stripe' {
2953
2643
  }
2954
2644
 
2955
2645
  namespace Permissions {
2956
- interface Update {
2957
- /**
2958
- * Determines which entity is allowed to update the line items.
2959
- *
2960
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2961
- *
2962
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2963
- */
2964
- line_items?: Update.LineItems;
2965
-
2966
- /**
2967
- * Determines which entity is allowed to update the shipping details.
2968
- *
2969
- * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2970
- *
2971
- * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2972
- */
2973
- shipping_details?: Update.ShippingDetails;
2974
- }
2975
-
2976
- namespace Update {
2977
- type LineItems = 'client_only' | 'server_only';
2978
-
2979
- type ShippingDetails = 'client_only' | 'server_only';
2980
- }
2981
-
2982
- type UpdateDiscounts = 'client_only' | 'server_only';
2983
-
2984
- type UpdateLineItems = 'client_only' | 'server_only';
2985
-
2986
2646
  type UpdateShippingDetails = 'client_only' | 'server_only';
2987
2647
  }
2988
2648
 
@@ -3637,48 +3297,16 @@ declare module 'stripe' {
3637
3297
  }
3638
3298
 
3639
3299
  interface SessionUpdateParams {
3640
- /**
3641
- * Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
3642
- */
3643
- automatic_tax?: SessionUpdateParams.AutomaticTax;
3644
-
3645
3300
  /**
3646
3301
  * Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
3647
3302
  */
3648
3303
  collected_information?: SessionUpdateParams.CollectedInformation;
3649
3304
 
3650
- /**
3651
- * List of coupons and promotion codes attached to the Checkout Session.
3652
- */
3653
- discounts?: Stripe.Emptyable<Array<SessionUpdateParams.Discount>>;
3654
-
3655
3305
  /**
3656
3306
  * Specifies which fields in the response should be expanded.
3657
3307
  */
3658
3308
  expand?: Array<string>;
3659
3309
 
3660
- /**
3661
- * Generate a post-purchase Invoice for one-time payments.
3662
- */
3663
- invoice_creation?: SessionUpdateParams.InvoiceCreation;
3664
-
3665
- /**
3666
- * A list of items the customer is purchasing.
3667
- *
3668
- * When updating line items, you must retransmit the entire array of line items.
3669
- *
3670
- * To retain an existing line item, specify its `id`.
3671
- *
3672
- * To update an existing line item, specify its `id` along with the new values of the fields to update.
3673
- *
3674
- * To add a new line item, specify one of `price` or `price_data` and `quantity`.
3675
- *
3676
- * To remove an existing line item, omit the line item's ID from the retransmitted array.
3677
- *
3678
- * To reorder a line item, specify it at the desired position in the retransmitted array.
3679
- */
3680
- line_items?: Array<SessionUpdateParams.LineItem>;
3681
-
3682
3310
  /**
3683
3311
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3684
3312
  */
@@ -3690,39 +3318,9 @@ declare module 'stripe' {
3690
3318
  shipping_options?: Stripe.Emptyable<
3691
3319
  Array<SessionUpdateParams.ShippingOption>
3692
3320
  >;
3693
-
3694
- /**
3695
- * A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
3696
- */
3697
- subscription_data?: SessionUpdateParams.SubscriptionData;
3698
3321
  }
3699
3322
 
3700
3323
  namespace SessionUpdateParams {
3701
- interface AutomaticTax {
3702
- /**
3703
- * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
3704
- */
3705
- liability?: AutomaticTax.Liability;
3706
- }
3707
-
3708
- namespace AutomaticTax {
3709
- interface Liability {
3710
- /**
3711
- * The connected account being referenced when `type` is `account`.
3712
- */
3713
- account?: string;
3714
-
3715
- /**
3716
- * Type of the account referenced in the request.
3717
- */
3718
- type: Liability.Type;
3719
- }
3720
-
3721
- namespace Liability {
3722
- type Type = 'account' | 'self';
3723
- }
3724
- }
3725
-
3726
3324
  interface CollectedInformation {
3727
3325
  /**
3728
3326
  * The shipping details to apply to this Session.
@@ -3778,235 +3376,6 @@ declare module 'stripe' {
3778
3376
  }
3779
3377
  }
3780
3378
 
3781
- interface Discount {
3782
- /**
3783
- * The ID of the [Coupon](https://stripe.com/docs/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
3784
- */
3785
- coupon?: string;
3786
-
3787
- /**
3788
- * Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
3789
- */
3790
- coupon_data?: Discount.CouponData;
3791
- }
3792
-
3793
- namespace Discount {
3794
- interface CouponData {
3795
- /**
3796
- * A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
3797
- */
3798
- amount_off?: number;
3799
-
3800
- /**
3801
- * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
3802
- */
3803
- currency?: string;
3804
-
3805
- /**
3806
- * Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
3807
- */
3808
- duration?: CouponData.Duration;
3809
-
3810
- /**
3811
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3812
- */
3813
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3814
-
3815
- /**
3816
- * Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
3817
- */
3818
- name?: string;
3819
-
3820
- /**
3821
- * A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
3822
- */
3823
- percent_off?: number;
3824
- }
3825
-
3826
- namespace CouponData {
3827
- type Duration = 'forever' | 'once' | 'repeating';
3828
- }
3829
- }
3830
-
3831
- interface InvoiceCreation {
3832
- /**
3833
- * Parameters passed when creating invoices for payment-mode Checkout Sessions.
3834
- */
3835
- invoice_data?: InvoiceCreation.InvoiceData;
3836
- }
3837
-
3838
- namespace InvoiceCreation {
3839
- interface InvoiceData {
3840
- /**
3841
- * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
3842
- */
3843
- issuer?: InvoiceData.Issuer;
3844
- }
3845
-
3846
- namespace InvoiceData {
3847
- interface Issuer {
3848
- /**
3849
- * The connected account being referenced when `type` is `account`.
3850
- */
3851
- account?: string;
3852
-
3853
- /**
3854
- * Type of the account referenced in the request.
3855
- */
3856
- type: Issuer.Type;
3857
- }
3858
-
3859
- namespace Issuer {
3860
- type Type = 'account' | 'self';
3861
- }
3862
- }
3863
- }
3864
-
3865
- interface LineItem {
3866
- /**
3867
- * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
3868
- */
3869
- adjustable_quantity?: LineItem.AdjustableQuantity;
3870
-
3871
- /**
3872
- * ID of an existing line item.
3873
- */
3874
- id?: string;
3875
-
3876
- /**
3877
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3878
- */
3879
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3880
-
3881
- /**
3882
- * The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
3883
- */
3884
- price?: string;
3885
-
3886
- /**
3887
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
3888
- */
3889
- price_data?: LineItem.PriceData;
3890
-
3891
- /**
3892
- * The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
3893
- */
3894
- quantity?: number;
3895
-
3896
- /**
3897
- * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
3898
- */
3899
- tax_rates?: Stripe.Emptyable<Array<string>>;
3900
- }
3901
-
3902
- namespace LineItem {
3903
- interface AdjustableQuantity {
3904
- /**
3905
- * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
3906
- */
3907
- enabled: boolean;
3908
-
3909
- /**
3910
- * The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
3911
- */
3912
- maximum?: number;
3913
-
3914
- /**
3915
- * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
3916
- */
3917
- minimum?: number;
3918
- }
3919
-
3920
- interface PriceData {
3921
- /**
3922
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
3923
- */
3924
- currency: string;
3925
-
3926
- /**
3927
- * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
3928
- */
3929
- product?: string;
3930
-
3931
- /**
3932
- * Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
3933
- */
3934
- product_data?: PriceData.ProductData;
3935
-
3936
- /**
3937
- * The recurring components of a price such as `interval` and `interval_count`.
3938
- */
3939
- recurring?: PriceData.Recurring;
3940
-
3941
- /**
3942
- * Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
3943
- */
3944
- tax_behavior?: PriceData.TaxBehavior;
3945
-
3946
- /**
3947
- * A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
3948
- */
3949
- unit_amount?: number;
3950
-
3951
- /**
3952
- * Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
3953
- */
3954
- unit_amount_decimal?: string;
3955
- }
3956
-
3957
- namespace PriceData {
3958
- interface ProductData {
3959
- /**
3960
- * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
3961
- */
3962
- description?: string;
3963
-
3964
- /**
3965
- * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3966
- */
3967
- images?: Array<string>;
3968
-
3969
- /**
3970
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3971
- */
3972
- metadata?: Stripe.MetadataParam;
3973
-
3974
- /**
3975
- * The product's name, meant to be displayable to the customer.
3976
- */
3977
- name: string;
3978
-
3979
- /**
3980
- * A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
3981
- */
3982
- tax_code?: string;
3983
-
3984
- /**
3985
- * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
3986
- */
3987
- unit_label?: string;
3988
- }
3989
-
3990
- interface Recurring {
3991
- /**
3992
- * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
3993
- */
3994
- interval: Recurring.Interval;
3995
-
3996
- /**
3997
- * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
3998
- */
3999
- interval_count?: number;
4000
- }
4001
-
4002
- namespace Recurring {
4003
- type Interval = 'day' | 'month' | 'week' | 'year';
4004
- }
4005
-
4006
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
4007
- }
4008
- }
4009
-
4010
3379
  interface ShippingOption {
4011
3380
  /**
4012
3381
  * The ID of the Shipping Rate to use for this shipping option.
@@ -4144,50 +3513,6 @@ declare module 'stripe' {
4144
3513
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
4145
3514
  }
4146
3515
  }
4147
-
4148
- interface SubscriptionData {
4149
- /**
4150
- * All invoices will be billed using the specified settings.
4151
- */
4152
- invoice_settings?: SubscriptionData.InvoiceSettings;
4153
-
4154
- /**
4155
- * Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
4156
- */
4157
- trial_end?: number;
4158
-
4159
- /**
4160
- * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
4161
- */
4162
- trial_period_days?: Stripe.Emptyable<number>;
4163
- }
4164
-
4165
- namespace SubscriptionData {
4166
- interface InvoiceSettings {
4167
- /**
4168
- * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
4169
- */
4170
- issuer?: InvoiceSettings.Issuer;
4171
- }
4172
-
4173
- namespace InvoiceSettings {
4174
- interface Issuer {
4175
- /**
4176
- * The connected account being referenced when `type` is `account`.
4177
- */
4178
- account?: string;
4179
-
4180
- /**
4181
- * Type of the account referenced in the request.
4182
- */
4183
- type: Issuer.Type;
4184
- }
4185
-
4186
- namespace Issuer {
4187
- type Type = 'account' | 'self';
4188
- }
4189
- }
4190
- }
4191
3516
  }
4192
3517
 
4193
3518
  interface SessionListParams extends PaginationParams {
@@ -4201,11 +3526,6 @@ declare module 'stripe' {
4201
3526
  */
4202
3527
  customer?: string;
4203
3528
 
4204
- /**
4205
- * Only return the Checkout Sessions for the Account specified.
4206
- */
4207
- customer_account?: string;
4208
-
4209
3529
  /**
4210
3530
  * Only return the Checkout Sessions for the Customer details specified.
4211
3531
  */