stripe 22.3.0 → 22.4.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 (797) hide show
  1. package/CHANGELOG.md +1798 -54
  2. package/README.md +42 -58
  3. package/VERSION +1 -1
  4. package/cjs/Error.d.ts +50 -0
  5. package/cjs/Error.js +125 -1
  6. package/cjs/Error.js.map +1 -1
  7. package/cjs/StripeEventNotificationHandler.d.ts +19 -0
  8. package/cjs/StripeEventNotificationHandler.js +150 -0
  9. package/cjs/StripeEventNotificationHandler.js.map +1 -0
  10. package/cjs/Types.d.ts +4 -2
  11. package/cjs/Types.js.map +1 -1
  12. package/cjs/apiVersion.d.ts +1 -2
  13. package/cjs/apiVersion.js +2 -3
  14. package/cjs/apiVersion.js.map +1 -1
  15. package/cjs/resources/AccountLinks.d.ts +1 -1
  16. package/cjs/resources/AccountNotices.d.ts +140 -0
  17. package/cjs/resources/AccountNotices.js +29 -0
  18. package/cjs/resources/AccountNotices.js.map +1 -0
  19. package/cjs/resources/AccountSessions.d.ts +262 -0
  20. package/cjs/resources/AccountSessions.js.map +1 -1
  21. package/cjs/resources/Accounts.d.ts +827 -3
  22. package/cjs/resources/Accounts.js +14 -0
  23. package/cjs/resources/Accounts.js.map +1 -1
  24. package/cjs/resources/Balance.d.ts +67 -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 +84 -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 +101 -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 +403 -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 +29 -0
  66. package/cjs/resources/Events.d.ts +547 -2
  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 +99 -0
  77. package/cjs/resources/FinancialConnections/Authorizations.js +15 -0
  78. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
  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 +156 -7
  83. package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
  84. package/cjs/resources/FinancialConnections/index.d.ts +21 -6
  85. package/cjs/resources/FinancialConnections/index.js +4 -0
  86. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  87. package/cjs/resources/FxQuotes.d.ts +212 -0
  88. package/cjs/resources/FxQuotes.js +29 -0
  89. package/cjs/resources/FxQuotes.js.map +1 -0
  90. package/cjs/resources/InvoiceItems.d.ts +85 -0
  91. package/cjs/resources/InvoiceItems.js.map +1 -1
  92. package/cjs/resources/InvoiceLineItems.d.ts +40 -2
  93. package/cjs/resources/Invoices.d.ts +1388 -15
  94. package/cjs/resources/Invoices.js +41 -0
  95. package/cjs/resources/Invoices.js.map +1 -1
  96. package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
  97. package/cjs/resources/Issuing/Cardholders.d.ts +15 -1
  98. package/cjs/resources/Issuing/Cards.d.ts +13 -0
  99. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  100. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
  101. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  102. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  103. package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
  104. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  105. package/cjs/resources/Issuing/Disputes.d.ts +13 -0
  106. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  107. package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
  108. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  109. package/cjs/resources/Issuing/Settlements.d.ts +83 -0
  110. package/cjs/resources/Issuing/Settlements.js +4 -0
  111. package/cjs/resources/Issuing/Settlements.js.map +1 -0
  112. package/cjs/resources/Issuing/Transactions.d.ts +22 -0
  113. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  114. package/cjs/resources/Issuing/index.d.ts +47 -22
  115. package/cjs/resources/Issuing/index.js +6 -0
  116. package/cjs/resources/Issuing/index.js.map +1 -1
  117. package/cjs/resources/LineItems.d.ts +29 -2
  118. package/cjs/resources/Mandates.d.ts +33 -1
  119. package/cjs/resources/Mandates.js +8 -0
  120. package/cjs/resources/Mandates.js.map +1 -1
  121. package/cjs/resources/Margins.d.ts +115 -0
  122. package/cjs/resources/Margins.js +35 -0
  123. package/cjs/resources/Margins.js.map +1 -0
  124. package/cjs/resources/Orders.d.ts +4693 -0
  125. package/cjs/resources/Orders.js +457 -0
  126. package/cjs/resources/Orders.js.map +1 -0
  127. package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
  128. package/cjs/resources/PaymentIntents.d.ts +13283 -2352
  129. package/cjs/resources/PaymentIntents.js +27 -0
  130. package/cjs/resources/PaymentIntents.js.map +1 -1
  131. package/cjs/resources/PaymentLinks.d.ts +19 -3
  132. package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
  133. package/cjs/resources/PaymentMethods.d.ts +164 -3
  134. package/cjs/resources/PaymentMethods.js.map +1 -1
  135. package/cjs/resources/PaymentRecords.d.ts +82 -0
  136. package/cjs/resources/Persons.d.ts +2 -2
  137. package/cjs/resources/Plans.d.ts +16 -0
  138. package/cjs/resources/Prices.d.ts +52 -0
  139. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +35 -0
  140. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
  141. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  142. package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
  143. package/cjs/resources/Privacy/RedactionJobs.js +73 -0
  144. package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
  145. package/cjs/resources/Privacy/index.d.ts +22 -0
  146. package/cjs/resources/Privacy/index.js +13 -0
  147. package/cjs/resources/Privacy/index.js.map +1 -0
  148. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +125 -0
  149. package/cjs/resources/ProductCatalog/TrialOffers.js +15 -0
  150. package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
  151. package/cjs/resources/ProductCatalog/index.d.ts +12 -0
  152. package/cjs/resources/ProductCatalog/index.js +13 -0
  153. package/cjs/resources/ProductCatalog/index.js.map +1 -0
  154. package/cjs/resources/Products.d.ts +42 -0
  155. package/cjs/resources/PromotionCodes.d.ts +12 -0
  156. package/cjs/resources/PromotionCodes.js +27 -0
  157. package/cjs/resources/PromotionCodes.js.map +1 -1
  158. package/cjs/resources/QuoteLines.d.ts +507 -0
  159. package/cjs/resources/QuoteLines.js +4 -0
  160. package/cjs/resources/QuoteLines.js.map +1 -0
  161. package/cjs/resources/QuotePreviewInvoices.d.ts +1120 -0
  162. package/cjs/resources/QuotePreviewInvoices.js +4 -0
  163. package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
  164. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +738 -0
  165. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
  166. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  167. package/cjs/resources/Quotes.d.ts +2266 -57
  168. package/cjs/resources/Quotes.js +1184 -16
  169. package/cjs/resources/Quotes.js.map +1 -1
  170. package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
  171. package/cjs/resources/Radar/ValueListItems.d.ts +30 -0
  172. package/cjs/resources/Refunds.d.ts +11 -0
  173. package/cjs/resources/Reserve/Holds.d.ts +53 -1
  174. package/cjs/resources/Reserve/Holds.js +19 -0
  175. package/cjs/resources/Reserve/Holds.js.map +1 -1
  176. package/cjs/resources/Reserve/Plans.d.ts +16 -0
  177. package/cjs/resources/Reserve/Plans.js +11 -0
  178. package/cjs/resources/Reserve/Plans.js.map +1 -1
  179. package/cjs/resources/Reserve/Releases.d.ts +41 -1
  180. package/cjs/resources/Reserve/Releases.js +19 -0
  181. package/cjs/resources/Reserve/Releases.js.map +1 -1
  182. package/cjs/resources/Reserve/index.d.ts +17 -6
  183. package/cjs/resources/Reserve/index.js +9 -0
  184. package/cjs/resources/Reserve/index.js.map +1 -1
  185. package/cjs/resources/SetupAttempts.d.ts +26 -1
  186. package/cjs/resources/SetupIntents.d.ts +343 -11
  187. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1105 -0
  188. package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
  189. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
  190. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +306 -0
  191. package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
  192. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
  193. package/cjs/resources/SharedPayment/index.d.ts +19 -0
  194. package/cjs/resources/SharedPayment/index.js +15 -0
  195. package/cjs/resources/SharedPayment/index.js.map +1 -0
  196. package/cjs/resources/Sources.d.ts +29 -1
  197. package/cjs/resources/SubscriptionItems.d.ts +143 -0
  198. package/cjs/resources/SubscriptionSchedules.d.ts +1152 -0
  199. package/cjs/resources/SubscriptionSchedules.js +6 -0
  200. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  201. package/cjs/resources/Subscriptions.d.ts +571 -6
  202. package/cjs/resources/Subscriptions.js +145 -0
  203. package/cjs/resources/Subscriptions.js.map +1 -1
  204. package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -2
  205. package/cjs/resources/Tax/Calculations.d.ts +7 -3
  206. package/cjs/resources/Tax/Forms.d.ts +228 -0
  207. package/cjs/resources/Tax/Forms.js +32 -0
  208. package/cjs/resources/Tax/Forms.js.map +1 -0
  209. package/cjs/resources/Tax/Locations.d.ts +108 -0
  210. package/cjs/resources/Tax/Locations.js +33 -0
  211. package/cjs/resources/Tax/Locations.js.map +1 -0
  212. package/cjs/resources/Tax/Registrations.d.ts +138 -2
  213. package/cjs/resources/Tax/Transactions.d.ts +2 -2
  214. package/cjs/resources/Tax/index.d.ts +27 -13
  215. package/cjs/resources/Tax/index.js +4 -0
  216. package/cjs/resources/Tax/index.js.map +1 -1
  217. package/cjs/resources/TaxCodes.d.ts +15 -0
  218. package/cjs/resources/Terminal/Configurations.d.ts +27 -0
  219. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  220. package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
  221. package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
  222. package/cjs/resources/Terminal/Readers.d.ts +17 -1
  223. package/cjs/resources/Terminal/index.d.ts +5 -0
  224. package/cjs/resources/Terminal/index.js +2 -0
  225. package/cjs/resources/Terminal/index.js.map +1 -1
  226. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +78 -1
  227. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  228. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
  229. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  230. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  231. package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
  232. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  233. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  234. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  235. package/cjs/resources/TestHelpers/index.d.ts +3 -0
  236. package/cjs/resources/TestHelpers/index.js +6 -4
  237. package/cjs/resources/TestHelpers/index.js.map +1 -1
  238. package/cjs/resources/Tokens.d.ts +15 -0
  239. package/cjs/resources/Transfers.d.ts +8 -0
  240. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  241. package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
  242. package/cjs/resources/Treasury/OutboundPayments.d.ts +8 -0
  243. package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
  244. package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
  245. package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
  246. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +71 -0
  247. package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
  248. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  249. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  250. package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
  251. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  252. package/cjs/resources/V2/Billing/BillSettings.d.ts +280 -0
  253. package/cjs/resources/V2/Billing/BillSettings.js +41 -0
  254. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
  255. package/cjs/resources/V2/Billing/Cadences.d.ts +947 -0
  256. package/cjs/resources/V2/Billing/Cadences.js +198 -0
  257. package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
  258. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +236 -0
  259. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
  260. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  261. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  262. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
  263. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  264. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +775 -0
  265. package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
  266. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
  267. package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
  268. package/cjs/resources/V2/Billing/Profiles.js +35 -0
  269. package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
  270. package/cjs/resources/V2/Billing/index.d.ts +45 -6
  271. package/cjs/resources/V2/Billing/index.js +8 -0
  272. package/cjs/resources/V2/Billing/index.js.map +1 -1
  273. package/cjs/resources/V2/Core/AccountLinks.d.ts +4 -4
  274. package/cjs/resources/V2/Core/AccountTokens.d.ts +10 -0
  275. package/cjs/resources/V2/Core/Accounts.d.ts +1565 -75
  276. package/cjs/resources/V2/Core/BatchJobs.d.ts +360 -0
  277. package/cjs/resources/V2/Core/BatchJobs.js +225 -0
  278. package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
  279. package/cjs/resources/V2/Core/Events.d.ts +1151 -4
  280. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +279 -0
  281. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +54 -0
  282. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
  283. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +249 -0
  284. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +63 -0
  285. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
  286. package/cjs/resources/V2/Core/Vault/index.d.ts +28 -0
  287. package/cjs/resources/V2/Core/Vault/index.js +15 -0
  288. package/cjs/resources/V2/Core/Vault/index.js.map +1 -0
  289. package/cjs/resources/V2/Core/index.d.ts +19 -9
  290. package/cjs/resources/V2/Core/index.js +4 -0
  291. package/cjs/resources/V2/Core/index.js.map +1 -1
  292. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +150 -0
  293. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  294. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  295. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  296. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  297. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  298. package/cjs/resources/V2/Data/index.d.ts +10 -0
  299. package/cjs/resources/V2/Data/index.js +13 -0
  300. package/cjs/resources/V2/Data/index.js.map +1 -0
  301. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  302. package/cjs/resources/V2/EventMisc.js +2 -0
  303. package/cjs/resources/V2/EventMisc.js.map +1 -0
  304. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +162 -0
  305. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  306. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  307. package/cjs/resources/V2/Extend/Workflows.d.ts +119 -0
  308. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  309. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  310. package/cjs/resources/V2/Extend/index.d.ts +20 -0
  311. package/cjs/resources/V2/Extend/index.js +15 -0
  312. package/cjs/resources/V2/Extend/index.js.map +1 -0
  313. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
  314. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +4 -0
  315. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
  316. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  317. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +4 -0
  318. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  319. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +210 -0
  320. package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
  321. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  322. package/cjs/resources/V2/Iam/index.d.ts +13 -0
  323. package/cjs/resources/V2/Iam/index.js +13 -0
  324. package/cjs/resources/V2/Iam/index.js.map +1 -0
  325. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +131 -0
  326. package/cjs/resources/V2/MoneyManagement/Adjustments.js +23 -0
  327. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
  328. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +240 -0
  329. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +44 -0
  330. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
  331. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +211 -0
  332. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +31 -0
  333. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
  334. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +250 -0
  335. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +30 -0
  336. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
  337. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +208 -0
  338. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +22 -0
  339. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  340. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +394 -0
  341. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +41 -0
  342. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
  343. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +296 -0
  344. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +49 -0
  345. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
  346. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +336 -0
  347. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +39 -0
  348. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  349. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +239 -0
  350. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +44 -0
  351. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
  352. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +92 -0
  353. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +17 -0
  354. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
  355. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +295 -0
  356. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +23 -0
  357. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
  358. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +157 -0
  359. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
  360. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  361. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +161 -0
  362. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +23 -0
  363. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
  364. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +192 -0
  365. package/cjs/resources/V2/MoneyManagement/Transactions.js +23 -0
  366. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -0
  367. package/cjs/resources/V2/MoneyManagement/index.d.ts +104 -0
  368. package/cjs/resources/V2/MoneyManagement/index.js +39 -0
  369. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -0
  370. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  371. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  372. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  373. package/cjs/resources/V2/Network/index.d.ts +13 -0
  374. package/cjs/resources/V2/Network/index.js +13 -0
  375. package/cjs/resources/V2/Network/index.js.map +1 -0
  376. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  377. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  378. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  379. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  380. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  381. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  382. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
  383. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +23 -0
  384. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
  385. package/cjs/resources/V2/TestHelpers/index.d.ts +8 -0
  386. package/cjs/resources/V2/TestHelpers/index.js +13 -0
  387. package/cjs/resources/V2/TestHelpers/index.js.map +1 -0
  388. package/cjs/resources/V2/index.d.ts +27 -0
  389. package/cjs/resources/V2/index.js +14 -0
  390. package/cjs/resources/V2/index.js.map +1 -1
  391. package/cjs/resources/WebhookEndpoints.d.ts +2 -2
  392. package/cjs/resources.d.ts +10 -0
  393. package/cjs/resources.js +146 -10
  394. package/cjs/resources.js.map +1 -1
  395. package/cjs/stripe.cjs.node.d.ts +6536 -109
  396. package/cjs/stripe.cjs.node.js.map +1 -1
  397. package/cjs/stripe.core.d.ts +91 -26
  398. package/cjs/stripe.core.js +55 -32
  399. package/cjs/stripe.core.js.map +1 -1
  400. package/esm/Error.d.ts +50 -0
  401. package/esm/Error.js +109 -0
  402. package/esm/Error.js.map +1 -1
  403. package/esm/StripeEventNotificationHandler.d.ts +19 -0
  404. package/esm/StripeEventNotificationHandler.js +146 -0
  405. package/esm/StripeEventNotificationHandler.js.map +1 -0
  406. package/esm/Types.d.ts +4 -2
  407. package/esm/Types.js.map +1 -1
  408. package/esm/apiVersion.d.ts +1 -2
  409. package/esm/apiVersion.js +1 -2
  410. package/esm/apiVersion.js.map +1 -1
  411. package/esm/resources/AccountLinks.d.ts +1 -1
  412. package/esm/resources/AccountNotices.d.ts +140 -0
  413. package/esm/resources/AccountNotices.js +25 -0
  414. package/esm/resources/AccountNotices.js.map +1 -0
  415. package/esm/resources/AccountSessions.d.ts +262 -0
  416. package/esm/resources/AccountSessions.js.map +1 -1
  417. package/esm/resources/Accounts.d.ts +827 -3
  418. package/esm/resources/Accounts.js +14 -0
  419. package/esm/resources/Accounts.js.map +1 -1
  420. package/esm/resources/Balance.d.ts +67 -0
  421. package/esm/resources/BankAccounts.d.ts +2 -2
  422. package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
  423. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +84 -0
  424. package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
  425. package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  426. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  427. package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
  428. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  429. package/esm/resources/Billing/Analytics/index.d.ts +15 -0
  430. package/esm/resources/Billing/Analytics/index.js +9 -0
  431. package/esm/resources/Billing/Analytics/index.js.map +1 -0
  432. package/esm/resources/Billing/index.d.ts +3 -0
  433. package/esm/resources/Billing/index.js +2 -0
  434. package/esm/resources/Billing/index.js.map +1 -1
  435. package/esm/resources/Capabilities.d.ts +2 -2
  436. package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
  437. package/esm/resources/Capital/FinancingOffers.js +26 -0
  438. package/esm/resources/Capital/FinancingOffers.js.map +1 -0
  439. package/esm/resources/Capital/FinancingSummary.d.ts +101 -0
  440. package/esm/resources/Capital/FinancingSummary.js +11 -0
  441. package/esm/resources/Capital/FinancingSummary.js.map +1 -0
  442. package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
  443. package/esm/resources/Capital/FinancingTransactions.js +20 -0
  444. package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
  445. package/esm/resources/Capital/index.d.ts +25 -0
  446. package/esm/resources/Capital/index.js +13 -0
  447. package/esm/resources/Capital/index.js.map +1 -0
  448. package/esm/resources/Cards.d.ts +17 -0
  449. package/esm/resources/Charges.d.ts +3077 -70
  450. package/esm/resources/Checkout/Sessions.d.ts +403 -4
  451. package/esm/resources/ConfirmationTokens.d.ts +67 -1
  452. package/esm/resources/Coupons.d.ts +53 -0
  453. package/esm/resources/Coupons.js +13 -0
  454. package/esm/resources/Coupons.js.map +1 -1
  455. package/esm/resources/CreditNoteLineItems.d.ts +15 -1
  456. package/esm/resources/CreditNotes.d.ts +1 -1
  457. package/esm/resources/CustomerSessions.d.ts +68 -0
  458. package/esm/resources/Customers.d.ts +20 -1
  459. package/esm/resources/Customers.js +14 -0
  460. package/esm/resources/Customers.js.map +1 -1
  461. package/esm/resources/Disputes.d.ts +29 -0
  462. package/esm/resources/Events.d.ts +547 -2
  463. package/esm/resources/ExternalAccounts.d.ts +212 -1
  464. package/esm/resources/ExternalAccounts.js +42 -1
  465. package/esm/resources/ExternalAccounts.js.map +1 -1
  466. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  467. package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
  468. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  469. package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
  470. package/esm/resources/FinancialConnections/Accounts.js +8 -0
  471. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  472. package/esm/resources/FinancialConnections/Authorizations.d.ts +99 -0
  473. package/esm/resources/FinancialConnections/Authorizations.js +11 -0
  474. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
  475. package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
  476. package/esm/resources/FinancialConnections/Institutions.js +19 -0
  477. package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
  478. package/esm/resources/FinancialConnections/Sessions.d.ts +156 -7
  479. package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
  480. package/esm/resources/FinancialConnections/index.d.ts +21 -6
  481. package/esm/resources/FinancialConnections/index.js +4 -0
  482. package/esm/resources/FinancialConnections/index.js.map +1 -1
  483. package/esm/resources/FxQuotes.d.ts +212 -0
  484. package/esm/resources/FxQuotes.js +25 -0
  485. package/esm/resources/FxQuotes.js.map +1 -0
  486. package/esm/resources/InvoiceItems.d.ts +85 -0
  487. package/esm/resources/InvoiceItems.js.map +1 -1
  488. package/esm/resources/InvoiceLineItems.d.ts +40 -2
  489. package/esm/resources/Invoices.d.ts +1388 -15
  490. package/esm/resources/Invoices.js +41 -0
  491. package/esm/resources/Invoices.js.map +1 -1
  492. package/esm/resources/Issuing/Authorizations.d.ts +13 -0
  493. package/esm/resources/Issuing/Cardholders.d.ts +15 -1
  494. package/esm/resources/Issuing/Cards.d.ts +13 -0
  495. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  496. package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
  497. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  498. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  499. package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
  500. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  501. package/esm/resources/Issuing/Disputes.d.ts +13 -0
  502. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  503. package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
  504. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  505. package/esm/resources/Issuing/Settlements.d.ts +83 -0
  506. package/esm/resources/Issuing/Settlements.js +3 -0
  507. package/esm/resources/Issuing/Settlements.js.map +1 -0
  508. package/esm/resources/Issuing/Transactions.d.ts +22 -0
  509. package/esm/resources/Issuing/Transactions.js.map +1 -1
  510. package/esm/resources/Issuing/index.d.ts +47 -22
  511. package/esm/resources/Issuing/index.js +6 -0
  512. package/esm/resources/Issuing/index.js.map +1 -1
  513. package/esm/resources/LineItems.d.ts +29 -2
  514. package/esm/resources/Mandates.d.ts +33 -1
  515. package/esm/resources/Mandates.js +8 -0
  516. package/esm/resources/Mandates.js.map +1 -1
  517. package/esm/resources/Margins.d.ts +115 -0
  518. package/esm/resources/Margins.js +31 -0
  519. package/esm/resources/Margins.js.map +1 -0
  520. package/esm/resources/Orders.d.ts +4693 -0
  521. package/esm/resources/Orders.js +453 -0
  522. package/esm/resources/Orders.js.map +1 -0
  523. package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
  524. package/esm/resources/PaymentIntents.d.ts +13283 -2352
  525. package/esm/resources/PaymentIntents.js +27 -0
  526. package/esm/resources/PaymentIntents.js.map +1 -1
  527. package/esm/resources/PaymentLinks.d.ts +19 -3
  528. package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
  529. package/esm/resources/PaymentMethods.d.ts +164 -3
  530. package/esm/resources/PaymentMethods.js.map +1 -1
  531. package/esm/resources/PaymentRecords.d.ts +82 -0
  532. package/esm/resources/Persons.d.ts +2 -2
  533. package/esm/resources/Plans.d.ts +16 -0
  534. package/esm/resources/Prices.d.ts +52 -0
  535. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +35 -0
  536. package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
  537. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  538. package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
  539. package/esm/resources/Privacy/RedactionJobs.js +69 -0
  540. package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
  541. package/esm/resources/Privacy/index.d.ts +22 -0
  542. package/esm/resources/Privacy/index.js +9 -0
  543. package/esm/resources/Privacy/index.js.map +1 -0
  544. package/esm/resources/ProductCatalog/TrialOffers.d.ts +125 -0
  545. package/esm/resources/ProductCatalog/TrialOffers.js +11 -0
  546. package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
  547. package/esm/resources/ProductCatalog/index.d.ts +12 -0
  548. package/esm/resources/ProductCatalog/index.js +9 -0
  549. package/esm/resources/ProductCatalog/index.js.map +1 -0
  550. package/esm/resources/Products.d.ts +42 -0
  551. package/esm/resources/PromotionCodes.d.ts +12 -0
  552. package/esm/resources/PromotionCodes.js +27 -0
  553. package/esm/resources/PromotionCodes.js.map +1 -1
  554. package/esm/resources/QuoteLines.d.ts +507 -0
  555. package/esm/resources/QuoteLines.js +3 -0
  556. package/esm/resources/QuoteLines.js.map +1 -0
  557. package/esm/resources/QuotePreviewInvoices.d.ts +1120 -0
  558. package/esm/resources/QuotePreviewInvoices.js +3 -0
  559. package/esm/resources/QuotePreviewInvoices.js.map +1 -0
  560. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +738 -0
  561. package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
  562. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  563. package/esm/resources/Quotes.d.ts +2266 -57
  564. package/esm/resources/Quotes.js +1184 -16
  565. package/esm/resources/Quotes.js.map +1 -1
  566. package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
  567. package/esm/resources/Radar/ValueListItems.d.ts +30 -0
  568. package/esm/resources/Refunds.d.ts +11 -0
  569. package/esm/resources/Reserve/Holds.d.ts +53 -1
  570. package/esm/resources/Reserve/Holds.js +17 -1
  571. package/esm/resources/Reserve/Holds.js.map +1 -1
  572. package/esm/resources/Reserve/Plans.d.ts +16 -0
  573. package/esm/resources/Reserve/Plans.js +9 -1
  574. package/esm/resources/Reserve/Plans.js.map +1 -1
  575. package/esm/resources/Reserve/Releases.d.ts +41 -1
  576. package/esm/resources/Reserve/Releases.js +17 -1
  577. package/esm/resources/Reserve/Releases.js.map +1 -1
  578. package/esm/resources/Reserve/index.d.ts +17 -6
  579. package/esm/resources/Reserve/index.js +9 -0
  580. package/esm/resources/Reserve/index.js.map +1 -1
  581. package/esm/resources/SetupAttempts.d.ts +26 -1
  582. package/esm/resources/SetupIntents.d.ts +343 -11
  583. package/esm/resources/SharedPayment/GrantedTokens.d.ts +1105 -0
  584. package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
  585. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
  586. package/esm/resources/SharedPayment/IssuedTokens.d.ts +306 -0
  587. package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
  588. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
  589. package/esm/resources/SharedPayment/index.d.ts +19 -0
  590. package/esm/resources/SharedPayment/index.js +11 -0
  591. package/esm/resources/SharedPayment/index.js.map +1 -0
  592. package/esm/resources/Sources.d.ts +29 -1
  593. package/esm/resources/SubscriptionItems.d.ts +143 -0
  594. package/esm/resources/SubscriptionSchedules.d.ts +1152 -0
  595. package/esm/resources/SubscriptionSchedules.js +6 -0
  596. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  597. package/esm/resources/Subscriptions.d.ts +571 -6
  598. package/esm/resources/Subscriptions.js +145 -0
  599. package/esm/resources/Subscriptions.js.map +1 -1
  600. package/esm/resources/Tax/CalculationLineItems.d.ts +6 -2
  601. package/esm/resources/Tax/Calculations.d.ts +7 -3
  602. package/esm/resources/Tax/Forms.d.ts +228 -0
  603. package/esm/resources/Tax/Forms.js +28 -0
  604. package/esm/resources/Tax/Forms.js.map +1 -0
  605. package/esm/resources/Tax/Locations.d.ts +108 -0
  606. package/esm/resources/Tax/Locations.js +29 -0
  607. package/esm/resources/Tax/Locations.js.map +1 -0
  608. package/esm/resources/Tax/Registrations.d.ts +138 -2
  609. package/esm/resources/Tax/Transactions.d.ts +2 -2
  610. package/esm/resources/Tax/index.d.ts +27 -13
  611. package/esm/resources/Tax/index.js +4 -0
  612. package/esm/resources/Tax/index.js.map +1 -1
  613. package/esm/resources/TaxCodes.d.ts +15 -0
  614. package/esm/resources/Terminal/Configurations.d.ts +27 -0
  615. package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  616. package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
  617. package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
  618. package/esm/resources/Terminal/Readers.d.ts +17 -1
  619. package/esm/resources/Terminal/index.d.ts +5 -0
  620. package/esm/resources/Terminal/index.js +2 -0
  621. package/esm/resources/Terminal/index.js.map +1 -1
  622. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +78 -1
  623. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  624. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
  625. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  626. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  627. package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
  628. package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  629. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  630. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  631. package/esm/resources/TestHelpers/index.d.ts +3 -0
  632. package/esm/resources/TestHelpers/index.js +2 -0
  633. package/esm/resources/TestHelpers/index.js.map +1 -1
  634. package/esm/resources/Tokens.d.ts +15 -0
  635. package/esm/resources/Transfers.d.ts +8 -0
  636. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  637. package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
  638. package/esm/resources/Treasury/OutboundPayments.d.ts +8 -0
  639. package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
  640. package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
  641. package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
  642. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +71 -0
  643. package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
  644. package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  645. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  646. package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
  647. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  648. package/esm/resources/V2/Billing/BillSettings.d.ts +280 -0
  649. package/esm/resources/V2/Billing/BillSettings.js +37 -0
  650. package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
  651. package/esm/resources/V2/Billing/Cadences.d.ts +947 -0
  652. package/esm/resources/V2/Billing/Cadences.js +194 -0
  653. package/esm/resources/V2/Billing/Cadences.js.map +1 -0
  654. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +236 -0
  655. package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
  656. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  657. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  658. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
  659. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  660. package/esm/resources/V2/Billing/CollectionSettings.d.ts +775 -0
  661. package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
  662. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
  663. package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
  664. package/esm/resources/V2/Billing/Profiles.js +31 -0
  665. package/esm/resources/V2/Billing/Profiles.js.map +1 -0
  666. package/esm/resources/V2/Billing/index.d.ts +45 -6
  667. package/esm/resources/V2/Billing/index.js +8 -0
  668. package/esm/resources/V2/Billing/index.js.map +1 -1
  669. package/esm/resources/V2/Core/AccountLinks.d.ts +4 -4
  670. package/esm/resources/V2/Core/AccountTokens.d.ts +10 -0
  671. package/esm/resources/V2/Core/Accounts.d.ts +1565 -75
  672. package/esm/resources/V2/Core/BatchJobs.d.ts +360 -0
  673. package/esm/resources/V2/Core/BatchJobs.js +221 -0
  674. package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
  675. package/esm/resources/V2/Core/Events.d.ts +1151 -4
  676. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +279 -0
  677. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +50 -0
  678. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
  679. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +249 -0
  680. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +59 -0
  681. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
  682. package/esm/resources/V2/Core/Vault/index.d.ts +28 -0
  683. package/esm/resources/V2/Core/Vault/index.js +11 -0
  684. package/esm/resources/V2/Core/Vault/index.js.map +1 -0
  685. package/esm/resources/V2/Core/index.d.ts +19 -9
  686. package/esm/resources/V2/Core/index.js +4 -0
  687. package/esm/resources/V2/Core/index.js.map +1 -1
  688. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +150 -0
  689. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  690. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  691. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  692. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  693. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  694. package/esm/resources/V2/Data/index.d.ts +10 -0
  695. package/esm/resources/V2/Data/index.js +9 -0
  696. package/esm/resources/V2/Data/index.js.map +1 -0
  697. package/esm/resources/V2/EventMisc.d.ts +0 -0
  698. package/esm/resources/V2/EventMisc.js +2 -0
  699. package/esm/resources/V2/EventMisc.js.map +1 -0
  700. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +162 -0
  701. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  702. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  703. package/esm/resources/V2/Extend/Workflows.d.ts +119 -0
  704. package/esm/resources/V2/Extend/Workflows.js +26 -0
  705. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  706. package/esm/resources/V2/Extend/index.d.ts +20 -0
  707. package/esm/resources/V2/Extend/index.js +11 -0
  708. package/esm/resources/V2/Extend/index.js.map +1 -0
  709. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
  710. package/esm/resources/V2/FinancialAddressCreditSimulations.js +3 -0
  711. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
  712. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  713. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +3 -0
  714. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  715. package/esm/resources/V2/Iam/ActivityLogs.d.ts +210 -0
  716. package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
  717. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  718. package/esm/resources/V2/Iam/index.d.ts +13 -0
  719. package/esm/resources/V2/Iam/index.js +9 -0
  720. package/esm/resources/V2/Iam/index.js.map +1 -0
  721. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +131 -0
  722. package/esm/resources/V2/MoneyManagement/Adjustments.js +19 -0
  723. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
  724. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +240 -0
  725. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +40 -0
  726. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
  727. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +211 -0
  728. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +27 -0
  729. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
  730. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +250 -0
  731. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +26 -0
  732. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
  733. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +208 -0
  734. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +18 -0
  735. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  736. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +394 -0
  737. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +37 -0
  738. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
  739. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +296 -0
  740. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +45 -0
  741. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
  742. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +336 -0
  743. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +35 -0
  744. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  745. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +239 -0
  746. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +40 -0
  747. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
  748. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +92 -0
  749. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +13 -0
  750. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
  751. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +295 -0
  752. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +19 -0
  753. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
  754. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +157 -0
  755. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
  756. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  757. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +161 -0
  758. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +19 -0
  759. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
  760. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +192 -0
  761. package/esm/resources/V2/MoneyManagement/Transactions.js +19 -0
  762. package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -0
  763. package/esm/resources/V2/MoneyManagement/index.d.ts +104 -0
  764. package/esm/resources/V2/MoneyManagement/index.js +35 -0
  765. package/esm/resources/V2/MoneyManagement/index.js.map +1 -0
  766. package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  767. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  768. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  769. package/esm/resources/V2/Network/index.d.ts +13 -0
  770. package/esm/resources/V2/Network/index.js +9 -0
  771. package/esm/resources/V2/Network/index.js.map +1 -0
  772. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  773. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  774. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  775. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  776. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  777. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  778. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
  779. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +19 -0
  780. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
  781. package/esm/resources/V2/TestHelpers/index.d.ts +8 -0
  782. package/esm/resources/V2/TestHelpers/index.js +9 -0
  783. package/esm/resources/V2/TestHelpers/index.js.map +1 -0
  784. package/esm/resources/V2/index.d.ts +27 -0
  785. package/esm/resources/V2/index.js +14 -0
  786. package/esm/resources/V2/index.js.map +1 -1
  787. package/esm/resources/WebhookEndpoints.d.ts +2 -2
  788. package/esm/resources.d.ts +10 -0
  789. package/esm/resources.js +131 -0
  790. package/esm/resources.js.map +1 -1
  791. package/esm/stripe.core.d.ts +91 -26
  792. package/esm/stripe.core.js +25 -2
  793. package/esm/stripe.core.js.map +1 -1
  794. package/esm/stripe.esm.node.d.ts +93 -27
  795. package/esm/stripe.esm.node.js +25 -2
  796. package/esm/stripe.esm.node.js.map +1 -1
  797. package/package.json +1 -1
