stripe 23.1.0 → 23.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/CHANGELOG.md +1914 -4850
  2. package/README.md +42 -58
  3. package/VERSION +1 -1
  4. package/cjs/Error.d.ts +6 -0
  5. package/cjs/Error.js +17 -1
  6. package/cjs/Error.js.map +1 -1
  7. package/cjs/StripeEventNotificationHandler.js +54 -0
  8. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  9. package/cjs/Types.d.ts +4 -2
  10. package/cjs/Types.js.map +1 -1
  11. package/cjs/apiVersion.d.ts +2 -2
  12. package/cjs/apiVersion.js +2 -2
  13. package/cjs/apiVersion.js.map +1 -1
  14. package/cjs/resources/AccountLinks.d.ts +1 -1
  15. package/cjs/resources/AccountNotices.d.ts +140 -0
  16. package/cjs/resources/AccountNotices.js +29 -0
  17. package/cjs/resources/AccountNotices.js.map +1 -0
  18. package/cjs/resources/AccountSessions.d.ts +226 -0
  19. package/cjs/resources/AccountSessions.js.map +1 -1
  20. package/cjs/resources/Accounts.d.ts +625 -3
  21. package/cjs/resources/Accounts.js +14 -0
  22. package/cjs/resources/Accounts.js.map +1 -1
  23. package/cjs/resources/Balance.d.ts +67 -0
  24. package/cjs/resources/BalanceSettings.d.ts +18 -0
  25. package/cjs/resources/BankAccounts.d.ts +2 -2
  26. package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
  27. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
  28. package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
  29. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  30. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  31. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
  32. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  33. package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
  34. package/cjs/resources/Billing/Analytics/index.js +13 -0
  35. package/cjs/resources/Billing/Analytics/index.js.map +1 -0
  36. package/cjs/resources/Billing/index.d.ts +3 -0
  37. package/cjs/resources/Billing/index.js +2 -0
  38. package/cjs/resources/Billing/index.js.map +1 -1
  39. package/cjs/resources/Capabilities.d.ts +2 -2
  40. package/cjs/resources/Capital/FinancingOffers.d.ts +194 -0
  41. package/cjs/resources/Capital/FinancingOffers.js +30 -0
  42. package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
  43. package/cjs/resources/Capital/FinancingSummary.d.ts +102 -0
  44. package/cjs/resources/Capital/FinancingSummary.js +15 -0
  45. package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
  46. package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
  47. package/cjs/resources/Capital/FinancingTransactions.js +24 -0
  48. package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
  49. package/cjs/resources/Capital/index.d.ts +25 -0
  50. package/cjs/resources/Capital/index.js +17 -0
  51. package/cjs/resources/Capital/index.js.map +1 -0
  52. package/cjs/resources/Cards.d.ts +17 -0
  53. package/cjs/resources/Charges.d.ts +3077 -70
  54. package/cjs/resources/Checkout/Sessions.d.ts +351 -4
  55. package/cjs/resources/ConfirmationTokens.d.ts +67 -1
  56. package/cjs/resources/Coupons.d.ts +53 -0
  57. package/cjs/resources/Coupons.js +13 -0
  58. package/cjs/resources/Coupons.js.map +1 -1
  59. package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
  60. package/cjs/resources/CreditNotes.d.ts +1 -1
  61. package/cjs/resources/CustomerSessions.d.ts +68 -0
  62. package/cjs/resources/Customers.d.ts +20 -1
  63. package/cjs/resources/Customers.js +14 -0
  64. package/cjs/resources/Customers.js.map +1 -1
  65. package/cjs/resources/Disputes.d.ts +14 -0
  66. package/cjs/resources/Events.d.ts +614 -3
  67. package/cjs/resources/ExternalAccounts.d.ts +212 -1
  68. package/cjs/resources/ExternalAccounts.js +44 -0
  69. package/cjs/resources/ExternalAccounts.js.map +1 -1
  70. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  71. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
  72. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  73. package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
  74. package/cjs/resources/FinancialConnections/Accounts.js +8 -0
  75. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  76. package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
  77. package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
  78. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
  79. package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
  80. package/cjs/resources/FinancialConnections/Institutions.js +23 -0
  81. package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
  82. package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
  83. package/cjs/resources/FinancialConnections/index.d.ts +21 -9
  84. package/cjs/resources/FinancialConnections/index.js +4 -0
  85. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  86. package/cjs/resources/FxQuotes.d.ts +216 -0
  87. package/cjs/resources/FxQuotes.js +29 -0
  88. package/cjs/resources/FxQuotes.js.map +1 -0
  89. package/cjs/resources/InvoiceItems.d.ts +85 -0
  90. package/cjs/resources/InvoiceItems.js.map +1 -1
  91. package/cjs/resources/InvoiceLineItems.d.ts +40 -2
  92. package/cjs/resources/Invoices.d.ts +1257 -10
  93. package/cjs/resources/Invoices.js +41 -0
  94. package/cjs/resources/Invoices.js.map +1 -1
  95. package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
  96. package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
  97. package/cjs/resources/Issuing/Cards.d.ts +13 -0
  98. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  99. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
  100. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  101. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  102. package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
  103. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  104. package/cjs/resources/Issuing/Disputes.d.ts +13 -0
  105. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  106. package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
  107. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  108. package/cjs/resources/Issuing/Settlements.d.ts +83 -0
  109. package/cjs/resources/Issuing/Settlements.js +4 -0
  110. package/cjs/resources/Issuing/Settlements.js.map +1 -0
  111. package/cjs/resources/Issuing/Transactions.d.ts +22 -0
  112. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  113. package/cjs/resources/Issuing/index.d.ts +47 -22
  114. package/cjs/resources/Issuing/index.js +6 -0
  115. package/cjs/resources/Issuing/index.js.map +1 -1
  116. package/cjs/resources/LineItems.d.ts +29 -2
  117. package/cjs/resources/Mandates.d.ts +36 -2
  118. package/cjs/resources/Mandates.js +8 -0
  119. package/cjs/resources/Mandates.js.map +1 -1
  120. package/cjs/resources/Margins.d.ts +115 -0
  121. package/cjs/resources/Margins.js +35 -0
  122. package/cjs/resources/Margins.js.map +1 -0
  123. package/cjs/resources/Orders.d.ts +4696 -0
  124. package/cjs/resources/Orders.js +457 -0
  125. package/cjs/resources/Orders.js.map +1 -0
  126. package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
  127. package/cjs/resources/PaymentIntents.d.ts +13832 -2816
  128. package/cjs/resources/PaymentIntents.js +27 -0
  129. package/cjs/resources/PaymentIntents.js.map +1 -1
  130. package/cjs/resources/PaymentLinks.d.ts +3 -3
  131. package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
  132. package/cjs/resources/PaymentMethods.d.ts +181 -3
  133. package/cjs/resources/PaymentMethods.js.map +1 -1
  134. package/cjs/resources/PaymentPlans.d.ts +427 -0
  135. package/cjs/resources/PaymentPlans.js +35 -0
  136. package/cjs/resources/PaymentPlans.js.map +1 -0
  137. package/cjs/resources/PaymentRecords.d.ts +82 -0
  138. package/cjs/resources/Persons.d.ts +2 -2
  139. package/cjs/resources/Prices.d.ts +36 -0
  140. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  141. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
  142. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  143. package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
  144. package/cjs/resources/Privacy/RedactionJobs.js +73 -0
  145. package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
  146. package/cjs/resources/Privacy/index.d.ts +22 -0
  147. package/cjs/resources/Privacy/index.js +13 -0
  148. package/cjs/resources/Privacy/index.js.map +1 -0
  149. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  150. package/cjs/resources/PromotionCodes.d.ts +12 -0
  151. package/cjs/resources/PromotionCodes.js +27 -0
  152. package/cjs/resources/PromotionCodes.js.map +1 -1
  153. package/cjs/resources/QuoteLines.d.ts +507 -0
  154. package/cjs/resources/QuoteLines.js +4 -0
  155. package/cjs/resources/QuoteLines.js.map +1 -0
  156. package/cjs/resources/QuotePreviewInvoices.d.ts +1170 -0
  157. package/cjs/resources/QuotePreviewInvoices.js +4 -0
  158. package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
  159. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
  160. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
  161. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  162. package/cjs/resources/Quotes.d.ts +2266 -57
  163. package/cjs/resources/Quotes.js +1184 -16
  164. package/cjs/resources/Quotes.js.map +1 -1
  165. package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
  166. package/cjs/resources/Radar/BillingEvaluations.js +15 -0
  167. package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
  168. package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
  169. package/cjs/resources/Radar/ValueListItems.d.ts +31 -1
  170. package/cjs/resources/Radar/index.d.ts +21 -16
  171. package/cjs/resources/Radar/index.js +2 -0
  172. package/cjs/resources/Radar/index.js.map +1 -1
  173. package/cjs/resources/Refunds.d.ts +11 -0
  174. package/cjs/resources/Reserve/Holds.d.ts +53 -1
  175. package/cjs/resources/Reserve/Holds.js +19 -0
  176. package/cjs/resources/Reserve/Holds.js.map +1 -1
  177. package/cjs/resources/Reserve/Plans.d.ts +41 -1
  178. package/cjs/resources/Reserve/Plans.js +19 -0
  179. package/cjs/resources/Reserve/Plans.js.map +1 -1
  180. package/cjs/resources/Reserve/Releases.d.ts +41 -1
  181. package/cjs/resources/Reserve/Releases.js +19 -0
  182. package/cjs/resources/Reserve/Releases.js.map +1 -1
  183. package/cjs/resources/Reserve/index.d.ts +18 -6
  184. package/cjs/resources/Reserve/index.js +9 -0
  185. package/cjs/resources/Reserve/index.js.map +1 -1
  186. package/cjs/resources/SetupAttempts.d.ts +26 -1
  187. package/cjs/resources/SetupIntents.d.ts +394 -11
  188. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +418 -0
  189. package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
  190. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
  191. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
  192. package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
  193. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
  194. package/cjs/resources/SharedPayment/index.d.ts +19 -0
  195. package/cjs/resources/SharedPayment/index.js +15 -0
  196. package/cjs/resources/SharedPayment/index.js.map +1 -0
  197. package/cjs/resources/Sources.d.ts +29 -1
  198. package/cjs/resources/SubscriptionItems.d.ts +114 -0
  199. package/cjs/resources/SubscriptionSchedules.d.ts +1157 -5
  200. package/cjs/resources/SubscriptionSchedules.js +6 -0
  201. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  202. package/cjs/resources/Subscriptions.d.ts +388 -6
  203. package/cjs/resources/Subscriptions.js +42 -0
  204. package/cjs/resources/Subscriptions.js.map +1 -1
  205. package/cjs/resources/Tax/Forms.d.ts +228 -0
  206. package/cjs/resources/Tax/Forms.js +32 -0
  207. package/cjs/resources/Tax/Forms.js.map +1 -0
  208. package/cjs/resources/Tax/Registrations.d.ts +25 -2
  209. package/cjs/resources/Tax/index.d.ts +24 -17
  210. package/cjs/resources/Tax/index.js +2 -0
  211. package/cjs/resources/Tax/index.js.map +1 -1
  212. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  213. package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
  214. package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
  215. package/cjs/resources/Terminal/Readers.d.ts +17 -1
  216. package/cjs/resources/Terminal/index.d.ts +5 -0
  217. package/cjs/resources/Terminal/index.js +2 -0
  218. package/cjs/resources/Terminal/index.js.map +1 -1
  219. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
  220. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  221. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
  222. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  223. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  224. package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
  225. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  226. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  227. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  228. package/cjs/resources/TestHelpers/index.d.ts +3 -0
  229. package/cjs/resources/TestHelpers/index.js +6 -4
  230. package/cjs/resources/TestHelpers/index.js.map +1 -1
  231. package/cjs/resources/Tokens.d.ts +15 -0
  232. package/cjs/resources/Transfers.d.ts +8 -0
  233. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  234. package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
  235. package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
  236. package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
  237. package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
  238. package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
  239. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  240. package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
  241. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  242. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  243. package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
  244. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  245. package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
  246. package/cjs/resources/V2/Billing/BillSettings.js +41 -0
  247. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
  248. package/cjs/resources/V2/Billing/Cadences.d.ts +958 -0
  249. package/cjs/resources/V2/Billing/Cadences.js +198 -0
  250. package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
  251. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  252. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
  253. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  254. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  255. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
  256. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  257. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  258. package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
  259. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
  260. package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
  261. package/cjs/resources/V2/Billing/Profiles.js +35 -0
  262. package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
  263. package/cjs/resources/V2/Billing/index.d.ts +45 -6
  264. package/cjs/resources/V2/Billing/index.js +8 -0
  265. package/cjs/resources/V2/Billing/index.js.map +1 -1
  266. package/cjs/resources/V2/Core/AccountTokens.d.ts +28 -1
  267. package/cjs/resources/V2/Core/Accounts.d.ts +1465 -71
  268. package/cjs/resources/V2/Core/ApprovalRequests.d.ts +378 -0
  269. package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
  270. package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
  271. package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
  272. package/cjs/resources/V2/Core/BatchJobs.js +252 -0
  273. package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
  274. package/cjs/resources/V2/Core/Events.d.ts +1009 -5
  275. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  276. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  277. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  278. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  279. package/cjs/resources/V2/Core/index.d.ts +24 -9
  280. package/cjs/resources/V2/Core/index.js +4 -0
  281. package/cjs/resources/V2/Core/index.js.map +1 -1
  282. package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
  283. package/cjs/resources/V2/Data/QueryRuns.js +51 -0
  284. package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
  285. package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
  286. package/cjs/resources/V2/Data/ReportRuns.js +53 -0
  287. package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
  288. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
  289. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  290. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  291. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  292. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  293. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  294. package/cjs/resources/V2/Data/Reports.d.ts +140 -0
  295. package/cjs/resources/V2/Data/Reports.js +25 -0
  296. package/cjs/resources/V2/Data/Reports.js.map +1 -0
  297. package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
  298. package/cjs/resources/V2/Data/Schemas.js +23 -0
  299. package/cjs/resources/V2/Data/Schemas.js.map +1 -0
  300. package/cjs/resources/V2/Data/index.d.ts +34 -0
  301. package/cjs/resources/V2/Data/index.js +21 -0
  302. package/cjs/resources/V2/Data/index.js.map +1 -0
  303. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  304. package/cjs/resources/V2/EventMisc.js +2 -0
  305. package/cjs/resources/V2/EventMisc.js.map +1 -0
  306. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  307. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  308. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  309. package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
  310. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  311. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  312. package/cjs/resources/V2/Extend/index.d.ts +20 -0
  313. package/cjs/resources/V2/Extend/index.js +15 -0
  314. package/cjs/resources/V2/Extend/index.js.map +1 -0
  315. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +377 -0
  316. package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
  317. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  318. package/cjs/resources/V2/Iam/index.d.ts +13 -0
  319. package/cjs/resources/V2/Iam/index.js +13 -0
  320. package/cjs/resources/V2/Iam/index.js.map +1 -0
  321. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
  322. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
  323. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
  324. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  325. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  326. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
  327. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  328. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
  329. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
  330. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
  331. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  332. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
  333. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
  334. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
  335. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
  336. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  337. package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
  338. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
  339. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  340. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  341. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
  342. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
  343. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
  344. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  345. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  346. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
  347. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
  348. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  349. package/cjs/resources/V2/MoneyManagement/index.d.ts +63 -37
  350. package/cjs/resources/V2/MoneyManagement/index.js +6 -0
  351. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
  352. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  353. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  354. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  355. package/cjs/resources/V2/Network/index.d.ts +13 -0
  356. package/cjs/resources/V2/Network/index.js +13 -0
  357. package/cjs/resources/V2/Network/index.js.map +1 -0
  358. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  359. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  360. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  361. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  362. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  363. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  364. package/cjs/resources/V2/Signals/AccountActivities.d.ts +432 -0
  365. package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
  366. package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
  367. package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
  368. package/cjs/resources/V2/Signals/AccountEvaluations.js +59 -0
  369. package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  370. package/cjs/resources/V2/Signals/AccountSignals.d.ts +196 -0
  371. package/cjs/resources/V2/Signals/AccountSignals.js +66 -0
  372. package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
  373. package/cjs/resources/V2/Signals/index.d.ts +26 -0
  374. package/cjs/resources/V2/Signals/index.js +17 -0
  375. package/cjs/resources/V2/Signals/index.js.map +1 -0
  376. package/cjs/resources/V2/index.d.ts +18 -0
  377. package/cjs/resources/V2/index.js +16 -4
  378. package/cjs/resources/V2/index.js.map +1 -1
  379. package/cjs/resources/WebhookEndpoints.d.ts +2 -2
  380. package/cjs/resources.d.ts +10 -0
  381. package/cjs/resources.js +126 -8
  382. package/cjs/resources.js.map +1 -1
  383. package/cjs/stripe.cjs.node.d.ts +6674 -138
  384. package/cjs/stripe.cjs.node.js.map +1 -1
  385. package/cjs/stripe.core.d.ts +60 -26
  386. package/cjs/stripe.core.js +55 -36
  387. package/cjs/stripe.core.js.map +1 -1
  388. package/esm/Error.d.ts +6 -0
  389. package/esm/Error.js +14 -0
  390. package/esm/Error.js.map +1 -1
  391. package/esm/StripeEventNotificationHandler.js +54 -0
  392. package/esm/StripeEventNotificationHandler.js.map +1 -1
  393. package/esm/Types.d.ts +4 -2
  394. package/esm/Types.js.map +1 -1
  395. package/esm/apiVersion.d.ts +2 -2
  396. package/esm/apiVersion.js +2 -2
  397. package/esm/apiVersion.js.map +1 -1
  398. package/esm/resources/AccountLinks.d.ts +1 -1
  399. package/esm/resources/AccountNotices.d.ts +140 -0
  400. package/esm/resources/AccountNotices.js +25 -0
  401. package/esm/resources/AccountNotices.js.map +1 -0
  402. package/esm/resources/AccountSessions.d.ts +226 -0
  403. package/esm/resources/AccountSessions.js.map +1 -1
  404. package/esm/resources/Accounts.d.ts +625 -3
  405. package/esm/resources/Accounts.js +14 -0
  406. package/esm/resources/Accounts.js.map +1 -1
  407. package/esm/resources/Balance.d.ts +67 -0
  408. package/esm/resources/BalanceSettings.d.ts +18 -0
  409. package/esm/resources/BankAccounts.d.ts +2 -2
  410. package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
  411. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
  412. package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
  413. package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  414. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  415. package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
  416. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  417. package/esm/resources/Billing/Analytics/index.d.ts +15 -0
  418. package/esm/resources/Billing/Analytics/index.js +9 -0
  419. package/esm/resources/Billing/Analytics/index.js.map +1 -0
  420. package/esm/resources/Billing/index.d.ts +3 -0
  421. package/esm/resources/Billing/index.js +2 -0
  422. package/esm/resources/Billing/index.js.map +1 -1
  423. package/esm/resources/Capabilities.d.ts +2 -2
  424. package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
  425. package/esm/resources/Capital/FinancingOffers.js +26 -0
  426. package/esm/resources/Capital/FinancingOffers.js.map +1 -0
  427. package/esm/resources/Capital/FinancingSummary.d.ts +102 -0
  428. package/esm/resources/Capital/FinancingSummary.js +11 -0
  429. package/esm/resources/Capital/FinancingSummary.js.map +1 -0
  430. package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
  431. package/esm/resources/Capital/FinancingTransactions.js +20 -0
  432. package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
  433. package/esm/resources/Capital/index.d.ts +25 -0
  434. package/esm/resources/Capital/index.js +13 -0
  435. package/esm/resources/Capital/index.js.map +1 -0
  436. package/esm/resources/Cards.d.ts +17 -0
  437. package/esm/resources/Charges.d.ts +3077 -70
  438. package/esm/resources/Checkout/Sessions.d.ts +351 -4
  439. package/esm/resources/ConfirmationTokens.d.ts +67 -1
  440. package/esm/resources/Coupons.d.ts +53 -0
  441. package/esm/resources/Coupons.js +13 -0
  442. package/esm/resources/Coupons.js.map +1 -1
  443. package/esm/resources/CreditNoteLineItems.d.ts +15 -1
  444. package/esm/resources/CreditNotes.d.ts +1 -1
  445. package/esm/resources/CustomerSessions.d.ts +68 -0
  446. package/esm/resources/Customers.d.ts +20 -1
  447. package/esm/resources/Customers.js +14 -0
  448. package/esm/resources/Customers.js.map +1 -1
  449. package/esm/resources/Disputes.d.ts +14 -0
  450. package/esm/resources/Events.d.ts +614 -3
  451. package/esm/resources/ExternalAccounts.d.ts +212 -1
  452. package/esm/resources/ExternalAccounts.js +42 -1
  453. package/esm/resources/ExternalAccounts.js.map +1 -1
  454. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  455. package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
  456. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  457. package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
  458. package/esm/resources/FinancialConnections/Accounts.js +8 -0
  459. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  460. package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
  461. package/esm/resources/FinancialConnections/Authorizations.js +9 -1
  462. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
  463. package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
  464. package/esm/resources/FinancialConnections/Institutions.js +19 -0
  465. package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
  466. package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
  467. package/esm/resources/FinancialConnections/index.d.ts +21 -9
  468. package/esm/resources/FinancialConnections/index.js +4 -0
  469. package/esm/resources/FinancialConnections/index.js.map +1 -1
  470. package/esm/resources/FxQuotes.d.ts +216 -0
  471. package/esm/resources/FxQuotes.js +25 -0
  472. package/esm/resources/FxQuotes.js.map +1 -0
  473. package/esm/resources/InvoiceItems.d.ts +85 -0
  474. package/esm/resources/InvoiceItems.js.map +1 -1
  475. package/esm/resources/InvoiceLineItems.d.ts +40 -2
  476. package/esm/resources/Invoices.d.ts +1257 -10
  477. package/esm/resources/Invoices.js +41 -0
  478. package/esm/resources/Invoices.js.map +1 -1
  479. package/esm/resources/Issuing/Authorizations.d.ts +13 -0
  480. package/esm/resources/Issuing/Cardholders.d.ts +19 -1
  481. package/esm/resources/Issuing/Cards.d.ts +13 -0
  482. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  483. package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
  484. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  485. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  486. package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
  487. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  488. package/esm/resources/Issuing/Disputes.d.ts +13 -0
  489. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  490. package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
  491. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  492. package/esm/resources/Issuing/Settlements.d.ts +83 -0
  493. package/esm/resources/Issuing/Settlements.js +3 -0
  494. package/esm/resources/Issuing/Settlements.js.map +1 -0
  495. package/esm/resources/Issuing/Transactions.d.ts +22 -0
  496. package/esm/resources/Issuing/Transactions.js.map +1 -1
  497. package/esm/resources/Issuing/index.d.ts +47 -22
  498. package/esm/resources/Issuing/index.js +6 -0
  499. package/esm/resources/Issuing/index.js.map +1 -1
  500. package/esm/resources/LineItems.d.ts +29 -2
  501. package/esm/resources/Mandates.d.ts +36 -2
  502. package/esm/resources/Mandates.js +8 -0
  503. package/esm/resources/Mandates.js.map +1 -1
  504. package/esm/resources/Margins.d.ts +115 -0
  505. package/esm/resources/Margins.js +31 -0
  506. package/esm/resources/Margins.js.map +1 -0
  507. package/esm/resources/Orders.d.ts +4696 -0
  508. package/esm/resources/Orders.js +453 -0
  509. package/esm/resources/Orders.js.map +1 -0
  510. package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
  511. package/esm/resources/PaymentIntents.d.ts +13832 -2816
  512. package/esm/resources/PaymentIntents.js +27 -0
  513. package/esm/resources/PaymentIntents.js.map +1 -1
  514. package/esm/resources/PaymentLinks.d.ts +3 -3
  515. package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
  516. package/esm/resources/PaymentMethods.d.ts +181 -3
  517. package/esm/resources/PaymentMethods.js.map +1 -1
  518. package/esm/resources/PaymentPlans.d.ts +427 -0
  519. package/esm/resources/PaymentPlans.js +31 -0
  520. package/esm/resources/PaymentPlans.js.map +1 -0
  521. package/esm/resources/PaymentRecords.d.ts +82 -0
  522. package/esm/resources/Persons.d.ts +2 -2
  523. package/esm/resources/Prices.d.ts +36 -0
  524. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  525. package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
  526. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  527. package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
  528. package/esm/resources/Privacy/RedactionJobs.js +69 -0
  529. package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
  530. package/esm/resources/Privacy/index.d.ts +22 -0
  531. package/esm/resources/Privacy/index.js +9 -0
  532. package/esm/resources/Privacy/index.js.map +1 -0
  533. package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  534. package/esm/resources/PromotionCodes.d.ts +12 -0
  535. package/esm/resources/PromotionCodes.js +27 -0
  536. package/esm/resources/PromotionCodes.js.map +1 -1
  537. package/esm/resources/QuoteLines.d.ts +507 -0
  538. package/esm/resources/QuoteLines.js +3 -0
  539. package/esm/resources/QuoteLines.js.map +1 -0
  540. package/esm/resources/QuotePreviewInvoices.d.ts +1170 -0
  541. package/esm/resources/QuotePreviewInvoices.js +3 -0
  542. package/esm/resources/QuotePreviewInvoices.js.map +1 -0
  543. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
  544. package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
  545. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  546. package/esm/resources/Quotes.d.ts +2266 -57
  547. package/esm/resources/Quotes.js +1184 -16
  548. package/esm/resources/Quotes.js.map +1 -1
  549. package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
  550. package/esm/resources/Radar/BillingEvaluations.js +11 -0
  551. package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
  552. package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
  553. package/esm/resources/Radar/ValueListItems.d.ts +31 -1
  554. package/esm/resources/Radar/index.d.ts +21 -16
  555. package/esm/resources/Radar/index.js +2 -0
  556. package/esm/resources/Radar/index.js.map +1 -1
  557. package/esm/resources/Refunds.d.ts +11 -0
  558. package/esm/resources/Reserve/Holds.d.ts +53 -1
  559. package/esm/resources/Reserve/Holds.js +17 -1
  560. package/esm/resources/Reserve/Holds.js.map +1 -1
  561. package/esm/resources/Reserve/Plans.d.ts +41 -1
  562. package/esm/resources/Reserve/Plans.js +17 -1
  563. package/esm/resources/Reserve/Plans.js.map +1 -1
  564. package/esm/resources/Reserve/Releases.d.ts +41 -1
  565. package/esm/resources/Reserve/Releases.js +17 -1
  566. package/esm/resources/Reserve/Releases.js.map +1 -1
  567. package/esm/resources/Reserve/index.d.ts +18 -6
  568. package/esm/resources/Reserve/index.js +9 -0
  569. package/esm/resources/Reserve/index.js.map +1 -1
  570. package/esm/resources/SetupAttempts.d.ts +26 -1
  571. package/esm/resources/SetupIntents.d.ts +394 -11
  572. package/esm/resources/SharedPayment/GrantedTokens.d.ts +418 -0
  573. package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
  574. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
  575. package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
  576. package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
  577. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
  578. package/esm/resources/SharedPayment/index.d.ts +19 -0
  579. package/esm/resources/SharedPayment/index.js +11 -0
  580. package/esm/resources/SharedPayment/index.js.map +1 -0
  581. package/esm/resources/Sources.d.ts +29 -1
  582. package/esm/resources/SubscriptionItems.d.ts +114 -0
  583. package/esm/resources/SubscriptionSchedules.d.ts +1157 -5
  584. package/esm/resources/SubscriptionSchedules.js +6 -0
  585. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  586. package/esm/resources/Subscriptions.d.ts +388 -6
  587. package/esm/resources/Subscriptions.js +42 -0
  588. package/esm/resources/Subscriptions.js.map +1 -1
  589. package/esm/resources/Tax/Forms.d.ts +228 -0
  590. package/esm/resources/Tax/Forms.js +28 -0
  591. package/esm/resources/Tax/Forms.js.map +1 -0
  592. package/esm/resources/Tax/Registrations.d.ts +25 -2
  593. package/esm/resources/Tax/index.d.ts +24 -17
  594. package/esm/resources/Tax/index.js +2 -0
  595. package/esm/resources/Tax/index.js.map +1 -1
  596. package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  597. package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
  598. package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
  599. package/esm/resources/Terminal/Readers.d.ts +17 -1
  600. package/esm/resources/Terminal/index.d.ts +5 -0
  601. package/esm/resources/Terminal/index.js +2 -0
  602. package/esm/resources/Terminal/index.js.map +1 -1
  603. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
  604. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  605. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
  606. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  607. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  608. package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
  609. package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  610. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  611. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  612. package/esm/resources/TestHelpers/index.d.ts +3 -0
  613. package/esm/resources/TestHelpers/index.js +2 -0
  614. package/esm/resources/TestHelpers/index.js.map +1 -1
  615. package/esm/resources/Tokens.d.ts +15 -0
  616. package/esm/resources/Transfers.d.ts +8 -0
  617. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  618. package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
  619. package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
  620. package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
  621. package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
  622. package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
  623. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  624. package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
  625. package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  626. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  627. package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
  628. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  629. package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
  630. package/esm/resources/V2/Billing/BillSettings.js +37 -0
  631. package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
  632. package/esm/resources/V2/Billing/Cadences.d.ts +958 -0
  633. package/esm/resources/V2/Billing/Cadences.js +194 -0
  634. package/esm/resources/V2/Billing/Cadences.js.map +1 -0
  635. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  636. package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
  637. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  638. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  639. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
  640. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  641. package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  642. package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
  643. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
  644. package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
  645. package/esm/resources/V2/Billing/Profiles.js +31 -0
  646. package/esm/resources/V2/Billing/Profiles.js.map +1 -0
  647. package/esm/resources/V2/Billing/index.d.ts +45 -6
  648. package/esm/resources/V2/Billing/index.js +8 -0
  649. package/esm/resources/V2/Billing/index.js.map +1 -1
  650. package/esm/resources/V2/Core/AccountTokens.d.ts +28 -1
  651. package/esm/resources/V2/Core/Accounts.d.ts +1465 -71
  652. package/esm/resources/V2/Core/ApprovalRequests.d.ts +378 -0
  653. package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
  654. package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
  655. package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
  656. package/esm/resources/V2/Core/BatchJobs.js +248 -0
  657. package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
  658. package/esm/resources/V2/Core/Events.d.ts +1009 -5
  659. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  660. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  661. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  662. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  663. package/esm/resources/V2/Core/index.d.ts +24 -9
  664. package/esm/resources/V2/Core/index.js +4 -0
  665. package/esm/resources/V2/Core/index.js.map +1 -1
  666. package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
  667. package/esm/resources/V2/Data/QueryRuns.js +47 -0
  668. package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
  669. package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
  670. package/esm/resources/V2/Data/ReportRuns.js +49 -0
  671. package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
  672. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
  673. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  674. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  675. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  676. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  677. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  678. package/esm/resources/V2/Data/Reports.d.ts +140 -0
  679. package/esm/resources/V2/Data/Reports.js +21 -0
  680. package/esm/resources/V2/Data/Reports.js.map +1 -0
  681. package/esm/resources/V2/Data/Schemas.d.ts +161 -0
  682. package/esm/resources/V2/Data/Schemas.js +19 -0
  683. package/esm/resources/V2/Data/Schemas.js.map +1 -0
  684. package/esm/resources/V2/Data/index.d.ts +34 -0
  685. package/esm/resources/V2/Data/index.js +17 -0
  686. package/esm/resources/V2/Data/index.js.map +1 -0
  687. package/esm/resources/V2/EventMisc.d.ts +0 -0
  688. package/esm/resources/V2/EventMisc.js +2 -0
  689. package/esm/resources/V2/EventMisc.js.map +1 -0
  690. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  691. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  692. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  693. package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
  694. package/esm/resources/V2/Extend/Workflows.js +26 -0
  695. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  696. package/esm/resources/V2/Extend/index.d.ts +20 -0
  697. package/esm/resources/V2/Extend/index.js +11 -0
  698. package/esm/resources/V2/Extend/index.js.map +1 -0
  699. package/esm/resources/V2/Iam/ActivityLogs.d.ts +377 -0
  700. package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
  701. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  702. package/esm/resources/V2/Iam/index.d.ts +13 -0
  703. package/esm/resources/V2/Iam/index.js +9 -0
  704. package/esm/resources/V2/Iam/index.js.map +1 -0
  705. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
  706. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
  707. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
  708. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  709. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  710. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
  711. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  712. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
  713. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
  714. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
  715. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  716. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
  717. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
  718. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
  719. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
  720. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  721. package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
  722. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
  723. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  724. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  725. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
  726. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
  727. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
  728. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  729. package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  730. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
  731. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
  732. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  733. package/esm/resources/V2/MoneyManagement/index.d.ts +63 -37
  734. package/esm/resources/V2/MoneyManagement/index.js +6 -0
  735. package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
  736. package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  737. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  738. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  739. package/esm/resources/V2/Network/index.d.ts +13 -0
  740. package/esm/resources/V2/Network/index.js +9 -0
  741. package/esm/resources/V2/Network/index.js.map +1 -0
  742. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  743. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  744. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  745. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  746. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  747. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  748. package/esm/resources/V2/Signals/AccountActivities.d.ts +432 -0
  749. package/esm/resources/V2/Signals/AccountActivities.js +23 -0
  750. package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
  751. package/esm/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
  752. package/esm/resources/V2/Signals/AccountEvaluations.js +55 -0
  753. package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  754. package/esm/resources/V2/Signals/AccountSignals.d.ts +196 -0
  755. package/esm/resources/V2/Signals/AccountSignals.js +62 -0
  756. package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
  757. package/esm/resources/V2/Signals/index.d.ts +26 -0
  758. package/esm/resources/V2/Signals/index.js +13 -0
  759. package/esm/resources/V2/Signals/index.js.map +1 -0
  760. package/esm/resources/V2/index.d.ts +18 -0
  761. package/esm/resources/V2/index.js +12 -0
  762. package/esm/resources/V2/index.js.map +1 -1
  763. package/esm/resources/WebhookEndpoints.d.ts +2 -2
  764. package/esm/resources.d.ts +10 -0
  765. package/esm/resources.js +112 -0
  766. package/esm/resources.js.map +1 -1
  767. package/esm/stripe.core.d.ts +60 -26
  768. package/esm/stripe.core.js +21 -2
  769. package/esm/stripe.core.js.map +1 -1
  770. package/esm/stripe.esm.node.d.ts +60 -26
  771. package/esm/stripe.esm.node.js +21 -2
  772. package/esm/stripe.esm.node.js.map +1 -1
  773. package/package.json +1 -1
