stripe 22.2.0 → 22.3.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 (789) hide show
  1. package/CHANGELOG.md +1753 -76
  2. package/README.md +57 -65
  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/RequestSender.d.ts +0 -1
  8. package/cjs/RequestSender.js +0 -8
  9. package/cjs/RequestSender.js.map +1 -1
  10. package/cjs/StripeEventNotificationHandler.d.ts +19 -0
  11. package/cjs/StripeEventNotificationHandler.js +148 -0
  12. package/cjs/StripeEventNotificationHandler.js.map +1 -0
  13. package/cjs/Types.d.ts +4 -2
  14. package/cjs/Types.js.map +1 -1
  15. package/cjs/apiVersion.d.ts +1 -2
  16. package/cjs/apiVersion.js +2 -3
  17. package/cjs/apiVersion.js.map +1 -1
  18. package/cjs/resources/AccountLinks.d.ts +1 -1
  19. package/cjs/resources/AccountNotices.d.ts +140 -0
  20. package/cjs/resources/AccountNotices.js +29 -0
  21. package/cjs/resources/AccountNotices.js.map +1 -0
  22. package/cjs/resources/AccountSessions.d.ts +262 -0
  23. package/cjs/resources/AccountSessions.js.map +1 -1
  24. package/cjs/resources/Accounts.d.ts +827 -3
  25. package/cjs/resources/Accounts.js +14 -0
  26. package/cjs/resources/Accounts.js.map +1 -1
  27. package/cjs/resources/Balance.d.ts +67 -0
  28. package/cjs/resources/BankAccounts.d.ts +2 -2
  29. package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
  30. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +84 -0
  31. package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
  32. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  33. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  34. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
  35. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  36. package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
  37. package/cjs/resources/Billing/Analytics/index.js +13 -0
  38. package/cjs/resources/Billing/Analytics/index.js.map +1 -0
  39. package/cjs/resources/Billing/index.d.ts +3 -0
  40. package/cjs/resources/Billing/index.js +2 -0
  41. package/cjs/resources/Billing/index.js.map +1 -1
  42. package/cjs/resources/Capabilities.d.ts +2 -2
  43. package/cjs/resources/Capital/FinancingOffers.d.ts +191 -0
  44. package/cjs/resources/Capital/FinancingOffers.js +30 -0
  45. package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
  46. package/cjs/resources/Capital/FinancingSummary.d.ts +98 -0
  47. package/cjs/resources/Capital/FinancingSummary.js +15 -0
  48. package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
  49. package/cjs/resources/Capital/FinancingTransactions.d.ts +143 -0
  50. package/cjs/resources/Capital/FinancingTransactions.js +24 -0
  51. package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
  52. package/cjs/resources/Capital/index.d.ts +25 -0
  53. package/cjs/resources/Capital/index.js +17 -0
  54. package/cjs/resources/Capital/index.js.map +1 -0
  55. package/cjs/resources/Cards.d.ts +4 -0
  56. package/cjs/resources/Charges.d.ts +3064 -70
  57. package/cjs/resources/Checkout/Sessions.d.ts +390 -4
  58. package/cjs/resources/ConfirmationTokens.d.ts +67 -1
  59. package/cjs/resources/Coupons.d.ts +53 -0
  60. package/cjs/resources/Coupons.js +13 -0
  61. package/cjs/resources/Coupons.js.map +1 -1
  62. package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
  63. package/cjs/resources/CreditNotes.d.ts +1 -1
  64. package/cjs/resources/CustomerSessions.d.ts +68 -0
  65. package/cjs/resources/Customers.d.ts +7 -1
  66. package/cjs/resources/Customers.js +14 -0
  67. package/cjs/resources/Customers.js.map +1 -1
  68. package/cjs/resources/Disputes.d.ts +29 -0
  69. package/cjs/resources/Events.d.ts +547 -2
  70. package/cjs/resources/ExternalAccounts.d.ts +212 -1
  71. package/cjs/resources/ExternalAccounts.js +44 -0
  72. package/cjs/resources/ExternalAccounts.js.map +1 -1
  73. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  74. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
  75. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  76. package/cjs/resources/FinancialConnections/Accounts.d.ts +74 -4
  77. package/cjs/resources/FinancialConnections/Accounts.js +8 -0
  78. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  79. package/cjs/resources/FinancialConnections/Authorizations.d.ts +87 -0
  80. package/cjs/resources/FinancialConnections/Authorizations.js +15 -0
  81. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
  82. package/cjs/resources/FinancialConnections/Institutions.d.ts +101 -0
  83. package/cjs/resources/FinancialConnections/Institutions.js +23 -0
  84. package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
  85. package/cjs/resources/FinancialConnections/Sessions.d.ts +155 -7
  86. package/cjs/resources/FinancialConnections/index.d.ts +21 -6
  87. package/cjs/resources/FinancialConnections/index.js +4 -0
  88. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  89. package/cjs/resources/FxQuotes.d.ts +212 -0
  90. package/cjs/resources/FxQuotes.js +29 -0
  91. package/cjs/resources/FxQuotes.js.map +1 -0
  92. package/cjs/resources/InvoiceItems.d.ts +85 -0
  93. package/cjs/resources/InvoiceItems.js.map +1 -1
  94. package/cjs/resources/InvoiceLineItems.d.ts +40 -2
  95. package/cjs/resources/Invoices.d.ts +1337 -19
  96. package/cjs/resources/Invoices.js +41 -0
  97. package/cjs/resources/Invoices.js.map +1 -1
  98. package/cjs/resources/Issuing/Cardholders.d.ts +2 -1
  99. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -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 +95 -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/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 +85 -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 +9 -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 +33 -1
  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 +4693 -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 +13239 -2321
  128. package/cjs/resources/PaymentIntents.js +27 -0
  129. package/cjs/resources/PaymentIntents.js.map +1 -1
  130. package/cjs/resources/PaymentLinks.d.ts +19 -3
  131. package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
  132. package/cjs/resources/PaymentMethods.d.ts +151 -3
  133. package/cjs/resources/PaymentMethods.js.map +1 -1
  134. package/cjs/resources/PaymentRecords.d.ts +82 -0
  135. package/cjs/resources/Persons.d.ts +2 -2
  136. package/cjs/resources/Plans.d.ts +16 -0
  137. package/cjs/resources/Prices.d.ts +52 -0
  138. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
  139. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
  140. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  141. package/cjs/resources/Privacy/RedactionJobs.d.ts +229 -0
  142. package/cjs/resources/Privacy/RedactionJobs.js +73 -0
  143. package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
  144. package/cjs/resources/Privacy/index.d.ts +22 -0
  145. package/cjs/resources/Privacy/index.js +13 -0
  146. package/cjs/resources/Privacy/index.js.map +1 -0
  147. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +127 -0
  148. package/cjs/resources/ProductCatalog/TrialOffers.js +15 -0
  149. package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
  150. package/cjs/resources/ProductCatalog/index.d.ts +12 -0
  151. package/cjs/resources/ProductCatalog/index.js +13 -0
  152. package/cjs/resources/ProductCatalog/index.js.map +1 -0
  153. package/cjs/resources/Products.d.ts +42 -0
  154. package/cjs/resources/PromotionCodes.d.ts +12 -0
  155. package/cjs/resources/PromotionCodes.js +27 -0
  156. package/cjs/resources/PromotionCodes.js.map +1 -1
  157. package/cjs/resources/QuoteLines.d.ts +507 -0
  158. package/cjs/resources/QuoteLines.js +4 -0
  159. package/cjs/resources/QuoteLines.js.map +1 -0
  160. package/cjs/resources/QuotePreviewInvoices.d.ts +1120 -0
  161. package/cjs/resources/QuotePreviewInvoices.js +4 -0
  162. package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
  163. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +737 -0
  164. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
  165. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  166. package/cjs/resources/Quotes.d.ts +2266 -57
  167. package/cjs/resources/Quotes.js +1184 -16
  168. package/cjs/resources/Quotes.js.map +1 -1
  169. package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
  170. package/cjs/resources/Refunds.d.ts +11 -0
  171. package/cjs/resources/Reserve/Holds.d.ts +53 -1
  172. package/cjs/resources/Reserve/Holds.js +19 -0
  173. package/cjs/resources/Reserve/Holds.js.map +1 -1
  174. package/cjs/resources/Reserve/Plans.d.ts +16 -0
  175. package/cjs/resources/Reserve/Plans.js +11 -0
  176. package/cjs/resources/Reserve/Plans.js.map +1 -1
  177. package/cjs/resources/Reserve/Releases.d.ts +41 -1
  178. package/cjs/resources/Reserve/Releases.js +19 -0
  179. package/cjs/resources/Reserve/Releases.js.map +1 -1
  180. package/cjs/resources/Reserve/index.d.ts +14 -3
  181. package/cjs/resources/Reserve/index.js +10 -2
  182. package/cjs/resources/Reserve/index.js.map +1 -1
  183. package/cjs/resources/SetupAttempts.d.ts +26 -1
  184. package/cjs/resources/SetupIntents.d.ts +330 -11
  185. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1095 -0
  186. package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
  187. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
  188. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +308 -0
  189. package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
  190. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
  191. package/cjs/resources/SharedPayment/index.d.ts +19 -0
  192. package/cjs/resources/SharedPayment/index.js +15 -0
  193. package/cjs/resources/SharedPayment/index.js.map +1 -0
  194. package/cjs/resources/Sources.d.ts +16 -1
  195. package/cjs/resources/SubscriptionItems.d.ts +143 -0
  196. package/cjs/resources/SubscriptionSchedules.d.ts +1152 -0
  197. package/cjs/resources/SubscriptionSchedules.js +6 -0
  198. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  199. package/cjs/resources/Subscriptions.d.ts +571 -6
  200. package/cjs/resources/Subscriptions.js +145 -0
  201. package/cjs/resources/Subscriptions.js.map +1 -1
  202. package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -2
  203. package/cjs/resources/Tax/Calculations.d.ts +7 -3
  204. package/cjs/resources/Tax/Forms.d.ts +230 -0
  205. package/cjs/resources/Tax/Forms.js +32 -0
  206. package/cjs/resources/Tax/Forms.js.map +1 -0
  207. package/cjs/resources/Tax/Locations.d.ts +108 -0
  208. package/cjs/resources/Tax/Locations.js +33 -0
  209. package/cjs/resources/Tax/Locations.js.map +1 -0
  210. package/cjs/resources/Tax/Registrations.d.ts +138 -2
  211. package/cjs/resources/Tax/Transactions.d.ts +2 -2
  212. package/cjs/resources/Tax/index.d.ts +27 -13
  213. package/cjs/resources/Tax/index.js +4 -0
  214. package/cjs/resources/Tax/index.js.map +1 -1
  215. package/cjs/resources/TaxCodes.d.ts +15 -0
  216. package/cjs/resources/Terminal/Configurations.d.ts +27 -0
  217. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +52 -0
  218. package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
  219. package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
  220. package/cjs/resources/Terminal/Readers.d.ts +17 -1
  221. package/cjs/resources/Terminal/index.d.ts +5 -0
  222. package/cjs/resources/Terminal/index.js +2 -0
  223. package/cjs/resources/Terminal/index.js.map +1 -1
  224. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +78 -1
  225. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  226. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
  227. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  228. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  229. package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
  230. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  231. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  232. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  233. package/cjs/resources/TestHelpers/index.d.ts +3 -0
  234. package/cjs/resources/TestHelpers/index.js +6 -4
  235. package/cjs/resources/TestHelpers/index.js.map +1 -1
  236. package/cjs/resources/Transfers.d.ts +8 -0
  237. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  238. package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
  239. package/cjs/resources/Treasury/OutboundPayments.d.ts +8 -0
  240. package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
  241. package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
  242. package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
  243. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
  244. package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
  245. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  246. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  247. package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
  248. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  249. package/cjs/resources/V2/Billing/BillSettings.d.ts +284 -0
  250. package/cjs/resources/V2/Billing/BillSettings.js +41 -0
  251. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
  252. package/cjs/resources/V2/Billing/Cadences.d.ts +951 -0
  253. package/cjs/resources/V2/Billing/Cadences.js +198 -0
  254. package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
  255. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
  256. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
  257. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  258. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  259. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
  260. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  261. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  262. package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
  263. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
  264. package/cjs/resources/V2/Billing/Profiles.d.ts +166 -0
  265. package/cjs/resources/V2/Billing/Profiles.js +35 -0
  266. package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
  267. package/cjs/resources/V2/Billing/index.d.ts +45 -6
  268. package/cjs/resources/V2/Billing/index.js +8 -0
  269. package/cjs/resources/V2/Billing/index.js.map +1 -1
  270. package/cjs/resources/V2/Core/AccountLinks.d.ts +4 -4
  271. package/cjs/resources/V2/Core/AccountTokens.d.ts +10 -0
  272. package/cjs/resources/V2/Core/Accounts.d.ts +1177 -167
  273. package/cjs/resources/V2/Core/BatchJobs.d.ts +373 -0
  274. package/cjs/resources/V2/Core/BatchJobs.js +225 -0
  275. package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
  276. package/cjs/resources/V2/Core/Events.d.ts +1123 -4
  277. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
  278. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +54 -0
  279. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
  280. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
  281. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +62 -0
  282. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
  283. package/cjs/resources/V2/Core/Vault/index.d.ts +28 -0
  284. package/cjs/resources/V2/Core/Vault/index.js +15 -0
  285. package/cjs/resources/V2/Core/Vault/index.js.map +1 -0
  286. package/cjs/resources/V2/Core/index.d.ts +19 -9
  287. package/cjs/resources/V2/Core/index.js +4 -0
  288. package/cjs/resources/V2/Core/index.js.map +1 -1
  289. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
  290. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  291. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  292. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  293. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  294. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  295. package/cjs/resources/V2/Data/index.d.ts +10 -0
  296. package/cjs/resources/V2/Data/index.js +13 -0
  297. package/cjs/resources/V2/Data/index.js.map +1 -0
  298. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  299. package/cjs/resources/V2/EventMisc.js +2 -0
  300. package/cjs/resources/V2/EventMisc.js.map +1 -0
  301. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
  302. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  303. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  304. package/cjs/resources/V2/Extend/Workflows.d.ts +123 -0
  305. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  306. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  307. package/cjs/resources/V2/Extend/index.d.ts +20 -0
  308. package/cjs/resources/V2/Extend/index.js +15 -0
  309. package/cjs/resources/V2/Extend/index.js.map +1 -0
  310. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
  311. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +4 -0
  312. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
  313. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  314. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +4 -0
  315. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  316. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +214 -0
  317. package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
  318. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  319. package/cjs/resources/V2/Iam/index.d.ts +13 -0
  320. package/cjs/resources/V2/Iam/index.js +13 -0
  321. package/cjs/resources/V2/Iam/index.js.map +1 -0
  322. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +135 -0
  323. package/cjs/resources/V2/MoneyManagement/Adjustments.js +23 -0
  324. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
  325. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +244 -0
  326. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +44 -0
  327. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
  328. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +215 -0
  329. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +31 -0
  330. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
  331. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
  332. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +30 -0
  333. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
  334. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +212 -0
  335. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +22 -0
  336. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  337. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +388 -0
  338. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +41 -0
  339. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
  340. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +300 -0
  341. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +49 -0
  342. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
  343. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +330 -0
  344. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +39 -0
  345. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  346. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +243 -0
  347. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +44 -0
  348. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
  349. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
  350. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +17 -0
  351. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
  352. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +295 -0
  353. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +23 -0
  354. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
  355. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +161 -0
  356. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
  357. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  358. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +165 -0
  359. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +23 -0
  360. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
  361. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +196 -0
  362. package/cjs/resources/V2/MoneyManagement/Transactions.js +23 -0
  363. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -0
  364. package/cjs/resources/V2/MoneyManagement/index.d.ts +104 -0
  365. package/cjs/resources/V2/MoneyManagement/index.js +39 -0
  366. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -0
  367. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -0
  368. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  369. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  370. package/cjs/resources/V2/Network/index.d.ts +13 -0
  371. package/cjs/resources/V2/Network/index.js +13 -0
  372. package/cjs/resources/V2/Network/index.js.map +1 -0
  373. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
  374. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  375. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  376. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  377. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  378. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  379. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
  380. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +23 -0
  381. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
  382. package/cjs/resources/V2/TestHelpers/index.d.ts +8 -0
  383. package/cjs/resources/V2/TestHelpers/index.js +13 -0
  384. package/cjs/resources/V2/TestHelpers/index.js.map +1 -0
  385. package/cjs/resources/V2/index.d.ts +27 -0
  386. package/cjs/resources/V2/index.js +14 -0
  387. package/cjs/resources/V2/index.js.map +1 -1
  388. package/cjs/resources/WebhookEndpoints.d.ts +2 -2
  389. package/cjs/resources.d.ts +10 -0
  390. package/cjs/resources.js +146 -10
  391. package/cjs/resources.js.map +1 -1
  392. package/cjs/stripe.core.d.ts +61 -24
  393. package/cjs/stripe.core.js +55 -31
  394. package/cjs/stripe.core.js.map +1 -1
  395. package/esm/Error.d.ts +50 -0
  396. package/esm/Error.js +109 -0
  397. package/esm/Error.js.map +1 -1
  398. package/esm/RequestSender.d.ts +0 -1
  399. package/esm/RequestSender.js +0 -8
  400. package/esm/RequestSender.js.map +1 -1
  401. package/esm/StripeEventNotificationHandler.d.ts +19 -0
  402. package/esm/StripeEventNotificationHandler.js +144 -0
  403. package/esm/StripeEventNotificationHandler.js.map +1 -0
  404. package/esm/Types.d.ts +4 -2
  405. package/esm/Types.js.map +1 -1
  406. package/esm/apiVersion.d.ts +1 -2
  407. package/esm/apiVersion.js +1 -2
  408. package/esm/apiVersion.js.map +1 -1
  409. package/esm/resources/AccountLinks.d.ts +1 -1
  410. package/esm/resources/AccountNotices.d.ts +140 -0
  411. package/esm/resources/AccountNotices.js +25 -0
  412. package/esm/resources/AccountNotices.js.map +1 -0
  413. package/esm/resources/AccountSessions.d.ts +262 -0
  414. package/esm/resources/AccountSessions.js.map +1 -1
  415. package/esm/resources/Accounts.d.ts +827 -3
  416. package/esm/resources/Accounts.js +14 -0
  417. package/esm/resources/Accounts.js.map +1 -1
  418. package/esm/resources/Balance.d.ts +67 -0
  419. package/esm/resources/BankAccounts.d.ts +2 -2
  420. package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
  421. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +84 -0
  422. package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
  423. package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  424. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  425. package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
  426. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  427. package/esm/resources/Billing/Analytics/index.d.ts +15 -0
  428. package/esm/resources/Billing/Analytics/index.js +9 -0
  429. package/esm/resources/Billing/Analytics/index.js.map +1 -0
  430. package/esm/resources/Billing/index.d.ts +3 -0
  431. package/esm/resources/Billing/index.js +2 -0
  432. package/esm/resources/Billing/index.js.map +1 -1
  433. package/esm/resources/Capabilities.d.ts +2 -2
  434. package/esm/resources/Capital/FinancingOffers.d.ts +191 -0
  435. package/esm/resources/Capital/FinancingOffers.js +26 -0
  436. package/esm/resources/Capital/FinancingOffers.js.map +1 -0
  437. package/esm/resources/Capital/FinancingSummary.d.ts +98 -0
  438. package/esm/resources/Capital/FinancingSummary.js +11 -0
  439. package/esm/resources/Capital/FinancingSummary.js.map +1 -0
  440. package/esm/resources/Capital/FinancingTransactions.d.ts +143 -0
  441. package/esm/resources/Capital/FinancingTransactions.js +20 -0
  442. package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
  443. package/esm/resources/Capital/index.d.ts +25 -0
  444. package/esm/resources/Capital/index.js +13 -0
  445. package/esm/resources/Capital/index.js.map +1 -0
  446. package/esm/resources/Cards.d.ts +4 -0
  447. package/esm/resources/Charges.d.ts +3064 -70
  448. package/esm/resources/Checkout/Sessions.d.ts +390 -4
  449. package/esm/resources/ConfirmationTokens.d.ts +67 -1
  450. package/esm/resources/Coupons.d.ts +53 -0
  451. package/esm/resources/Coupons.js +13 -0
  452. package/esm/resources/Coupons.js.map +1 -1
  453. package/esm/resources/CreditNoteLineItems.d.ts +15 -1
  454. package/esm/resources/CreditNotes.d.ts +1 -1
  455. package/esm/resources/CustomerSessions.d.ts +68 -0
  456. package/esm/resources/Customers.d.ts +7 -1
  457. package/esm/resources/Customers.js +14 -0
  458. package/esm/resources/Customers.js.map +1 -1
  459. package/esm/resources/Disputes.d.ts +29 -0
  460. package/esm/resources/Events.d.ts +547 -2
  461. package/esm/resources/ExternalAccounts.d.ts +212 -1
  462. package/esm/resources/ExternalAccounts.js +42 -1
  463. package/esm/resources/ExternalAccounts.js.map +1 -1
  464. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  465. package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
  466. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  467. package/esm/resources/FinancialConnections/Accounts.d.ts +74 -4
  468. package/esm/resources/FinancialConnections/Accounts.js +8 -0
  469. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  470. package/esm/resources/FinancialConnections/Authorizations.d.ts +87 -0
  471. package/esm/resources/FinancialConnections/Authorizations.js +11 -0
  472. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
  473. package/esm/resources/FinancialConnections/Institutions.d.ts +101 -0
  474. package/esm/resources/FinancialConnections/Institutions.js +19 -0
  475. package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
  476. package/esm/resources/FinancialConnections/Sessions.d.ts +155 -7
  477. package/esm/resources/FinancialConnections/index.d.ts +21 -6
  478. package/esm/resources/FinancialConnections/index.js +4 -0
  479. package/esm/resources/FinancialConnections/index.js.map +1 -1
  480. package/esm/resources/FxQuotes.d.ts +212 -0
  481. package/esm/resources/FxQuotes.js +25 -0
  482. package/esm/resources/FxQuotes.js.map +1 -0
  483. package/esm/resources/InvoiceItems.d.ts +85 -0
  484. package/esm/resources/InvoiceItems.js.map +1 -1
  485. package/esm/resources/InvoiceLineItems.d.ts +40 -2
  486. package/esm/resources/Invoices.d.ts +1337 -19
  487. package/esm/resources/Invoices.js +41 -0
  488. package/esm/resources/Invoices.js.map +1 -1
  489. package/esm/resources/Issuing/Cardholders.d.ts +2 -1
  490. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
  491. package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
  492. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  493. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
  494. package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
  495. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  496. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  497. package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
  498. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  499. package/esm/resources/Issuing/Settlements.d.ts +85 -0
  500. package/esm/resources/Issuing/Settlements.js +3 -0
  501. package/esm/resources/Issuing/Settlements.js.map +1 -0
  502. package/esm/resources/Issuing/Transactions.d.ts +9 -0
  503. package/esm/resources/Issuing/Transactions.js.map +1 -1
  504. package/esm/resources/Issuing/index.d.ts +47 -22
  505. package/esm/resources/Issuing/index.js +6 -0
  506. package/esm/resources/Issuing/index.js.map +1 -1
  507. package/esm/resources/LineItems.d.ts +29 -2
  508. package/esm/resources/Mandates.d.ts +33 -1
  509. package/esm/resources/Mandates.js +8 -0
  510. package/esm/resources/Mandates.js.map +1 -1
  511. package/esm/resources/Margins.d.ts +115 -0
  512. package/esm/resources/Margins.js +31 -0
  513. package/esm/resources/Margins.js.map +1 -0
  514. package/esm/resources/Orders.d.ts +4693 -0
  515. package/esm/resources/Orders.js +453 -0
  516. package/esm/resources/Orders.js.map +1 -0
  517. package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
  518. package/esm/resources/PaymentIntents.d.ts +13239 -2321
  519. package/esm/resources/PaymentIntents.js +27 -0
  520. package/esm/resources/PaymentIntents.js.map +1 -1
  521. package/esm/resources/PaymentLinks.d.ts +19 -3
  522. package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
  523. package/esm/resources/PaymentMethods.d.ts +151 -3
  524. package/esm/resources/PaymentMethods.js.map +1 -1
  525. package/esm/resources/PaymentRecords.d.ts +82 -0
  526. package/esm/resources/Persons.d.ts +2 -2
  527. package/esm/resources/Plans.d.ts +16 -0
  528. package/esm/resources/Prices.d.ts +52 -0
  529. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
  530. package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
  531. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  532. package/esm/resources/Privacy/RedactionJobs.d.ts +229 -0
  533. package/esm/resources/Privacy/RedactionJobs.js +69 -0
  534. package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
  535. package/esm/resources/Privacy/index.d.ts +22 -0
  536. package/esm/resources/Privacy/index.js +9 -0
  537. package/esm/resources/Privacy/index.js.map +1 -0
  538. package/esm/resources/ProductCatalog/TrialOffers.d.ts +127 -0
  539. package/esm/resources/ProductCatalog/TrialOffers.js +11 -0
  540. package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
  541. package/esm/resources/ProductCatalog/index.d.ts +12 -0
  542. package/esm/resources/ProductCatalog/index.js +9 -0
  543. package/esm/resources/ProductCatalog/index.js.map +1 -0
  544. package/esm/resources/Products.d.ts +42 -0
  545. package/esm/resources/PromotionCodes.d.ts +12 -0
  546. package/esm/resources/PromotionCodes.js +27 -0
  547. package/esm/resources/PromotionCodes.js.map +1 -1
  548. package/esm/resources/QuoteLines.d.ts +507 -0
  549. package/esm/resources/QuoteLines.js +3 -0
  550. package/esm/resources/QuoteLines.js.map +1 -0
  551. package/esm/resources/QuotePreviewInvoices.d.ts +1120 -0
  552. package/esm/resources/QuotePreviewInvoices.js +3 -0
  553. package/esm/resources/QuotePreviewInvoices.js.map +1 -0
  554. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +737 -0
  555. package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
  556. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  557. package/esm/resources/Quotes.d.ts +2266 -57
  558. package/esm/resources/Quotes.js +1184 -16
  559. package/esm/resources/Quotes.js.map +1 -1
  560. package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
  561. package/esm/resources/Refunds.d.ts +11 -0
  562. package/esm/resources/Reserve/Holds.d.ts +53 -1
  563. package/esm/resources/Reserve/Holds.js +17 -1
  564. package/esm/resources/Reserve/Holds.js.map +1 -1
  565. package/esm/resources/Reserve/Plans.d.ts +16 -0
  566. package/esm/resources/Reserve/Plans.js +9 -1
  567. package/esm/resources/Reserve/Plans.js.map +1 -1
  568. package/esm/resources/Reserve/Releases.d.ts +41 -1
  569. package/esm/resources/Reserve/Releases.js +17 -1
  570. package/esm/resources/Reserve/Releases.js.map +1 -1
  571. package/esm/resources/Reserve/index.d.ts +14 -3
  572. package/esm/resources/Reserve/index.js +10 -2
  573. package/esm/resources/Reserve/index.js.map +1 -1
  574. package/esm/resources/SetupAttempts.d.ts +26 -1
  575. package/esm/resources/SetupIntents.d.ts +330 -11
  576. package/esm/resources/SharedPayment/GrantedTokens.d.ts +1095 -0
  577. package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
  578. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
  579. package/esm/resources/SharedPayment/IssuedTokens.d.ts +308 -0
  580. package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
  581. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
  582. package/esm/resources/SharedPayment/index.d.ts +19 -0
  583. package/esm/resources/SharedPayment/index.js +11 -0
  584. package/esm/resources/SharedPayment/index.js.map +1 -0
  585. package/esm/resources/Sources.d.ts +16 -1
  586. package/esm/resources/SubscriptionItems.d.ts +143 -0
  587. package/esm/resources/SubscriptionSchedules.d.ts +1152 -0
  588. package/esm/resources/SubscriptionSchedules.js +6 -0
  589. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  590. package/esm/resources/Subscriptions.d.ts +571 -6
  591. package/esm/resources/Subscriptions.js +145 -0
  592. package/esm/resources/Subscriptions.js.map +1 -1
  593. package/esm/resources/Tax/CalculationLineItems.d.ts +6 -2
  594. package/esm/resources/Tax/Calculations.d.ts +7 -3
  595. package/esm/resources/Tax/Forms.d.ts +230 -0
  596. package/esm/resources/Tax/Forms.js +28 -0
  597. package/esm/resources/Tax/Forms.js.map +1 -0
  598. package/esm/resources/Tax/Locations.d.ts +108 -0
  599. package/esm/resources/Tax/Locations.js +29 -0
  600. package/esm/resources/Tax/Locations.js.map +1 -0
  601. package/esm/resources/Tax/Registrations.d.ts +138 -2
  602. package/esm/resources/Tax/Transactions.d.ts +2 -2
  603. package/esm/resources/Tax/index.d.ts +27 -13
  604. package/esm/resources/Tax/index.js +4 -0
  605. package/esm/resources/Tax/index.js.map +1 -1
  606. package/esm/resources/TaxCodes.d.ts +15 -0
  607. package/esm/resources/Terminal/Configurations.d.ts +27 -0
  608. package/esm/resources/Terminal/ReaderCollectedData.d.ts +52 -0
  609. package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
  610. package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
  611. package/esm/resources/Terminal/Readers.d.ts +17 -1
  612. package/esm/resources/Terminal/index.d.ts +5 -0
  613. package/esm/resources/Terminal/index.js +2 -0
  614. package/esm/resources/Terminal/index.js.map +1 -1
  615. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +78 -1
  616. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  617. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
  618. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  619. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  620. package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
  621. package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  622. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  623. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  624. package/esm/resources/TestHelpers/index.d.ts +3 -0
  625. package/esm/resources/TestHelpers/index.js +2 -0
  626. package/esm/resources/TestHelpers/index.js.map +1 -1
  627. package/esm/resources/Transfers.d.ts +8 -0
  628. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  629. package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
  630. package/esm/resources/Treasury/OutboundPayments.d.ts +8 -0
  631. package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
  632. package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
  633. package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
  634. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
  635. package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
  636. package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  637. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  638. package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
  639. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  640. package/esm/resources/V2/Billing/BillSettings.d.ts +284 -0
  641. package/esm/resources/V2/Billing/BillSettings.js +37 -0
  642. package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
  643. package/esm/resources/V2/Billing/Cadences.d.ts +951 -0
  644. package/esm/resources/V2/Billing/Cadences.js +194 -0
  645. package/esm/resources/V2/Billing/Cadences.js.map +1 -0
  646. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
  647. package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
  648. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  649. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  650. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
  651. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  652. package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  653. package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
  654. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
  655. package/esm/resources/V2/Billing/Profiles.d.ts +166 -0
  656. package/esm/resources/V2/Billing/Profiles.js +31 -0
  657. package/esm/resources/V2/Billing/Profiles.js.map +1 -0
  658. package/esm/resources/V2/Billing/index.d.ts +45 -6
  659. package/esm/resources/V2/Billing/index.js +8 -0
  660. package/esm/resources/V2/Billing/index.js.map +1 -1
  661. package/esm/resources/V2/Core/AccountLinks.d.ts +4 -4
  662. package/esm/resources/V2/Core/AccountTokens.d.ts +10 -0
  663. package/esm/resources/V2/Core/Accounts.d.ts +1177 -167
  664. package/esm/resources/V2/Core/BatchJobs.d.ts +373 -0
  665. package/esm/resources/V2/Core/BatchJobs.js +221 -0
  666. package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
  667. package/esm/resources/V2/Core/Events.d.ts +1123 -4
  668. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
  669. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +50 -0
  670. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
  671. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
  672. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +58 -0
  673. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
  674. package/esm/resources/V2/Core/Vault/index.d.ts +28 -0
  675. package/esm/resources/V2/Core/Vault/index.js +11 -0
  676. package/esm/resources/V2/Core/Vault/index.js.map +1 -0
  677. package/esm/resources/V2/Core/index.d.ts +19 -9
  678. package/esm/resources/V2/Core/index.js +4 -0
  679. package/esm/resources/V2/Core/index.js.map +1 -1
  680. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
  681. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  682. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  683. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  684. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  685. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  686. package/esm/resources/V2/Data/index.d.ts +10 -0
  687. package/esm/resources/V2/Data/index.js +9 -0
  688. package/esm/resources/V2/Data/index.js.map +1 -0
  689. package/esm/resources/V2/EventMisc.d.ts +0 -0
  690. package/esm/resources/V2/EventMisc.js +2 -0
  691. package/esm/resources/V2/EventMisc.js.map +1 -0
  692. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
  693. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  694. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  695. package/esm/resources/V2/Extend/Workflows.d.ts +123 -0
  696. package/esm/resources/V2/Extend/Workflows.js +26 -0
  697. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  698. package/esm/resources/V2/Extend/index.d.ts +20 -0
  699. package/esm/resources/V2/Extend/index.js +11 -0
  700. package/esm/resources/V2/Extend/index.js.map +1 -0
  701. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
  702. package/esm/resources/V2/FinancialAddressCreditSimulations.js +3 -0
  703. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
  704. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  705. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +3 -0
  706. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  707. package/esm/resources/V2/Iam/ActivityLogs.d.ts +214 -0
  708. package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
  709. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  710. package/esm/resources/V2/Iam/index.d.ts +13 -0
  711. package/esm/resources/V2/Iam/index.js +9 -0
  712. package/esm/resources/V2/Iam/index.js.map +1 -0
  713. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +135 -0
  714. package/esm/resources/V2/MoneyManagement/Adjustments.js +19 -0
  715. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
  716. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +244 -0
  717. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +40 -0
  718. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
  719. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +215 -0
  720. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +27 -0
  721. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
  722. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
  723. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +26 -0
  724. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
  725. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +212 -0
  726. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +18 -0
  727. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  728. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +388 -0
  729. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +37 -0
  730. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
  731. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +300 -0
  732. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +45 -0
  733. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
  734. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +330 -0
  735. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +35 -0
  736. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  737. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +243 -0
  738. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +40 -0
  739. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
  740. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
  741. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +13 -0
  742. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
  743. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +295 -0
  744. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +19 -0
  745. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
  746. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +161 -0
  747. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
  748. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  749. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +165 -0
  750. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +19 -0
  751. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
  752. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +196 -0
  753. package/esm/resources/V2/MoneyManagement/Transactions.js +19 -0
  754. package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -0
  755. package/esm/resources/V2/MoneyManagement/index.d.ts +104 -0
  756. package/esm/resources/V2/MoneyManagement/index.js +35 -0
  757. package/esm/resources/V2/MoneyManagement/index.js.map +1 -0
  758. package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -0
  759. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  760. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  761. package/esm/resources/V2/Network/index.d.ts +13 -0
  762. package/esm/resources/V2/Network/index.js +9 -0
  763. package/esm/resources/V2/Network/index.js.map +1 -0
  764. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
  765. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  766. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  767. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  768. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  769. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  770. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
  771. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +19 -0
  772. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
  773. package/esm/resources/V2/TestHelpers/index.d.ts +8 -0
  774. package/esm/resources/V2/TestHelpers/index.js +9 -0
  775. package/esm/resources/V2/TestHelpers/index.js.map +1 -0
  776. package/esm/resources/V2/index.d.ts +27 -0
  777. package/esm/resources/V2/index.js +14 -0
  778. package/esm/resources/V2/index.js.map +1 -1
  779. package/esm/resources/WebhookEndpoints.d.ts +2 -2
  780. package/esm/resources.d.ts +10 -0
  781. package/esm/resources.js +131 -0
  782. package/esm/resources.js.map +1 -1
  783. package/esm/stripe.core.d.ts +61 -24
  784. package/esm/stripe.core.js +25 -1
  785. package/esm/stripe.core.js.map +1 -1
  786. package/esm/stripe.esm.node.d.ts +62 -24
  787. package/esm/stripe.esm.node.js +25 -1
  788. package/esm/stripe.esm.node.js.map +1 -1
  789. package/package.json +1 -1