@@ -101,6 +101,84 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
101
101
  },
102
102
  },
103
103
  },
104
+ status_details: {
105
+ kind: 'nullable',
106
+ inner: {
107
+ kind: 'object',
108
+ fields: {
109
+ stale: {
110
+ kind: 'object',
111
+ fields: {
112
+ last_reason: {
113
+ kind: 'nullable',
114
+ inner: {
115
+ kind: 'object',
116
+ fields: {
117
+ subscription_changed: {
118
+ kind: 'object',
119
+ fields: {
120
+ previous_subscription: {
121
+ kind: 'nullable',
122
+ inner: {
123
+ kind: 'object',
124
+ fields: {
125
+ items: {
126
+ kind: 'object',
127
+ fields: {
128
+ data: {
129
+ kind: 'array',
130
+ element: {
131
+ kind: 'object',
132
+ fields: {
133
+ plan: {
134
+ kind: 'object',
135
+ fields: {
136
+ amount_decimal: {
137
+ kind: 'nullable',
138
+ inner: {
139
+ kind: 'decimal_string',
140
+ },
141
+ },
142
+ tiers: {
143
+ kind: 'array',
144
+ element: {
145
+ kind: 'object',
146
+ fields: {
147
+ flat_amount_decimal: {
148
+ kind: 'nullable',
149
+ inner: {
150
+ kind: 'decimal_string',
151
+ },
152
+ },
153
+ unit_amount_decimal: {
154
+ kind: 'nullable',
155
+ inner: {
156
+ kind: 'decimal_string',
157
+ },
158
+ },
159
+ },
160
+ },
161
+ },
162
+ },
163
+ },
164
+ },
165
+ },
166
+ },
167
+ },
168
+ },
169
+ },
170
+ },
171
+ },
172
+ },
173
+ },
174
+ },
175
+ },
176
+ },
177
+ },
178
+ },
179
+ },
180
+ },
181
+ },
104
182
  },
