stripe 23.1.0 → 23.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/CHANGELOG.md +1914 -4850
  2. package/README.md +42 -58
  3. package/VERSION +1 -1
  4. package/cjs/Error.d.ts +6 -0
  5. package/cjs/Error.js +17 -1
  6. package/cjs/Error.js.map +1 -1
  7. package/cjs/StripeEventNotificationHandler.js +54 -0
  8. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  9. package/cjs/Types.d.ts +4 -2
  10. package/cjs/Types.js.map +1 -1
  11. package/cjs/apiVersion.d.ts +2 -2
  12. package/cjs/apiVersion.js +2 -2
  13. package/cjs/apiVersion.js.map +1 -1
  14. package/cjs/resources/AccountLinks.d.ts +1 -1
  15. package/cjs/resources/AccountNotices.d.ts +140 -0
  16. package/cjs/resources/AccountNotices.js +29 -0
  17. package/cjs/resources/AccountNotices.js.map +1 -0
  18. package/cjs/resources/AccountSessions.d.ts +226 -0
  19. package/cjs/resources/AccountSessions.js.map +1 -1
  20. package/cjs/resources/Accounts.d.ts +625 -3
  21. package/cjs/resources/Accounts.js +14 -0
  22. package/cjs/resources/Accounts.js.map +1 -1
  23. package/cjs/resources/Balance.d.ts +67 -0
  24. package/cjs/resources/BalanceSettings.d.ts +18 -0
  25. package/cjs/resources/BankAccounts.d.ts +2 -2
  26. package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
  27. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
  28. package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
  29. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  30. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  31. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
  32. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  33. package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
  34. package/cjs/resources/Billing/Analytics/index.js +13 -0
  35. package/cjs/resources/Billing/Analytics/index.js.map +1 -0
  36. package/cjs/resources/Billing/index.d.ts +3 -0
  37. package/cjs/resources/Billing/index.js +2 -0
  38. package/cjs/resources/Billing/index.js.map +1 -1
  39. package/cjs/resources/Capabilities.d.ts +2 -2
  40. package/cjs/resources/Capital/FinancingOffers.d.ts +194 -0
  41. package/cjs/resources/Capital/FinancingOffers.js +30 -0
  42. package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
  43. package/cjs/resources/Capital/FinancingSummary.d.ts +102 -0
  44. package/cjs/resources/Capital/FinancingSummary.js +15 -0
  45. package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
  46. package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
  47. package/cjs/resources/Capital/FinancingTransactions.js +24 -0
  48. package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
  49. package/cjs/resources/Capital/index.d.ts +25 -0
  50. package/cjs/resources/Capital/index.js +17 -0
  51. package/cjs/resources/Capital/index.js.map +1 -0
  52. package/cjs/resources/Cards.d.ts +17 -0
  53. package/cjs/resources/Charges.d.ts +3077 -70
  54. package/cjs/resources/Checkout/Sessions.d.ts +351 -4
  55. package/cjs/resources/ConfirmationTokens.d.ts +67 -1
  56. package/cjs/resources/Coupons.d.ts +53 -0
  57. package/cjs/resources/Coupons.js +13 -0
  58. package/cjs/resources/Coupons.js.map +1 -1
  59. package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
  60. package/cjs/resources/CreditNotes.d.ts +1 -1
  61. package/cjs/resources/CustomerSessions.d.ts +68 -0
  62. package/cjs/resources/Customers.d.ts +20 -1
  63. package/cjs/resources/Customers.js +14 -0
  64. package/cjs/resources/Customers.js.map +1 -1
  65. package/cjs/resources/Disputes.d.ts +14 -0
  66. package/cjs/resources/Events.d.ts +614 -3
  67. package/cjs/resources/ExternalAccounts.d.ts +212 -1
  68. package/cjs/resources/ExternalAccounts.js +44 -0
  69. package/cjs/resources/ExternalAccounts.js.map +1 -1
  70. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  71. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
  72. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  73. package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
  74. package/cjs/resources/FinancialConnections/Accounts.js +8 -0
  75. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  76. package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
  77. package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
  78. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
  79. package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
  80. package/cjs/resources/FinancialConnections/Institutions.js +23 -0
  81. package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
  82. package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
  83. package/cjs/resources/FinancialConnections/index.d.ts +21 -9
  84. package/cjs/resources/FinancialConnections/index.js +4 -0
  85. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  86. package/cjs/resources/FxQuotes.d.ts +216 -0
  87. package/cjs/resources/FxQuotes.js +29 -0
  88. package/cjs/resources/FxQuotes.js.map +1 -0
  89. package/cjs/resources/InvoiceItems.d.ts +85 -0
  90. package/cjs/resources/InvoiceItems.js.map +1 -1
  91. package/cjs/resources/InvoiceLineItems.d.ts +40 -2
  92. package/cjs/resources/Invoices.d.ts +1257 -10
  93. package/cjs/resources/Invoices.js +41 -0
  94. package/cjs/resources/Invoices.js.map +1 -1
  95. package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
  96. package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
  97. package/cjs/resources/Issuing/Cards.d.ts +13 -0
  98. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  99. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
  100. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  101. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  102. package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
  103. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  104. package/cjs/resources/Issuing/Disputes.d.ts +13 -0
  105. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  106. package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
  107. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  108. package/cjs/resources/Issuing/Settlements.d.ts +83 -0
  109. package/cjs/resources/Issuing/Settlements.js +4 -0
  110. package/cjs/resources/Issuing/Settlements.js.map +1 -0
  111. package/cjs/resources/Issuing/Transactions.d.ts +22 -0
  112. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  113. package/cjs/resources/Issuing/index.d.ts +47 -22
  114. package/cjs/resources/Issuing/index.js +6 -0
  115. package/cjs/resources/Issuing/index.js.map +1 -1
  116. package/cjs/resources/LineItems.d.ts +29 -2
  117. package/cjs/resources/Mandates.d.ts +36 -2
  118. package/cjs/resources/Mandates.js +8 -0
  119. package/cjs/resources/Mandates.js.map +1 -1
  120. package/cjs/resources/Margins.d.ts +115 -0
  121. package/cjs/resources/Margins.js +35 -0
  122. package/cjs/resources/Margins.js.map +1 -0
  123. package/cjs/resources/Orders.d.ts +4696 -0
  124. package/cjs/resources/Orders.js +457 -0
  125. package/cjs/resources/Orders.js.map +1 -0
  126. package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
  127. package/cjs/resources/PaymentIntents.d.ts +13832 -2816
  128. package/cjs/resources/PaymentIntents.js +27 -0
  129. package/cjs/resources/PaymentIntents.js.map +1 -1
  130. package/cjs/resources/PaymentLinks.d.ts +3 -3
  131. package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
  132. package/cjs/resources/PaymentMethods.d.ts +181 -3
  133. package/cjs/resources/PaymentMethods.js.map +1 -1
  134. package/cjs/resources/PaymentPlans.d.ts +427 -0
  135. package/cjs/resources/PaymentPlans.js +35 -0
  136. package/cjs/resources/PaymentPlans.js.map +1 -0
  137. package/cjs/resources/PaymentRecords.d.ts +82 -0
  138. package/cjs/resources/Persons.d.ts +2 -2
  139. package/cjs/resources/Prices.d.ts +36 -0
  140. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  141. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
  142. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  143. package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
  144. package/cjs/resources/Privacy/RedactionJobs.js +73 -0
  145. package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
  146. package/cjs/resources/Privacy/index.d.ts +22 -0
  147. package/cjs/resources/Privacy/index.js +13 -0
  148. package/cjs/resources/Privacy/index.js.map +1 -0
  149. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  150. package/cjs/resources/PromotionCodes.d.ts +12 -0
  151. package/cjs/resources/PromotionCodes.js +27 -0
  152. package/cjs/resources/PromotionCodes.js.map +1 -1
  153. package/cjs/resources/QuoteLines.d.ts +507 -0
  154. package/cjs/resources/QuoteLines.js +4 -0
  155. package/cjs/resources/QuoteLines.js.map +1 -0
  156. package/cjs/resources/QuotePreviewInvoices.d.ts +1170 -0
  157. package/cjs/resources/QuotePreviewInvoices.js +4 -0
  158. package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
  159. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
  160. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
  161. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  162. package/cjs/resources/Quotes.d.ts +2266 -57
  163. package/cjs/resources/Quotes.js +1184 -16
  164. package/cjs/resources/Quotes.js.map +1 -1
  165. package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
  166. package/cjs/resources/Radar/BillingEvaluations.js +15 -0
  167. package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
  168. package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
  169. package/cjs/resources/Radar/ValueListItems.d.ts +31 -1
  170. package/cjs/resources/Radar/index.d.ts +21 -16
  171. package/cjs/resources/Radar/index.js +2 -0
  172. package/cjs/resources/Radar/index.js.map +1 -1
  173. package/cjs/resources/Refunds.d.ts +11 -0
  174. package/cjs/resources/Reserve/Holds.d.ts +53 -1
  175. package/cjs/resources/Reserve/Holds.js +19 -0
  176. package/cjs/resources/Reserve/Holds.js.map +1 -1
  177. package/cjs/resources/Reserve/Plans.d.ts +41 -1
  178. package/cjs/resources/Reserve/Plans.js +19 -0
  179. package/cjs/resources/Reserve/Plans.js.map +1 -1
  180. package/cjs/resources/Reserve/Releases.d.ts +41 -1
  181. package/cjs/resources/Reserve/Releases.js +19 -0
  182. package/cjs/resources/Reserve/Releases.js.map +1 -1
  183. package/cjs/resources/Reserve/index.d.ts +18 -6
  184. package/cjs/resources/Reserve/index.js +9 -0
  185. package/cjs/resources/Reserve/index.js.map +1 -1
  186. package/cjs/resources/SetupAttempts.d.ts +26 -1
  187. package/cjs/resources/SetupIntents.d.ts +394 -11
  188. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +418 -0
  189. package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
  190. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
  191. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
  192. package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
  193. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
  194. package/cjs/resources/SharedPayment/index.d.ts +19 -0
  195. package/cjs/resources/SharedPayment/index.js +15 -0
  196. package/cjs/resources/SharedPayment/index.js.map +1 -0
  197. package/cjs/resources/Sources.d.ts +29 -1
  198. package/cjs/resources/SubscriptionItems.d.ts +114 -0
  199. package/cjs/resources/SubscriptionSchedules.d.ts +1157 -5
  200. package/cjs/resources/SubscriptionSchedules.js +6 -0
  201. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  202. package/cjs/resources/Subscriptions.d.ts +388 -6
  203. package/cjs/resources/Subscriptions.js +42 -0
  204. package/cjs/resources/Subscriptions.js.map +1 -1
  205. package/cjs/resources/Tax/Forms.d.ts +228 -0
  206. package/cjs/resources/Tax/Forms.js +32 -0
  207. package/cjs/resources/Tax/Forms.js.map +1 -0
  208. package/cjs/resources/Tax/Registrations.d.ts +25 -2
  209. package/cjs/resources/Tax/index.d.ts +24 -17
  210. package/cjs/resources/Tax/index.js +2 -0
  211. package/cjs/resources/Tax/index.js.map +1 -1
  212. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  213. package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
  214. package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
  215. package/cjs/resources/Terminal/Readers.d.ts +17 -1
  216. package/cjs/resources/Terminal/index.d.ts +5 -0
  217. package/cjs/resources/Terminal/index.js +2 -0
  218. package/cjs/resources/Terminal/index.js.map +1 -1
  219. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
  220. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  221. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
  222. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  223. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  224. package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
  225. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  226. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  227. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  228. package/cjs/resources/TestHelpers/index.d.ts +3 -0
  229. package/cjs/resources/TestHelpers/index.js +6 -4
  230. package/cjs/resources/TestHelpers/index.js.map +1 -1
  231. package/cjs/resources/Tokens.d.ts +15 -0
  232. package/cjs/resources/Transfers.d.ts +8 -0
  233. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  234. package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
  235. package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
  236. package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
  237. package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
  238. package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
  239. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  240. package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
  241. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  242. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  243. package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
  244. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  245. package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
  246. package/cjs/resources/V2/Billing/BillSettings.js +41 -0
  247. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
  248. package/cjs/resources/V2/Billing/Cadences.d.ts +958 -0
  249. package/cjs/resources/V2/Billing/Cadences.js +198 -0
  250. package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
  251. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  252. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
  253. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  254. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  255. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
  256. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  257. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  258. package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
  259. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
  260. package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
  261. package/cjs/resources/V2/Billing/Profiles.js +35 -0
  262. package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
  263. package/cjs/resources/V2/Billing/index.d.ts +45 -6
  264. package/cjs/resources/V2/Billing/index.js +8 -0
  265. package/cjs/resources/V2/Billing/index.js.map +1 -1
  266. package/cjs/resources/V2/Core/AccountTokens.d.ts +28 -1
  267. package/cjs/resources/V2/Core/Accounts.d.ts +1465 -71
  268. package/cjs/resources/V2/Core/ApprovalRequests.d.ts +378 -0
  269. package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
  270. package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
  271. package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
  272. package/cjs/resources/V2/Core/BatchJobs.js +252 -0
  273. package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
  274. package/cjs/resources/V2/Core/Events.d.ts +1009 -5
  275. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  276. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  277. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  278. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  279. package/cjs/resources/V2/Core/index.d.ts +24 -9
  280. package/cjs/resources/V2/Core/index.js +4 -0
  281. package/cjs/resources/V2/Core/index.js.map +1 -1
  282. package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
  283. package/cjs/resources/V2/Data/QueryRuns.js +51 -0
  284. package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
  285. package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
  286. package/cjs/resources/V2/Data/ReportRuns.js +53 -0
  287. package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
  288. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
  289. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  290. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  291. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  292. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  293. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  294. package/cjs/resources/V2/Data/Reports.d.ts +140 -0
  295. package/cjs/resources/V2/Data/Reports.js +25 -0
  296. package/cjs/resources/V2/Data/Reports.js.map +1 -0
  297. package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
  298. package/cjs/resources/V2/Data/Schemas.js +23 -0
  299. package/cjs/resources/V2/Data/Schemas.js.map +1 -0
  300. package/cjs/resources/V2/Data/index.d.ts +34 -0
  301. package/cjs/resources/V2/Data/index.js +21 -0
  302. package/cjs/resources/V2/Data/index.js.map +1 -0
  303. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  304. package/cjs/resources/V2/EventMisc.js +2 -0
  305. package/cjs/resources/V2/EventMisc.js.map +1 -0
  306. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  307. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  308. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  309. package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
  310. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  311. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  312. package/cjs/resources/V2/Extend/index.d.ts +20 -0
  313. package/cjs/resources/V2/Extend/index.js +15 -0
  314. package/cjs/resources/V2/Extend/index.js.map +1 -0
  315. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +377 -0
  316. package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
  317. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  318. package/cjs/resources/V2/Iam/index.d.ts +13 -0
  319. package/cjs/resources/V2/Iam/index.js +13 -0
  320. package/cjs/resources/V2/Iam/index.js.map +1 -0
  321. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
  322. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
  323. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
  324. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  325. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  326. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
  327. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  328. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
  329. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
  330. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
  331. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  332. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
  333. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
  334. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
  335. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
  336. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  337. package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
  338. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
  339. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  340. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  341. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
  342. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
  343. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
  344. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  345. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  346. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
  347. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
  348. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  349. package/cjs/resources/V2/MoneyManagement/index.d.ts +63 -37
  350. package/cjs/resources/V2/MoneyManagement/index.js +6 -0
  351. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
  352. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  353. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  354. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  355. package/cjs/resources/V2/Network/index.d.ts +13 -0
  356. package/cjs/resources/V2/Network/index.js +13 -0
  357. package/cjs/resources/V2/Network/index.js.map +1 -0
  358. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  359. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  360. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  361. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  362. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  363. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  364. package/cjs/resources/V2/Signals/AccountActivities.d.ts +432 -0
  365. package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
  366. package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
  367. package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
  368. package/cjs/resources/V2/Signals/AccountEvaluations.js +59 -0
  369. package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  370. package/cjs/resources/V2/Signals/AccountSignals.d.ts +196 -0
  371. package/cjs/resources/V2/Signals/AccountSignals.js +66 -0
  372. package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
  373. package/cjs/resources/V2/Signals/index.d.ts +26 -0
  374. package/cjs/resources/V2/Signals/index.js +17 -0
  375. package/cjs/resources/V2/Signals/index.js.map +1 -0
  376. package/cjs/resources/V2/index.d.ts +18 -0
  377. package/cjs/resources/V2/index.js +16 -4
  378. package/cjs/resources/V2/index.js.map +1 -1
  379. package/cjs/resources/WebhookEndpoints.d.ts +2 -2
  380. package/cjs/resources.d.ts +10 -0
  381. package/cjs/resources.js +126 -8
  382. package/cjs/resources.js.map +1 -1
  383. package/cjs/stripe.cjs.node.d.ts +6674 -138
  384. package/cjs/stripe.cjs.node.js.map +1 -1
  385. package/cjs/stripe.core.d.ts +60 -26
  386. package/cjs/stripe.core.js +55 -36
  387. package/cjs/stripe.core.js.map +1 -1
  388. package/esm/Error.d.ts +6 -0
  389. package/esm/Error.js +14 -0
  390. package/esm/Error.js.map +1 -1
  391. package/esm/StripeEventNotificationHandler.js +54 -0
  392. package/esm/StripeEventNotificationHandler.js.map +1 -1
  393. package/esm/Types.d.ts +4 -2
  394. package/esm/Types.js.map +1 -1
  395. package/esm/apiVersion.d.ts +2 -2
  396. package/esm/apiVersion.js +2 -2
  397. package/esm/apiVersion.js.map +1 -1
  398. package/esm/resources/AccountLinks.d.ts +1 -1
  399. package/esm/resources/AccountNotices.d.ts +140 -0
  400. package/esm/resources/AccountNotices.js +25 -0
  401. package/esm/resources/AccountNotices.js.map +1 -0
  402. package/esm/resources/AccountSessions.d.ts +226 -0
  403. package/esm/resources/AccountSessions.js.map +1 -1
  404. package/esm/resources/Accounts.d.ts +625 -3
  405. package/esm/resources/Accounts.js +14 -0
  406. package/esm/resources/Accounts.js.map +1 -1
  407. package/esm/resources/Balance.d.ts +67 -0
  408. package/esm/resources/BalanceSettings.d.ts +18 -0
  409. package/esm/resources/BankAccounts.d.ts +2 -2
  410. package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
  411. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
  412. package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
  413. package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  414. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  415. package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
  416. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  417. package/esm/resources/Billing/Analytics/index.d.ts +15 -0
  418. package/esm/resources/Billing/Analytics/index.js +9 -0
  419. package/esm/resources/Billing/Analytics/index.js.map +1 -0
  420. package/esm/resources/Billing/index.d.ts +3 -0
  421. package/esm/resources/Billing/index.js +2 -0
  422. package/esm/resources/Billing/index.js.map +1 -1
  423. package/esm/resources/Capabilities.d.ts +2 -2
  424. package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
  425. package/esm/resources/Capital/FinancingOffers.js +26 -0
  426. package/esm/resources/Capital/FinancingOffers.js.map +1 -0
  427. package/esm/resources/Capital/FinancingSummary.d.ts +102 -0
  428. package/esm/resources/Capital/FinancingSummary.js +11 -0
  429. package/esm/resources/Capital/FinancingSummary.js.map +1 -0
  430. package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
  431. package/esm/resources/Capital/FinancingTransactions.js +20 -0
  432. package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
  433. package/esm/resources/Capital/index.d.ts +25 -0
  434. package/esm/resources/Capital/index.js +13 -0
  435. package/esm/resources/Capital/index.js.map +1 -0
  436. package/esm/resources/Cards.d.ts +17 -0
  437. package/esm/resources/Charges.d.ts +3077 -70
  438. package/esm/resources/Checkout/Sessions.d.ts +351 -4
  439. package/esm/resources/ConfirmationTokens.d.ts +67 -1
  440. package/esm/resources/Coupons.d.ts +53 -0
  441. package/esm/resources/Coupons.js +13 -0
  442. package/esm/resources/Coupons.js.map +1 -1
  443. package/esm/resources/CreditNoteLineItems.d.ts +15 -1
  444. package/esm/resources/CreditNotes.d.ts +1 -1
  445. package/esm/resources/CustomerSessions.d.ts +68 -0
  446. package/esm/resources/Customers.d.ts +20 -1
  447. package/esm/resources/Customers.js +14 -0
  448. package/esm/resources/Customers.js.map +1 -1
  449. package/esm/resources/Disputes.d.ts +14 -0
  450. package/esm/resources/Events.d.ts +614 -3
  451. package/esm/resources/ExternalAccounts.d.ts +212 -1
  452. package/esm/resources/ExternalAccounts.js +42 -1
  453. package/esm/resources/ExternalAccounts.js.map +1 -1
  454. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  455. package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
  456. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  457. package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
  458. package/esm/resources/FinancialConnections/Accounts.js +8 -0
  459. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  460. package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
  461. package/esm/resources/FinancialConnections/Authorizations.js +9 -1
  462. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
  463. package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
  464. package/esm/resources/FinancialConnections/Institutions.js +19 -0
  465. package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
  466. package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
  467. package/esm/resources/FinancialConnections/index.d.ts +21 -9
  468. package/esm/resources/FinancialConnections/index.js +4 -0
  469. package/esm/resources/FinancialConnections/index.js.map +1 -1
  470. package/esm/resources/FxQuotes.d.ts +216 -0
  471. package/esm/resources/FxQuotes.js +25 -0
  472. package/esm/resources/FxQuotes.js.map +1 -0
  473. package/esm/resources/InvoiceItems.d.ts +85 -0
  474. package/esm/resources/InvoiceItems.js.map +1 -1
  475. package/esm/resources/InvoiceLineItems.d.ts +40 -2
  476. package/esm/resources/Invoices.d.ts +1257 -10
  477. package/esm/resources/Invoices.js +41 -0
  478. package/esm/resources/Invoices.js.map +1 -1
  479. package/esm/resources/Issuing/Authorizations.d.ts +13 -0
  480. package/esm/resources/Issuing/Cardholders.d.ts +19 -1
  481. package/esm/resources/Issuing/Cards.d.ts +13 -0
  482. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  483. package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
  484. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  485. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  486. package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
  487. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  488. package/esm/resources/Issuing/Disputes.d.ts +13 -0
  489. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  490. package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
  491. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  492. package/esm/resources/Issuing/Settlements.d.ts +83 -0
  493. package/esm/resources/Issuing/Settlements.js +3 -0
  494. package/esm/resources/Issuing/Settlements.js.map +1 -0
  495. package/esm/resources/Issuing/Transactions.d.ts +22 -0
  496. package/esm/resources/Issuing/Transactions.js.map +1 -1
  497. package/esm/resources/Issuing/index.d.ts +47 -22
  498. package/esm/resources/Issuing/index.js +6 -0
  499. package/esm/resources/Issuing/index.js.map +1 -1
  500. package/esm/resources/LineItems.d.ts +29 -2
  501. package/esm/resources/Mandates.d.ts +36 -2
  502. package/esm/resources/Mandates.js +8 -0
  503. package/esm/resources/Mandates.js.map +1 -1
  504. package/esm/resources/Margins.d.ts +115 -0
  505. package/esm/resources/Margins.js +31 -0
  506. package/esm/resources/Margins.js.map +1 -0
  507. package/esm/resources/Orders.d.ts +4696 -0
  508. package/esm/resources/Orders.js +453 -0
  509. package/esm/resources/Orders.js.map +1 -0
  510. package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
  511. package/esm/resources/PaymentIntents.d.ts +13832 -2816
  512. package/esm/resources/PaymentIntents.js +27 -0
  513. package/esm/resources/PaymentIntents.js.map +1 -1
  514. package/esm/resources/PaymentLinks.d.ts +3 -3
  515. package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
  516. package/esm/resources/PaymentMethods.d.ts +181 -3
  517. package/esm/resources/PaymentMethods.js.map +1 -1
  518. package/esm/resources/PaymentPlans.d.ts +427 -0
  519. package/esm/resources/PaymentPlans.js +31 -0
  520. package/esm/resources/PaymentPlans.js.map +1 -0
  521. package/esm/resources/PaymentRecords.d.ts +82 -0
  522. package/esm/resources/Persons.d.ts +2 -2
  523. package/esm/resources/Prices.d.ts +36 -0
  524. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  525. package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
  526. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  527. package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
  528. package/esm/resources/Privacy/RedactionJobs.js +69 -0
  529. package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
  530. package/esm/resources/Privacy/index.d.ts +22 -0
  531. package/esm/resources/Privacy/index.js +9 -0
  532. package/esm/resources/Privacy/index.js.map +1 -0
  533. package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  534. package/esm/resources/PromotionCodes.d.ts +12 -0
  535. package/esm/resources/PromotionCodes.js +27 -0
  536. package/esm/resources/PromotionCodes.js.map +1 -1
  537. package/esm/resources/QuoteLines.d.ts +507 -0
  538. package/esm/resources/QuoteLines.js +3 -0
  539. package/esm/resources/QuoteLines.js.map +1 -0
  540. package/esm/resources/QuotePreviewInvoices.d.ts +1170 -0
  541. package/esm/resources/QuotePreviewInvoices.js +3 -0
  542. package/esm/resources/QuotePreviewInvoices.js.map +1 -0
  543. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
  544. package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
  545. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  546. package/esm/resources/Quotes.d.ts +2266 -57
  547. package/esm/resources/Quotes.js +1184 -16
  548. package/esm/resources/Quotes.js.map +1 -1
  549. package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
  550. package/esm/resources/Radar/BillingEvaluations.js +11 -0
  551. package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
  552. package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
  553. package/esm/resources/Radar/ValueListItems.d.ts +31 -1
  554. package/esm/resources/Radar/index.d.ts +21 -16
  555. package/esm/resources/Radar/index.js +2 -0
  556. package/esm/resources/Radar/index.js.map +1 -1
  557. package/esm/resources/Refunds.d.ts +11 -0
  558. package/esm/resources/Reserve/Holds.d.ts +53 -1
  559. package/esm/resources/Reserve/Holds.js +17 -1
  560. package/esm/resources/Reserve/Holds.js.map +1 -1
  561. package/esm/resources/Reserve/Plans.d.ts +41 -1
  562. package/esm/resources/Reserve/Plans.js +17 -1
  563. package/esm/resources/Reserve/Plans.js.map +1 -1
  564. package/esm/resources/Reserve/Releases.d.ts +41 -1
  565. package/esm/resources/Reserve/Releases.js +17 -1
  566. package/esm/resources/Reserve/Releases.js.map +1 -1
  567. package/esm/resources/Reserve/index.d.ts +18 -6
  568. package/esm/resources/Reserve/index.js +9 -0
  569. package/esm/resources/Reserve/index.js.map +1 -1
  570. package/esm/resources/SetupAttempts.d.ts +26 -1
  571. package/esm/resources/SetupIntents.d.ts +394 -11
  572. package/esm/resources/SharedPayment/GrantedTokens.d.ts +418 -0
  573. package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
  574. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
  575. package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
  576. package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
  577. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
  578. package/esm/resources/SharedPayment/index.d.ts +19 -0
  579. package/esm/resources/SharedPayment/index.js +11 -0
  580. package/esm/resources/SharedPayment/index.js.map +1 -0
  581. package/esm/resources/Sources.d.ts +29 -1
  582. package/esm/resources/SubscriptionItems.d.ts +114 -0
  583. package/esm/resources/SubscriptionSchedules.d.ts +1157 -5
  584. package/esm/resources/SubscriptionSchedules.js +6 -0
  585. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  586. package/esm/resources/Subscriptions.d.ts +388 -6
  587. package/esm/resources/Subscriptions.js +42 -0
  588. package/esm/resources/Subscriptions.js.map +1 -1
  589. package/esm/resources/Tax/Forms.d.ts +228 -0
  590. package/esm/resources/Tax/Forms.js +28 -0
  591. package/esm/resources/Tax/Forms.js.map +1 -0
  592. package/esm/resources/Tax/Registrations.d.ts +25 -2
  593. package/esm/resources/Tax/index.d.ts +24 -17
  594. package/esm/resources/Tax/index.js +2 -0
  595. package/esm/resources/Tax/index.js.map +1 -1
  596. package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  597. package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
  598. package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
  599. package/esm/resources/Terminal/Readers.d.ts +17 -1
  600. package/esm/resources/Terminal/index.d.ts +5 -0
  601. package/esm/resources/Terminal/index.js +2 -0
  602. package/esm/resources/Terminal/index.js.map +1 -1
  603. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
  604. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  605. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
  606. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  607. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  608. package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
  609. package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  610. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  611. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  612. package/esm/resources/TestHelpers/index.d.ts +3 -0
  613. package/esm/resources/TestHelpers/index.js +2 -0
  614. package/esm/resources/TestHelpers/index.js.map +1 -1
  615. package/esm/resources/Tokens.d.ts +15 -0
  616. package/esm/resources/Transfers.d.ts +8 -0
  617. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  618. package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
  619. package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
  620. package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
  621. package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
  622. package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
  623. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  624. package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
  625. package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  626. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  627. package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
  628. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  629. package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
  630. package/esm/resources/V2/Billing/BillSettings.js +37 -0
  631. package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
  632. package/esm/resources/V2/Billing/Cadences.d.ts +958 -0
  633. package/esm/resources/V2/Billing/Cadences.js +194 -0
  634. package/esm/resources/V2/Billing/Cadences.js.map +1 -0
  635. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  636. package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
  637. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  638. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  639. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
  640. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  641. package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  642. package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
  643. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
  644. package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
  645. package/esm/resources/V2/Billing/Profiles.js +31 -0
  646. package/esm/resources/V2/Billing/Profiles.js.map +1 -0
  647. package/esm/resources/V2/Billing/index.d.ts +45 -6
  648. package/esm/resources/V2/Billing/index.js +8 -0
  649. package/esm/resources/V2/Billing/index.js.map +1 -1
  650. package/esm/resources/V2/Core/AccountTokens.d.ts +28 -1
  651. package/esm/resources/V2/Core/Accounts.d.ts +1465 -71
  652. package/esm/resources/V2/Core/ApprovalRequests.d.ts +378 -0
  653. package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
  654. package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
  655. package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
  656. package/esm/resources/V2/Core/BatchJobs.js +248 -0
  657. package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
  658. package/esm/resources/V2/Core/Events.d.ts +1009 -5
  659. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  660. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  661. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  662. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  663. package/esm/resources/V2/Core/index.d.ts +24 -9
  664. package/esm/resources/V2/Core/index.js +4 -0
  665. package/esm/resources/V2/Core/index.js.map +1 -1
  666. package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
  667. package/esm/resources/V2/Data/QueryRuns.js +47 -0
  668. package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
  669. package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
  670. package/esm/resources/V2/Data/ReportRuns.js +49 -0
  671. package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
  672. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
  673. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  674. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  675. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  676. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  677. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  678. package/esm/resources/V2/Data/Reports.d.ts +140 -0
  679. package/esm/resources/V2/Data/Reports.js +21 -0
  680. package/esm/resources/V2/Data/Reports.js.map +1 -0
  681. package/esm/resources/V2/Data/Schemas.d.ts +161 -0
  682. package/esm/resources/V2/Data/Schemas.js +19 -0
  683. package/esm/resources/V2/Data/Schemas.js.map +1 -0
  684. package/esm/resources/V2/Data/index.d.ts +34 -0
  685. package/esm/resources/V2/Data/index.js +17 -0
  686. package/esm/resources/V2/Data/index.js.map +1 -0
  687. package/esm/resources/V2/EventMisc.d.ts +0 -0
  688. package/esm/resources/V2/EventMisc.js +2 -0
  689. package/esm/resources/V2/EventMisc.js.map +1 -0
  690. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  691. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  692. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  693. package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
  694. package/esm/resources/V2/Extend/Workflows.js +26 -0
  695. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  696. package/esm/resources/V2/Extend/index.d.ts +20 -0
  697. package/esm/resources/V2/Extend/index.js +11 -0
  698. package/esm/resources/V2/Extend/index.js.map +1 -0
  699. package/esm/resources/V2/Iam/ActivityLogs.d.ts +377 -0
  700. package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
  701. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  702. package/esm/resources/V2/Iam/index.d.ts +13 -0
  703. package/esm/resources/V2/Iam/index.js +9 -0
  704. package/esm/resources/V2/Iam/index.js.map +1 -0
  705. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
  706. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
  707. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
  708. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  709. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  710. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
  711. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  712. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
  713. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
  714. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
  715. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  716. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
  717. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
  718. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
  719. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
  720. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  721. package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
  722. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
  723. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  724. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  725. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
  726. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
  727. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
  728. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  729. package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  730. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
  731. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
  732. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  733. package/esm/resources/V2/MoneyManagement/index.d.ts +63 -37
  734. package/esm/resources/V2/MoneyManagement/index.js +6 -0
  735. package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
  736. package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  737. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  738. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  739. package/esm/resources/V2/Network/index.d.ts +13 -0
  740. package/esm/resources/V2/Network/index.js +9 -0
  741. package/esm/resources/V2/Network/index.js.map +1 -0
  742. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  743. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  744. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  745. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  746. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  747. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  748. package/esm/resources/V2/Signals/AccountActivities.d.ts +432 -0
  749. package/esm/resources/V2/Signals/AccountActivities.js +23 -0
  750. package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
  751. package/esm/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
  752. package/esm/resources/V2/Signals/AccountEvaluations.js +55 -0
  753. package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  754. package/esm/resources/V2/Signals/AccountSignals.d.ts +196 -0
  755. package/esm/resources/V2/Signals/AccountSignals.js +62 -0
  756. package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
  757. package/esm/resources/V2/Signals/index.d.ts +26 -0
  758. package/esm/resources/V2/Signals/index.js +13 -0
  759. package/esm/resources/V2/Signals/index.js.map +1 -0
  760. package/esm/resources/V2/index.d.ts +18 -0
  761. package/esm/resources/V2/index.js +12 -0
  762. package/esm/resources/V2/index.js.map +1 -1
  763. package/esm/resources/WebhookEndpoints.d.ts +2 -2
  764. package/esm/resources.d.ts +10 -0
  765. package/esm/resources.js +112 -0
  766. package/esm/resources.js.map +1 -1
  767. package/esm/stripe.core.d.ts +60 -26
  768. package/esm/stripe.core.js +21 -2
  769. package/esm/stripe.core.js.map +1 -1
  770. package/esm/stripe.esm.node.d.ts +60 -26
  771. package/esm/stripe.esm.node.js +21 -2
  772. package/esm/stripe.esm.node.js.map +1 -1
  773. package/package.json +1 -1
