stripe 19.1.0-alpha.1 → 19.1.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 (414) hide show
  1. package/CHANGELOG.md +21 -1538
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +2 -3
  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 -13
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionSchedules.js +0 -4
  12. package/cjs/resources/Subscriptions.js +0 -4
  13. package/cjs/resources.js +8 -140
  14. package/cjs/stripe.core.js +9 -8
  15. package/esm/Error.js +0 -100
  16. package/esm/apiVersion.js +2 -1
  17. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  18. package/esm/resources/Mandates.js +0 -5
  19. package/esm/resources/PaymentIntents.js +0 -13
  20. package/esm/resources/Quotes.js +0 -32
  21. package/esm/resources/SubscriptionSchedules.js +0 -4
  22. package/esm/resources/Subscriptions.js +0 -4
  23. package/esm/resources.js +0 -125
  24. package/esm/stripe.core.js +9 -8
  25. package/package.json +1 -1
  26. package/types/AccountLinksResource.d.ts +1 -5
  27. package/types/AccountSessions.d.ts +0 -45
  28. package/types/AccountSessionsResource.d.ts +0 -264
  29. package/types/Accounts.d.ts +1 -212
  30. package/types/AccountsResource.d.ts +0 -544
  31. package/types/Billing/AlertTriggereds.d.ts +1 -16
  32. package/types/Billing/Alerts.d.ts +1 -116
  33. package/types/Billing/AlertsResource.d.ts +2 -149
  34. package/types/Billing/CreditBalanceSummary.d.ts +2 -123
  35. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -20
  36. package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
  37. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  38. package/types/Billing/CreditGrants.d.ts +1 -76
  39. package/types/Billing/CreditGrantsResource.d.ts +2 -43
  40. package/types/BillingPortal/Sessions.d.ts +0 -5
  41. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  42. package/types/Cards.d.ts +0 -5
  43. package/types/CashBalances.d.ts +0 -5
  44. package/types/Charges.d.ts +0 -171
  45. package/types/ChargesResource.d.ts +0 -1406
  46. package/types/Checkout/Sessions.d.ts +2 -427
  47. package/types/Checkout/SessionsResource.d.ts +2 -684
  48. package/types/ConfirmationTokens.d.ts +0 -125
  49. package/types/Coupons.d.ts +0 -33
  50. package/types/CouponsResource.d.ts +0 -21
  51. package/types/CreditNoteLineItems.d.ts +0 -17
  52. package/types/CreditNotes.d.ts +0 -31
  53. package/types/CreditNotesResource.d.ts +0 -83
  54. package/types/CustomerBalanceTransactions.d.ts +0 -2
  55. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  56. package/types/CustomerSessions.d.ts +0 -5
  57. package/types/CustomerSessionsResource.d.ts +1 -6
  58. package/types/Customers.d.ts +0 -2
  59. package/types/CustomersResource.d.ts +0 -8
  60. package/types/Discounts.d.ts +0 -10
  61. package/types/Disputes.d.ts +0 -40
  62. package/types/DisputesResource.d.ts +0 -11
  63. package/types/Errors.d.ts +0 -85
  64. package/types/EventTypes.d.ts +0 -664
  65. package/types/Events.d.ts +0 -97
  66. package/types/FinancialConnections/Accounts.d.ts +1 -36
  67. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  68. package/types/FinancialConnections/Sessions.d.ts +1 -51
  69. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  70. package/types/Identity/VerificationSessions.d.ts +0 -5
  71. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  72. package/types/InvoiceItems.d.ts +2 -114
  73. package/types/InvoiceItemsResource.d.ts +6 -117
  74. package/types/InvoiceLineItems.d.ts +3 -158
  75. package/types/InvoicePayments.d.ts +0 -5
  76. package/types/InvoicePaymentsResource.d.ts +1 -10
  77. package/types/Invoices.d.ts +4 -204
  78. package/types/InvoicesResource.d.ts +18 -1648
  79. package/types/Issuing/CardholdersResource.d.ts +1 -2
  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 +1 -135
  84. package/types/MandatesResource.d.ts +0 -31
  85. package/types/PaymentIntents.d.ts +3 -825
  86. package/types/PaymentIntentsResource.d.ts +5597 -11436
  87. package/types/PaymentLinks.d.ts +0 -7
  88. package/types/PaymentLinksResource.d.ts +0 -14
  89. package/types/PaymentMethodConfigurations.d.ts +0 -216
  90. package/types/PaymentMethodConfigurationsResource.d.ts +0 -300
  91. package/types/PaymentMethods.d.ts +0 -130
  92. package/types/PaymentMethodsResource.d.ts +2 -167
  93. package/types/Prices.d.ts +0 -22
  94. package/types/PricesResource.d.ts +0 -22
  95. package/types/PromotionCodes.d.ts +0 -5
  96. package/types/PromotionCodesResource.d.ts +0 -10
  97. package/types/Quotes.d.ts +1 -594
  98. package/types/QuotesResource.d.ts +290 -2635
  99. package/types/Refunds.d.ts +0 -14
  100. package/types/SetupAttempts.d.ts +1 -51
  101. package/types/SetupIntents.d.ts +2 -210
  102. package/types/SetupIntentsResource.d.ts +3 -937
  103. package/types/Sources.d.ts +0 -29
  104. package/types/SubscriptionItems.d.ts +0 -26
  105. package/types/SubscriptionItemsResource.d.ts +0 -109
  106. package/types/SubscriptionSchedules.d.ts +0 -205
  107. package/types/SubscriptionSchedulesResource.d.ts +4 -1232
  108. package/types/Subscriptions.d.ts +1 -263
  109. package/types/SubscriptionsResource.d.ts +8 -747
  110. package/types/TaxIds.d.ts +0 -10
  111. package/types/TaxIdsResource.d.ts +0 -10
  112. package/types/Terminal/Configurations.d.ts +0 -9
  113. package/types/Terminal/ConfigurationsResource.d.ts +0 -28
  114. package/types/Terminal/Readers.d.ts +0 -20
  115. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  116. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  117. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  118. package/types/Transfers.d.ts +0 -5
  119. package/types/TransfersResource.d.ts +0 -5
  120. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  121. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  122. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  123. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  124. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  125. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  126. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  127. package/types/V2/Core/EventTypes.d.ts +10 -8452
  128. package/types/V2/Core/Events.d.ts +0 -12
  129. package/types/V2/EventMisc.d.ts +8 -0
  130. package/types/WebhookEndpointsResource.d.ts +0 -78
  131. package/types/Webhooks.d.ts +0 -2
  132. package/types/apiVersion.d.ts +2 -1
  133. package/types/index.d.ts +0 -218
  134. package/types/lib.d.ts +0 -10
  135. package/types/test/typescriptTest.ts +7 -0
  136. package/cjs/resources/AccountNotices.js +0 -21
  137. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
  138. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  139. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  140. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  141. package/cjs/resources/ExternalAccounts.js +0 -23
  142. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  143. package/cjs/resources/FxQuotes.js +0 -15
  144. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  145. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  146. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  147. package/cjs/resources/Margins.js +0 -22
  148. package/cjs/resources/Orders.js +0 -24
  149. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  150. package/cjs/resources/PaymentRecords.js +0 -33
  151. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  152. package/cjs/resources/Tax/Associations.js +0 -9
  153. package/cjs/resources/Tax/Forms.js +0 -20
  154. package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
  155. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  156. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
  157. package/cjs/resources/V2/Billing/BillSettings.js +0 -27
  158. package/cjs/resources/V2/Billing/Cadences.js +0 -23
  159. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
  160. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
  161. package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
  162. package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
  163. package/cjs/resources/V2/Billing/Intents.js +0 -36
  164. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
  165. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
  166. package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
  167. package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
  168. package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
  169. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -21
  170. package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
  171. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
  172. package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
  173. package/cjs/resources/V2/Billing/Profiles.js +0 -19
  174. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
  175. package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
  176. package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
  177. package/cjs/resources/V2/Billing/RateCards.js +0 -29
  178. package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
  179. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  180. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  181. package/cjs/resources/V2/Core/Accounts.js +0 -25
  182. package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
  183. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  184. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  185. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  186. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  187. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  188. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  189. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  190. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  191. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  192. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  193. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  194. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  195. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  196. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  197. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
  198. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  199. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  200. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
  201. package/cjs/resources/V2/Tax/AutomaticRules.js +0 -22
  202. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  203. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
  204. package/esm/resources/AccountNotices.js +0 -18
  205. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
  206. package/esm/resources/Capital/FinancingOffers.js +0 -18
  207. package/esm/resources/Capital/FinancingSummary.js +0 -9
  208. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  209. package/esm/resources/ExternalAccounts.js +0 -20
  210. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  211. package/esm/resources/FxQuotes.js +0 -12
  212. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  213. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  214. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  215. package/esm/resources/Margins.js +0 -19
  216. package/esm/resources/Orders.js +0 -21
  217. package/esm/resources/PaymentAttemptRecords.js +0 -14
  218. package/esm/resources/PaymentRecords.js +0 -30
  219. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  220. package/esm/resources/Tax/Associations.js +0 -6
  221. package/esm/resources/Tax/Forms.js +0 -17
  222. package/esm/resources/Terminal/OnboardingLinks.js +0 -9
  223. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  224. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
  225. package/esm/resources/V2/Billing/BillSettings.js +0 -24
  226. package/esm/resources/V2/Billing/Cadences.js +0 -20
  227. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
  228. package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
  229. package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
  230. package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
  231. package/esm/resources/V2/Billing/Intents.js +0 -33
  232. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
  233. package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
  234. package/esm/resources/V2/Billing/LicenseFees.js +0 -24
  235. package/esm/resources/V2/Billing/LicensedItems.js +0 -22
  236. package/esm/resources/V2/Billing/MeteredItems.js +0 -19
  237. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -18
  238. package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
  239. package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
  240. package/esm/resources/V2/Billing/PricingPlans.js +0 -26
  241. package/esm/resources/V2/Billing/Profiles.js +0 -16
  242. package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
  243. package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
  244. package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
  245. package/esm/resources/V2/Billing/RateCards.js +0 -26
  246. package/esm/resources/V2/Billing/ServiceActions.js +0 -17
  247. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  248. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  249. package/esm/resources/V2/Core/Accounts.js +0 -22
  250. package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
  251. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  252. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  253. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  254. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  255. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  256. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  257. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  258. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  259. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  260. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  261. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  262. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  263. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  264. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  265. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
  266. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  267. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  268. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
  269. package/esm/resources/V2/Tax/AutomaticRules.js +0 -19
  270. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  271. package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
  272. package/types/AccountNotices.d.ts +0 -113
  273. package/types/AccountNoticesResource.d.ts +0 -98
  274. package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
  275. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
  276. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
  277. package/types/Capital/FinancingOffers.d.ts +0 -188
  278. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  279. package/types/Capital/FinancingSummary.d.ts +0 -106
  280. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  281. package/types/Capital/FinancingTransactions.d.ts +0 -135
  282. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  283. package/types/ExternalAccountsResource.d.ts +0 -304
  284. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  285. package/types/FinancialConnections/Institutions.d.ts +0 -98
  286. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  287. package/types/FxQuotes.d.ts +0 -155
  288. package/types/FxQuotesResource.d.ts +0 -130
  289. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  290. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  291. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  292. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  293. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  294. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  295. package/types/Issuing/Settlements.d.ts +0 -113
  296. package/types/Margins.d.ts +0 -56
  297. package/types/MarginsResource.d.ts +0 -114
  298. package/types/Orders.d.ts +0 -1163
  299. package/types/OrdersResource.d.ts +0 -3139
  300. package/types/PaymentAttemptRecords.d.ts +0 -2360
  301. package/types/PaymentAttemptRecordsResource.d.ts +0 -52
  302. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  303. package/types/PaymentRecords.d.ts +0 -2353
  304. package/types/PaymentRecordsResource.d.ts +0 -559
  305. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  306. package/types/Privacy/RedactionJobs.d.ts +0 -111
  307. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  308. package/types/QuoteLines.d.ts +0 -634
  309. package/types/QuotePreviewInvoices.d.ts +0 -1770
  310. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
  311. package/types/Tax/Associations.d.ts +0 -82
  312. package/types/Tax/AssociationsResource.d.ts +0 -29
  313. package/types/Tax/Forms.d.ts +0 -220
  314. package/types/Tax/FormsResource.d.ts +0 -107
  315. package/types/Terminal/OnboardingLinks.d.ts +0 -57
  316. package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
  317. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  318. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  319. package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
  320. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
  321. package/types/V2/Billing/BillSettings.d.ts +0 -120
  322. package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
  323. package/types/V2/Billing/Cadences.d.ts +0 -731
  324. package/types/V2/Billing/CadencesResource.d.ts +0 -516
  325. package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -314
  326. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
  327. package/types/V2/Billing/CollectionSettings.d.ts +0 -337
  328. package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -675
  329. package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
  330. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
  331. package/types/V2/Billing/IntentActions.d.ts +0 -459
  332. package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
  333. package/types/V2/Billing/Intents.d.ts +0 -117
  334. package/types/V2/Billing/IntentsResource.d.ts +0 -575
  335. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
  336. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
  337. package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
  338. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
  339. package/types/V2/Billing/LicenseFees.d.ts +0 -164
  340. package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
  341. package/types/V2/Billing/LicensedItems.d.ts +0 -73
  342. package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
  343. package/types/V2/Billing/MeteredItems.d.ts +0 -101
  344. package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
  345. package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
  346. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
  347. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -118
  348. package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
  349. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
  350. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
  351. package/types/V2/Billing/PricingPlans.d.ts +0 -84
  352. package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
  353. package/types/V2/Billing/Profiles.d.ts +0 -70
  354. package/types/V2/Billing/ProfilesResource.d.ts +0 -150
  355. package/types/V2/Billing/RateCardRates.d.ts +0 -144
  356. package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
  357. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
  358. package/types/V2/Billing/RateCardVersions.d.ts +0 -39
  359. package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
  360. package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
  361. package/types/V2/Billing/RateCards.d.ts +0 -98
  362. package/types/V2/Billing/RateCardsResource.d.ts +0 -162
  363. package/types/V2/Billing/ServiceActions.d.ts +0 -274
  364. package/types/V2/Billing/ServiceActionsResource.d.ts +0 -370
  365. package/types/V2/Core/AccountLinks.d.ts +0 -168
  366. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  367. package/types/V2/Core/AccountPersons.d.ts +0 -615
  368. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -1153
  369. package/types/V2/Core/Accounts.d.ts +0 -5978
  370. package/types/V2/Core/AccountsResource.d.ts +0 -5023
  371. package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
  372. package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
  373. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  374. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  375. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  376. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  377. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  378. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  379. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  380. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  381. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
  382. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -147
  383. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -178
  384. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -126
  385. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  386. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  387. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
  388. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  389. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -283
  390. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -247
  391. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  392. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -330
  393. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -256
  394. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -213
  395. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -201
  396. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
  397. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  398. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  399. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
  400. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  401. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -181
  402. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  403. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
  404. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
  405. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  406. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  407. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  408. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  409. package/types/V2/Payments/OffSessionPayments.d.ts +0 -326
  410. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -401
  411. package/types/V2/Tax/AutomaticRules.d.ts +0 -53
  412. package/types/V2/Tax/AutomaticRulesResource.d.ts +0 -102
  413. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -73
  414. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -48