105
183
  },
106
184
  },
@@ -212,6 +290,84 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
212
290
  },
213
291
  },
214
292
  },
293
+ status_details: {
294
+ kind: 'nullable',
295
+ inner: {
296
+ kind: 'object',
297
+ fields: {
298
+ stale: {
299
+ kind: 'object',
300
+ fields: {
301
+ last_reason: {
302
+ kind: 'nullable',
303
+ inner: {
304
+ kind: 'object',
305
+ fields: {
306
+ subscription_changed: {
307
+ kind: 'object',
308
+ fields: {
309
+ previous_subscription: {
310
+ kind: 'nullable',
311
+ inner: {
312
+ kind: 'object',
313
+ fields: {
314
+ items: {
315
+ kind: 'object',
316
+ fields: {
317
+ data: {
318
+ kind: 'array',
319
+ element: {
320
+ kind: 'object',
321
+ fields: {
322
+ plan: {
323
+ kind: 'object',
324
+ fields: {
325
+ amount_decimal: {
326
+ kind: 'nullable',
327
+ inner: {
328
+ kind: 'decimal_string',
329
+ },
330
+ },
331
+ tiers: {
332
+ kind: 'array',
333
+ element: {
334
+ kind: 'object',
335
+ fields: {
336
+ flat_amount_decimal: {
337
+ kind: 'nullable',
338
+ inner: {
339
+ kind: 'decimal_string',
340
+ },
341
+ },
342
+ unit_amount_decimal: {
343
+ kind: 'nullable',
344
+ inner: {
345
+ kind: 'decimal_string',
346
+ },
347
+ },
348
+ },
349
+ },
350
+ },
351
+ },
352
+ },
353
+ },
354
+ },
355
+ },
356
+ },
357
+ },
358
+ },
359
+ },
360
+ },
361
+ },
362
+ },
363
+ },
364
+ },
365
+ },
366
+ },
367
+ },
368
+ },
369
+ },
370
+ },
215
371
  },