@@ -78,6 +78,20 @@ class AccountResource extends StripeResource_js_1.StripeResource {
78
78
  reject(id, params, options) {
79
79
  return this._makeRequest('POST', `/v1/accounts/${id}/reject`, params, options);
80
80
  }
81
+ serializeBatchUpdate(account, params = {}, options = {}) {
82
+ const itemId = this._stripe._platformFunctions.uuid4();
83
+ const stripeVersion = options.apiVersion || this._stripe.getApiField('version');
84
+ const entry = {
85
+ id: itemId,
86
+ params: params,
87
+ stripe_version: stripeVersion,
88
+ };
89
+ entry.path_params = { account: account };
90
+ if (options.stripeContext) {
91
+ entry.context = options.stripeContext;
92
+ }
93
+ return JSON.stringify(entry);
94
+ }
81
95
  /**
82
96
  * Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
83
97
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Accounts.js","sourceRoot":"","sources":["../../src/resources/Accounts.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"Accounts.js","sourceRoot":"","sources":["../../src/resources/Accounts.ts"],"names":[],"mappings":"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"}
@@ -34,6 +34,7 @@ export interface Balance {
34
34
  */
35
35
  pending: Array<Balance.Pending>;
36
36
  refund_and_dispute_prefunding?: Balance.RefundAndDisputePrefunding;
37
+ risk_reserved?: Balance.RiskReserved;
37
38
  }