@@ -90,6 +90,18 @@ export declare class SubscriptionResource extends StripeResource {
90
90
  * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions).
91
91
  */
92
92
  resume(id: string, params?: SubscriptionResumeParams, options?: RequestOptions): Promise<Response<Subscription>>;
93
+ serializeBatchCancel(subscriptionExposedId: string, params?: Record<string, unknown>, options?: {
94
+ apiVersion?: string;
95
+ stripeContext?: string;
96
+ }): string;
97
+ serializeBatchUpdate(subscriptionExposedId: string, params?: Record<string, unknown>, options?: {
98
+ apiVersion?: string;
99
+ stripeContext?: string;
100
+ }): string;
101
+ serializeBatchMigrate(subscription: string, params?: Record<string, unknown>, options?: {
102
+ apiVersion?: string;
103
+ stripeContext?: string;
104
+ }): string;
93
105
  }
94
106
  export interface Subscription {
95
107
  /**
@@ -198,6 +210,10 @@ export interface Subscription {
198
210
  * List of subscription items, each with an attached price.
199
211
  */
200
212
  items: ApiList<SubscriptionItem>;
213
+ /**
214
+ * Details of the most recent price migration that failed for the subscription.
215
+ */
216
+ last_price_migration_error?: Subscription.LastPriceMigrationError | null;
201
217
  /**
202
218
  * The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).
203
219
  */
@@ -242,6 +258,10 @@ export interface Subscription {
242
258
  * If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
243
259
  */
244
260
  pending_update: Subscription.PendingUpdate | null;
261
+ /**
262
+ * Time period and invoice for a Subscription billed in advance.
263
+ */
264
+ prebilling?: Subscription.Prebilling | null;
245
265
  presentment_details?: Subscription.PresentmentDetails;
246
266
  /**
247
267
  * The schedule attached to the subscription
@@ -403,6 +423,20 @@ export declare namespace Subscription {
403
423
  footer: string | null;
404
424
  issuer: InvoiceSettings.Issuer;
405
425
  }
426
+ interface LastPriceMigrationError {
427
+ /**
428
+ * The time at which the price migration encountered an error.
429
+ */
430
+ errored_at: number;
431
+ /**
432
+ * The involved price pairs in each failed transition.
433
+ */
434
+ failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
435
+ /**
436
+ * The type of error encountered by the price migration.
437
+ */
438
+ type: 'price_uniqueness_violation';
439
+ }
406
440
  interface ManagedPayments {
407
441
  /**
408
442
  * Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
@@ -468,6 +502,10 @@ export declare namespace Subscription {
468
502
  * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
469
503
  */
470
504
  metadata: Metadata | null;
505
+ /**
506
+ * The number of iterations of prebilling to apply.
507
+ */
508
+ prebilling_iterations?: number | null;
471
509
  /**
472
510
  * List of subscription items, each with an attached plan, that will be set if the update is applied.
473
511
  */
@@ -481,6 +519,24 @@ export declare namespace Subscription {
481
519
  */
482
520
  trial_from_plan: boolean | null;
483
521
  }
522
+ interface Prebilling {
523
+ /**
524
+ * ID of the prebilling invoice.
525
+ */
526
+ invoice: string | Invoice;
527
+ /**
528
+ * The end of the last period for which the invoice pre-bills.
529
+ */
530
+ period_end: number;
531
+ /**
532
+ * The start of the first period for which the invoice pre-bills.
533
+ */
534
+ period_start: number;
535
+ /**
536
+ * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
537
+ */
538
+ update_behavior?: Prebilling.UpdateBehavior;
539
+ }
484
540
  interface PresentmentDetails {
485
541
  /**
486
542
  * Currency used for customer payments.
@@ -612,6 +668,18 @@ export declare namespace Subscription {
612
668
  type Type = 'account' | 'self' | OtherString;
613
669
  }
614
670
  }
671
+ namespace LastPriceMigrationError {
672
+ interface FailedTransition {
673
+ /**
674
+ * The original price to be migrated.
675
+ */
676
+ source_price: string;
677
+ /**
678
+ * The intended resulting price of the migration.
679
+ */
680
+ target_price: string;
681
+ }
682
+ }
615
683
  namespace PauseCollection {
616
684
  type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
617
685
  }
@@ -641,6 +709,10 @@ export declare namespace Subscription {
641
709
  * This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
642
710
  */
643
711
  customer_balance: PaymentMethodOptions.CustomerBalance | null;
712
+ /**
713
+ * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
714
+ */
715
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
644
716
  /**
645
717
  * This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
646
718
  */
@@ -666,7 +738,7 @@ export declare namespace Subscription {
666
738
  */
667
739
  us_bank_account: PaymentMethodOptions.UsBankAccount | null;
668
740
  }
669
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
741
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
670
742
  type SaveDefaultPaymentMethod = 'off' | 'on_subscription' | OtherString;
671
743
  namespace PaymentMethodOptions {
672
744
  interface AcssDebit {
@@ -706,6 +778,8 @@ export declare namespace Subscription {
706
778
  */
707
779
  funding_type: 'bank_transfer' | null;
708
780
  }
781
+ interface IdBankTransfer {
782
+ }
709
783
  interface Konbini {
710
784
  }
711
785
  interface Payto {
@@ -904,9 +978,13 @@ export declare namespace Subscription {
904
978
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
905
979
  */
906
980
  account_subcategories?: Array<Filters.AccountSubcategory>;
981
+ /**
982
+ * The institution to use to filter for possible accounts to link.
983
+ */
984
+ institution?: string;
907
985
  }
908
986
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
909
- type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
987
+ type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
910
988
  namespace Filters {
911
989
  type AccountSubcategory = 'checking' | 'savings' | OtherString;
912
990
  }
@@ -917,6 +995,9 @@ export declare namespace Subscription {
917
995
  namespace PendingInvoiceItemInterval {
918
996
  type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
919
997
  }
998
+ namespace Prebilling {
999
+ type UpdateBehavior = 'prebill' | 'reset' | OtherString;
1000
+ }
920
1001
  namespace StatusDetails {
921
1002
  interface Paused {
922
1003
  /**
@@ -1083,6 +1164,10 @@ export interface SubscriptionCreateParams {
1083
1164
  * Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
1084
1165
  */
1085
1166
  pending_invoice_item_interval?: Emptyable<SubscriptionCreateParams.PendingInvoiceItemInterval>;
1167
+ /**
1168
+ * If specified, the invoicing for the given billing cycle iterations will be processed now.
1169
+ */
1170
+ prebilling?: SubscriptionCreateParams.Prebilling;
1086
1171
  /**
1087
1172
  * Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
1088
1173
  */
@@ -1220,6 +1305,10 @@ export declare namespace SubscriptionCreateParams {
1220
1305
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1221
1306
  */
1222
1307
  discount?: string;
1308
+ /**
1309
+ * Details to determine how long the discount should be applied for.
1310
+ */
1311
+ discount_end?: Discount.DiscountEnd;
1223
1312
  /**
1224
1313
  * ID of the promotion code to create a new discount for.
1225
1314
  */
@@ -1284,6 +1373,10 @@ export declare namespace SubscriptionCreateParams {
1284
1373
  * A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
1285
1374
  */
1286
1375
  tax_rates?: Emptyable<Array<string>>;
1376
+ /**
1377
+ * Define options to configure the trial on the subscription item.
1378
+ */
1379
+ trial?: Item.Trial;
1287
1380
  }
1288
1381
  type PaymentBehavior = 'allow_incomplete' | 'default_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete' | OtherString;
1289
1382
  interface PaymentSettings {
@@ -1310,6 +1403,16 @@ export declare namespace SubscriptionCreateParams {
1310
1403
  */
1311
1404
  interval_count?: number;
1312
1405
  }
1406
+ interface Prebilling {
1407
+ /**
1408
+ * This is used to determine the number of billing cycles to prebill.
1409
+ */
1410
+ iterations: number;
1411
+ /**
1412
+ * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
1413
+ */
1414
+ update_behavior?: Prebilling.UpdateBehavior;
1415
+ }
1313
1416
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
1314
1417
  interface TransferData {
1315
1418
  /**
@@ -1337,6 +1440,10 @@ export declare namespace SubscriptionCreateParams {
1337
1440
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1338
1441
  */
1339
1442
  discount?: string;
1443
+ /**
1444
+ * Details to determine how long the discount should be applied for.
1445
+ */
1446
+ discount_end?: Discount.DiscountEnd;
1340
1447
  /**
1341
1448
  * ID of the promotion code to create a new discount for.
1342
1449
  */
@@ -1374,6 +1481,38 @@ export declare namespace SubscriptionCreateParams {
1374
1481
  */
1375
1482
  unit_amount_decimal?: Decimal;
1376
1483
  }
1484
+ namespace Discount {
1485
+ interface DiscountEnd {
1486
+ /**
1487
+ * Time span for the redeemed discount.
1488
+ */
1489
+ duration?: DiscountEnd.Duration;
1490
+ /**
1491
+ * A precise Unix timestamp for the discount to end. Must be in the future.
1492
+ */
1493
+ timestamp?: number;
1494
+ /**
1495
+ * The type of calculation made to determine when the discount ends.
1496
+ */
1497
+ type: DiscountEnd.Type;
1498
+ }
1499
+ namespace DiscountEnd {
1500
+ interface Duration {
1501
+ /**
1502
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1503
+ */
1504
+ interval: Duration.Interval;
1505
+ /**
1506
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1507
+ */
1508
+ interval_count: number;
1509
+ }
1510
+ type Type = 'duration' | 'timestamp' | OtherString;
1511
+ namespace Duration {
1512
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
1513
+ }
1514
+ }
1515
+ }
1377
1516
  namespace Period {
1378
1517
  interface End {
1379
1518
  /**
@@ -1475,6 +1614,38 @@ export declare namespace SubscriptionCreateParams {
1475
1614
  }
1476
1615
  }
1477
1616
  }
1617
+ namespace Discount {
1618
+ interface DiscountEnd {
1619
+ /**
1620
+ * Time span for the redeemed discount.
1621
+ */
1622
+ duration?: DiscountEnd.Duration;
1623
+ /**
1624
+ * A precise Unix timestamp for the discount to end. Must be in the future.
1625
+ */
1626
+ timestamp?: number;
1627
+ /**
1628
+ * The type of calculation made to determine when the discount ends.
1629
+ */
1630
+ type: DiscountEnd.Type;
1631
+ }
1632
+ namespace DiscountEnd {
1633
+ interface Duration {
1634
+ /**
1635
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1636
+ */
1637
+ interval: Duration.Interval;
1638
+ /**
1639
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1640
+ */
1641
+ interval_count: number;
1642
+ }
1643
+ type Type = 'duration' | 'timestamp' | OtherString;
1644
+ namespace Duration {
1645
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
1646
+ }
1647
+ }
1648
+ }
1478
1649
  namespace InvoiceSettings {
1479
1650
  interface CustomField {
1480
1651
  /**
@@ -1508,6 +1679,10 @@ export declare namespace SubscriptionCreateParams {
1508
1679
  usage_gte: number;
1509
1680
  }
1510
1681
  interface CurrentTrial {
1682
+ /**
1683
+ * Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
1684
+ */
1685
+ trial_end?: number;
1511
1686
  /**
1512
1687
  * The ID of the trial offer to apply to the subscription item.
1513
1688
  */
@@ -1522,6 +1697,10 @@ export declare namespace SubscriptionCreateParams {
1522
1697
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1523
1698
  */
1524
1699
  discount?: string;
1700
+ /**
1701
+ * Details to determine how long the discount should be applied for.
1702
+ */
1703
+ discount_end?: Discount.DiscountEnd;
1525
1704
  /**
1526
1705
  * ID of the promotion code to create a new discount for.
1527
1706
  */
@@ -1553,6 +1732,48 @@ export declare namespace SubscriptionCreateParams {
1553
1732
  */
1554
1733
  unit_amount_decimal?: Decimal;
1555
1734
  }
1735
+ interface Trial {
1736
+ /**
1737
+ * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
1738
+ */
1739
+ converts_to?: Array<string>;
1740
+ /**
1741
+ * Determines the type of trial for this item.
1742
+ */
1743
+ type: Trial.Type;
1744
+ }
1745
+ namespace Discount {
1746
+ interface DiscountEnd {
1747
+ /**
1748
+ * Time span for the redeemed discount.
1749
+ */
1750
+ duration?: DiscountEnd.Duration;
1751
+ /**
1752
+ * A precise Unix timestamp for the discount to end. Must be in the future.
1753
+ */
1754
+ timestamp?: number;
1755
+ /**
1756
+ * The type of calculation made to determine when the discount ends.
1757
+ */
1758
+ type: DiscountEnd.Type;
1759
+ }
1760
+ namespace DiscountEnd {
1761
+ interface Duration {
1762
+ /**
1763
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1764
+ */
1765
+ interval: Duration.Interval;
1766
+ /**
1767
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1768
+ */
1769
+ interval_count: number;
1770
+ }
1771
+ type Type = 'duration' | 'timestamp' | OtherString;
1772
+ namespace Duration {
1773
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
1774
+ }
1775
+ }
1776
+ }
1556
1777
  namespace PriceData {
1557
1778
  interface Recurring {
1558
1779
  /**
@@ -1569,6 +1790,9 @@ export declare namespace SubscriptionCreateParams {
1569
1790
  type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
1570
1791
  }
1571
1792
  }
1793
+ namespace Trial {
1794
+ type Type = 'free' | 'paid' | OtherString;
1795
+ }
1572
1796
  }
1573
1797
  namespace PaymentSettings {
1574
1798
  interface PaymentMethodOptions {
@@ -1596,6 +1820,10 @@ export declare namespace SubscriptionCreateParams {
1596
1820
  * This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
1597
1821
  */
1598
1822
  customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
1823
+ /**
1824
+ * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
1825
+ */
1826
+ id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
1599
1827
  /**
1600
1828
  * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1601
1829
  */
@@ -1621,7 +1849,7 @@ export declare namespace SubscriptionCreateParams {
1621
1849
  */
1622
1850
  us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
1623
1851
  }
1624
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
1852
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
1625
1853
  type SaveDefaultPaymentMethod = 'off' | 'on_subscription' | OtherString;
1626
1854
  namespace PaymentMethodOptions {
1627
1855
  interface AcssDebit {
@@ -1676,6 +1904,8 @@ export declare namespace SubscriptionCreateParams {
1676
1904
  */
1677
1905
  funding_type?: string;
1678
1906
  }
1907
+ interface IdBankTransfer {
1908
+ }
1679
1909
  interface Konbini {
1680
1910
  }
1681
1911
  interface Payto {
@@ -1887,9 +2117,13 @@ export declare namespace SubscriptionCreateParams {
1887
2117
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1888
2118
  */
1889
2119
  account_subcategories?: Array<Filters.AccountSubcategory>;
2120
+ /**
2121
+ * ID of the institution to use to filter for selectable accounts.
2122
+ */
2123
+ institution?: string;
1890
2124
  }
1891
2125
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
1892
- type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
2126
+ type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
1893
2127
  namespace Filters {
1894
2128
  type AccountSubcategory = 'checking' | 'savings' | OtherString;
1895
2129
  }
@@ -1900,6 +2134,9 @@ export declare namespace SubscriptionCreateParams {
1900
2134
  namespace PendingInvoiceItemInterval {
1901
2135
  type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
1902
2136
  }
2137
+ namespace Prebilling {
2138
+ type UpdateBehavior = 'prebill' | 'reset' | OtherString;
2139
+ }
1903
2140
  namespace TrialSettings {
1904
2141
  interface EndBehavior {
1905
2142
  /**
@@ -2028,6 +2265,10 @@ export interface SubscriptionUpdateParams {
2028
2265
  * Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
2029
2266
  */
2030
2267
  pending_invoice_item_interval?: Emptyable<SubscriptionUpdateParams.PendingInvoiceItemInterval>;
2268
+ /**
2269
+ * If specified, the invoicing for the given billing cycle iterations will be processed now.
2270
+ */
2271
+ prebilling?: SubscriptionUpdateParams.Prebilling;
2031
2272
  /**
2032
2273
  * Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
2033
2274
  */
@@ -2153,6 +2394,10 @@ export declare namespace SubscriptionUpdateParams {
2153
2394
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2154
2395
  */
2155
2396
  discount?: string;
2397
+ /**
2398
+ * Details to determine how long the discount should be applied for.
2399
+ */
2400
+ discount_end?: Discount.DiscountEnd;
2156
2401
  /**
2157
2402
  * ID of the promotion code to create a new discount for.
2158
2403
  */
@@ -2265,6 +2510,16 @@ export declare namespace SubscriptionUpdateParams {
2265
2510
  */
2266
2511
  interval_count?: number;
2267
2512
  }
2513
+ interface Prebilling {
2514
+ /**
2515
+ * This is used to determine the number of billing cycles to prebill.
2516
+ */
2517
+ iterations: number;
2518
+ /**
2519
+ * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
2520
+ */
2521
+ update_behavior?: Prebilling.UpdateBehavior;
2522
+ }
2268
2523
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
2269
2524
  interface TransferData {
2270
2525
  /**
@@ -2292,6 +2547,10 @@ export declare namespace SubscriptionUpdateParams {
2292
2547
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2293
2548
  */
2294
2549
  discount?: string;
2550
+ /**
2551
+ * Details to determine how long the discount should be applied for.
2552
+ */
2553
+ discount_end?: Discount.DiscountEnd;
2295
2554
  /**
2296
2555
  * ID of the promotion code to create a new discount for.
2297
2556
  */
@@ -2329,6 +2588,38 @@ export declare namespace SubscriptionUpdateParams {
2329
2588
  */
2330
2589
  unit_amount_decimal?: Decimal;
2331
2590
  }
2591
+ namespace Discount {
2592
+ interface DiscountEnd {
2593
+ /**
2594
+ * Time span for the redeemed discount.
2595
+ */
2596
+ duration?: DiscountEnd.Duration;
2597
+ /**
2598
+ * A precise Unix timestamp for the discount to end. Must be in the future.
2599
+ */
2600
+ timestamp?: number;
2601
+ /**
2602
+ * The type of calculation made to determine when the discount ends.
2603
+ */
2604
+ type: DiscountEnd.Type;
2605
+ }
2606
+ namespace DiscountEnd {
2607
+ interface Duration {
2608
+ /**
2609
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2610
+ */
2611
+ interval: Duration.Interval;
2612
+ /**
2613
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2614
+ */
2615
+ interval_count: number;
2616
+ }
2617
+ type Type = 'duration' | 'timestamp' | OtherString;
2618
+ namespace Duration {
2619
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
2620
+ }
2621
+ }
2622
+ }
2332
2623
  namespace Period {
2333
2624
  interface End {
2334
2625
  /**
@@ -2424,6 +2715,38 @@ export declare namespace SubscriptionUpdateParams {
2424
2715
  namespace CancellationDetails {
2425
2716
  type Feedback = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused' | OtherString;
2426
2717
  }
2718
+ namespace Discount {
2719
+ interface DiscountEnd {
2720
+ /**
2721
+ * Time span for the redeemed discount.
2722
+ */
2723
+ duration?: DiscountEnd.Duration;
2724
+ /**
2725
+ * A precise Unix timestamp for the discount to end. Must be in the future.
2726
+ */
2727
+ timestamp?: number;
2728
+ /**
2729
+ * The type of calculation made to determine when the discount ends.
2730
+ */
2731
+ type: DiscountEnd.Type;
2732
+ }
2733
+ namespace DiscountEnd {
2734
+ interface Duration {
2735
+ /**
2736
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2737
+ */
2738
+ interval: Duration.Interval;
2739
+ /**
2740
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2741
+ */
2742
+ interval_count: number;
2743
+ }
2744
+ type Type = 'duration' | 'timestamp' | OtherString;
2745
+ namespace Duration {
2746
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
2747
+ }
2748
+ }
2749
+ }
2427
2750
  namespace InvoiceSettings {
2428
2751
  interface CustomField {
2429
2752
  /**
@@ -2457,6 +2780,10 @@ export declare namespace SubscriptionUpdateParams {
2457
2780
  usage_gte: number;
2458
2781
  }
2459
2782
  interface CurrentTrial {
2783
+ /**
2784
+ * Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
2785
+ */
2786
+ trial_end?: number;
2460
2787
  /**
2461
2788
  * The ID of the trial offer to apply to the subscription item.
2462
2789
  */
@@ -2471,6 +2798,10 @@ export declare namespace SubscriptionUpdateParams {
2471
2798
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2472
2799
  */
2473
2800
  discount?: string;
2801
+ /**
2802
+ * Details to determine how long the discount should be applied for.
2803
+ */
2804
+ discount_end?: Discount.DiscountEnd;
2474
2805
  /**
2475
2806
  * ID of the promotion code to create a new discount for.
2476
2807
  */
@@ -2502,6 +2833,38 @@ export declare namespace SubscriptionUpdateParams {
2502
2833
  */
2503
2834
  unit_amount_decimal?: Decimal;
2504
2835
  }
2836
+ namespace Discount {
2837
+ interface DiscountEnd {
2838
+ /**
2839
+ * Time span for the redeemed discount.
2840
+ */
2841
+ duration?: DiscountEnd.Duration;
2842
+ /**
2843
+ * A precise Unix timestamp for the discount to end. Must be in the future.
2844
+ */
2845
+ timestamp?: number;
2846
+ /**
2847
+ * The type of calculation made to determine when the discount ends.
2848
+ */
2849
+ type: DiscountEnd.Type;
2850
+ }
2851
+ namespace DiscountEnd {
2852
+ interface Duration {
2853
+ /**
2854
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2855
+ */
2856
+ interval: Duration.Interval;
2857
+ /**
2858
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2859
+ */
2860
+ interval_count: number;
2861
+ }
2862
+ type Type = 'duration' | 'timestamp' | OtherString;
2863
+ namespace Duration {
2864
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
2865
+ }
2866
+ }
2867
+ }
2505
2868
  namespace PriceData {
2506
2869
  interface Recurring {
2507
2870
  /**
@@ -2548,6 +2911,10 @@ export declare namespace SubscriptionUpdateParams {
2548
2911
  * This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
2549
2912
  */
2550
2913
  customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
2914
+ /**
2915
+ * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
2916
+ */
2917
+ id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
2551
2918
  /**
2552
2919
  * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
2553
2920
  */
@@ -2573,7 +2940,7 @@ export declare namespace SubscriptionUpdateParams {
2573
2940
  */
2574
2941
  us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
2575
2942
  }
2576
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
2943
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
2577
2944
  type SaveDefaultPaymentMethod = 'off' | 'on_subscription' | OtherString;
2578
2945
  namespace PaymentMethodOptions {
2579
2946
  interface AcssDebit {
@@ -2628,6 +2995,8 @@ export declare namespace SubscriptionUpdateParams {
2628
2995
  */
2629
2996
  funding_type?: string;
2630
2997
  }
2998
+ interface IdBankTransfer {
2999
+ }
2631
3000
  interface Konbini {
2632
3001
  }
2633
3002
  interface Payto {
@@ -2839,9 +3208,13 @@ export declare namespace SubscriptionUpdateParams {
2839
3208
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2840
3209
  */
2841
3210
  account_subcategories?: Array<Filters.AccountSubcategory>;
3211
+ /**
3212
+ * ID of the institution to use to filter for selectable accounts.
3213
+ */
3214
+ institution?: string;
2842
3215
  }
2843
3216
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
2844
- type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
3217
+ type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
2845
3218
  namespace Filters {
2846
3219
  type AccountSubcategory = 'checking' | 'savings' | OtherString;
2847
3220
  }
@@ -2852,6 +3225,9 @@ export declare namespace SubscriptionUpdateParams {
2852
3225
  namespace PendingInvoiceItemInterval {
2853
3226
  type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
2854
3227
  }
3228
+ namespace Prebilling {
3229
+ type UpdateBehavior = 'prebill' | 'reset' | OtherString;
3230
+ }
2855
3231
  namespace TrialSettings {
2856
3232
  interface EndBehavior {
2857
3233
  /**
@@ -3106,3 +3482,9 @@ export interface SubscriptionSearchParams {
3106
3482
  */
3107
3483
  page?: string;
3108
3484
  }
3485
+ export interface SubscriptionSerializeBatchCancelParams {
3486
+ }
3487
+ export interface SubscriptionSerializeBatchMigrateParams {
3488
+ }
3489
+ export interface SubscriptionSerializeBatchUpdateParams {
3490
+ }