216
372
  },
217
373
  });
@@ -307,6 +463,84 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
307
463
  },
308
464
  },
309
465
  },
466
+ status_details: {
467
+ kind: 'nullable',
468
+ inner: {
469
+ kind: 'object',
470
+ fields: {
471
+ stale: {
472
+ kind: 'object',
473
+ fields: {
474
+ last_reason: {
475
+ kind: 'nullable',
476
+ inner: {
477
+ kind: 'object',
478
+ fields: {
479
+ subscription_changed: {
480
+ kind: 'object',
481
+ fields: {
482
+ previous_subscription: {
483
+ kind: 'nullable',
484
+ inner: {
485
+ kind: 'object',
486
+ fields: {
487
+ items: {
488
+ kind: 'object',
489
+ fields: {
490
+ data: {
491
+ kind: 'array',
492
+ element: {
493
+ kind: 'object',
494
+ fields: {
495
+ plan: {
496
+ kind: 'object',
497
+ fields: {
498
+ amount_decimal: {
499
+ kind: 'nullable',
500
+ inner: {
501
+ kind: 'decimal_string',
502
+ },
503
+ },
504
+ tiers: {
505
+ kind: 'array',
506
+ element: {
507
+ kind: 'object',
508
+ fields: {
509
+ flat_amount_decimal: {
510
+ kind: 'nullable',
511
+ inner: {
512
+ kind: 'decimal_string',
513
+ },
514
+ },
515
+ unit_amount_decimal: {
516
+ kind: 'nullable',
517
+ inner: {
518
+ kind: 'decimal_string',
519
+ },
520
+ },
521
+ },
522
+ },
523
+ },
524
+ },
525
+ },
526
+ },
527
+ },
528
+ },
529
+ },
530
+ },
531
+ },
532
+ },
533
+ },
534
+ },
535
+ },
536
+ },
537
+ },
538
+ },
539
+ },
540
+ },
541
+ },
542
+ },
543
+ },
310
544
  },