38
39
  export declare namespace Balance {
39
40
  interface Available {
@@ -100,6 +101,16 @@ export declare namespace Balance {
100
101
  */
101
102
  pending: Array<RefundAndDisputePrefunding.Pending>;
102
103
  }
104
+ interface RiskReserved {
105
+ /**
106
+ * Funds that are available for use.
107
+ */
108
+ available: Array<RiskReserved.Available>;
109
+ /**
110
+ * Funds that are pending
111
+ */
112
+ pending: Array<RiskReserved.Pending>;
113
+ }
103
114
  namespace Available {
104
115
  interface SourceTypes {
105
116
  /**
@@ -276,6 +287,62 @@ export declare namespace Balance {
276
287
  }
277
288
  }
278
289
  }
290
+ namespace RiskReserved {
291
+ interface Available {
292
+ /**
293
+ * Balance amount.
294
+ */
295
+ amount: number;
296
+ /**
297
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
298
+ */
299
+ currency: string;
300
+ source_types?: Available.SourceTypes;
301
+ }
302
+ interface Pending {
303
+ /**
304
+ * Balance amount.
305
+ */
306
+ amount: number;
307
+ /**
308
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
309
+ */
310
+ currency: string;
311
+ source_types?: Pending.SourceTypes;
312
+ }
313
+ namespace Available {
314
+ interface SourceTypes {
315
+ /**
316
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
317
+ */
318
+ bank_account?: number;
319
+ /**
320
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
321
+ */
322
+ card?: number;
323
+ /**
324
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
325
+ */
326
+ fpx?: number;
327
+ }
328
+ }
329
+ namespace Pending {
330
+ interface SourceTypes {
331
+ /**
332
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
333
+ */
334
+ bank_account?: number;
335
+ /**
336
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
337
+ */
338
+ card?: number;
339
+ /**
340
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
341
+ */
342
+ fpx?: number;
343
+ }
344
+ }
345
+ }
279
346
  }
280
347
  export interface BalanceRetrieveParams {
281
348
  /**
@@ -157,7 +157,7 @@ export declare namespace BankAccount {
157
157
  requirement: string;
158
158
  }
159
159
  namespace Error {
160
- type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
160
+ type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_data_not_found' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
161
161
  }
162
162
  }
163
163
  namespace Requirements {
@@ -176,7 +176,7 @@ export declare namespace BankAccount {
176
176
  requirement: string;
177
177
  }
178
178
  namespace Error {
179
- type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
179
+ type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_data_not_found' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
180
180
  }
181
181
  }
182
182
  }
@@ -1,4 +1,5 @@
1
1
  import { Alert } from './Alerts.js';
2
+ import { Decimal } from '../../shared.js';
2
3
  export interface AlertTriggered {
3
4
  /**
4
5
  * String representing the object's type. Objects of the same type share the same value.
@@ -23,5 +24,5 @@ export interface AlertTriggered {
23
24
  /**
24
25
  * The value triggering the alert
25
26
  */
26
- value: number;
27
+ value: Decimal;
27
28
  }
@@ -0,0 +1,84 @@
1
+ import { StripeResource } from '../../../StripeResource.js';
2
+ import { MeterUsageRow } from './MeterUsageRows.js';
3
+ import { RequestOptions, Response, ApiList } from '../../../lib.js';
4
+ export declare class MeterUsageResource extends StripeResource {
5
+ /**
6
+ * Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
7
+ */
8
+ retrieve(params: Billing.Analytics.MeterUsageRetrieveParams, options?: RequestOptions): Promise<Response<MeterUsage>>;
9
+ }
10
+ export interface MeterUsage {
11
+ /**
12
+ * String representing the object's type. Objects of the same type share the same value.
13
+ */
14
+ object: 'billing.analytics.meter_usage';
15
+ /**
16
+ * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
17
+ */
18
+ livemode: boolean;
19
+ /**
20
+ * The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
21
+ */
22
+ refreshed_at: number;
23
+ rows: ApiList<MeterUsageRow>;
24
+ }
25
+ export declare namespace Billing {
26
+ namespace Analytics {
27
+ interface MeterUsageRetrieveParams {
28
+ /**
29
+ * The customer id to fetch meter usage data for.
30
+ */
31
+ customer: string;
32
+ /**
33
+ * The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
34
+ */
35
+ ends_at: number;
36
+ /**
37
+ * The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
38
+ */
39
+ starts_at: number;
40
+ /**
41
+ * Specifies which fields in the response should be expanded.
42
+ */
43
+ expand?: Array<string>;
44
+ /**
45
+ * An array of meter parameters to specify which meters to include in the usage data. If not specified, usage across all meters for the customer is included.
46
+ */
47
+ meters?: Array<MeterUsageRetrieveParams.Meter>;
48
+ /**
49
+ * The timezone to use for the start and end times. Defaults to UTC if not specified.
50
+ */
51
+ timezone?: MeterUsageRetrieveParams.Timezone;
52
+ /**
53
+ * Specifies what granularity to use when aggregating meter usage events. If not specified, a single event would be returned for the specified time range.
54
+ */
55
+ value_grouping_window?: MeterUsageRetrieveParams.ValueGroupingWindow;
56
+ }
57
+ namespace MeterUsageRetrieveParams {
58
+ interface Meter {
59
+ /**
60
+ * Key-value pairs used to filter usage events by meter dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
61
+ */
62
+ dimension_filters?: {
63
+ [key: string]: Array<string>;
64
+ };
65
+ /**
66
+ * List of meter dimension keys to group by. If specified, usage events will be grouped by the given meter dimension key's values.
67
+ */
68
+ dimension_group_by_keys?: Array<string>;
69
+ /**
70
+ * Meter id to query usage for.
71
+ */
72
+ meter: string;
73
+ /**
74
+ * Key-value pairs used to filter usage events by high cardinality tenant dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
75
+ */
76
+ tenant_filters?: {
77
+ [key: string]: Array<string>;
78
+ };
79
+ }
80
+ type Timezone = 'Africa/Abidjan' | 'Africa/Accra' | 'Africa/Addis_Ababa' | 'Africa/Algiers' | 'Africa/Asmara' | 'Africa/Asmera' | 'Africa/Bamako' | 'Africa/Bangui' | 'Africa/Banjul' | 'Africa/Bissau' | 'Africa/Blantyre' | 'Africa/Brazzaville' | 'Africa/Bujumbura' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/Conakry' | 'Africa/Dakar' | 'Africa/Dar_es_Salaam' | 'Africa/Djibouti' | 'Africa/Douala' | 'Africa/El_Aaiun' | 'Africa/Freetown' | 'Africa/Gaborone' | 'Africa/Harare' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Kampala' | 'Africa/Khartoum' | 'Africa/Kigali' | 'Africa/Kinshasa' | 'Africa/Lagos' | 'Africa/Libreville' | 'Africa/Lome' | 'Africa/Luanda' | 'Africa/Lubumbashi' | 'Africa/Lusaka' | 'Africa/Malabo' | 'Africa/Maputo' | 'Africa/Maseru' | 'Africa/Mbabane' | 'Africa/Mogadishu' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Niamey' | 'Africa/Nouakchott' | 'Africa/Ouagadougou' | 'Africa/Porto-Novo' | 'Africa/Sao_Tome' | 'Africa/Timbuktu' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Anguilla' | 'America/Antigua' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/ComodRivadavia' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Aruba' | 'America/Asuncion' | 'America/Atikokan' | 'America/Atka' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Blanc-Sablon' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Buenos_Aires' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Catamarca' | 'America/Cayenne' | 'America/Cayman' | 'America/Chicago' | 'America/Chihuahua' | 'America/Ciudad_Juarez' | 'America/Coral_Harbour' | 'America/Cordoba' | 'America/Costa_Rica' | 'America/Coyhaique' | 'America/Creston' | 'America/Cuiaba' | 'America/Curacao' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Dominica' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Ensenada' | 'America/Fort_Nelson' | 'America/Fort_Wayne' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Godthab' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Grenada' | 'America/Guadeloupe' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Indianapolis' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Jujuy' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/Knox_IN' | 'America/Kralendijk' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Louisville' | 'America/Lower_Princes' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Marigot' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Mendoza' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/Montreal' | 'America/Montserrat' | 'America/Nassau' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Port_of_Spain' | 'America/Porto_Acre' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Rosario' | 'America/Santa_Isabel' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Shiprock' | 'America/Sitka' | 'America/St_Barthelemy' | 'America/St_Johns' | 'America/St_Kitts' | 'America/St_Lucia' | 'America/St_Thomas' | 'America/St_Vincent' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Tortola' | 'America/Vancouver' | 'America/Virgin' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/DumontDUrville' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/McMurdo' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/South_Pole' | 'Antarctica/Syowa' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Arctic/Longyearbyen' | 'Asia/Aden' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Ashkhabad' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Bahrain' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Calcutta' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Chongqing' | 'Asia/Chungking' | 'Asia/Colombo' | 'Asia/Dacca' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Harbin' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Istanbul' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kashgar' | 'Asia/Kathmandu' | 'Asia/Katmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Kuwait' | 'Asia/Macao' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Muscat' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Phnom_Penh' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Rangoon' | 'Asia/Riyadh' | 'Asia/Saigon' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Tel_Aviv' | 'Asia/Thimbu' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ujung_Pandang' | 'Asia/Ulaanbaatar' | 'Asia/Ulan_Bator' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vientiane' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faeroe' | 'Atlantic/Faroe' | 'Atlantic/Jan_Mayen' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/St_Helena' | 'Atlantic/Stanley' | 'Australia/ACT' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Canberra' | 'Australia/Currie' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/LHI' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/NSW' | 'Australia/North' | 'Australia/Perth' | 'Australia/Queensland' | 'Australia/South' | 'Australia/Sydney' | 'Australia/Tasmania' | 'Australia/Victoria' | 'Australia/West' | 'Australia/Yancowinna' | 'Brazil/Acre' | 'Brazil/DeNoronha' | 'Brazil/East' | 'Brazil/West' | 'CET' | 'CST6CDT' | 'Canada/Atlantic' | 'Canada/Central' | 'Canada/Eastern' | 'Canada/Mountain' | 'Canada/Newfoundland' | 'Canada/Pacific' | 'Canada/Saskatchewan' | 'Canada/Yukon' | 'Chile/Continental' | 'Chile/EasterIsland' | 'Cuba' | 'EET' | 'EST' | 'EST5EDT' | 'Egypt' | 'Eire' | 'Etc/GMT' | 'Etc/GMT+0' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/GMT-0' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT0' | 'Etc/Greenwich' | 'Etc/UCT' | 'Etc/UTC' | 'Etc/Universal' | 'Etc/Zulu' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belfast' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Bratislava' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Busingen' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Guernsey' | 'Europe/Helsinki' | 'Europe/Isle_of_Man' | 'Europe/Istanbul' | 'Europe/Jersey' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Kyiv' | 'Europe/Lisbon' | 'Europe/Ljubljana' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Mariehamn' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Nicosia' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Podgorica' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/San_Marino' | 'Europe/Sarajevo' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Skopje' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Tiraspol' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vaduz' | 'Europe/Vatican' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zagreb' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'Factory' | 'GB' | 'GB-Eire' | 'GMT' | 'GMT+0' | 'GMT-0' | 'GMT0' | 'Greenwich' | 'HST' | 'Hongkong' | 'Iceland' | 'Indian/Antananarivo' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Comoro' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Mayotte' | 'Indian/Reunion' | 'Iran' | 'Israel' | 'Jamaica' | 'Japan' | 'Kwajalein' | 'Libya' | 'MET' | 'MST' | 'MST7MDT' | 'Mexico/BajaNorte' | 'Mexico/BajaSur' | 'Mexico/General' | 'NZ' | 'NZ-CHAT' | 'Navajo' | 'PRC' | 'PST8PDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Enderbury' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Johnston' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Midway' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Ponape' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Saipan' | 'Pacific/Samoa' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Truk' | 'Pacific/Wake' | 'Pacific/Wallis' | 'Pacific/Yap' | 'Poland' | 'Portugal' | 'ROC' | 'ROK' | 'Singapore' | 'Turkey' | 'UCT' | 'US/Alaska' | 'US/Aleutian' | 'US/Arizona' | 'US/Central' | 'US/East-Indiana' | 'US/Eastern' | 'US/Hawaii' | 'US/Indiana-Starke' | 'US/Michigan' | 'US/Mountain' | 'US/Pacific' | 'US/Pacific-New' | 'US/Samoa' | 'UTC' | 'Universal' | 'W-SU' | 'WET' | 'Zulu';
81
+ type ValueGroupingWindow = 'day' | 'hour' | 'month' | 'week';
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MeterUsageResource = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ class MeterUsageResource extends StripeResource_js_1.StripeResource {
7
+ /**
8
+ * Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
9
+ */
10
+ retrieve(params, options) {
11
+ return this._makeRequest('GET', '/v1/billing/analytics/meter_usage', params, options);
12
+ }
13
+ }
14
+ exports.MeterUsageResource = MeterUsageResource;
15
+ //# sourceMappingURL=MeterUsage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MeterUsage.js","sourceRoot":"","sources":["../../../../src/resources/Billing/Analytics/MeterUsage.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,kEAA0D;AAI1D,MAAa,kBAAmB,SAAQ,kCAAc;IACpD;;OAEG;IACH,QAAQ,CACN,MAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,mCAAmC,EACnC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAfD,gDAeC"}
@@ -0,0 +1,32 @@
1
+ export interface MeterUsageRow {
2
+ /**
3
+ * Unique identifier for the object.
4
+ */
5
+ id: string;
6
+ /**
7
+ * String representing the object's type. Objects of the same type share the same value.
8
+ */
9
+ object: 'billing.analytics.meter_usage_row';
10
+ /**
11
+ * A set of key-value pairs representing the dimensions of the meter usage.
12
+ */
13
+ dimensions: {
14
+ [key: string]: string;
15
+ } | null;
16
+ /**
17
+ * Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
18
+ */
19
+ ends_at: number;
20
+ /**
21
+ * The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
22
+ */
23
+ meter: string | null;
24
+ /**
25
+ * Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
26
+ */
27
+ starts_at: number;
28
+ /**
29
+ * The aggregated meter usage value for the specified bucket.
30
+ */
31
+ value: number;
32
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=MeterUsageRows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MeterUsageRows.js","sourceRoot":"","sources":["../../../../src/resources/Billing/Analytics/MeterUsageRows.ts"],"names":[],"mappings":";AAAA,uCAAuC"}
@@ -0,0 +1,15 @@
1
+ import { Stripe } from '../../../stripe.core.js';
2
+ import { Billing as BillingNamespace0, MeterUsage, MeterUsageResource } from './MeterUsage.js';
3
+ import { MeterUsageRow } from './MeterUsageRows.js';
4
+ export { MeterUsage } from './MeterUsage.js';
5
+ export { MeterUsageRow } from './MeterUsageRows.js';
6
+ export declare class Analytics {
7
+ private readonly stripe;
8
+ meterUsages: MeterUsageResource;
9
+ constructor(stripe: Stripe);
10
+ }
11
+ export declare namespace Analytics {
12
+ export import MeterUsageRetrieveParams = BillingNamespace0.Analytics.MeterUsageRetrieveParams;
13
+ export { MeterUsage };
14
+ export { MeterUsageRow };
15
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Analytics = void 0;
5
+ const MeterUsage_js_1 = require("./MeterUsage.js");
6
+ class Analytics {
7
+ constructor(stripe) {
8
+ this.stripe = stripe;
9
+ this.meterUsages = new MeterUsage_js_1.MeterUsageResource(stripe);
10
+ }
11
+ }
12
+ exports.Analytics = Analytics;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/Billing/Analytics/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,mDAIyB;AAMzB,MAAa,SAAS;IAGpB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,WAAW,GAAG,IAAI,kCAAkB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;CACF;AAND,8BAMC"}
@@ -8,6 +8,7 @@ import { Billing as BillingNamespace5, MeterEvent, MeterEventResource } from './
8
8
  import { Billing as BillingNamespace6, MeterEventAdjustment, MeterEventAdjustmentResource } from './MeterEventAdjustments.js';
9
9
  import { AlertTriggered } from './AlertTriggereds.js';
10
10
  import { MeterEventSummary } from './MeterEventSummaries.js';
11
+ import { Analytics } from './Analytics/index.js';
11
12
  export { Alert } from './Alerts.js';
12
13
  export { CreditBalanceSummary } from './CreditBalanceSummary.js';
13
14
  export { CreditBalanceTransaction } from './CreditBalanceTransactions.js';
@@ -26,6 +27,7 @@ export declare class Billing {
26
27
  meters: MeterResource;
27
28
  meterEvents: MeterEventResource;
28
29
  meterEventAdjustments: MeterEventAdjustmentResource;
30
+ analytics: Analytics;
29
31
  constructor(stripe: Stripe);
30
32
  }
31
33
  export declare namespace Billing {
@@ -62,4 +64,5 @@ export declare namespace Billing {
62
64
  export { MeterEventAdjustment };
63
65
  export { AlertTriggered };
64
66
  export { MeterEventSummary };
67
+ export { Analytics };
65
68
  }
@@ -9,6 +9,7 @@ const CreditGrants_js_1 = require("./CreditGrants.js");
9
9
  const Meters_js_1 = require("./Meters.js");
10
10
  const MeterEvents_js_1 = require("./MeterEvents.js");
11
11
  const MeterEventAdjustments_js_1 = require("./MeterEventAdjustments.js");
12
+ const index_js_1 = require("./Analytics/index.js");
12
13
  class Billing {
13
14
  constructor(stripe) {
14
15
  this.stripe = stripe;
@@ -19,6 +20,7 @@ class Billing {
19
20
  this.meters = new Meters_js_1.MeterResource(stripe);
20
21
  this.meterEvents = new MeterEvents_js_1.MeterEventResource(stripe);
21
22
  this.meterEventAdjustments = new MeterEventAdjustments_js_1.MeterEventAdjustmentResource(stripe);
23
+ this.analytics = new index_js_1.Analytics(stripe);
22
24
  }
23
25
  }
24
26
  exports.Billing = Billing;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Billing/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,2CAA+E;AAC/E,uEAImC;AACnC,iFAIwC;AACxC,uDAI2B;AAC3B,2CAA+E;AAC/E,qDAI0B;AAC1B,yEAIoC;AAcpC,MAAa,OAAO;IASlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,sBAAsB,GAAG,IAAI,sDAA4B,CAAC,MAAM,CAAC,CAAC;QACvE,IAAI,CAAC,yBAAyB,GAAG,IAAI,+DAAgC,CACnE,MAAM,CACP,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,IAAI,mCAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,qBAAqB,GAAG,IAAI,uDAA4B,CAAC,MAAM,CAAC,CAAC;IACxE,CAAC;CACF;AApBD,0BAoBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Billing/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,2CAA+E;AAC/E,uEAImC;AACnC,iFAIwC;AACxC,uDAI2B;AAC3B,2CAA+E;AAC/E,qDAI0B;AAC1B,yEAIoC;AAGpC,mDAA+C;AAY/C,MAAa,OAAO;IAUlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,sBAAsB,GAAG,IAAI,sDAA4B,CAAC,MAAM,CAAC,CAAC;QACvE,IAAI,CAAC,yBAAyB,GAAG,IAAI,+DAAgC,CACnE,MAAM,CACP,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,IAAI,mCAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,qBAAqB,GAAG,IAAI,uDAA4B,CAAC,MAAM,CAAC,CAAC;QACtE,IAAI,CAAC,SAAS,GAAG,IAAI,oBAAS,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;CACF;AAtBD,0BAsBC"}
@@ -124,7 +124,7 @@ export declare namespace Capability {
124
124
  requirement: string;
125
125
  }
126
126
  namespace Error {
127
- type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
127
+ type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_data_not_found' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
128
128
  }
129
129
  }
130
130
  namespace Requirements {
@@ -154,7 +154,7 @@ export declare namespace Capability {
154
154
  requirement: string;
155
155
  }
156
156
  namespace Error {
157
- type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
157
+ type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_data_not_found' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
158
158
  }
159
159
  }
160
160
  }