@@ -373,7 +373,7 @@ export declare namespace Person {
373
373
  requirement: string;
374
374
  }
375
375
  namespace Error {
376
- type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_cmra_address' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_address_registered_agent_address' | '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';
376
+ type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_cmra_address' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_address_registered_agent_address' | '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';
377
377
  }
378
378
  }
379
379
  namespace Requirements {
@@ -402,7 +402,7 @@ export declare namespace Person {
402
402
  requirement: string;
403
403
  }
404
404
  namespace Error {
405
- type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_cmra_address' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_address_registered_agent_address' | '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';
405
+ type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_cmra_address' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_address_registered_agent_address' | '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';
406
406
  }
407
407
  }
408
408
  namespace UsCfpbData {
@@ -78,6 +78,10 @@ export interface Price {
78
78
  * 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.
79
79
  */
80
80
  metadata: Metadata;
81
+ /**
82
+ * Subscriptions using this price will be migrated to use the new referenced price.
83
+ */
84
+ migrate_to?: Price.MigrateTo | null;
81
85
  /**
82
86
  * A brief description of the price, hidden from customers.
83
87
  */
@@ -171,6 +175,20 @@ export declare namespace Price {
171
175
  */
172
176
  preset: number | null;
173
177
  }
178
+ interface MigrateTo {
179
+ /**
180
+ * The behavior controlling at what point in the subscription lifecycle to migrate the price
181
+ */
182
+ behavior: 'at_cycle_end';
183
+ /**
184
+ * The unix timestamp after at which subscriptions will start to migrate to the new price.
185
+ */
186
+ effective_after: number;
187
+ /**
188
+ * The id of the price being migrated to
189
+ */
190
+ price: string;
191
+ }
174
192
  interface Recurring {
175
193
  /**
176
194
  * The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
@@ -581,6 +599,10 @@ export interface PriceUpdateParams {
581
599
  * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
582
600
  */
583
601
  metadata?: Emptyable<MetadataParam>;
602
+ /**
603
+ * If specified, subscriptions using this price will be updated to use the new referenced price.
604
+ */
605
+ migrate_to?: Emptyable<PriceUpdateParams.MigrateTo>;
584
606
  /**
585
607
  * A brief description of the price, hidden from customers.
586
608
  */
@@ -617,6 +639,20 @@ export declare namespace PriceUpdateParams {
617
639
  */
618
640
  unit_amount_decimal?: Decimal;
619
641
  }
642
+ interface MigrateTo {
643
+ /**
644
+ * The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
645
+ */
646
+ behavior: 'at_cycle_end';
647
+ /**
648
+ * The time after which subscriptions should start using the new price.
649
+ */
650
+ effective_after?: number;
651
+ /**
652
+ * The ID of the price object.
653
+ */
654
+ price: string;
655
+ }
620
656
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
621
657
  namespace CurrencyOptions {
622
658
  interface CustomUnitAmount {
@@ -0,0 +1,36 @@
1
+ import { OtherString } from '../../shared.js';
2
+ export interface RedactionJobValidationError {
3
+ /**
4
+ * Unique identifier for the object.
5
+ */
6
+ id: string;
7
+ /**
8
+ * String representing the object's type. Objects of the same type share the same value.
9
+ */
10
+ object: 'privacy.redaction_job_validation_error';
11
+ /**
12
+ * A code indicating the reason for the error.
13
+ */
14
+ code: RedactionJobValidationError.Code;
15
+ /**
16
+ * If the error is related to a specific object, this field includes the object's identifier and object type.
17
+ */
18
+ erroring_object: RedactionJobValidationError.ErroringObject | null;
19
+ /**
20
+ * A human-readable message providing more details about the error.
21
+ */
22
+ message: string;
23
+ }
24
+ export declare namespace RedactionJobValidationError {
25
+ type Code = 'invalid_cascading_source' | 'invalid_file_purpose' | 'invalid_state' | 'locked_by_other_job' | 'too_many_objects' | OtherString;
26
+ interface ErroringObject {
27
+ /**
28
+ * Unique identifier for the object.
29
+ */
30
+ id: string;
31
+ /**
32
+ * Erroring object type
33
+ */
34
+ object_type: string;
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec
2
+ export {};
3
+ //# sourceMappingURL=RedactionJobValidationErrors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedactionJobValidationErrors.js","sourceRoot":"","sources":["../../../src/resources/Privacy/RedactionJobValidationErrors.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
@@ -0,0 +1,227 @@
1
+ import { StripeResource } from '../../StripeResource.js';
2
+ import { RedactionJobValidationError } from './RedactionJobValidationErrors.js';
3
+ import { OtherString, PaginationParams } from '../../shared.js';
4
+ import { RequestOptions, ApiListPromise, Response, ApiList } from '../../lib.js';
5
+ export declare class RedactionJobResource extends StripeResource {
6
+ /**
7
+ * Returns a list of redaction jobs.
8
+ */
9
+ list(params?: Privacy.RedactionJobListParams, options?: RequestOptions): ApiListPromise<RedactionJob>;
10
+ /**
11
+ * Creates a redaction job. When a job is created, it will start to validate.
12
+ */
13
+ create(params: Privacy.RedactionJobCreateParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
14
+ /**
15
+ * Retrieves the details of a previously created redaction job.
16
+ */
17
+ retrieve(id: string, params?: Privacy.RedactionJobRetrieveParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
18
+ /**
19
+ * Updates the properties of a redaction job without running or canceling the job.
20
+ *
21
+ * If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
22
+ */
23
+ update(id: string, params?: Privacy.RedactionJobUpdateParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
24
+ /**
25
+ * You can cancel a redaction job when it's in one of these statuses: ready, failed.
26
+ *
27
+ * Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
28
+ */
29
+ cancel(id: string, params?: Privacy.RedactionJobCancelParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
30
+ /**
31
+ * Run a redaction job in a ready status.
32
+ *
33
+ * When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
34
+ *
35
+ * The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
36
+ */
37
+ run(id: string, params?: Privacy.RedactionJobRunParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
38
+ /**
39
+ * Validate a redaction job when it is in a failed status.
40
+ *
41
+ * When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
42
+ *
43
+ * The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
44
+ */
45
+ validate(id: string, params?: Privacy.RedactionJobValidateParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
46
+ /**
47
+ * Returns a list of validation errors for the specified redaction job.
48
+ */
49
+ listValidationErrors(id: string, params?: Privacy.RedactionJobListValidationErrorsParams, options?: RequestOptions): ApiListPromise<RedactionJobValidationError>;
50
+ }
51
+ export interface RedactionJob {
52
+ /**
53
+ * Unique identifier for the object.
54
+ */
55
+ id: string;
56
+ /**
57
+ * String representing the object's type. Objects of the same type share the same value.
58
+ */
59
+ object: 'privacy.redaction_job';
60
+ /**
61
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
62
+ */
63
+ created: number;
64
+ /**
65
+ * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
66
+ */
67
+ livemode: boolean;
68
+ /**
69
+ * The objects to redact in this job.
70
+ */
71
+ objects?: RedactionJob.Objects | null;
72
+ /**
73
+ * The status of the job.
74
+ */
75
+ status: RedactionJob.Status;
76
+ /**
77
+ * Validation behavior determines how a job validates objects for redaction eligibility. Default is `error`.
78
+ */
79
+ validation_behavior: RedactionJob.ValidationBehavior | null;
80
+ /**
81
+ * The first 10 validation errors for the current validation attempt. Use the validation errors list endpoint to paginate through the full list.
82
+ */
83
+ validation_errors?: ApiList<RedactionJobValidationError>;
84
+ }
85
+ export declare namespace RedactionJob {
86
+ interface Objects {
87
+ /**
88
+ * Charge object identifiers usually starting with `ch_`
89
+ */
90
+ charges: Array<string> | null;
91
+ /**
92
+ * CheckoutSession object identifiers starting with `cs_`
93
+ */
94
+ checkout_sessions: Array<string> | null;
95
+ /**
96
+ * Customer object identifiers starting with `cus_`
97
+ */
98
+ customers: Array<string> | null;
99
+ /**
100
+ * Identity VerificationSessions object identifiers starting with `vs_`
101
+ */
102
+ identity_verification_sessions: Array<string> | null;
103
+ /**
104
+ * Invoice object identifiers starting with `in_`
105
+ */
106
+ invoices: Array<string> | null;
107
+ /**
108
+ * Issuing Cardholder object identifiers starting with `ich_`
109
+ */
110
+ issuing_cardholders: Array<string> | null;
111
+ /**
112
+ * PaymentIntent object identifiers starting with `pi_`
113
+ */
114
+ payment_intents: Array<string> | null;
115
+ /**
116
+ * Fraud ValueListItem object identifiers starting with `rsli_`
117
+ */
118
+ radar_value_list_items: Array<string> | null;
119
+ /**
120
+ * SetupIntent object identifiers starting with `seti_`
121
+ */
122
+ setup_intents: Array<string> | null;
123
+ }
124
+ type Status = 'canceled' | 'canceling' | 'created' | 'failed' | 'ready' | 'redacting' | 'succeeded' | 'validating' | OtherString;
125
+ type ValidationBehavior = 'error' | 'fix' | OtherString;
126
+ }
127
+ export declare namespace Privacy {
128
+ interface RedactionJobCreateParams {
129
+ /**
130
+ * The objects to redact. These root objects and their related ones will be validated for redaction.
131
+ */
132
+ objects: RedactionJobCreateParams.Objects;
133
+ /**
134
+ * Specifies which fields in the response should be expanded.
135
+ */
136
+ expand?: Array<string>;
137
+ /**
138
+ * Determines the validation behavior of the job. Default is `error`.
139
+ */
140
+ validation_behavior?: RedactionJobCreateParams.ValidationBehavior;
141
+ }
142
+ namespace RedactionJobCreateParams {
143
+ interface Objects {
144
+ charges?: Array<string>;
145
+ checkout_sessions?: Array<string>;
146
+ customers?: Array<string>;
147
+ identity_verification_sessions?: Array<string>;
148
+ invoices?: Array<string>;
149
+ issuing_cardholders?: Array<string>;
150
+ issuing_cards?: Array<string>;
151
+ payment_intents?: Array<string>;
152
+ radar_value_list_items?: Array<string>;
153
+ setup_intents?: Array<string>;
154
+ }
155
+ type ValidationBehavior = 'error' | 'fix' | OtherString;
156
+ }
157
+ }
158
+ export declare namespace Privacy {
159
+ interface RedactionJobRetrieveParams {
160
+ /**
161
+ * Specifies which fields in the response should be expanded.
162
+ */
163
+ expand?: Array<string>;
164
+ }
165
+ }
166
+ export declare namespace Privacy {
167
+ interface RedactionJobUpdateParams {
168
+ /**
169
+ * Specifies which fields in the response should be expanded.
170
+ */
171
+ expand?: Array<string>;
172
+ /**
173
+ * Determines the validation behavior of the job. Default is `error`.
174
+ */
175
+ validation_behavior?: RedactionJobUpdateParams.ValidationBehavior;
176
+ }
177
+ namespace RedactionJobUpdateParams {
178
+ type ValidationBehavior = 'error' | 'fix' | OtherString;
179
+ }
180
+ }
181
+ export declare namespace Privacy {
182
+ interface RedactionJobListParams extends PaginationParams {
183
+ /**
184
+ * Specifies which fields in the response should be expanded.
185
+ */
186
+ expand?: Array<string>;
187
+ /**
188
+ * If provided, only RedactionJob objects with the given status will be returned.
189
+ */
190
+ status?: RedactionJobListParams.Status;
191
+ }
192
+ namespace RedactionJobListParams {
193
+ type Status = 'canceled' | 'canceling' | 'created' | 'failed' | 'ready' | 'redacting' | 'succeeded' | 'validating' | OtherString;
194
+ }
195
+ }
196
+ export declare namespace Privacy {
197
+ interface RedactionJobCancelParams {
198
+ /**
199
+ * Specifies which fields in the response should be expanded.
200
+ */
201
+ expand?: Array<string>;
202
+ }
203
+ }
204
+ export declare namespace Privacy {
205
+ interface RedactionJobListValidationErrorsParams extends PaginationParams {
206
+ /**
207
+ * Specifies which fields in the response should be expanded.
208
+ */
209
+ expand?: Array<string>;
210
+ }
211
+ }
212
+ export declare namespace Privacy {
213
+ interface RedactionJobRunParams {
214
+ /**
215
+ * Specifies which fields in the response should be expanded.
216
+ */
217
+ expand?: Array<string>;
218
+ }
219
+ }
220
+ export declare namespace Privacy {
221
+ interface RedactionJobValidateParams {
222
+ /**
223
+ * Specifies which fields in the response should be expanded.
224
+ */
225
+ expand?: Array<string>;
226
+ }
227
+ }
@@ -0,0 +1,69 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ export class RedactionJobResource extends StripeResource {
4
+ /**
5
+ * Returns a list of redaction jobs.
6
+ */
7
+ list(params, options) {
8
+ return this._makeRequest('GET', '/v1/privacy/redaction_jobs', params, options, {
9
+ methodType: 'list',
10
+ });
11
+ }
12
+ /**
13
+ * Creates a redaction job. When a job is created, it will start to validate.
14
+ */
15
+ create(params, options) {
16
+ return this._makeRequest('POST', '/v1/privacy/redaction_jobs', params, options);
17
+ }
18
+ /**
19
+ * Retrieves the details of a previously created redaction job.
20
+ */
21
+ retrieve(id, params, options) {
22
+ return this._makeRequest('GET', `/v1/privacy/redaction_jobs/${encodeURIComponent(id)}`, params, options);
23
+ }
24
+ /**
25
+ * Updates the properties of a redaction job without running or canceling the job.
26
+ *
27
+ * If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
28
+ */
29
+ update(id, params, options) {
30
+ return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${encodeURIComponent(id)}`, params, options);
31
+ }
32
+ /**
33
+ * You can cancel a redaction job when it's in one of these statuses: ready, failed.
34
+ *
35
+ * Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
36
+ */
37
+ cancel(id, params, options) {
38
+ return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${encodeURIComponent(id)}/cancel`, params, options);
39
+ }
40
+ /**
41
+ * Run a redaction job in a ready status.
42
+ *
43
+ * When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
44
+ *
45
+ * The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
46
+ */
47
+ run(id, params, options) {
48
+ return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${encodeURIComponent(id)}/run`, params, options);
49
+ }
50
+ /**
51
+ * Validate a redaction job when it is in a failed status.
52
+ *
53
+ * When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
54
+ *
55
+ * The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
56
+ */
57
+ validate(id, params, options) {
58
+ return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${encodeURIComponent(id)}/validate`, params, options);
59
+ }
60
+ /**
61
+ * Returns a list of validation errors for the specified redaction job.
62
+ */
63
+ listValidationErrors(id, params, options) {
64
+ return this._makeRequest('GET', `/v1/privacy/redaction_jobs/${encodeURIComponent(id)}/validation_errors`, params, options, {
65
+ methodType: 'list',
66
+ });
67
+ }
68
+ }
69
+ //# sourceMappingURL=RedactionJobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedactionJobs.js","sourceRoot":"","sources":["../../../src/resources/Privacy/RedactionJobs.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD;;OAEG;IACH,IAAI,CACF,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,4BAA4B,EAC5B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,4BAA4B,EAC5B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC7D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;OAMG;IACH,GAAG,CACD,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAC1D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAC/D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,oBAAoB,CAClB,EAAU,EACV,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,oBAAoB,EACxE,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import { Stripe } from '../../stripe.core.js';
2
+ import { Privacy as PrivacyNamespace0, RedactionJob, RedactionJobResource } from './RedactionJobs.js';
3
+ import { RedactionJobValidationError } from './RedactionJobValidationErrors.js';
4
+ export { RedactionJob } from './RedactionJobs.js';
5
+ export { RedactionJobValidationError } from './RedactionJobValidationErrors.js';
6
+ export declare class Privacy {
7
+ private readonly stripe;
8
+ redactionJobs: RedactionJobResource;
9
+ constructor(stripe: Stripe);
10
+ }
11
+ export declare namespace Privacy {
12
+ export import RedactionJobListParams = PrivacyNamespace0.RedactionJobListParams;
13
+ export import RedactionJobCreateParams = PrivacyNamespace0.RedactionJobCreateParams;
14
+ export import RedactionJobRetrieveParams = PrivacyNamespace0.RedactionJobRetrieveParams;
15
+ export import RedactionJobUpdateParams = PrivacyNamespace0.RedactionJobUpdateParams;
16
+ export import RedactionJobCancelParams = PrivacyNamespace0.RedactionJobCancelParams;
17
+ export import RedactionJobRunParams = PrivacyNamespace0.RedactionJobRunParams;
18
+ export import RedactionJobValidateParams = PrivacyNamespace0.RedactionJobValidateParams;
19
+ export import RedactionJobListValidationErrorsParams = PrivacyNamespace0.RedactionJobListValidationErrorsParams;
20
+ export { RedactionJob, RedactionJobResource };
21
+ export { RedactionJobValidationError };
22
+ }
@@ -0,0 +1,9 @@
1
+ // File generated from our OpenAPI spec
2
+ import { RedactionJobResource, } from './RedactionJobs.js';
3
+ export class Privacy {
4
+ constructor(stripe) {
5
+ this.stripe = stripe;
6
+ this.redactionJobs = new RedactionJobResource(stripe);
7
+ }
8
+ }
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Privacy/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAM5B,MAAM,OAAO,OAAO;IAGlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,aAAa,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -70,7 +70,7 @@ export declare namespace TrialOffer {
70
70
  */
71
71
  iterations: number;
72
72
  }
73
- type Type = 'relative' | OtherString;
73
+ type Type = 'relative' | 'timestamp' | OtherString;
74
74
  }
75
75
  namespace EndBehavior {
76
76
  interface Transition {
@@ -133,7 +133,7 @@ export declare namespace ProductCatalog {
133
133
  */
134
134
  iterations: number;
135
135
  }
136
- type Type = 'relative' | OtherString;
136
+ type Type = 'relative' | 'timestamp' | OtherString;
137
137
  }
138
138
  namespace EndBehavior {
139
139
  interface Transition {
@@ -20,6 +20,14 @@ export declare class PromotionCodeResource extends StripeResource {
20
20
  * Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.
21
21
  */
22
22
  update(id: string, params?: PromotionCodeUpdateParams, options?: RequestOptions): Promise<Response<PromotionCode>>;
23
+ serializeBatchCreate(params?: Record<string, unknown>, options?: {
24
+ apiVersion?: string;
25
+ stripeContext?: string;
26
+ }): string;
27
+ serializeBatchUpdate(promotionCode: string, params?: Record<string, unknown>, options?: {
28
+ apiVersion?: string;
29
+ stripeContext?: string;
30
+ }): string;
23
31
  }
24
32
  export interface PromotionCode {
25
33
  /**
@@ -269,3 +277,7 @@ export interface PromotionCodeListParams extends PaginationParams {
269
277
  */
270
278
  expand?: Array<string>;
271
279
  }
280
+ export interface PromotionCodeSerializeBatchCreateParams {
281
+ }
282
+ export interface PromotionCodeSerializeBatchUpdateParams {
283
+ }
@@ -27,5 +27,32 @@ export class PromotionCodeResource extends StripeResource {
27
27
  update(id, params, options) {
28
28
  return this._makeRequest('POST', `/v1/promotion_codes/${encodeURIComponent(id)}`, params, options);
29
29
  }
30
+ serializeBatchCreate(params = {}, options = {}) {
31
+ const itemId = this._stripe._platformFunctions.uuid4();
32
+ const stripeVersion = options.apiVersion || this._stripe.getApiField('version');
33
+ const entry = {
34
+ id: itemId,
35
+ params: params,
36
+ stripe_version: stripeVersion,
37
+ };
38
+ if (options.stripeContext) {
39
+ entry.context = options.stripeContext;
40
+ }
41
+ return JSON.stringify(entry);
42
+ }
43
+ serializeBatchUpdate(promotionCode, params = {}, options = {}) {
44
+ const itemId = this._stripe._platformFunctions.uuid4();
45
+ const stripeVersion = options.apiVersion || this._stripe.getApiField('version');
46
+ const entry = {
47
+ id: itemId,
48
+ params: params,
49
+ stripe_version: stripeVersion,
50
+ };
51
+ entry.path_params = { promotion_code: promotionCode };
52
+ if (options.stripeContext) {
53
+ entry.context = options.stripeContext;
54
+ }
55
+ return JSON.stringify(entry);
56
+ }
30
57
  }
31
58
  //# sourceMappingURL=PromotionCodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PromotionCodes.js","sourceRoot":"","sources":["../../src/resources/PromotionCodes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAYpD,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IACvD;;OAEG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,OAAO,EAAE;YACtE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qBAAqB,EACrB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,uBAAuB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,uBAAuB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
1
+ {"version":3,"file":"PromotionCodes.js","sourceRoot":"","sources":["../../src/resources/PromotionCodes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAYpD,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IACvD;;OAEG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,OAAO,EAAE;YACtE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qBAAqB,EACrB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,uBAAuB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,uBAAuB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD,oBAAoB,CAClB,SAAkC,EAAE,EACpC,UAAyD,EAAE;QAE3D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;QACvD,MAAM,aAAa,GACjB,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAE5D,MAAM,KAAK,GAA4B;YACrC,EAAE,EAAE,MAAM;YACV,MAAM,EAAE,MAAM;YACd,cAAc,EAAE,aAAa;SAC9B,CAAC;QACF,IAAI,OAAO,CAAC,aAAa,EAAE;YACzB,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;SACvC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,oBAAoB,CAClB,aAAqB,EACrB,SAAkC,EAAE,EACpC,UAAyD,EAAE;QAE3D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;QACvD,MAAM,aAAa,GACjB,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAE5D,MAAM,KAAK,GAA4B;YACrC,EAAE,EAAE,MAAM;YACV,MAAM,EAAE,MAAM;YACd,cAAc,EAAE,aAAa;SAC9B,CAAC;QACF,KAAK,CAAC,WAAW,GAAG,EAAC,cAAc,EAAE,aAAa,EAAC,CAAC;QACpD,IAAI,OAAO,CAAC,aAAa,EAAE;YACzB,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;SACvC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACF"}