311
545
  },
312
546
  });
@@ -419,6 +653,84 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
419
653
  },
420
654
  },
421
655
  },
656
+ status_details: {
657
+ kind: 'nullable',
658
+ inner: {
659
+ kind: 'object',
660
+ fields: {
661
+ stale: {
662
+ kind: 'object',
663
+ fields: {
664
+ last_reason: {
665
+ kind: 'nullable',
666
+ inner: {
667
+ kind: 'object',
668
+ fields: {
669
+ subscription_changed: {
670
+ kind: 'object',
671
+ fields: {
672
+ previous_subscription: {
673
+ kind: 'nullable',
674
+ inner: {
675
+ kind: 'object',
676
+ fields: {
677
+ items: {
678
+ kind: 'object',
679
+ fields: {
680
+ data: {
681
+ kind: 'array',
682
+ element: {
683
+ kind: 'object',
684
+ fields: {
685
+ plan: {
686
+ kind: 'object',
687
+ fields: {
688
+ amount_decimal: {
689
+ kind: 'nullable',
690
+ inner: {
691
+ kind: 'decimal_string',
692
+ },
693
+ },
694
+ tiers: {
695
+ kind: 'array',
696
+ element: {
697
+ kind: 'object',
698
+ fields: {
699
+ flat_amount_decimal: {
700
+ kind: 'nullable',
701
+ inner: {
702
+ kind: 'decimal_string',
703
+ },
704
+ },
705
+ unit_amount_decimal: {
706
+ kind: 'nullable',
707
+ inner: {
708
+ kind: 'decimal_string',
709
+ },
710
+ },
711
+ },
712
+ },
713
+ },
714
+ },
715
+ },
716
+ },
717
+ },
718
+ },
719
+ },
720
+ },
721
+ },
722
+ },
723
+ },
724
+ },
725
+ },
726
+ },
727
+ },
728
+ },
729
+ },
730
+ },
731
+ },
732
+ },
733
+ },
422
734
  },
