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
@@ -0,0 +1,191 @@
1
+ import { StripeResource } from '../../StripeResource.js';
2
+ import { PaginationParams, RangeQueryParam, Metadata } from '../../shared.js';
3
+ import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
4
+ export declare class FinancingOfferResource extends StripeResource {
5
+ /**
6
+ * Retrieves the financing offers available for Connected accounts that belong to your platform.
7
+ */
8
+ list(params?: Capital.FinancingOfferListParams, options?: RequestOptions): ApiListPromise<FinancingOffer>;
9
+ /**
10
+ * Get the details of the financing offer
11
+ */
12
+ retrieve(id: string, params?: Capital.FinancingOfferRetrieveParams, options?: RequestOptions): Promise<Response<FinancingOffer>>;
13
+ /**
14
+ * Acknowledges that platform has received and delivered the financing_offer to
15
+ * the intended merchant recipient.
16
+ */
17
+ markDelivered(id: string, params?: Capital.FinancingOfferMarkDeliveredParams, options?: RequestOptions): Promise<Response<FinancingOffer>>;
18
+ }
19
+ export interface FinancingOffer {
20
+ /**
21
+ * A unique identifier for the financing object.
22
+ */
23
+ id: string;
24
+ /**
25
+ * The object type: financing_offer.
26
+ */
27
+ object: 'capital.financing_offer';
28
+ /**
29
+ * This is an object representing the terms of an offer of financing from
30
+ * Stripe Capital to a Connected account. This resource represents
31
+ * the terms accepted by the Connected account, which may differ from those
32
+ * offered.
33
+ */
34
+ accepted_terms?: Capital.FinancingOffer.AcceptedTerms;
35
+ /**
36
+ * The ID of the merchant associated with this financing object.
37
+ */
38
+ account: string;
39
+ /**
40
+ * The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
41
+ */
42
+ charged_off_at?: number;
43
+ /**
44
+ * Time at which the offer was created. Given in seconds since unix epoch.
45
+ */
46
+ created: number;
47
+ /**
48
+ * Time at which the offer expires. Given in seconds since unix epoch.
49
+ */
50
+ expires_after: number;
51
+ /**
52
+ * The type of financing being offered.
53
+ */
54
+ financing_type?: Capital.FinancingOffer.FinancingType;
55
+ /**
56
+ * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
57
+ */
58
+ livemode: boolean;
59
+ /**
60
+ * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
61
+ */
62
+ metadata?: Metadata;
63
+ /**
64
+ * This is an object representing the terms of an offer of financing from
65
+ * Stripe Capital to a Connected account. This resource represents
66
+ * both the terms offered to the Connected account.
67
+ */
68
+ offered_terms?: Capital.FinancingOffer.OfferedTerms;
69
+ /**
70
+ * Financing product identifier.
71
+ */
72
+ product_type?: Capital.FinancingOffer.ProductType;
73
+ /**
74
+ * The ID of the financing offer that replaced this offer.
75
+ */
76
+ replacement?: string;
77
+ /**
78
+ * The ID of the financing offer that this offer is a replacement for.
79
+ */
80
+ replacement_for?: string;
81
+ /**
82
+ * The current status of the offer.
83
+ */
84
+ status: Capital.FinancingOffer.Status;
85
+ /**
86
+ * See [financing_type](https://docs.stripe.com/api/capital/connect_financing_object#financing_offer_object-financing_type).
87
+ */
88
+ type?: Capital.FinancingOffer.Type;
89
+ }
90
+ export declare namespace Capital {
91
+ namespace FinancingOffer {
92
+ interface AcceptedTerms {
93
+ /**
94
+ * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
95
+ */
96
+ advance_amount: number;
97
+ /**
98
+ * Currency that the financing offer is transacted in. For example, `usd`.
99
+ */
100
+ currency: string;
101
+ /**
102
+ * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
103
+ */
104
+ fee_amount: number;
105
+ /**
106
+ * Populated when the `product_type` of the `financingoffer` is `refill`.
107
+ * Represents the discount amount on remaining premium for the existing loan at payout time.
108
+ */
109
+ previous_financing_fee_discount_amount: number | null;
110
+ /**
111
+ * Per-transaction rate at which Stripe withholds funds to repay the financing.
112
+ */
113
+ withhold_rate: number;
114
+ }
115
+ type FinancingType = 'cash_advance' | 'flex_loan';
116
+ interface OfferedTerms {
117
+ /**
118
+ * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
119
+ */
120
+ advance_amount: number;
121
+ /**
122
+ * Describes the type of user the offer is being extended to.
123
+ */
124
+ campaign_type: OfferedTerms.CampaignType;
125
+ /**
126
+ * Currency that the financing offer is transacted in. For example, `usd`.
127
+ */
128
+ currency: string;
129
+ /**
130
+ * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
131
+ */
132
+ fee_amount: number;
133
+ /**
134
+ * Populated when the `product_type` of the `financingoffer` is `refill`.
135
+ * Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
136
+ * is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
137
+ * and the remaining fee.
138
+ */
139
+ previous_financing_fee_discount_rate: number | null;
140
+ /**
141
+ * Per-transaction rate at which Stripe withholds funds to repay the financing.
142
+ */
143
+ withhold_rate: number;
144
+ }
145
+ type ProductType = 'refill' | 'standard';
146
+ type Status = 'accepted' | 'canceled' | 'completed' | 'delivered' | 'expired' | 'fully_repaid' | 'paid_out' | 'rejected' | 'replaced' | 'undelivered';
147
+ type Type = 'cash_advance' | 'fixed_term_loan' | 'flex_loan';
148
+ namespace OfferedTerms {
149
+ type CampaignType = 'newly_eligible_user' | 'previously_eligible_user' | 'repeat_user';
150
+ }
151
+ }
152
+ }
153
+ export declare namespace Capital {
154
+ interface FinancingOfferRetrieveParams {
155
+ /**
156
+ * Specifies which fields in the response should be expanded.
157
+ */
158
+ expand?: Array<string>;
159
+ }
160
+ }
161
+ export declare namespace Capital {
162
+ interface FinancingOfferListParams extends PaginationParams {
163
+ /**
164
+ * limit list to offers belonging to given connected account
165
+ */
166
+ connected_account?: string;
167
+ /**
168
+ * Only return offers that were created during the given date interval.
169
+ */
170
+ created?: RangeQueryParam | number;
171
+ /**
172
+ * Specifies which fields in the response should be expanded.
173
+ */
174
+ expand?: Array<string>;
175
+ /**
176
+ * limit list to offers with given status
177
+ */
178
+ status?: FinancingOfferListParams.Status;
179
+ }
180
+ namespace FinancingOfferListParams {
181
+ type Status = 'accepted' | 'canceled' | 'completed' | 'delivered' | 'expired' | 'fully_repaid' | 'paid_out' | 'rejected' | 'revoked' | 'undelivered';
182
+ }
183
+ }
184
+ export declare namespace Capital {
185
+ interface FinancingOfferMarkDeliveredParams {
186
+ /**
187
+ * Specifies which fields in the response should be expanded.
188
+ */
189
+ expand?: Array<string>;
190
+ }
191
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancingOfferResource = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ class FinancingOfferResource extends StripeResource_js_1.StripeResource {
7
+ /**
8
+ * Retrieves the financing offers available for Connected accounts that belong to your platform.
9
+ */
10
+ list(params, options) {
11
+ return this._makeRequest('GET', '/v1/capital/financing_offers', params, options, {
12
+ methodType: 'list',
13
+ });
14
+ }
15
+ /**
16
+ * Get the details of the financing offer
17
+ */
18
+ retrieve(id, params, options) {
19
+ return this._makeRequest('GET', `/v1/capital/financing_offers/${id}`, params, options);
20
+ }
21
+ /**
22
+ * Acknowledges that platform has received and delivered the financing_offer to
23
+ * the intended merchant recipient.
24
+ */
25
+ markDelivered(id, params, options) {
26
+ return this._makeRequest('POST', `/v1/capital/financing_offers/${id}/mark_delivered`, params, options);
27
+ }
28
+ }
29
+ exports.FinancingOfferResource = FinancingOfferResource;
30
+ //# sourceMappingURL=FinancingOffers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinancingOffers.js","sourceRoot":"","sources":["../../../src/resources/Capital/FinancingOffers.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAIvD,MAAa,sBAAuB,SAAQ,kCAAc;IACxD;;OAEG;IACH,IAAI,CACF,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,EAC9B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gCAAgC,EAAE,EAAE,EACpC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;OAGG;IACH,aAAa,CACX,EAAU,EACV,MAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gCAAgC,EAAE,iBAAiB,EACnD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAjDD,wDAiDC"}
@@ -0,0 +1,98 @@
1
+ import { StripeResource } from '../../StripeResource.js';
2
+ import { RequestOptions, Response } from '../../lib.js';
3
+ export declare class FinancingSummaryResource extends StripeResource {
4
+ /**
5
+ * Retrieve the financing summary object for the account.
6
+ */
7
+ retrieve(params?: Capital.FinancingSummaryRetrieveParams, options?: RequestOptions): Promise<Response<FinancingSummary>>;
8
+ }
9
+ export interface FinancingSummary {
10
+ /**
11
+ * The object type: financing_summary
12
+ */
13
+ object: 'capital.financing_summary';
14
+ /**
15
+ * Additional information about the financing summary. Describes currency, advance amount,
16
+ * fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
17
+ * repayment start date, and advance payout date.
18
+ *
19
+ * Only present for financing offers with the `paid_out` status.
20
+ */
21
+ details: Capital.FinancingSummary.Details | null;
22
+ /**
23
+ * The unique identifier of the Financing Offer object that corresponds to the Financing Summary object.
24
+ */
25
+ financing_offer: string | null;
26
+ /**
27
+ * The financing status of the connected account.
28
+ */
29
+ status: Capital.FinancingSummary.Status | null;
30
+ }
31
+ export declare namespace Capital {
32
+ namespace FinancingSummary {
33
+ interface Details {
34
+ /**
35
+ * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
36
+ */
37
+ advance_amount: number;
38
+ /**
39
+ * The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch.
40
+ */
41
+ advance_paid_out_at: number | null;
42
+ /**
43
+ * Currency that the financing offer is transacted in. For example, `usd`.
44
+ */
45
+ currency: string;
46
+ /**
47
+ * The chronologically current repayment interval for the financing offer.
48
+ */
49
+ current_repayment_interval: Details.CurrentRepaymentInterval | null;
50
+ /**
51
+ * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
52
+ */
53
+ fee_amount: number;
54
+ /**
55
+ * The amount the Connected account has paid toward the financing debt so far, in minor units. For example, 1,000 USD is represented as 100000.
56
+ */
57
+ paid_amount: number;
58
+ /**
59
+ * The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is represented as 100000.
60
+ */
61
+ remaining_amount: number;
62
+ /**
63
+ * The time at which Capital will begin withholding from payments. Given in seconds since unix epoch.
64
+ */
65
+ repayments_begin_at: number | null;
66
+ /**
67
+ * Per-transaction rate at which Stripe withholds funds to repay the financing.
68
+ */
69
+ withhold_rate: number;
70
+ }
71
+ type Status = 'accepted' | 'delivered' | 'none';
72
+ namespace Details {
73
+ interface CurrentRepaymentInterval {
74
+ /**
75
+ * The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited.
76
+ * Given in seconds since unix epoch.
77
+ */
78
+ due_at: number;
79
+ /**
80
+ * The amount that has already been paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000.
81
+ */
82
+ paid_amount: number | null;
83
+ /**
84
+ * The amount that is yet to be paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000.
85
+ */
86
+ remaining_amount: number;
87
+ }
88
+ }
89
+ }
90
+ }
91
+ export declare namespace Capital {
92
+ interface FinancingSummaryRetrieveParams {
93
+ /**
94
+ * Specifies which fields in the response should be expanded.
95
+ */
96
+ expand?: Array<string>;
97
+ }
98
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancingSummaryResource = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ class FinancingSummaryResource extends StripeResource_js_1.StripeResource {
7
+ /**
8
+ * Retrieve the financing summary object for the account.
9
+ */
10
+ retrieve(params, options) {
11
+ return this._makeRequest('GET', '/v1/capital/financing_summary', params, options);
12
+ }
13
+ }
14
+ exports.FinancingSummaryResource = FinancingSummaryResource;
15
+ //# sourceMappingURL=FinancingSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinancingSummary.js","sourceRoot":"","sources":["../../../src/resources/Capital/FinancingSummary.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAGvD,MAAa,wBAAyB,SAAQ,kCAAc;IAC1D;;OAEG;IACH,QAAQ,CACN,MAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,+BAA+B,EAC/B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAfD,4DAeC"}
@@ -0,0 +1,143 @@
1
+ import { StripeResource } from '../../StripeResource.js';
2
+ import { PaginationParams } from '../../shared.js';
3
+ import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
4
+ export declare class FinancingTransactionResource extends StripeResource {
5
+ /**
6
+ * Returns a list of financing transactions. The transactions are returned in sorted order,
7
+ * with the most recent transactions appearing first.
8
+ */
9
+ list(params?: Capital.FinancingTransactionListParams, options?: RequestOptions): ApiListPromise<FinancingTransaction>;
10
+ /**
11
+ * Retrieves a financing transaction for a financing offer.
12
+ */
13
+ retrieve(id: string, params?: Capital.FinancingTransactionRetrieveParams, options?: RequestOptions): Promise<Response<FinancingTransaction>>;
14
+ }
15
+ export interface FinancingTransaction {
16
+ /**
17
+ * A unique identifier for the financing transaction object.
18
+ */
19
+ id: string;
20
+ /**
21
+ * The object type: financing_transaction
22
+ */
23
+ object: 'capital.financing_transaction';
24
+ /**
25
+ * The ID of the merchant associated with this financing transaction.
26
+ */
27
+ account: string;
28
+ /**
29
+ * Time at which the financing transaction was created. Given in seconds since unix epoch.
30
+ */
31
+ created_at: number;
32
+ /**
33
+ * This is an object representing a transaction on a Capital financing offer.
34
+ */
35
+ details: Capital.FinancingTransaction.Details;
36
+ /**
37
+ * The Capital financing offer for this financing transaction.
38
+ */
39
+ financing_offer: string | null;
40
+ /**
41
+ * The Capital transaction object that predates the Financing Transactions API and
42
+ * corresponds with the balance transaction that was created as a result of this
43
+ * financing transaction.
44
+ */
45
+ legacy_balance_transaction_source?: string;
46
+ /**
47
+ * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
48
+ */
49
+ livemode: boolean;
50
+ /**
51
+ * The type of the financing transaction.
52
+ */
53
+ type: Capital.FinancingTransaction.Type;
54
+ /**
55
+ * A human-friendly description of the financing transaction.
56
+ */
57
+ user_facing_description: string | null;
58
+ }
59
+ export declare namespace Capital {
60
+ namespace FinancingTransaction {
61
+ interface Details {
62
+ /**
63
+ * The advance amount being repaid, paid out, or reversed in minor units.
64
+ */
65
+ advance_amount: number;
66
+ /**
67
+ * The currency of the financing transaction.
68
+ */
69
+ currency: string;
70
+ /**
71
+ * The fee amount being repaid, paid out, or reversed in minor units.
72
+ */
73
+ fee_amount: number;
74
+ /**
75
+ * The linked payment for the transaction. This field only applies to financing transactions of type `paydown` and reason `automatic_withholding`.
76
+ */
77
+ linked_payment?: string;
78
+ /**
79
+ * The reason for the financing transaction (if applicable).
80
+ */
81
+ reason?: Details.Reason;
82
+ /**
83
+ * The reversed transaction. This field only applies to financing
84
+ * transactions of type `reversal`.
85
+ */
86
+ reversed_transaction?: string;
87
+ /**
88
+ * The advance and fee amount being repaid, paid out, or reversed in minor units.
89
+ */
90
+ total_amount: number;
91
+ /**
92
+ * This is an object representing a linked transaction on a Capital Financing Transaction.
93
+ */
94
+ transaction?: Details.Transaction;
95
+ }
96
+ type Type = 'payment' | 'payout' | 'reversal';
97
+ namespace Details {
98
+ type Reason = 'automatic_withholding' | 'automatic_withholding_refund' | 'collection' | 'collection_failure' | 'financing_cancellation' | 'refill' | 'requested_by_user' | 'user_initiated';
99
+ interface Transaction {
100
+ /**
101
+ * The linked payment ID.
102
+ */
103
+ charge?: string;
104
+ /**
105
+ * The linked Treasury Financing Transaction ID.
106
+ */
107
+ treasury_transaction?: string;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ export declare namespace Capital {
113
+ interface FinancingTransactionRetrieveParams {
114
+ /**
115
+ * Specifies which fields in the response should be expanded.
116
+ */
117
+ expand?: Array<string>;
118
+ }
119
+ }
120
+ export declare namespace Capital {
121
+ interface FinancingTransactionListParams extends PaginationParams {
122
+ /**
123
+ * For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this charge.
124
+ */
125
+ charge?: string;
126
+ /**
127
+ * Specifies which fields in the response should be expanded.
128
+ */
129
+ expand?: Array<string>;
130
+ /**
131
+ * Returns transactions that were created that apply to this financing offer ID.
132
+ */
133
+ financing_offer?: string;
134
+ /**
135
+ * Only returns transactions that are responsible for reversing this financing transaction ID.
136
+ */
137
+ reversed_transaction?: string;
138
+ /**
139
+ * For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this Treasury Transaction.
140
+ */
141
+ treasury_transaction?: string;
142
+ }
143
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancingTransactionResource = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ class FinancingTransactionResource extends StripeResource_js_1.StripeResource {
7
+ /**
8
+ * Returns a list of financing transactions. The transactions are returned in sorted order,
9
+ * with the most recent transactions appearing first.
10
+ */
11
+ list(params, options) {
12
+ return this._makeRequest('GET', '/v1/capital/financing_transactions', params, options, {
13
+ methodType: 'list',
14
+ });
15
+ }
16
+ /**
17
+ * Retrieves a financing transaction for a financing offer.
18
+ */
19
+ retrieve(id, params, options) {
20
+ return this._makeRequest('GET', `/v1/capital/financing_transactions/${id}`, params, options);
21
+ }
22
+ }
23
+ exports.FinancingTransactionResource = FinancingTransactionResource;
24
+ //# sourceMappingURL=FinancingTransactions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinancingTransactions.js","sourceRoot":"","sources":["../../../src/resources/Capital/FinancingTransactions.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAIvD,MAAa,4BAA6B,SAAQ,kCAAc;IAC9D;;;OAGG;IACH,IAAI,CACF,MAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,oCAAoC,EACpC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAmD,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sCAAsC,EAAE,EAAE,EAC1C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAlCD,oEAkCC"}
@@ -0,0 +1,25 @@
1
+ import { Stripe } from '../../stripe.core.js';
2
+ import { Capital as CapitalNamespace0, FinancingOffer, FinancingOfferResource } from './FinancingOffers.js';
3
+ import { Capital as CapitalNamespace1, FinancingSummary, FinancingSummaryResource } from './FinancingSummary.js';
4
+ import { Capital as CapitalNamespace2, FinancingTransaction, FinancingTransactionResource } from './FinancingTransactions.js';
5
+ export { FinancingOffer } from './FinancingOffers.js';
6
+ export { FinancingSummary } from './FinancingSummary.js';
7
+ export { FinancingTransaction } from './FinancingTransactions.js';
8
+ export declare class Capital {
9
+ private readonly stripe;
10
+ financingOffers: FinancingOfferResource;
11
+ financingSummaries: FinancingSummaryResource;
12
+ financingTransactions: FinancingTransactionResource;
13
+ constructor(stripe: Stripe);
14
+ }
15
+ export declare namespace Capital {
16
+ export import FinancingOfferListParams = CapitalNamespace0.FinancingOfferListParams;
17
+ export import FinancingOfferRetrieveParams = CapitalNamespace0.FinancingOfferRetrieveParams;
18
+ export import FinancingOfferMarkDeliveredParams = CapitalNamespace0.FinancingOfferMarkDeliveredParams;
19
+ export { FinancingOffer };
20
+ export import FinancingSummaryRetrieveParams = CapitalNamespace1.FinancingSummaryRetrieveParams;
21
+ export { FinancingSummary };
22
+ export import FinancingTransactionListParams = CapitalNamespace2.FinancingTransactionListParams;
23
+ export import FinancingTransactionRetrieveParams = CapitalNamespace2.FinancingTransactionRetrieveParams;
24
+ export { FinancingTransaction };
25
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Capital = void 0;
5
+ const FinancingOffers_js_1 = require("./FinancingOffers.js");
6
+ const FinancingSummary_js_1 = require("./FinancingSummary.js");
7
+ const FinancingTransactions_js_1 = require("./FinancingTransactions.js");
8
+ class Capital {
9
+ constructor(stripe) {
10
+ this.stripe = stripe;
11
+ this.financingOffers = new FinancingOffers_js_1.FinancingOfferResource(stripe);
12
+ this.financingSummaries = new FinancingSummary_js_1.FinancingSummaryResource(stripe);
13
+ this.financingTransactions = new FinancingTransactions_js_1.FinancingTransactionResource(stripe);
14
+ }
15
+ }
16
+ exports.Capital = Capital;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Capital/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,6DAI8B;AAC9B,+DAI+B;AAC/B,yEAIoC;AAMpC,MAAa,OAAO;IAKlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,2CAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,kBAAkB,GAAG,IAAI,8CAAwB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,CAAC,qBAAqB,GAAG,IAAI,uDAA4B,CAAC,MAAM,CAAC,CAAC;IACxE,CAAC;CACF;AAVD,0BAUC"}
@@ -55,6 +55,10 @@ export interface Card {
55
55
  * Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
56
56
  */
57
57
  brand: string;
58
+ /**
59
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
60
+ */
61
+ brand_product?: string | null;
58
62
  /**
59
63
  * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
60
64
  */