@@ -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,14 +756,12 @@ declare module 'stripe' {
854
756
  | 'eps'
855
757
  | 'fpx'
856
758
  | 'giropay'
857
- | 'gopay'
858
759
  | 'grabpay'
859
760
  | 'ideal'
860
761
  | 'kakao_pay'
861
762
  | 'klarna'
862
763
  | 'konbini'
863
764
  | 'kr_card'
864
- | 'mb_way'
865
765
  | 'mobilepay'
866
766
  | 'multibanco'
867
767
  | 'naver_pay'
@@ -872,17 +772,12 @@ declare module 'stripe' {
872
772
  | 'payco'
873
773
  | 'paynow'
874
774
  | 'paypal'
875
- | 'paypay'
876
- | 'payto'
877
775
  | 'pix'
878
776
  | 'promptpay'
879
- | 'qris'
880
- | 'rechnung'
881
777
  | 'revolut_pay'
882
778
  | 'samsung_pay'
883
779
  | 'satispay'
884
780
  | 'sepa_debit'
885
- | 'shopeepay'
886
781
  | 'sofort'
887
782
  | 'swish'
888
783
  | 'twint'
@@ -1000,11 +895,6 @@ declare module 'stripe' {
1000
895
  */
1001
896
  dynamic_tax_rates?: Array<string>;
1002
897
 
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
898
  /**
1009
899
  * 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
900
  */
@@ -1573,11 +1463,6 @@ declare module 'stripe' {
1573
1463
  */
1574
1464
  paypal?: PaymentMethodOptions.Paypal;
1575
1465
 
1576
- /**
1577
- * contains details about the PayTo payment method options.
1578
- */
1579
- payto?: PaymentMethodOptions.Payto;
1580
-
1581
1466
  /**
1582
1467
  * contains details about the Pix payment method options.
1583
1468
  */
@@ -1886,11 +1771,6 @@ declare module 'stripe' {
1886
1771
  */
1887
1772
  installments?: Card.Installments;
1888
1773
 
1889
- /**
1890
- * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1891
- */
1892
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1893
-
1894
1774
  /**
1895
1775
  * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1896
1776
  */
@@ -1952,8 +1832,6 @@ declare module 'stripe' {
1952
1832
  enabled?: boolean;
1953
1833
  }
1954
1834
 
1955
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1956
-
1957
1835
  type RequestExtendedAuthorization = 'if_available' | 'never';
1958
1836
 
1959
1837
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2436,11 +2314,6 @@ declare module 'stripe' {
2436
2314
  */
2437
2315
  reference?: string;
2438
2316
 
2439
- /**
2440
- * 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.
2441
- */
2442
- reference_id?: string;
2443
-
2444
2317
  /**
2445
2318
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
2446
2319
  */
@@ -2458,11 +2331,6 @@ declare module 'stripe' {
2458
2331
  * 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`.
2459
2332
  */
2460
2333
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
2461
-
2462
- /**
2463
- * 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.
2464
- */
2465
- subsellers?: Array<string>;
2466
2334
  }
2467
2335
 
2468
2336
  namespace Paypal {
@@ -2492,92 +2360,6 @@ declare module 'stripe' {
2492
2360
  type SetupFutureUsage = 'none' | 'off_session';
2493
2361
  }
2494
2362
 
2495
- interface Payto {
2496
- /**
2497
- * Additional fields for Mandate creation
2498
- */
2499
- mandate_options?: Payto.MandateOptions;
2500
-
2501
- /**
2502
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2503
- *
2504
- * 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.
2505
- *
2506
- * 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.
2507
- *
2508
- * 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).
2509
- */
2510
- setup_future_usage?: Payto.SetupFutureUsage;
2511
- }
2512
-
2513
- namespace Payto {
2514
- interface MandateOptions {
2515
- /**
2516
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2517
- */
2518
- amount?: number;
2519
-
2520
- /**
2521
- * 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.
2522
- */
2523
- amount_type?: MandateOptions.AmountType;
2524
-
2525
- /**
2526
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2527
- */
2528
- end_date?: string;
2529
-
2530
- /**
2531
- * The periodicity at which payments will be collected.
2532
- */
2533
- payment_schedule?: MandateOptions.PaymentSchedule;
2534
-
2535
- /**
2536
- * 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.
2537
- */
2538
- payments_per_period?: number;
2539
-
2540
- /**
2541
- * The purpose for which payments are made. Defaults to retail.
2542
- */
2543
- purpose?: MandateOptions.Purpose;
2544
-
2545
- /**
2546
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2547
- */
2548
- start_date?: string;
2549
- }
2550
-
2551
- namespace MandateOptions {
2552
- type AmountType = 'fixed' | 'maximum';
2553
-
2554
- type PaymentSchedule =
2555
- | 'adhoc'
2556
- | 'annual'
2557
- | 'daily'
2558
- | 'fortnightly'
2559
- | 'monthly'
2560
- | 'quarterly'
2561
- | 'semi_annual'
2562
- | 'weekly';
2563
-
2564
- type Purpose =
2565
- | 'dependant_support'
2566
- | 'government'
2567
- | 'loan'
2568
- | 'mortgage'
2569
- | 'other'
2570
- | 'pension'
2571
- | 'personal'
2572
- | 'retail'
2573
- | 'salary'
2574
- | 'tax'
2575
- | 'utility';
2576
- }
2577
-
2578
- type SetupFutureUsage = 'none' | 'off_session';
2579
- }
2580
-
2581
2363
  interface Pix {
2582
2364
  /**
2583
2365
  * Determines if the amount includes the IOF tax. Defaults to `never`.
@@ -2589,11 +2371,6 @@ declare module 'stripe' {
2589
2371
  */
2590
2372
  expires_after_seconds?: number;
2591
2373
 
2592
- /**
2593
- * Additional fields for mandate creation.
2594
- */
2595
- mandate_options?: Pix.MandateOptions;
2596
-
2597
2374
  /**
2598
2375
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2599
2376
  *
@@ -2603,68 +2380,11 @@ declare module 'stripe' {
2603
2380
  *
2604
2381
  * 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).
2605
2382
  */
2606
- setup_future_usage?: Pix.SetupFutureUsage;
2383
+ setup_future_usage?: 'none';
2607
2384
  }
2608
2385
 
2609
2386
  namespace Pix {
2610
2387
  type AmountIncludesIof = 'always' | 'never';
2611
-
2612
- interface MandateOptions {
2613
- /**
2614
- * Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2615
- */
2616
- amount?: number;
2617
-
2618
- /**
2619
- * Determines if the amount includes the IOF tax. Defaults to `never`.
2620
- */
2621
- amount_includes_iof?: MandateOptions.AmountIncludesIof;
2622
-
2623
- /**
2624
- * Type of amount. Defaults to `maximum`.
2625
- */
2626
- amount_type?: MandateOptions.AmountType;
2627
-
2628
- /**
2629
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2630
- */
2631
- currency?: string;
2632
-
2633
- /**
2634
- * 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.
2635
- */
2636
- end_date?: string;
2637
-
2638
- /**
2639
- * Schedule at which the future payments will be charged. Defaults to `weekly`.
2640
- */
2641
- payment_schedule?: MandateOptions.PaymentSchedule;
2642
-
2643
- /**
2644
- * Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2645
- */
2646
- reference?: string;
2647
-
2648
- /**
2649
- * 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.
2650
- */
2651
- start_date?: string;
2652
- }
2653
-
2654
- namespace MandateOptions {
2655
- type AmountIncludesIof = 'always' | 'never';
2656
-
2657
- type AmountType = 'fixed' | 'maximum';
2658
-
2659
- type PaymentSchedule =
2660
- | 'halfyearly'
2661
- | 'monthly'
2662
- | 'quarterly'
2663
- | 'weekly'
2664
- | 'yearly';
2665
- }
2666
-
2667
- type SetupFutureUsage = 'none' | 'off_session';
2668
2388
  }
2669
2389
 
2670
2390
  interface RevolutPay {
@@ -2805,11 +2525,7 @@ declare module 'stripe' {
2805
2525
  | 'payment_method'
2806
2526
  | 'transactions';
2807
2527
 
2808
- type Prefetch =
2809
- | 'balances'
2810
- | 'inferred_balances'
2811
- | 'ownership'
2812
- | 'transactions';
2528
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2813
2529
  }
2814
2530
 
2815
2531
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2865,7 +2581,6 @@ declare module 'stripe' {
2865
2581
  | 'eps'
2866
2582
  | 'fpx'
2867
2583
  | 'giropay'
2868
- | 'gopay'
2869
2584
  | 'grabpay'
2870
2585
  | 'ideal'
2871
2586
  | 'kakao_pay'
@@ -2873,7 +2588,6 @@ declare module 'stripe' {
2873
2588
  | 'konbini'
2874
2589
  | 'kr_card'
2875
2590
  | 'link'
2876
- | 'mb_way'
2877
2591
  | 'mobilepay'
2878
2592
  | 'multibanco'
2879
2593
  | 'naver_pay'
@@ -2884,17 +2598,12 @@ declare module 'stripe' {
2884
2598
  | 'payco'
2885
2599
  | 'paynow'
2886
2600
  | 'paypal'
2887
- | 'paypay'
2888
- | 'payto'
2889
2601
  | 'pix'
2890
2602
  | 'promptpay'
2891
- | 'qris'
2892
- | 'rechnung'
2893
2603
  | 'revolut_pay'
2894
2604
  | 'samsung_pay'
2895
2605
  | 'satispay'
2896
2606
  | 'sepa_debit'
2897
- | 'shopeepay'
2898
2607
  | 'sofort'
2899
2608
  | 'swish'
2900
2609
  | 'twint'
@@ -2903,27 +2612,6 @@ declare module 'stripe' {
2903
2612
  | 'zip';
2904
2613
 
2905
2614
  interface Permissions {
2906
- /**
2907
- * Permissions for updating the Checkout Session.
2908
- */
2909
- update?: Permissions.Update;
2910
-
2911
- /**
2912
- * Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
2913
- *
2914
- * 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.
2915
- */
2916
- update_discounts?: Permissions.UpdateDiscounts;
2917
-
2918
- /**
2919
- * Determines which entity is allowed to update the line items.
2920
- *
2921
- * 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.
2922
- *
2923
- * 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.
2924
- */
2925
- update_line_items?: Permissions.UpdateLineItems;
2926
-
2927
2615
  /**
2928
2616
  * Determines which entity is allowed to update the shipping details.
2929
2617
  *
@@ -2935,36 +2623,6 @@ declare module 'stripe' {
2935
2623
  }
2936
2624
 
2937
2625
  namespace Permissions {
2938
- interface Update {
2939
- /**
2940
- * Determines which entity is allowed to update the line items.
2941
- *
2942
- * 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.
2943
- *
2944
- * 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.
2945
- */
2946
- line_items?: Update.LineItems;
2947
-
2948
- /**
2949
- * Determines which entity is allowed to update the shipping details.
2950
- *
2951
- * 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.
2952
- *
2953
- * 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.
2954
- */
2955
- shipping_details?: Update.ShippingDetails;
2956
- }
2957
-
2958
- namespace Update {
2959
- type LineItems = 'client_only' | 'server_only';
2960
-
2961
- type ShippingDetails = 'client_only' | 'server_only';
2962
- }
2963
-
2964
- type UpdateDiscounts = 'client_only' | 'server_only';
2965
-
2966
- type UpdateLineItems = 'client_only' | 'server_only';
2967
-
2968
2626
  type UpdateShippingDetails = 'client_only' | 'server_only';
2969
2627
  }
2970
2628
 
@@ -3619,48 +3277,16 @@ declare module 'stripe' {
3619
3277
  }
3620
3278
 
3621
3279
  interface SessionUpdateParams {
3622
- /**
3623
- * Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
3624
- */
3625
- automatic_tax?: SessionUpdateParams.AutomaticTax;
3626
-
3627
3280
  /**
3628
3281
  * Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
3629
3282
  */
3630
3283
  collected_information?: SessionUpdateParams.CollectedInformation;
3631
3284
 
3632
- /**
3633
- * List of coupons and promotion codes attached to the Checkout Session.
3634
- */
3635
- discounts?: Stripe.Emptyable<Array<SessionUpdateParams.Discount>>;
3636
-
3637
3285
  /**
3638
3286
  * Specifies which fields in the response should be expanded.
3639
3287
  */
3640
3288
  expand?: Array<string>;
3641
3289
 
3642
- /**
3643
- * Generate a post-purchase Invoice for one-time payments.
3644
- */
3645
- invoice_creation?: SessionUpdateParams.InvoiceCreation;
3646
-
3647
- /**
3648
- * A list of items the customer is purchasing.
3649
- *
3650
- * When updating line items, you must retransmit the entire array of line items.
3651
- *
3652
- * To retain an existing line item, specify its `id`.
3653
- *
3654
- * To update an existing line item, specify its `id` along with the new values of the fields to update.
3655
- *
3656
- * To add a new line item, specify one of `price` or `price_data` and `quantity`.
3657
- *
3658
- * To remove an existing line item, omit the line item's ID from the retransmitted array.
3659
- *
3660
- * To reorder a line item, specify it at the desired position in the retransmitted array.
3661
- */
3662
- line_items?: Array<SessionUpdateParams.LineItem>;
3663
-
3664
3290
  /**
3665
3291
  * 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`.
3666
3292
  */
@@ -3672,39 +3298,9 @@ declare module 'stripe' {
3672
3298
  shipping_options?: Stripe.Emptyable<
3673
3299
  Array<SessionUpdateParams.ShippingOption>
3674
3300
  >;
3675
-
3676
- /**
3677
- * A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
3678
- */
3679
- subscription_data?: SessionUpdateParams.SubscriptionData;
3680
3301
  }
3681
3302
 
3682
3303
  namespace SessionUpdateParams {
3683
- interface AutomaticTax {
3684
- /**
3685
- * 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.
3686
- */
3687
- liability?: AutomaticTax.Liability;
3688
- }
3689
-
3690
- namespace AutomaticTax {
3691
- interface Liability {
3692
- /**
3693
- * The connected account being referenced when `type` is `account`.
3694
- */
3695
- account?: string;
3696
-
3697
- /**
3698
- * Type of the account referenced in the request.
3699
- */
3700
- type: Liability.Type;
3701
- }
3702
-
3703
- namespace Liability {
3704
- type Type = 'account' | 'self';
3705
- }
3706
- }
3707
-
3708
3304
  interface CollectedInformation {
3709
3305
  /**
3710
3306
  * The shipping details to apply to this Session.
@@ -3760,235 +3356,6 @@ declare module 'stripe' {
3760
3356
  }
3761
3357
  }
3762
3358
 
3763
- interface Discount {
3764
- /**
3765
- * 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.
3766
- */
3767
- coupon?: string;
3768
-
3769
- /**
3770
- * 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.
3771
- */
3772
- coupon_data?: Discount.CouponData;
3773
- }
3774
-
3775
- namespace Discount {
3776
- interface CouponData {
3777
- /**
3778
- * A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
3779
- */
3780
- amount_off?: number;
3781
-
3782
- /**
3783
- * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
3784
- */
3785
- currency?: string;
3786
-
3787
- /**
3788
- * Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
3789
- */
3790
- duration?: CouponData.Duration;
3791
-
3792
- /**
3793
- * 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`.
3794
- */
3795
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3796
-
3797
- /**
3798
- * Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
3799
- */
3800
- name?: string;
3801
-
3802
- /**
3803
- * 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).
3804
- */
3805
- percent_off?: number;
3806
- }
3807
-
3808
- namespace CouponData {
3809
- type Duration = 'forever' | 'once' | 'repeating';
3810
- }
3811
- }
3812
-
3813
- interface InvoiceCreation {
3814
- /**
3815
- * Parameters passed when creating invoices for payment-mode Checkout Sessions.
3816
- */
3817
- invoice_data?: InvoiceCreation.InvoiceData;
3818
- }
3819
-
3820
- namespace InvoiceCreation {
3821
- interface InvoiceData {
3822
- /**
3823
- * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
3824
- */
3825
- issuer?: InvoiceData.Issuer;
3826
- }
3827
-
3828
- namespace InvoiceData {
3829
- interface Issuer {
3830
- /**
3831
- * The connected account being referenced when `type` is `account`.
3832
- */
3833
- account?: string;
3834
-
3835
- /**
3836
- * Type of the account referenced in the request.
3837
- */
3838
- type: Issuer.Type;
3839
- }
3840
-
3841
- namespace Issuer {
3842
- type Type = 'account' | 'self';
3843
- }
3844
- }
3845
- }
3846
-
3847
- interface LineItem {
3848
- /**
3849
- * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
3850
- */
3851
- adjustable_quantity?: LineItem.AdjustableQuantity;
3852
-
3853
- /**
3854
- * ID of an existing line item.
3855
- */
3856
- id?: string;
3857
-
3858
- /**
3859
- * 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`.
3860
- */
3861
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3862
-
3863
- /**
3864
- * 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.
3865
- */
3866
- price?: string;
3867
-
3868
- /**
3869
- * 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.
3870
- */
3871
- price_data?: LineItem.PriceData;
3872
-
3873
- /**
3874
- * The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
3875
- */
3876
- quantity?: number;
3877
-
3878
- /**
3879
- * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
3880
- */
3881
- tax_rates?: Stripe.Emptyable<Array<string>>;
3882
- }
3883
-
3884
- namespace LineItem {
3885
- interface AdjustableQuantity {
3886
- /**
3887
- * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
3888
- */
3889
- enabled: boolean;
3890
-
3891
- /**
3892
- * 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.
3893
- */
3894
- maximum?: number;
3895
-
3896
- /**
3897
- * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
3898
- */
3899
- minimum?: number;
3900
- }
3901
-
3902
- interface PriceData {
3903
- /**
3904
- * 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).
3905
- */
3906
- currency: string;
3907
-
3908
- /**
3909
- * 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.
3910
- */
3911
- product?: string;
3912
-
3913
- /**
3914
- * Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
3915
- */
3916
- product_data?: PriceData.ProductData;
3917
-
3918
- /**
3919
- * The recurring components of a price such as `interval` and `interval_count`.
3920
- */
3921
- recurring?: PriceData.Recurring;
3922
-
3923
- /**
3924
- * 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.
3925
- */
3926
- tax_behavior?: PriceData.TaxBehavior;
3927
-
3928
- /**
3929
- * A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
3930
- */
3931
- unit_amount?: number;
3932
-
3933
- /**
3934
- * 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.
3935
- */
3936
- unit_amount_decimal?: string;
3937
- }
3938
-
3939
- namespace PriceData {
3940
- interface ProductData {
3941
- /**
3942
- * 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.
3943
- */
3944
- description?: string;
3945
-
3946
- /**
3947
- * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3948
- */
3949
- images?: Array<string>;
3950
-
3951
- /**
3952
- * 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`.
3953
- */
3954
- metadata?: Stripe.MetadataParam;
3955
-
3956
- /**
3957
- * The product's name, meant to be displayable to the customer.
3958
- */
3959
- name: string;
3960
-
3961
- /**
3962
- * A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
3963
- */
3964
- tax_code?: string;
3965
-
3966
- /**
3967
- * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
3968
- */
3969
- unit_label?: string;
3970
- }
3971
-
3972
- interface Recurring {
3973
- /**
3974
- * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
3975
- */
3976
- interval: Recurring.Interval;
3977
-
3978
- /**
3979
- * 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).
3980
- */
3981
- interval_count?: number;
3982
- }
3983
-
3984
- namespace Recurring {
3985
- type Interval = 'day' | 'month' | 'week' | 'year';
3986
- }
3987
-
3988
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3989
- }
3990
- }
3991
-
3992
3359
  interface ShippingOption {
3993
3360
  /**
3994
3361
  * The ID of the Shipping Rate to use for this shipping option.
@@ -4126,50 +3493,6 @@ declare module 'stripe' {
4126
3493
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
4127
3494
  }
4128
3495
  }
4129
-
4130
- interface SubscriptionData {
4131
- /**
4132
- * All invoices will be billed using the specified settings.
4133
- */
4134
- invoice_settings?: SubscriptionData.InvoiceSettings;
4135
-
4136
- /**
4137
- * 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.
4138
- */
4139
- trial_end?: number;
4140
-
4141
- /**
4142
- * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
4143
- */
4144
- trial_period_days?: Stripe.Emptyable<number>;
4145
- }
4146
-
4147
- namespace SubscriptionData {
4148
- interface InvoiceSettings {
4149
- /**
4150
- * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
4151
- */
4152
- issuer?: InvoiceSettings.Issuer;
4153
- }
4154
-
4155
- namespace InvoiceSettings {
4156
- interface Issuer {
4157
- /**
4158
- * The connected account being referenced when `type` is `account`.
4159
- */
4160
- account?: string;
4161
-
4162
- /**
4163
- * Type of the account referenced in the request.
4164
- */
4165
- type: Issuer.Type;
4166
- }
4167
-
4168
- namespace Issuer {
4169
- type Type = 'account' | 'self';
4170
- }
4171
- }
4172
- }
4173
3496
  }
4174
3497
 
4175
3498
  interface SessionListParams extends PaginationParams {
@@ -4183,11 +3506,6 @@ declare module 'stripe' {
4183
3506
  */
4184
3507
  customer?: string;
4185
3508
 
4186
- /**
4187
- * Only return the Checkout Sessions for the Account specified.
4188
- */
4189
- customer_account?: string;
4190
-
4191
3509
  /**
4192
3510
  * Only return the Checkout Sessions for the Customer details specified.
4193
3511
  */