423
735
  },
424
736
  });
@@ -514,6 +826,84 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
514
826
  },
515
827
  },
516
828
  },
829
+ status_details: {
830
+ kind: 'nullable',
831
+ inner: {
832
+ kind: 'object',
833
+ fields: {
834
+ stale: {
835
+ kind: 'object',
836
+ fields: {
837
+ last_reason: {
838
+ kind: 'nullable',
839
+ inner: {
840
+ kind: 'object',
841
+ fields: {
842
+ subscription_changed: {
843
+ kind: 'object',
844
+ fields: {
845
+ previous_subscription: {
846
+ kind: 'nullable',
847
+ inner: {
848
+ kind: 'object',
849
+ fields: {
850
+ items: {
851
+ kind: 'object',
852
+ fields: {
853
+ data: {
854
+ kind: 'array',
855
+ element: {
856
+ kind: 'object',
857
+ fields: {
858
+ plan: {
859
+ kind: 'object',
860
+ fields: {
861
+ amount_decimal: {
862
+ kind: 'nullable',
863
+ inner: {
864
+ kind: 'decimal_string',
865
+ },
866
+ },
867
+ tiers: {
868
+ kind: 'array',
869
+ element: {
870
+ kind: 'object',
871
+ fields: {
872
+ flat_amount_decimal: {
873
+ kind: 'nullable',
874
+ inner: {
875
+ kind: 'decimal_string',
876
+ },
877
+ },
878
+ unit_amount_decimal: {
879
+ kind: 'nullable',
880
+ inner: {
881
+ kind: 'decimal_string',
882
+ },
883
+ },
884
+ },
885
+ },
886
+ },
887
+ },
888
+ },
889
+ },
890
+ },
891
+ },
892
+ },
893
+ },
894
+ },
895
+ },
896
+ },
897
+ },
898
+ },
899
+ },
900
+ },
901
+ },
902
+ },
903
+ },
904
+ },
905
+ },
906
+ },
517
907
  },
518
908
  },
519
909
  });
@@ -609,6 +999,84 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
609
999
  },
610
1000
  },
611
1001
  },
1002
+ status_details: {
1003
+ kind: 'nullable',
1004
+ inner: {
1005
+ kind: 'object',
1006
+ fields: {
1007
+ stale: {
1008
+ kind: 'object',
1009
+ fields: {
1010
+ last_reason: {
1011
+ kind: 'nullable',
1012
+ inner: {
1013
+ kind: 'object',
1014
+ fields: {
1015
+ subscription_changed: {
1016
+ kind: 'object',
1017
+ fields: {
1018
+ previous_subscription: {
1019
+ kind: 'nullable',
1020
+ inner: {
1021
+ kind: 'object',
1022
+ fields: {
1023
+ items: {
1024
+ kind: 'object',
1025
+ fields: {
1026
+ data: {
1027
+ kind: 'array',
1028
+ element: {
1029
+ kind: 'object',
1030
+ fields: {
1031
+ plan: {
1032
+ kind: 'object',
1033
+ fields: {
1034
+ amount_decimal: {
1035
+ kind: 'nullable',
1036
+ inner: {
1037
+ kind: 'decimal_string',
1038
+ },
1039
+ },
1040
+ tiers: {
1041
+ kind: 'array',
1042
+ element: {
1043
+ kind: 'object',
1044
+ fields: {
1045
+ flat_amount_decimal: {
1046
+ kind: 'nullable',
1047
+ inner: {
1048
+ kind: 'decimal_string',
1049
+ },
1050
+ },
1051
+ unit_amount_decimal: {
1052
+ kind: 'nullable',
1053
+ inner: {
1054
+ kind: 'decimal_string',
1055
+ },
1056
+ },
1057
+ },
1058
+ },
1059
+ },
1060
+ },
1061
+ },
1062
+ },
1063
+ },
1064
+ },
1065
+ },
1066
+ },
1067
+ },
1068
+ },
1069
+ },
1070
+ },
1071
+ },
1072
+ },
1073
+ },
1074
+ },
1075
+ },
1076
+ },
1077
+ },
1078
+ },
1079
+ },
612
1080
  },
613
1081
  },
614
1082
  });
@@ -704,31 +1172,665 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
704
1172
  },
705
1173
  },
706
1174
  },
1175
+ status_details: {
1176
+ kind: 'nullable',
1177
+ inner: {
1178
+ kind: 'object',
1179
+ fields: {
1180
+ stale: {
1181
+ kind: 'object',
1182
+ fields: {
1183
+ last_reason: {
1184
+ kind: 'nullable',
1185
+ inner: {
1186
+ kind: 'object',
1187
+ fields: {
1188
+ subscription_changed: {
1189
+ kind: 'object',
1190
+ fields: {
1191
+ previous_subscription: {
1192
+ kind: 'nullable',
1193
+ inner: {
1194
+ kind: 'object',
1195
+ fields: {
1196
+ items: {
1197
+ kind: 'object',
1198
+ fields: {
1199
+ data: {
1200
+ kind: 'array',
1201
+ element: {
1202
+ kind: 'object',
1203
+ fields: {
1204
+ plan: {
1205
+ kind: 'object',
1206
+ fields: {
1207
+ amount_decimal: {
1208
+ kind: 'nullable',
1209
+ inner: {
1210
+ kind: 'decimal_string',
1211
+ },
1212
+ },
1213
+ tiers: {
1214
+ kind: 'array',
1215
+ element: {
1216
+ kind: 'object',
1217
+ fields: {
1218
+ flat_amount_decimal: {
1219
+ kind: 'nullable',
1220
+ inner: {
1221
+ kind: 'decimal_string',
1222
+ },
1223
+ },
1224
+ unit_amount_decimal: {
1225
+ kind: 'nullable',
1226
+ inner: {
1227
+ kind: 'decimal_string',
1228
+ },
1229
+ },
1230
+ },
1231
+ },
1232
+ },
1233
+ },
1234
+ },
1235
+ },
1236
+ },
1237
+ },
1238
+ },
1239
+ },
1240
+ },
1241
+ },
1242
+ },
1243
+ },
1244
+ },
1245
+ },
1246
+ },
1247
+ },
1248
+ },
1249
+ },
1250
+ },
1251
+ },
1252
+ },
707
1253
  },
708
1254
  },
709
1255
  });
710
1256
  }
711
1257
  /**
712
- * Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
713
- */
714
- pdf(id, params, options) {
715
- return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/pdf`, params, options, {
716
- apiBase: 'files',
717
- streaming: true,
718
- });
719
- }
720
- /**
721
- * When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.
1258
+ * Converts a stale quote to draft.
722
1259
  */
723
- listComputedUpfrontLineItems(id, params, options) {
724
- return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/computed_upfront_line_items`, params, options, {
725
- methodType: 'list',
1260
+ markDraft(id, params, options) {
1261
+ return this._makeRequest('POST', `/v1/quotes/${encodeURIComponent(id)}/mark_draft`, params, options, {
726
1262
  responseSchema: {
727
1263
  kind: 'object',
728
1264
  fields: {
729
- data: {
730
- kind: 'array',
731
- element: {
1265
+ computed: {
1266
+ kind: 'object',
1267
+ fields: {
1268
+ upfront: {
1269
+ kind: 'object',
1270
+ fields: {
1271
+ line_items: {
1272
+ kind: 'object',
1273
+ fields: {
1274
+ data: {
1275
+ kind: 'array',
1276
+ element: {
1277
+ kind: 'object',
1278
+ fields: {
1279
+ price: {
1280
+ kind: 'nullable',
1281
+ inner: {
1282
+ kind: 'object',
1283
+ fields: {
1284
+ currency_options: {
1285
+ kind: 'array',
1286
+ element: {
1287
+ kind: 'object',
1288
+ fields: {
1289
+ tiers: {
1290
+ kind: 'array',
1291
+ element: {
1292
+ kind: 'object',
1293
+ fields: {
1294
+ flat_amount_decimal: {
1295
+ kind: 'nullable',
1296
+ inner: {
1297
+ kind: 'decimal_string',
1298
+ },
1299
+ },
1300
+ unit_amount_decimal: {
1301
+ kind: 'nullable',
1302
+ inner: {
1303
+ kind: 'decimal_string',
1304
+ },
1305
+ },
1306
+ },
1307
+ },
1308
+ },
1309
+ unit_amount_decimal: {
1310
+ kind: 'nullable',
1311
+ inner: { kind: 'decimal_string' },
1312
+ },
1313
+ },
1314
+ },
1315
+ },
1316
+ tiers: {
1317
+ kind: 'array',
1318
+ element: {
1319
+ kind: 'object',
1320
+ fields: {
1321
+ flat_amount_decimal: {
1322
+ kind: 'nullable',
1323
+ inner: { kind: 'decimal_string' },
1324
+ },
1325
+ unit_amount_decimal: {
1326
+ kind: 'nullable',
1327
+ inner: { kind: 'decimal_string' },
1328
+ },
1329
+ },
1330
+ },
1331
+ },
1332
+ unit_amount_decimal: {
1333
+ kind: 'nullable',
1334
+ inner: { kind: 'decimal_string' },
1335
+ },
1336
+ },
1337
+ },
1338
+ },
1339
+ },
1340
+ },
1341
+ },
1342
+ },
1343
+ },
1344
+ },
1345
+ },
1346
+ },
1347
+ },
1348
+ status_details: {
1349
+ kind: 'nullable',
1350
+ inner: {
1351
+ kind: 'object',
1352
+ fields: {
1353
+ stale: {
1354
+ kind: 'object',
1355
+ fields: {
1356
+ last_reason: {
1357
+ kind: 'nullable',
1358
+ inner: {
1359
+ kind: 'object',
1360
+ fields: {
1361
+ subscription_changed: {
1362
+ kind: 'object',
1363
+ fields: {
1364
+ previous_subscription: {
1365
+ kind: 'nullable',
1366
+ inner: {
1367
+ kind: 'object',
1368
+ fields: {
1369
+ items: {
1370
+ kind: 'object',
1371
+ fields: {
1372
+ data: {
1373
+ kind: 'array',
1374
+ element: {
1375
+ kind: 'object',
1376
+ fields: {
1377
+ plan: {
1378
+ kind: 'object',
1379
+ fields: {
1380
+ amount_decimal: {
1381
+ kind: 'nullable',
1382
+ inner: {
1383
+ kind: 'decimal_string',
1384
+ },
1385
+ },
1386
+ tiers: {
1387
+ kind: 'array',
1388
+ element: {
1389
+ kind: 'object',
1390
+ fields: {
1391
+ flat_amount_decimal: {
1392
+ kind: 'nullable',
1393
+ inner: {
1394
+ kind: 'decimal_string',
1395
+ },
1396
+ },
1397
+ unit_amount_decimal: {
1398
+ kind: 'nullable',
1399
+ inner: {
1400
+ kind: 'decimal_string',
1401
+ },
1402
+ },
1403
+ },
1404
+ },
1405
+ },
1406
+ },
1407
+ },
1408
+ },
1409
+ },
1410
+ },
1411
+ },
1412
+ },
1413
+ },
1414
+ },
1415
+ },
1416
+ },
1417
+ },
1418
+ },
1419
+ },
1420
+ },
1421
+ },
1422
+ },
1423
+ },
1424
+ },
1425
+ },
1426
+ },
1427
+ },
1428
+ });
1429
+ }
1430
+ /**
1431
+ * Converts a draft or open quote to stale.
1432
+ */
1433
+ markStale(id, params, options) {
1434
+ return this._makeRequest('POST', `/v1/quotes/${encodeURIComponent(id)}/mark_stale`, params, options, {
1435
+ responseSchema: {
1436
+ kind: 'object',
1437
+ fields: {
1438
+ computed: {
1439
+ kind: 'object',
1440
+ fields: {
1441
+ upfront: {
1442
+ kind: 'object',
1443
+ fields: {
1444
+ line_items: {
1445
+ kind: 'object',
1446
+ fields: {
1447
+ data: {
1448
+ kind: 'array',
1449
+ element: {
1450
+ kind: 'object',
1451
+ fields: {
1452
+ price: {
1453
+ kind: 'nullable',
1454
+ inner: {
1455
+ kind: 'object',
1456
+ fields: {
1457
+ currency_options: {
1458
+ kind: 'array',
1459
+ element: {
1460
+ kind: 'object',
1461
+ fields: {
1462
+ tiers: {
1463
+ kind: 'array',
1464
+ element: {
1465
+ kind: 'object',
1466
+ fields: {
1467
+ flat_amount_decimal: {
1468
+ kind: 'nullable',
1469
+ inner: {
1470
+ kind: 'decimal_string',
1471
+ },
1472
+ },
1473
+ unit_amount_decimal: {
1474
+ kind: 'nullable',
1475
+ inner: {
1476
+ kind: 'decimal_string',
1477
+ },
1478
+ },
1479
+ },
1480
+ },
1481
+ },
1482
+ unit_amount_decimal: {
1483
+ kind: 'nullable',
1484
+ inner: { kind: 'decimal_string' },
1485
+ },
1486
+ },
1487
+ },
1488
+ },
1489
+ tiers: {
1490
+ kind: 'array',
1491
+ element: {
1492
+ kind: 'object',
1493
+ fields: {
1494
+ flat_amount_decimal: {
1495
+ kind: 'nullable',
1496
+ inner: { kind: 'decimal_string' },
1497
+ },
1498
+ unit_amount_decimal: {
1499
+ kind: 'nullable',
1500
+ inner: { kind: 'decimal_string' },
1501
+ },
1502
+ },
1503
+ },
1504
+ },
1505
+ unit_amount_decimal: {
1506
+ kind: 'nullable',
1507
+ inner: { kind: 'decimal_string' },
1508
+ },
1509
+ },
1510
+ },
1511
+ },
1512
+ },
1513
+ },
1514
+ },
1515
+ },
1516
+ },
1517
+ },
1518
+ },
1519
+ },
1520
+ },
1521
+ status_details: {
1522
+ kind: 'nullable',
1523
+ inner: {
1524
+ kind: 'object',
1525
+ fields: {
1526
+ stale: {
1527
+ kind: 'object',
1528
+ fields: {
1529
+ last_reason: {
1530
+ kind: 'nullable',
1531
+ inner: {
1532
+ kind: 'object',
1533
+ fields: {
1534
+ subscription_changed: {
1535
+ kind: 'object',
1536
+ fields: {
1537
+ previous_subscription: {
1538
+ kind: 'nullable',
1539
+ inner: {
1540
+ kind: 'object',
1541
+ fields: {
1542
+ items: {
1543
+ kind: 'object',
1544
+ fields: {
1545
+ data: {
1546
+ kind: 'array',
1547
+ element: {
1548
+ kind: 'object',
1549
+ fields: {
1550
+ plan: {
1551
+ kind: 'object',
1552
+ fields: {
1553
+ amount_decimal: {
1554
+ kind: 'nullable',
1555
+ inner: {
1556
+ kind: 'decimal_string',
1557
+ },
1558
+ },
1559
+ tiers: {
1560
+ kind: 'array',
1561
+ element: {
1562
+ kind: 'object',
1563
+ fields: {
1564
+ flat_amount_decimal: {
1565
+ kind: 'nullable',
1566
+ inner: {
1567
+ kind: 'decimal_string',
1568
+ },
1569
+ },
1570
+ unit_amount_decimal: {
1571
+ kind: 'nullable',
1572
+ inner: {
1573
+ kind: 'decimal_string',
1574
+ },
1575
+ },
1576
+ },
1577
+ },
1578
+ },
1579
+ },
1580
+ },
1581
+ },
1582
+ },
1583
+ },
1584
+ },
1585
+ },
1586
+ },
1587
+ },
1588
+ },
1589
+ },
1590
+ },
1591
+ },
1592
+ },
1593
+ },
1594
+ },
1595
+ },
1596
+ },
1597
+ },
1598
+ },
1599
+ },
1600
+ },
1601
+ });
1602
+ }
1603
+ /**
1604
+ * Recompute the upcoming invoice estimate for the quote.
1605
+ */
1606
+ reestimate(id, params, options) {
1607
+ return this._makeRequest('POST', `/v1/quotes/${encodeURIComponent(id)}/reestimate`, params, options, {
1608
+ responseSchema: {
1609
+ kind: 'object',
1610
+ fields: {
1611
+ computed: {
1612
+ kind: 'object',
1613
+ fields: {
1614
+ upfront: {
1615
+ kind: 'object',
1616
+ fields: {
1617
+ line_items: {
1618
+ kind: 'object',
1619
+ fields: {
1620
+ data: {
1621
+ kind: 'array',
1622
+ element: {
1623
+ kind: 'object',
1624
+ fields: {
1625
+ price: {
1626
+ kind: 'nullable',
1627
+ inner: {
1628
+ kind: 'object',
1629
+ fields: {
1630
+ currency_options: {
1631
+ kind: 'array',
1632
+ element: {
1633
+ kind: 'object',
1634
+ fields: {
1635
+ tiers: {
1636
+ kind: 'array',
1637
+ element: {
1638
+ kind: 'object',
1639
+ fields: {
1640
+ flat_amount_decimal: {
1641
+ kind: 'nullable',
1642
+ inner: {
1643
+ kind: 'decimal_string',
1644
+ },
1645
+ },
1646
+ unit_amount_decimal: {
1647
+ kind: 'nullable',
1648
+ inner: {
1649
+ kind: 'decimal_string',
1650
+ },
1651
+ },
1652
+ },
1653
+ },
1654
+ },
1655
+ unit_amount_decimal: {
1656
+ kind: 'nullable',
1657
+ inner: { kind: 'decimal_string' },
1658
+ },
1659
+ },
1660
+ },
1661
+ },
1662
+ tiers: {
1663
+ kind: 'array',
1664
+ element: {
1665
+ kind: 'object',
1666
+ fields: {
1667
+ flat_amount_decimal: {
1668
+ kind: 'nullable',
1669
+ inner: { kind: 'decimal_string' },
1670
+ },
1671
+ unit_amount_decimal: {
1672
+ kind: 'nullable',
1673
+ inner: { kind: 'decimal_string' },
1674
+ },
1675
+ },
1676
+ },
1677
+ },
1678
+ unit_amount_decimal: {
1679
+ kind: 'nullable',
1680
+ inner: { kind: 'decimal_string' },
1681
+ },
1682
+ },
1683
+ },
1684
+ },
1685
+ },
1686
+ },
1687
+ },
1688
+ },
1689
+ },
1690
+ },
1691
+ },
1692
+ },
1693
+ },
1694
+ status_details: {
1695
+ kind: 'nullable',
1696
+ inner: {
1697
+ kind: 'object',
1698
+ fields: {
1699
+ stale: {
1700
+ kind: 'object',
1701
+ fields: {
1702
+ last_reason: {
1703
+ kind: 'nullable',
1704
+ inner: {
1705
+ kind: 'object',
1706
+ fields: {
1707
+ subscription_changed: {
1708
+ kind: 'object',
1709
+ fields: {
1710
+ previous_subscription: {
1711
+ kind: 'nullable',
1712
+ inner: {
1713
+ kind: 'object',
1714
+ fields: {
1715
+ items: {
1716
+ kind: 'object',
1717
+ fields: {
1718
+ data: {
1719
+ kind: 'array',
1720
+ element: {
1721
+ kind: 'object',
1722
+ fields: {
1723
+ plan: {
1724
+ kind: 'object',
1725
+ fields: {
1726
+ amount_decimal: {
1727
+ kind: 'nullable',
1728
+ inner: {
1729
+ kind: 'decimal_string',
1730
+ },
1731
+ },
1732
+ tiers: {
1733
+ kind: 'array',
1734
+ element: {
1735
+ kind: 'object',
1736
+ fields: {
1737
+ flat_amount_decimal: {
1738
+ kind: 'nullable',
1739
+ inner: {
1740
+ kind: 'decimal_string',
1741
+ },
1742
+ },
1743
+ unit_amount_decimal: {
1744
+ kind: 'nullable',
1745
+ inner: {
1746
+ kind: 'decimal_string',
1747
+ },
1748
+ },
1749
+ },
1750
+ },
1751
+ },
1752
+ },
1753
+ },
1754
+ },
1755
+ },
1756
+ },
1757
+ },
1758
+ },
1759
+ },
1760
+ },
1761
+ },
1762
+ },
1763
+ },
1764
+ },
1765
+ },
1766
+ },
1767
+ },
1768
+ },
1769
+ },
1770
+ },
1771
+ },
1772
+ },
1773
+ },
1774
+ });
1775
+ }
1776
+ /**
1777
+ * Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
1778
+ */
1779
+ pdf(id, params, options) {
1780
+ return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/pdf`, params, options, {
1781
+ apiBase: 'files',
1782
+ streaming: true,
1783
+ });
1784
+ }
1785
+ /**
1786
+ * Preview the invoice line items that would be generated by accepting the quote.
1787
+ */
1788
+ listPreviewInvoiceLines(quoteId, id, params, options) {
1789
+ return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(quoteId)}/preview_invoices/${encodeURIComponent(id)}/lines`, params, options, {
1790
+ methodType: 'list',
1791
+ responseSchema: {
1792
+ kind: 'object',
1793
+ fields: {
1794
+ data: {
1795
+ kind: 'array',
1796
+ element: {
1797
+ kind: 'object',
1798
+ fields: {
1799
+ pricing: {
1800
+ kind: 'nullable',
1801
+ inner: {
1802
+ kind: 'object',
1803
+ fields: {
1804
+ unit_amount_decimal: {
1805
+ kind: 'nullable',
1806
+ inner: { kind: 'decimal_string' },
1807
+ },
1808
+ },
1809
+ },
1810
+ },
1811
+ quantity_decimal: {
1812
+ kind: 'nullable',
1813
+ inner: { kind: 'decimal_string' },
1814
+ },
1815
+ },
1816
+ },
1817
+ },
1818
+ },
1819
+ },
1820
+ });
1821
+ }
1822
+ /**
1823
+ * When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.
1824
+ */
1825
+ listComputedUpfrontLineItems(id, params, options) {
1826
+ return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/computed_upfront_line_items`, params, options, {
1827
+ methodType: 'list',
1828
+ responseSchema: {
1829
+ kind: 'object',
1830
+ fields: {
1831
+ data: {
1832
+ kind: 'array',
1833
+ element: {
732
1834
  kind: 'object',
733
1835
  fields: {
734
1836
  price: {
@@ -794,6 +1896,14 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
794
1896
  },
795
1897
  });
796
1898
  }
1899
+ /**
1900
+ * Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
1901
+ */
1902
+ listLines(id, params, options) {
1903
+ return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/lines`, params, options, {
1904
+ methodType: 'list',
1905
+ });
1906
+ }
797
1907
  /**
798
1908
  * When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
799
1909
  */
@@ -871,6 +1981,64 @@ class QuoteResource extends StripeResource_js_1.StripeResource {
871
1981
  },
872
1982
  });
873
1983
  }
1984
+ /**
1985
+ * Preview the invoices that would be generated by accepting the quote.
1986
+ */
1987
+ listPreviewInvoices(id, params, options) {
1988
+ return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/preview_invoices`, params, options, {
1989
+ methodType: 'list',
1990
+ responseSchema: {
1991
+ kind: 'object',
1992
+ fields: {
1993
+ data: {
1994
+ kind: 'array',
1995
+ element: {
1996
+ kind: 'object',
1997
+ fields: {
1998
+ lines: {
1999
+ kind: 'object',
2000
+ fields: {
2001
+ data: {
2002
+ kind: 'array',
2003
+ element: {
2004
+ kind: 'object',
2005
+ fields: {
2006
+ pricing: {
2007
+ kind: 'nullable',
2008
+ inner: {
2009
+ kind: 'object',
2010
+ fields: {
2011
+ unit_amount_decimal: {
2012
+ kind: 'nullable',
2013
+ inner: { kind: 'decimal_string' },
2014
+ },
2015
+ },
2016
+ },
2017
+ },
2018
+ quantity_decimal: {
2019
+ kind: 'nullable',
2020
+ inner: { kind: 'decimal_string' },
2021
+ },
2022
+ },
2023
+ },
2024
+ },
2025
+ },
2026
+ },
2027
+ },
2028
+ },
2029
+ },
2030
+ },
2031
+ },
2032
+ });
2033
+ }
2034
+ /**
2035
+ * Preview the schedules that would be generated by accepting the quote
2036
+ */
2037
+ listPreviewSubscriptionSchedules(id, params, options) {
2038
+ return this._makeRequest('GET', `/v1/quotes/${encodeURIComponent(id)}/preview_subscription_schedules`, params, options, {
2039
+ methodType: 'list',
2040
+ });
2041
+ }
874
2042
  }
875
2043
  exports.QuoteResource = QuoteResource;
876
2044
  //# sourceMappingURL=Quotes.js.map