stripe 22.3.0-beta.1 → 22.3.0

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 (1337) hide show
  1. package/CHANGELOG.md +151 -1770
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +73 -58
  4. package/VERSION +1 -1
  5. package/cjs/Error.d.ts +0 -50
  6. package/cjs/Error.js +1 -125
  7. package/cjs/Error.js.map +1 -1
  8. package/cjs/RequestSender.d.ts +2 -1
  9. package/cjs/RequestSender.js +10 -2
  10. package/cjs/RequestSender.js.map +1 -1
  11. package/cjs/Types.d.ts +2 -4
  12. package/cjs/Types.js.map +1 -1
  13. package/cjs/apiVersion.d.ts +2 -1
  14. package/cjs/apiVersion.js +3 -2
  15. package/cjs/apiVersion.js.map +1 -1
  16. package/cjs/autoPagination.js +27 -2
  17. package/cjs/autoPagination.js.map +1 -1
  18. package/cjs/platform/NodePlatformFunctions.d.ts +3 -0
  19. package/cjs/platform/NodePlatformFunctions.js +36 -2
  20. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  21. package/cjs/platform/PlatformFunctions.d.ts +1 -0
  22. package/cjs/platform/PlatformFunctions.js +3 -0
  23. package/cjs/platform/PlatformFunctions.js.map +1 -1
  24. package/cjs/resources/AccountLinks.d.ts +1 -1
  25. package/cjs/resources/AccountSessions.d.ts +0 -262
  26. package/cjs/resources/AccountSessions.js.map +1 -1
  27. package/cjs/resources/Accounts.d.ts +5 -829
  28. package/cjs/resources/Accounts.js +18 -32
  29. package/cjs/resources/Accounts.js.map +1 -1
  30. package/cjs/resources/ApplePayDomains.js +2 -2
  31. package/cjs/resources/ApplePayDomains.js.map +1 -1
  32. package/cjs/resources/ApplicationFees.js +5 -5
  33. package/cjs/resources/ApplicationFees.js.map +1 -1
  34. package/cjs/resources/Apps/Secrets.d.ts +14 -16
  35. package/cjs/resources/Apps/index.d.ts +1 -1
  36. package/cjs/resources/Balance.d.ts +0 -67
  37. package/cjs/resources/BalanceTransactions.d.ts +5 -5
  38. package/cjs/resources/BalanceTransactions.js +3 -3
  39. package/cjs/resources/BalanceTransactions.js.map +1 -1
  40. package/cjs/resources/BankAccounts.d.ts +2 -2
  41. package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
  42. package/cjs/resources/Billing/Alerts.d.ts +27 -29
  43. package/cjs/resources/Billing/Alerts.js +4 -4
  44. package/cjs/resources/Billing/Alerts.js.map +1 -1
  45. package/cjs/resources/Billing/CreditBalanceSummary.d.ts +40 -42
  46. package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
  47. package/cjs/resources/Billing/CreditBalanceTransactions.js +1 -1
  48. package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  49. package/cjs/resources/Billing/CreditGrants.d.ts +41 -43
  50. package/cjs/resources/Billing/CreditGrants.js +4 -4
  51. package/cjs/resources/Billing/CreditGrants.js.map +1 -1
  52. package/cjs/resources/Billing/MeterEventAdjustments.d.ts +9 -11
  53. package/cjs/resources/Billing/Meters.d.ts +39 -41
  54. package/cjs/resources/Billing/Meters.js +5 -5
  55. package/cjs/resources/Billing/Meters.js.map +1 -1
  56. package/cjs/resources/Billing/index.d.ts +7 -10
  57. package/cjs/resources/Billing/index.js +0 -2
  58. package/cjs/resources/Billing/index.js.map +1 -1
  59. package/cjs/resources/BillingPortal/Configurations.d.ts +132 -134
  60. package/cjs/resources/BillingPortal/Configurations.js +2 -2
  61. package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
  62. package/cjs/resources/BillingPortal/Sessions.d.ts +100 -102
  63. package/cjs/resources/BillingPortal/index.d.ts +2 -2
  64. package/cjs/resources/Capabilities.d.ts +2 -2
  65. package/cjs/resources/Cards.d.ts +0 -4
  66. package/cjs/resources/Charges.d.ts +84 -3066
  67. package/cjs/resources/Charges.js +3 -3
  68. package/cjs/resources/Charges.js.map +1 -1
  69. package/cjs/resources/Checkout/Sessions.d.ts +1598 -1900
  70. package/cjs/resources/Checkout/Sessions.js +4 -4
  71. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  72. package/cjs/resources/Checkout/index.d.ts +1 -1
  73. package/cjs/resources/Climate/Orders.d.ts +47 -49
  74. package/cjs/resources/Climate/Orders.js +3 -3
  75. package/cjs/resources/Climate/Orders.js.map +1 -1
  76. package/cjs/resources/Climate/Products.d.ts +15 -17
  77. package/cjs/resources/Climate/Products.js +1 -1
  78. package/cjs/resources/Climate/Products.js.map +1 -1
  79. package/cjs/resources/Climate/Suppliers.d.ts +25 -27
  80. package/cjs/resources/Climate/Suppliers.js +1 -1
  81. package/cjs/resources/Climate/Suppliers.js.map +1 -1
  82. package/cjs/resources/Climate/index.d.ts +3 -3
  83. package/cjs/resources/ConfirmationTokens.d.ts +13 -67
  84. package/cjs/resources/ConfirmationTokens.js +1 -1
  85. package/cjs/resources/ConfirmationTokens.js.map +1 -1
  86. package/cjs/resources/CountrySpecs.js +1 -1
  87. package/cjs/resources/CountrySpecs.js.map +1 -1
  88. package/cjs/resources/Coupons.d.ts +0 -53
  89. package/cjs/resources/Coupons.js +3 -16
  90. package/cjs/resources/Coupons.js.map +1 -1
  91. package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
  92. package/cjs/resources/CreditNotes.d.ts +8 -5
  93. package/cjs/resources/CreditNotes.js +6 -4
  94. package/cjs/resources/CreditNotes.js.map +1 -1
  95. package/cjs/resources/CustomerSessions.d.ts +0 -68
  96. package/cjs/resources/Customers.d.ts +1 -7
  97. package/cjs/resources/Customers.js +31 -41
  98. package/cjs/resources/Customers.js.map +1 -1
  99. package/cjs/resources/Disputes.d.ts +28 -30
  100. package/cjs/resources/Disputes.js +3 -3
  101. package/cjs/resources/Disputes.js.map +1 -1
  102. package/cjs/resources/Entitlements/ActiveEntitlements.js +1 -1
  103. package/cjs/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  104. package/cjs/resources/Entitlements/Features.js +2 -2
  105. package/cjs/resources/Entitlements/Features.js.map +1 -1
  106. package/cjs/resources/Entitlements/index.d.ts +2 -2
  107. package/cjs/resources/EphemeralKeys.js +1 -1
  108. package/cjs/resources/EphemeralKeys.js.map +1 -1
  109. package/cjs/resources/Events.d.ts +3 -548
  110. package/cjs/resources/Events.js +1 -1
  111. package/cjs/resources/Events.js.map +1 -1
  112. package/cjs/resources/ExchangeRates.js +1 -1
  113. package/cjs/resources/ExchangeRates.js.map +1 -1
  114. package/cjs/resources/ExternalAccounts.d.ts +1 -212
  115. package/cjs/resources/ExternalAccounts.js +0 -44
  116. package/cjs/resources/ExternalAccounts.js.map +1 -1
  117. package/cjs/resources/FileLinks.js +2 -2
  118. package/cjs/resources/FileLinks.js.map +1 -1
  119. package/cjs/resources/Files.js +1 -1
  120. package/cjs/resources/Files.js.map +1 -1
  121. package/cjs/resources/FinancialConnections/Accounts.d.ts +169 -217
  122. package/cjs/resources/FinancialConnections/Accounts.js +6 -14
  123. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  124. package/cjs/resources/FinancialConnections/Sessions.d.ts +43 -193
  125. package/cjs/resources/FinancialConnections/Sessions.js +1 -1
  126. package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
  127. package/cjs/resources/FinancialConnections/Transactions.d.ts +13 -15
  128. package/cjs/resources/FinancialConnections/Transactions.js +1 -1
  129. package/cjs/resources/FinancialConnections/Transactions.js.map +1 -1
  130. package/cjs/resources/FinancialConnections/index.d.ts +9 -24
  131. package/cjs/resources/FinancialConnections/index.js +0 -4
  132. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  133. package/cjs/resources/Forwarding/Requests.d.ts +57 -59
  134. package/cjs/resources/Forwarding/Requests.js +1 -1
  135. package/cjs/resources/Forwarding/Requests.js.map +1 -1
  136. package/cjs/resources/Forwarding/index.d.ts +1 -1
  137. package/cjs/resources/Identity/VerificationReports.d.ts +255 -257
  138. package/cjs/resources/Identity/VerificationReports.js +1 -1
  139. package/cjs/resources/Identity/VerificationReports.js.map +1 -1
  140. package/cjs/resources/Identity/VerificationSessions.d.ts +148 -150
  141. package/cjs/resources/Identity/VerificationSessions.js +4 -4
  142. package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
  143. package/cjs/resources/Identity/index.d.ts +2 -2
  144. package/cjs/resources/InvoiceItems.d.ts +0 -85
  145. package/cjs/resources/InvoiceItems.js +3 -3
  146. package/cjs/resources/InvoiceItems.js.map +1 -1
  147. package/cjs/resources/InvoiceLineItems.d.ts +2 -40
  148. package/cjs/resources/InvoicePayments.js +1 -1
  149. package/cjs/resources/InvoicePayments.js.map +1 -1
  150. package/cjs/resources/InvoiceRenderingTemplates.js +3 -3
  151. package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
  152. package/cjs/resources/Invoices.d.ts +23 -1341
  153. package/cjs/resources/Invoices.js +14 -55
  154. package/cjs/resources/Invoices.js.map +1 -1
  155. package/cjs/resources/Issuing/Authorizations.d.ts +354 -356
  156. package/cjs/resources/Issuing/Authorizations.js +4 -4
  157. package/cjs/resources/Issuing/Authorizations.js.map +1 -1
  158. package/cjs/resources/Issuing/Cardholders.d.ts +144 -147
  159. package/cjs/resources/Issuing/Cardholders.js +2 -2
  160. package/cjs/resources/Issuing/Cardholders.js.map +1 -1
  161. package/cjs/resources/Issuing/Cards.d.ts +183 -185
  162. package/cjs/resources/Issuing/Cards.js +2 -2
  163. package/cjs/resources/Issuing/Cards.js.map +1 -1
  164. package/cjs/resources/Issuing/Disputes.d.ts +215 -217
  165. package/cjs/resources/Issuing/Disputes.js +3 -3
  166. package/cjs/resources/Issuing/Disputes.js.map +1 -1
  167. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
  168. package/cjs/resources/Issuing/PersonalizationDesigns.js +2 -2
  169. package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  170. package/cjs/resources/Issuing/PhysicalBundles.d.ts +24 -26
  171. package/cjs/resources/Issuing/PhysicalBundles.js +1 -1
  172. package/cjs/resources/Issuing/PhysicalBundles.js.map +1 -1
  173. package/cjs/resources/Issuing/Tokens.d.ts +130 -132
  174. package/cjs/resources/Issuing/Tokens.js +2 -2
  175. package/cjs/resources/Issuing/Tokens.js.map +1 -1
  176. package/cjs/resources/Issuing/Transactions.d.ts +223 -234
  177. package/cjs/resources/Issuing/Transactions.js +2 -2
  178. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  179. package/cjs/resources/Issuing/index.d.ts +30 -55
  180. package/cjs/resources/Issuing/index.js +0 -6
  181. package/cjs/resources/Issuing/index.js.map +1 -1
  182. package/cjs/resources/LineItems.d.ts +4 -30
  183. package/cjs/resources/Mandates.d.ts +1 -33
  184. package/cjs/resources/Mandates.js +1 -9
  185. package/cjs/resources/Mandates.js.map +1 -1
  186. package/cjs/resources/PaymentAttemptRecords.d.ts +9 -92
  187. package/cjs/resources/PaymentAttemptRecords.js +1 -1
  188. package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
  189. package/cjs/resources/PaymentIntents.d.ts +6495 -17272
  190. package/cjs/resources/PaymentIntents.js +9 -36
  191. package/cjs/resources/PaymentIntents.js.map +1 -1
  192. package/cjs/resources/PaymentLinks.d.ts +6 -19
  193. package/cjs/resources/PaymentLinks.js +3 -3
  194. package/cjs/resources/PaymentLinks.js.map +1 -1
  195. package/cjs/resources/PaymentMethodConfigurations.d.ts +0 -350
  196. package/cjs/resources/PaymentMethodConfigurations.js +2 -2
  197. package/cjs/resources/PaymentMethodConfigurations.js.map +1 -1
  198. package/cjs/resources/PaymentMethodDomains.js +3 -3
  199. package/cjs/resources/PaymentMethodDomains.js.map +1 -1
  200. package/cjs/resources/PaymentMethods.d.ts +16 -152
  201. package/cjs/resources/PaymentMethods.js +4 -4
  202. package/cjs/resources/PaymentMethods.js.map +1 -1
  203. package/cjs/resources/PaymentRecords.d.ts +19 -102
  204. package/cjs/resources/PaymentRecords.js +7 -7
  205. package/cjs/resources/PaymentRecords.js.map +1 -1
  206. package/cjs/resources/Payouts.js +4 -4
  207. package/cjs/resources/Payouts.js.map +1 -1
  208. package/cjs/resources/Persons.d.ts +2 -2
  209. package/cjs/resources/Plans.d.ts +0 -16
  210. package/cjs/resources/Plans.js +3 -3
  211. package/cjs/resources/Plans.js.map +1 -1
  212. package/cjs/resources/Prices.d.ts +0 -52
  213. package/cjs/resources/Prices.js +2 -2
  214. package/cjs/resources/Prices.js.map +1 -1
  215. package/cjs/resources/Products.d.ts +0 -42
  216. package/cjs/resources/Products.js +7 -7
  217. package/cjs/resources/Products.js.map +1 -1
  218. package/cjs/resources/PromotionCodes.d.ts +0 -12
  219. package/cjs/resources/PromotionCodes.js +2 -29
  220. package/cjs/resources/PromotionCodes.js.map +1 -1
  221. package/cjs/resources/Quotes.d.ts +165 -2374
  222. package/cjs/resources/Quotes.js +20 -1180
  223. package/cjs/resources/Quotes.js.map +1 -1
  224. package/cjs/resources/Radar/EarlyFraudWarnings.js +1 -1
  225. package/cjs/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  226. package/cjs/resources/Radar/PaymentEvaluations.d.ts +294 -296
  227. package/cjs/resources/Radar/ValueListItems.d.ts +14 -16
  228. package/cjs/resources/Radar/ValueListItems.js +2 -2
  229. package/cjs/resources/Radar/ValueListItems.js.map +1 -1
  230. package/cjs/resources/Radar/ValueLists.d.ts +18 -20
  231. package/cjs/resources/Radar/ValueLists.js +3 -3
  232. package/cjs/resources/Radar/ValueLists.js.map +1 -1
  233. package/cjs/resources/Radar/index.d.ts +8 -6
  234. package/cjs/resources/Radar/index.js.map +1 -1
  235. package/cjs/resources/Refunds.d.ts +0 -11
  236. package/cjs/resources/Refunds.js +3 -3
  237. package/cjs/resources/Refunds.js.map +1 -1
  238. package/cjs/resources/Reporting/ReportRuns.d.ts +35 -37
  239. package/cjs/resources/Reporting/ReportRuns.js +1 -1
  240. package/cjs/resources/Reporting/ReportRuns.js.map +1 -1
  241. package/cjs/resources/Reporting/ReportTypes.js +1 -1
  242. package/cjs/resources/Reporting/ReportTypes.js.map +1 -1
  243. package/cjs/resources/Reporting/index.d.ts +2 -2
  244. package/cjs/resources/Reserve/Holds.d.ts +24 -64
  245. package/cjs/resources/Reserve/Holds.js +0 -19
  246. package/cjs/resources/Reserve/Holds.js.map +1 -1
  247. package/cjs/resources/Reserve/Plans.d.ts +25 -43
  248. package/cjs/resources/Reserve/Plans.js +0 -11
  249. package/cjs/resources/Reserve/Plans.js.map +1 -1
  250. package/cjs/resources/Reserve/Releases.d.ts +17 -59
  251. package/cjs/resources/Reserve/Releases.js +0 -19
  252. package/cjs/resources/Reserve/Releases.js.map +1 -1
  253. package/cjs/resources/Reserve/index.d.ts +3 -14
  254. package/cjs/resources/Reserve/index.js +0 -9
  255. package/cjs/resources/Reserve/index.js.map +1 -1
  256. package/cjs/resources/Reviews.js +2 -2
  257. package/cjs/resources/Reviews.js.map +1 -1
  258. package/cjs/resources/SetupAttempts.d.ts +8 -26
  259. package/cjs/resources/SetupIntents.d.ts +14 -333
  260. package/cjs/resources/SetupIntents.js +5 -5
  261. package/cjs/resources/SetupIntents.js.map +1 -1
  262. package/cjs/resources/ShippingRates.js +2 -2
  263. package/cjs/resources/ShippingRates.js.map +1 -1
  264. package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  265. package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
  266. package/cjs/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  267. package/cjs/resources/Sigma/index.d.ts +1 -1
  268. package/cjs/resources/Sources.d.ts +1 -16
  269. package/cjs/resources/Sources.js +4 -4
  270. package/cjs/resources/Sources.js.map +1 -1
  271. package/cjs/resources/SubscriptionItems.d.ts +0 -143
  272. package/cjs/resources/SubscriptionItems.js +3 -3
  273. package/cjs/resources/SubscriptionItems.js.map +1 -1
  274. package/cjs/resources/SubscriptionSchedules.d.ts +4 -1155
  275. package/cjs/resources/SubscriptionSchedules.js +4 -10
  276. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  277. package/cjs/resources/Subscriptions.d.ts +61 -560
  278. package/cjs/resources/Subscriptions.js +7 -152
  279. package/cjs/resources/Subscriptions.js.map +1 -1
  280. package/cjs/resources/Tax/Associations.d.ts +24 -26
  281. package/cjs/resources/Tax/CalculationLineItems.d.ts +56 -62
  282. package/cjs/resources/Tax/Calculations.d.ts +158 -164
  283. package/cjs/resources/Tax/Calculations.js +2 -2
  284. package/cjs/resources/Tax/Calculations.js.map +1 -1
  285. package/cjs/resources/Tax/Registrations.d.ts +1095 -1233
  286. package/cjs/resources/Tax/Registrations.js +2 -2
  287. package/cjs/resources/Tax/Registrations.js.map +1 -1
  288. package/cjs/resources/Tax/Settings.d.ts +37 -39
  289. package/cjs/resources/Tax/TransactionLineItems.d.ts +11 -13
  290. package/cjs/resources/Tax/Transactions.d.ts +113 -115
  291. package/cjs/resources/Tax/Transactions.js +2 -2
  292. package/cjs/resources/Tax/Transactions.js.map +1 -1
  293. package/cjs/resources/Tax/index.d.ts +18 -32
  294. package/cjs/resources/Tax/index.js +0 -4
  295. package/cjs/resources/Tax/index.js.map +1 -1
  296. package/cjs/resources/TaxCodes.d.ts +0 -15
  297. package/cjs/resources/TaxCodes.js +1 -1
  298. package/cjs/resources/TaxCodes.js.map +1 -1
  299. package/cjs/resources/TaxIds.js +2 -2
  300. package/cjs/resources/TaxIds.js.map +1 -1
  301. package/cjs/resources/TaxRates.js +2 -2
  302. package/cjs/resources/TaxRates.js.map +1 -1
  303. package/cjs/resources/Terminal/Configurations.d.ts +479 -508
  304. package/cjs/resources/Terminal/Configurations.js +3 -3
  305. package/cjs/resources/Terminal/Configurations.js.map +1 -1
  306. package/cjs/resources/Terminal/Locations.d.ts +72 -74
  307. package/cjs/resources/Terminal/Locations.js +3 -3
  308. package/cjs/resources/Terminal/Locations.js.map +1 -1
  309. package/cjs/resources/Terminal/OnboardingLinks.d.ts +16 -18
  310. package/cjs/resources/Terminal/Readers.d.ts +479 -497
  311. package/cjs/resources/Terminal/Readers.js +11 -11
  312. package/cjs/resources/Terminal/Readers.js.map +1 -1
  313. package/cjs/resources/Terminal/index.d.ts +11 -13
  314. package/cjs/resources/Terminal/index.js +0 -2
  315. package/cjs/resources/Terminal/index.js.map +1 -1
  316. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
  317. package/cjs/resources/TestHelpers/Customers.js +1 -1
  318. package/cjs/resources/TestHelpers/Customers.js.map +1 -1
  319. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  320. package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  321. package/cjs/resources/TestHelpers/Issuing/Cards.js +5 -5
  322. package/cjs/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  323. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  324. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  325. package/cjs/resources/TestHelpers/Issuing/Transactions.js +1 -1
  326. package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  327. package/cjs/resources/TestHelpers/Refunds.js +1 -1
  328. package/cjs/resources/TestHelpers/Refunds.js.map +1 -1
  329. package/cjs/resources/TestHelpers/Terminal/Readers.js +3 -3
  330. package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  331. package/cjs/resources/TestHelpers/TestClocks.d.ts +27 -29
  332. package/cjs/resources/TestHelpers/TestClocks.js +3 -3
  333. package/cjs/resources/TestHelpers/TestClocks.js.map +1 -1
  334. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  335. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  336. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  337. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  338. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  339. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  340. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  341. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  342. package/cjs/resources/TestHelpers/index.d.ts +3 -5
  343. package/cjs/resources/TestHelpers/index.js +4 -6
  344. package/cjs/resources/TestHelpers/index.js.map +1 -1
  345. package/cjs/resources/Tokens.js +1 -1
  346. package/cjs/resources/Tokens.js.map +1 -1
  347. package/cjs/resources/Topups.d.ts +18 -0
  348. package/cjs/resources/Topups.js +3 -3
  349. package/cjs/resources/Topups.js.map +1 -1
  350. package/cjs/resources/Transfers.d.ts +0 -8
  351. package/cjs/resources/Transfers.js +6 -6
  352. package/cjs/resources/Transfers.js.map +1 -1
  353. package/cjs/resources/Treasury/CreditReversals.d.ts +11 -13
  354. package/cjs/resources/Treasury/CreditReversals.js +1 -1
  355. package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
  356. package/cjs/resources/Treasury/DebitReversals.d.ts +18 -20
  357. package/cjs/resources/Treasury/DebitReversals.js +1 -1
  358. package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
  359. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
  360. package/cjs/resources/Treasury/FinancialAccounts.d.ts +88 -123
  361. package/cjs/resources/Treasury/FinancialAccounts.js +5 -5
  362. package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
  363. package/cjs/resources/Treasury/InboundTransfers.d.ts +79 -81
  364. package/cjs/resources/Treasury/InboundTransfers.js +2 -2
  365. package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
  366. package/cjs/resources/Treasury/OutboundPayments.d.ts +125 -135
  367. package/cjs/resources/Treasury/OutboundPayments.js +2 -2
  368. package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
  369. package/cjs/resources/Treasury/OutboundTransfers.d.ts +114 -160
  370. package/cjs/resources/Treasury/OutboundTransfers.js +2 -2
  371. package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
  372. package/cjs/resources/Treasury/ReceivedCredits.d.ts +118 -142
  373. package/cjs/resources/Treasury/ReceivedCredits.js +1 -1
  374. package/cjs/resources/Treasury/ReceivedCredits.js.map +1 -1
  375. package/cjs/resources/Treasury/ReceivedDebits.d.ts +86 -114
  376. package/cjs/resources/Treasury/ReceivedDebits.js +1 -1
  377. package/cjs/resources/Treasury/ReceivedDebits.js.map +1 -1
  378. package/cjs/resources/Treasury/TransactionEntries.d.ts +75 -77
  379. package/cjs/resources/Treasury/TransactionEntries.js +1 -1
  380. package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
  381. package/cjs/resources/Treasury/Transactions.d.ts +86 -88
  382. package/cjs/resources/Treasury/Transactions.js +1 -1
  383. package/cjs/resources/Treasury/Transactions.js.map +1 -1
  384. package/cjs/resources/Treasury/index.d.ts +10 -10
  385. package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
  386. package/cjs/resources/V2/Billing/index.d.ts +9 -48
  387. package/cjs/resources/V2/Billing/index.js +0 -8
  388. package/cjs/resources/V2/Billing/index.js.map +1 -1
  389. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  390. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
  391. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
  392. package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
  393. package/cjs/resources/V2/Core/AccountLinks.d.ts +81 -85
  394. package/cjs/resources/V2/Core/AccountPersons.d.ts +369 -373
  395. package/cjs/resources/V2/Core/AccountTokens.d.ts +0 -10
  396. package/cjs/resources/V2/Core/AccountTokens.js +1 -1
  397. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  398. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
  399. package/cjs/resources/V2/Core/Accounts/PersonTokens.js +3 -3
  400. package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  401. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  402. package/cjs/resources/V2/Core/Accounts/Persons.js +7 -7
  403. package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
  404. package/cjs/resources/V2/Core/Accounts.d.ts +3043 -4006
  405. package/cjs/resources/V2/Core/Accounts.js +3 -3
  406. package/cjs/resources/V2/Core/Accounts.js.map +1 -1
  407. package/cjs/resources/V2/Core/EventDestinations.d.ts +78 -82
  408. package/cjs/resources/V2/Core/EventDestinations.js +6 -6
  409. package/cjs/resources/V2/Core/EventDestinations.js.map +1 -1
  410. package/cjs/resources/V2/Core/Events.d.ts +31 -1154
  411. package/cjs/resources/V2/Core/Events.js +1 -1
  412. package/cjs/resources/V2/Core/Events.js.map +1 -1
  413. package/cjs/resources/V2/Core/index.d.ts +14 -24
  414. package/cjs/resources/V2/Core/index.js +0 -4
  415. package/cjs/resources/V2/Core/index.js.map +1 -1
  416. package/cjs/resources/V2/index.d.ts +0 -27
  417. package/cjs/resources/V2/index.js +0 -14
  418. package/cjs/resources/V2/index.js.map +1 -1
  419. package/cjs/resources/WebhookEndpoints.d.ts +3 -3
  420. package/cjs/resources/WebhookEndpoints.js +3 -3
  421. package/cjs/resources/WebhookEndpoints.js.map +1 -1
  422. package/cjs/resources.d.ts +0 -10
  423. package/cjs/resources.js +10 -146
  424. package/cjs/resources.js.map +1 -1
  425. package/cjs/stripe.cjs.node.d.ts +14384 -3
  426. package/cjs/stripe.cjs.node.js +1 -4
  427. package/cjs/stripe.cjs.node.js.map +1 -1
  428. package/cjs/stripe.core.d.ts +69 -62
  429. package/cjs/stripe.core.js +37 -55
  430. package/cjs/stripe.core.js.map +1 -1
  431. package/cjs/utils.d.ts +1 -1
  432. package/cjs/utils.js +13 -2
  433. package/cjs/utils.js.map +1 -1
  434. package/esm/Error.d.ts +0 -50
  435. package/esm/Error.js +0 -109
  436. package/esm/Error.js.map +1 -1
  437. package/esm/RequestSender.d.ts +2 -1
  438. package/esm/RequestSender.js +10 -2
  439. package/esm/RequestSender.js.map +1 -1
  440. package/esm/Types.d.ts +2 -4
  441. package/esm/Types.js.map +1 -1
  442. package/esm/apiVersion.d.ts +2 -1
  443. package/esm/apiVersion.js +2 -1
  444. package/esm/apiVersion.js.map +1 -1
  445. package/esm/autoPagination.js +27 -2
  446. package/esm/autoPagination.js.map +1 -1
  447. package/esm/platform/NodePlatformFunctions.d.ts +3 -0
  448. package/esm/platform/NodePlatformFunctions.js +36 -2
  449. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  450. package/esm/platform/PlatformFunctions.d.ts +1 -0
  451. package/esm/platform/PlatformFunctions.js +3 -0
  452. package/esm/platform/PlatformFunctions.js.map +1 -1
  453. package/esm/resources/AccountLinks.d.ts +1 -1
  454. package/esm/resources/AccountSessions.d.ts +0 -262
  455. package/esm/resources/AccountSessions.js.map +1 -1
  456. package/esm/resources/Accounts.d.ts +5 -829
  457. package/esm/resources/Accounts.js +18 -32
  458. package/esm/resources/Accounts.js.map +1 -1
  459. package/esm/resources/ApplePayDomains.js +2 -2
  460. package/esm/resources/ApplePayDomains.js.map +1 -1
  461. package/esm/resources/ApplicationFees.js +5 -5
  462. package/esm/resources/ApplicationFees.js.map +1 -1
  463. package/esm/resources/Apps/Secrets.d.ts +14 -16
  464. package/esm/resources/Apps/index.d.ts +1 -1
  465. package/esm/resources/Balance.d.ts +0 -67
  466. package/esm/resources/BalanceTransactions.d.ts +5 -5
  467. package/esm/resources/BalanceTransactions.js +3 -3
  468. package/esm/resources/BalanceTransactions.js.map +1 -1
  469. package/esm/resources/BankAccounts.d.ts +2 -2
  470. package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
  471. package/esm/resources/Billing/Alerts.d.ts +27 -29
  472. package/esm/resources/Billing/Alerts.js +4 -4
  473. package/esm/resources/Billing/Alerts.js.map +1 -1
  474. package/esm/resources/Billing/CreditBalanceSummary.d.ts +40 -42
  475. package/esm/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
  476. package/esm/resources/Billing/CreditBalanceTransactions.js +1 -1
  477. package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  478. package/esm/resources/Billing/CreditGrants.d.ts +41 -43
  479. package/esm/resources/Billing/CreditGrants.js +4 -4
  480. package/esm/resources/Billing/CreditGrants.js.map +1 -1
  481. package/esm/resources/Billing/MeterEventAdjustments.d.ts +9 -11
  482. package/esm/resources/Billing/Meters.d.ts +39 -41
  483. package/esm/resources/Billing/Meters.js +5 -5
  484. package/esm/resources/Billing/Meters.js.map +1 -1
  485. package/esm/resources/Billing/index.d.ts +7 -10
  486. package/esm/resources/Billing/index.js +0 -2
  487. package/esm/resources/Billing/index.js.map +1 -1
  488. package/esm/resources/BillingPortal/Configurations.d.ts +132 -134
  489. package/esm/resources/BillingPortal/Configurations.js +2 -2
  490. package/esm/resources/BillingPortal/Configurations.js.map +1 -1
  491. package/esm/resources/BillingPortal/Sessions.d.ts +100 -102
  492. package/esm/resources/BillingPortal/index.d.ts +2 -2
  493. package/esm/resources/Capabilities.d.ts +2 -2
  494. package/esm/resources/Cards.d.ts +0 -4
  495. package/esm/resources/Charges.d.ts +84 -3066
  496. package/esm/resources/Charges.js +3 -3
  497. package/esm/resources/Charges.js.map +1 -1
  498. package/esm/resources/Checkout/Sessions.d.ts +1598 -1900
  499. package/esm/resources/Checkout/Sessions.js +4 -4
  500. package/esm/resources/Checkout/Sessions.js.map +1 -1
  501. package/esm/resources/Checkout/index.d.ts +1 -1
  502. package/esm/resources/Climate/Orders.d.ts +47 -49
  503. package/esm/resources/Climate/Orders.js +3 -3
  504. package/esm/resources/Climate/Orders.js.map +1 -1
  505. package/esm/resources/Climate/Products.d.ts +15 -17
  506. package/esm/resources/Climate/Products.js +1 -1
  507. package/esm/resources/Climate/Products.js.map +1 -1
  508. package/esm/resources/Climate/Suppliers.d.ts +25 -27
  509. package/esm/resources/Climate/Suppliers.js +1 -1
  510. package/esm/resources/Climate/Suppliers.js.map +1 -1
  511. package/esm/resources/Climate/index.d.ts +3 -3
  512. package/esm/resources/ConfirmationTokens.d.ts +13 -67
  513. package/esm/resources/ConfirmationTokens.js +1 -1
  514. package/esm/resources/ConfirmationTokens.js.map +1 -1
  515. package/esm/resources/CountrySpecs.js +1 -1
  516. package/esm/resources/CountrySpecs.js.map +1 -1
  517. package/esm/resources/Coupons.d.ts +0 -53
  518. package/esm/resources/Coupons.js +3 -16
  519. package/esm/resources/Coupons.js.map +1 -1
  520. package/esm/resources/CreditNoteLineItems.d.ts +1 -15
  521. package/esm/resources/CreditNotes.d.ts +8 -5
  522. package/esm/resources/CreditNotes.js +6 -4
  523. package/esm/resources/CreditNotes.js.map +1 -1
  524. package/esm/resources/CustomerSessions.d.ts +0 -68
  525. package/esm/resources/Customers.d.ts +1 -7
  526. package/esm/resources/Customers.js +31 -41
  527. package/esm/resources/Customers.js.map +1 -1
  528. package/esm/resources/Disputes.d.ts +28 -30
  529. package/esm/resources/Disputes.js +3 -3
  530. package/esm/resources/Disputes.js.map +1 -1
  531. package/esm/resources/Entitlements/ActiveEntitlements.js +1 -1
  532. package/esm/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  533. package/esm/resources/Entitlements/Features.js +2 -2
  534. package/esm/resources/Entitlements/Features.js.map +1 -1
  535. package/esm/resources/Entitlements/index.d.ts +2 -2
  536. package/esm/resources/EphemeralKeys.js +1 -1
  537. package/esm/resources/EphemeralKeys.js.map +1 -1
  538. package/esm/resources/Events.d.ts +3 -548
  539. package/esm/resources/Events.js +1 -1
  540. package/esm/resources/Events.js.map +1 -1
  541. package/esm/resources/ExchangeRates.js +1 -1
  542. package/esm/resources/ExchangeRates.js.map +1 -1
  543. package/esm/resources/ExternalAccounts.d.ts +1 -212
  544. package/esm/resources/ExternalAccounts.js +1 -42
  545. package/esm/resources/ExternalAccounts.js.map +1 -1
  546. package/esm/resources/FileLinks.js +2 -2
  547. package/esm/resources/FileLinks.js.map +1 -1
  548. package/esm/resources/Files.js +1 -1
  549. package/esm/resources/Files.js.map +1 -1
  550. package/esm/resources/FinancialConnections/Accounts.d.ts +169 -217
  551. package/esm/resources/FinancialConnections/Accounts.js +6 -14
  552. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  553. package/esm/resources/FinancialConnections/Sessions.d.ts +43 -193
  554. package/esm/resources/FinancialConnections/Sessions.js +1 -1
  555. package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
  556. package/esm/resources/FinancialConnections/Transactions.d.ts +13 -15
  557. package/esm/resources/FinancialConnections/Transactions.js +1 -1
  558. package/esm/resources/FinancialConnections/Transactions.js.map +1 -1
  559. package/esm/resources/FinancialConnections/index.d.ts +9 -24
  560. package/esm/resources/FinancialConnections/index.js +0 -4
  561. package/esm/resources/FinancialConnections/index.js.map +1 -1
  562. package/esm/resources/Forwarding/Requests.d.ts +57 -59
  563. package/esm/resources/Forwarding/Requests.js +1 -1
  564. package/esm/resources/Forwarding/Requests.js.map +1 -1
  565. package/esm/resources/Forwarding/index.d.ts +1 -1
  566. package/esm/resources/Identity/VerificationReports.d.ts +255 -257
  567. package/esm/resources/Identity/VerificationReports.js +1 -1
  568. package/esm/resources/Identity/VerificationReports.js.map +1 -1
  569. package/esm/resources/Identity/VerificationSessions.d.ts +148 -150
  570. package/esm/resources/Identity/VerificationSessions.js +4 -4
  571. package/esm/resources/Identity/VerificationSessions.js.map +1 -1
  572. package/esm/resources/Identity/index.d.ts +2 -2
  573. package/esm/resources/InvoiceItems.d.ts +0 -85
  574. package/esm/resources/InvoiceItems.js +3 -3
  575. package/esm/resources/InvoiceItems.js.map +1 -1
  576. package/esm/resources/InvoiceLineItems.d.ts +2 -40
  577. package/esm/resources/InvoicePayments.js +1 -1
  578. package/esm/resources/InvoicePayments.js.map +1 -1
  579. package/esm/resources/InvoiceRenderingTemplates.js +3 -3
  580. package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
  581. package/esm/resources/Invoices.d.ts +23 -1341
  582. package/esm/resources/Invoices.js +14 -55
  583. package/esm/resources/Invoices.js.map +1 -1
  584. package/esm/resources/Issuing/Authorizations.d.ts +354 -356
  585. package/esm/resources/Issuing/Authorizations.js +4 -4
  586. package/esm/resources/Issuing/Authorizations.js.map +1 -1
  587. package/esm/resources/Issuing/Cardholders.d.ts +144 -147
  588. package/esm/resources/Issuing/Cardholders.js +2 -2
  589. package/esm/resources/Issuing/Cardholders.js.map +1 -1
  590. package/esm/resources/Issuing/Cards.d.ts +183 -185
  591. package/esm/resources/Issuing/Cards.js +2 -2
  592. package/esm/resources/Issuing/Cards.js.map +1 -1
  593. package/esm/resources/Issuing/Disputes.d.ts +215 -217
  594. package/esm/resources/Issuing/Disputes.js +3 -3
  595. package/esm/resources/Issuing/Disputes.js.map +1 -1
  596. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
  597. package/esm/resources/Issuing/PersonalizationDesigns.js +2 -2
  598. package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  599. package/esm/resources/Issuing/PhysicalBundles.d.ts +24 -26
  600. package/esm/resources/Issuing/PhysicalBundles.js +1 -1
  601. package/esm/resources/Issuing/PhysicalBundles.js.map +1 -1
  602. package/esm/resources/Issuing/Tokens.d.ts +130 -132
  603. package/esm/resources/Issuing/Tokens.js +2 -2
  604. package/esm/resources/Issuing/Tokens.js.map +1 -1
  605. package/esm/resources/Issuing/Transactions.d.ts +223 -234
  606. package/esm/resources/Issuing/Transactions.js +2 -2
  607. package/esm/resources/Issuing/Transactions.js.map +1 -1
  608. package/esm/resources/Issuing/index.d.ts +30 -55
  609. package/esm/resources/Issuing/index.js +0 -6
  610. package/esm/resources/Issuing/index.js.map +1 -1
  611. package/esm/resources/LineItems.d.ts +4 -30
  612. package/esm/resources/Mandates.d.ts +1 -33
  613. package/esm/resources/Mandates.js +1 -9
  614. package/esm/resources/Mandates.js.map +1 -1
  615. package/esm/resources/PaymentAttemptRecords.d.ts +9 -92
  616. package/esm/resources/PaymentAttemptRecords.js +1 -1
  617. package/esm/resources/PaymentAttemptRecords.js.map +1 -1
  618. package/esm/resources/PaymentIntents.d.ts +6495 -17272
  619. package/esm/resources/PaymentIntents.js +9 -36
  620. package/esm/resources/PaymentIntents.js.map +1 -1
  621. package/esm/resources/PaymentLinks.d.ts +6 -19
  622. package/esm/resources/PaymentLinks.js +3 -3
  623. package/esm/resources/PaymentLinks.js.map +1 -1
  624. package/esm/resources/PaymentMethodConfigurations.d.ts +0 -350
  625. package/esm/resources/PaymentMethodConfigurations.js +2 -2
  626. package/esm/resources/PaymentMethodConfigurations.js.map +1 -1
  627. package/esm/resources/PaymentMethodDomains.js +3 -3
  628. package/esm/resources/PaymentMethodDomains.js.map +1 -1
  629. package/esm/resources/PaymentMethods.d.ts +16 -152
  630. package/esm/resources/PaymentMethods.js +4 -4
  631. package/esm/resources/PaymentMethods.js.map +1 -1
  632. package/esm/resources/PaymentRecords.d.ts +19 -102
  633. package/esm/resources/PaymentRecords.js +7 -7
  634. package/esm/resources/PaymentRecords.js.map +1 -1
  635. package/esm/resources/Payouts.js +4 -4
  636. package/esm/resources/Payouts.js.map +1 -1
  637. package/esm/resources/Persons.d.ts +2 -2
  638. package/esm/resources/Plans.d.ts +0 -16
  639. package/esm/resources/Plans.js +3 -3
  640. package/esm/resources/Plans.js.map +1 -1
  641. package/esm/resources/Prices.d.ts +0 -52
  642. package/esm/resources/Prices.js +2 -2
  643. package/esm/resources/Prices.js.map +1 -1
  644. package/esm/resources/Products.d.ts +0 -42
  645. package/esm/resources/Products.js +7 -7
  646. package/esm/resources/Products.js.map +1 -1
  647. package/esm/resources/PromotionCodes.d.ts +0 -12
  648. package/esm/resources/PromotionCodes.js +2 -29
  649. package/esm/resources/PromotionCodes.js.map +1 -1
  650. package/esm/resources/Quotes.d.ts +165 -2374
  651. package/esm/resources/Quotes.js +20 -1180
  652. package/esm/resources/Quotes.js.map +1 -1
  653. package/esm/resources/Radar/EarlyFraudWarnings.js +1 -1
  654. package/esm/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  655. package/esm/resources/Radar/PaymentEvaluations.d.ts +294 -296
  656. package/esm/resources/Radar/ValueListItems.d.ts +14 -16
  657. package/esm/resources/Radar/ValueListItems.js +2 -2
  658. package/esm/resources/Radar/ValueListItems.js.map +1 -1
  659. package/esm/resources/Radar/ValueLists.d.ts +18 -20
  660. package/esm/resources/Radar/ValueLists.js +3 -3
  661. package/esm/resources/Radar/ValueLists.js.map +1 -1
  662. package/esm/resources/Radar/index.d.ts +8 -6
  663. package/esm/resources/Radar/index.js.map +1 -1
  664. package/esm/resources/Refunds.d.ts +0 -11
  665. package/esm/resources/Refunds.js +3 -3
  666. package/esm/resources/Refunds.js.map +1 -1
  667. package/esm/resources/Reporting/ReportRuns.d.ts +35 -37
  668. package/esm/resources/Reporting/ReportRuns.js +1 -1
  669. package/esm/resources/Reporting/ReportRuns.js.map +1 -1
  670. package/esm/resources/Reporting/ReportTypes.js +1 -1
  671. package/esm/resources/Reporting/ReportTypes.js.map +1 -1
  672. package/esm/resources/Reporting/index.d.ts +2 -2
  673. package/esm/resources/Reserve/Holds.d.ts +24 -64
  674. package/esm/resources/Reserve/Holds.js +1 -17
  675. package/esm/resources/Reserve/Holds.js.map +1 -1
  676. package/esm/resources/Reserve/Plans.d.ts +25 -43
  677. package/esm/resources/Reserve/Plans.js +1 -9
  678. package/esm/resources/Reserve/Plans.js.map +1 -1
  679. package/esm/resources/Reserve/Releases.d.ts +17 -59
  680. package/esm/resources/Reserve/Releases.js +1 -17
  681. package/esm/resources/Reserve/Releases.js.map +1 -1
  682. package/esm/resources/Reserve/index.d.ts +3 -14
  683. package/esm/resources/Reserve/index.js +0 -9
  684. package/esm/resources/Reserve/index.js.map +1 -1
  685. package/esm/resources/Reviews.js +2 -2
  686. package/esm/resources/Reviews.js.map +1 -1
  687. package/esm/resources/SetupAttempts.d.ts +8 -26
  688. package/esm/resources/SetupIntents.d.ts +14 -333
  689. package/esm/resources/SetupIntents.js +5 -5
  690. package/esm/resources/SetupIntents.js.map +1 -1
  691. package/esm/resources/ShippingRates.js +2 -2
  692. package/esm/resources/ShippingRates.js.map +1 -1
  693. package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  694. package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
  695. package/esm/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  696. package/esm/resources/Sigma/index.d.ts +1 -1
  697. package/esm/resources/Sources.d.ts +1 -16
  698. package/esm/resources/Sources.js +4 -4
  699. package/esm/resources/Sources.js.map +1 -1
  700. package/esm/resources/SubscriptionItems.d.ts +0 -143
  701. package/esm/resources/SubscriptionItems.js +3 -3
  702. package/esm/resources/SubscriptionItems.js.map +1 -1
  703. package/esm/resources/SubscriptionSchedules.d.ts +4 -1155
  704. package/esm/resources/SubscriptionSchedules.js +4 -10
  705. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  706. package/esm/resources/Subscriptions.d.ts +61 -560
  707. package/esm/resources/Subscriptions.js +7 -152
  708. package/esm/resources/Subscriptions.js.map +1 -1
  709. package/esm/resources/Tax/Associations.d.ts +24 -26
  710. package/esm/resources/Tax/CalculationLineItems.d.ts +56 -62
  711. package/esm/resources/Tax/Calculations.d.ts +158 -164
  712. package/esm/resources/Tax/Calculations.js +2 -2
  713. package/esm/resources/Tax/Calculations.js.map +1 -1
  714. package/esm/resources/Tax/Registrations.d.ts +1095 -1233
  715. package/esm/resources/Tax/Registrations.js +2 -2
  716. package/esm/resources/Tax/Registrations.js.map +1 -1
  717. package/esm/resources/Tax/Settings.d.ts +37 -39
  718. package/esm/resources/Tax/TransactionLineItems.d.ts +11 -13
  719. package/esm/resources/Tax/Transactions.d.ts +113 -115
  720. package/esm/resources/Tax/Transactions.js +2 -2
  721. package/esm/resources/Tax/Transactions.js.map +1 -1
  722. package/esm/resources/Tax/index.d.ts +18 -32
  723. package/esm/resources/Tax/index.js +0 -4
  724. package/esm/resources/Tax/index.js.map +1 -1
  725. package/esm/resources/TaxCodes.d.ts +0 -15
  726. package/esm/resources/TaxCodes.js +1 -1
  727. package/esm/resources/TaxCodes.js.map +1 -1
  728. package/esm/resources/TaxIds.js +2 -2
  729. package/esm/resources/TaxIds.js.map +1 -1
  730. package/esm/resources/TaxRates.js +2 -2
  731. package/esm/resources/TaxRates.js.map +1 -1
  732. package/esm/resources/Terminal/Configurations.d.ts +479 -508
  733. package/esm/resources/Terminal/Configurations.js +3 -3
  734. package/esm/resources/Terminal/Configurations.js.map +1 -1
  735. package/esm/resources/Terminal/Locations.d.ts +72 -74
  736. package/esm/resources/Terminal/Locations.js +3 -3
  737. package/esm/resources/Terminal/Locations.js.map +1 -1
  738. package/esm/resources/Terminal/OnboardingLinks.d.ts +16 -18
  739. package/esm/resources/Terminal/Readers.d.ts +479 -497
  740. package/esm/resources/Terminal/Readers.js +11 -11
  741. package/esm/resources/Terminal/Readers.js.map +1 -1
  742. package/esm/resources/Terminal/index.d.ts +11 -13
  743. package/esm/resources/Terminal/index.js +0 -2
  744. package/esm/resources/Terminal/index.js.map +1 -1
  745. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
  746. package/esm/resources/TestHelpers/Customers.js +1 -1
  747. package/esm/resources/TestHelpers/Customers.js.map +1 -1
  748. package/esm/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  749. package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  750. package/esm/resources/TestHelpers/Issuing/Cards.js +5 -5
  751. package/esm/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  752. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  753. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  754. package/esm/resources/TestHelpers/Issuing/Transactions.js +1 -1
  755. package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  756. package/esm/resources/TestHelpers/Refunds.js +1 -1
  757. package/esm/resources/TestHelpers/Refunds.js.map +1 -1
  758. package/esm/resources/TestHelpers/Terminal/Readers.js +3 -3
  759. package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  760. package/esm/resources/TestHelpers/TestClocks.d.ts +27 -29
  761. package/esm/resources/TestHelpers/TestClocks.js +3 -3
  762. package/esm/resources/TestHelpers/TestClocks.js.map +1 -1
  763. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  764. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  765. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  766. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  767. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  768. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  769. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  770. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  771. package/esm/resources/TestHelpers/index.d.ts +3 -5
  772. package/esm/resources/TestHelpers/index.js +0 -2
  773. package/esm/resources/TestHelpers/index.js.map +1 -1
  774. package/esm/resources/Tokens.js +1 -1
  775. package/esm/resources/Tokens.js.map +1 -1
  776. package/esm/resources/Topups.d.ts +18 -0
  777. package/esm/resources/Topups.js +3 -3
  778. package/esm/resources/Topups.js.map +1 -1
  779. package/esm/resources/Transfers.d.ts +0 -8
  780. package/esm/resources/Transfers.js +6 -6
  781. package/esm/resources/Transfers.js.map +1 -1
  782. package/esm/resources/Treasury/CreditReversals.d.ts +11 -13
  783. package/esm/resources/Treasury/CreditReversals.js +1 -1
  784. package/esm/resources/Treasury/CreditReversals.js.map +1 -1
  785. package/esm/resources/Treasury/DebitReversals.d.ts +18 -20
  786. package/esm/resources/Treasury/DebitReversals.js +1 -1
  787. package/esm/resources/Treasury/DebitReversals.js.map +1 -1
  788. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
  789. package/esm/resources/Treasury/FinancialAccounts.d.ts +88 -123
  790. package/esm/resources/Treasury/FinancialAccounts.js +5 -5
  791. package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
  792. package/esm/resources/Treasury/InboundTransfers.d.ts +79 -81
  793. package/esm/resources/Treasury/InboundTransfers.js +2 -2
  794. package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
  795. package/esm/resources/Treasury/OutboundPayments.d.ts +125 -135
  796. package/esm/resources/Treasury/OutboundPayments.js +2 -2
  797. package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
  798. package/esm/resources/Treasury/OutboundTransfers.d.ts +114 -160
  799. package/esm/resources/Treasury/OutboundTransfers.js +2 -2
  800. package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
  801. package/esm/resources/Treasury/ReceivedCredits.d.ts +118 -142
  802. package/esm/resources/Treasury/ReceivedCredits.js +1 -1
  803. package/esm/resources/Treasury/ReceivedCredits.js.map +1 -1
  804. package/esm/resources/Treasury/ReceivedDebits.d.ts +86 -114
  805. package/esm/resources/Treasury/ReceivedDebits.js +1 -1
  806. package/esm/resources/Treasury/ReceivedDebits.js.map +1 -1
  807. package/esm/resources/Treasury/TransactionEntries.d.ts +75 -77
  808. package/esm/resources/Treasury/TransactionEntries.js +1 -1
  809. package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
  810. package/esm/resources/Treasury/Transactions.d.ts +86 -88
  811. package/esm/resources/Treasury/Transactions.js +1 -1
  812. package/esm/resources/Treasury/Transactions.js.map +1 -1
  813. package/esm/resources/Treasury/index.d.ts +10 -10
  814. package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
  815. package/esm/resources/V2/Billing/index.d.ts +9 -48
  816. package/esm/resources/V2/Billing/index.js +0 -8
  817. package/esm/resources/V2/Billing/index.js.map +1 -1
  818. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  819. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
  820. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
  821. package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
  822. package/esm/resources/V2/Core/AccountLinks.d.ts +81 -85
  823. package/esm/resources/V2/Core/AccountPersons.d.ts +369 -373
  824. package/esm/resources/V2/Core/AccountTokens.d.ts +0 -10
  825. package/esm/resources/V2/Core/AccountTokens.js +1 -1
  826. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  827. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
  828. package/esm/resources/V2/Core/Accounts/PersonTokens.js +3 -3
  829. package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  830. package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  831. package/esm/resources/V2/Core/Accounts/Persons.js +7 -7
  832. package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
  833. package/esm/resources/V2/Core/Accounts.d.ts +3043 -4006
  834. package/esm/resources/V2/Core/Accounts.js +3 -3
  835. package/esm/resources/V2/Core/Accounts.js.map +1 -1
  836. package/esm/resources/V2/Core/EventDestinations.d.ts +78 -82
  837. package/esm/resources/V2/Core/EventDestinations.js +6 -6
  838. package/esm/resources/V2/Core/EventDestinations.js.map +1 -1
  839. package/esm/resources/V2/Core/Events.d.ts +31 -1154
  840. package/esm/resources/V2/Core/Events.js +1 -1
  841. package/esm/resources/V2/Core/Events.js.map +1 -1
  842. package/esm/resources/V2/Core/index.d.ts +14 -24
  843. package/esm/resources/V2/Core/index.js +0 -4
  844. package/esm/resources/V2/Core/index.js.map +1 -1
  845. package/esm/resources/V2/index.d.ts +0 -27
  846. package/esm/resources/V2/index.js +0 -14
  847. package/esm/resources/V2/index.js.map +1 -1
  848. package/esm/resources/WebhookEndpoints.d.ts +3 -3
  849. package/esm/resources/WebhookEndpoints.js +3 -3
  850. package/esm/resources/WebhookEndpoints.js.map +1 -1
  851. package/esm/resources.d.ts +0 -10
  852. package/esm/resources.js +0 -131
  853. package/esm/resources.js.map +1 -1
  854. package/esm/stripe.core.d.ts +69 -62
  855. package/esm/stripe.core.js +7 -25
  856. package/esm/stripe.core.js.map +1 -1
  857. package/esm/stripe.esm.node.d.ts +68 -63
  858. package/esm/stripe.esm.node.js +2 -25
  859. package/esm/stripe.esm.node.js.map +1 -1
  860. package/esm/utils.d.ts +1 -1
  861. package/esm/utils.js +13 -2
  862. package/esm/utils.js.map +1 -1
  863. package/package.json +1 -1
  864. package/cjs/StripeEventNotificationHandler.d.ts +0 -19
  865. package/cjs/StripeEventNotificationHandler.js +0 -148
  866. package/cjs/StripeEventNotificationHandler.js.map +0 -1
  867. package/cjs/resources/AccountNotices.d.ts +0 -140
  868. package/cjs/resources/AccountNotices.js +0 -29
  869. package/cjs/resources/AccountNotices.js.map +0 -1
  870. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  871. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
  872. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  873. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  874. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
  875. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  876. package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
  877. package/cjs/resources/Billing/Analytics/index.js +0 -13
  878. package/cjs/resources/Billing/Analytics/index.js.map +0 -1
  879. package/cjs/resources/Capital/FinancingOffers.d.ts +0 -191
  880. package/cjs/resources/Capital/FinancingOffers.js +0 -30
  881. package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
  882. package/cjs/resources/Capital/FinancingSummary.d.ts +0 -98
  883. package/cjs/resources/Capital/FinancingSummary.js +0 -15
  884. package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
  885. package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -143
  886. package/cjs/resources/Capital/FinancingTransactions.js +0 -24
  887. package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
  888. package/cjs/resources/Capital/index.d.ts +0 -25
  889. package/cjs/resources/Capital/index.js +0 -17
  890. package/cjs/resources/Capital/index.js.map +0 -1
  891. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  892. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
  893. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  894. package/cjs/resources/FinancialConnections/Authorizations.d.ts +0 -87
  895. package/cjs/resources/FinancialConnections/Authorizations.js +0 -15
  896. package/cjs/resources/FinancialConnections/Authorizations.js.map +0 -1
  897. package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -101
  898. package/cjs/resources/FinancialConnections/Institutions.js +0 -23
  899. package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
  900. package/cjs/resources/FxQuotes.d.ts +0 -212
  901. package/cjs/resources/FxQuotes.js +0 -29
  902. package/cjs/resources/FxQuotes.js.map +0 -1
  903. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  904. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
  905. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  906. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  907. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
  908. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  909. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  910. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
  911. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  912. package/cjs/resources/Issuing/Settlements.d.ts +0 -85
  913. package/cjs/resources/Issuing/Settlements.js +0 -4
  914. package/cjs/resources/Issuing/Settlements.js.map +0 -1
  915. package/cjs/resources/Margins.d.ts +0 -115
  916. package/cjs/resources/Margins.js +0 -35
  917. package/cjs/resources/Margins.js.map +0 -1
  918. package/cjs/resources/Orders.d.ts +0 -4693
  919. package/cjs/resources/Orders.js +0 -457
  920. package/cjs/resources/Orders.js.map +0 -1
  921. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  922. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
  923. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  924. package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -229
  925. package/cjs/resources/Privacy/RedactionJobs.js +0 -73
  926. package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
  927. package/cjs/resources/Privacy/index.d.ts +0 -22
  928. package/cjs/resources/Privacy/index.js +0 -13
  929. package/cjs/resources/Privacy/index.js.map +0 -1
  930. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  931. package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
  932. package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
  933. package/cjs/resources/ProductCatalog/index.d.ts +0 -12
  934. package/cjs/resources/ProductCatalog/index.js +0 -13
  935. package/cjs/resources/ProductCatalog/index.js.map +0 -1
  936. package/cjs/resources/QuoteLines.d.ts +0 -507
  937. package/cjs/resources/QuoteLines.js +0 -4
  938. package/cjs/resources/QuoteLines.js.map +0 -1
  939. package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1120
  940. package/cjs/resources/QuotePreviewInvoices.js +0 -4
  941. package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
  942. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
  943. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
  944. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  945. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
  946. package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
  947. package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
  948. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  949. package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
  950. package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
  951. package/cjs/resources/SharedPayment/index.d.ts +0 -19
  952. package/cjs/resources/SharedPayment/index.js +0 -15
  953. package/cjs/resources/SharedPayment/index.js.map +0 -1
  954. package/cjs/resources/Tax/Forms.d.ts +0 -230
  955. package/cjs/resources/Tax/Forms.js +0 -32
  956. package/cjs/resources/Tax/Forms.js.map +0 -1
  957. package/cjs/resources/Tax/Locations.d.ts +0 -108
  958. package/cjs/resources/Tax/Locations.js +0 -33
  959. package/cjs/resources/Tax/Locations.js.map +0 -1
  960. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  961. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
  962. package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
  963. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  964. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
  965. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  966. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  967. package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
  968. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  969. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  970. package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
  971. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  972. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  973. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
  974. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  975. package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -284
  976. package/cjs/resources/V2/Billing/BillSettings.js +0 -41
  977. package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
  978. package/cjs/resources/V2/Billing/Cadences.d.ts +0 -951
  979. package/cjs/resources/V2/Billing/Cadences.js +0 -198
  980. package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
  981. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  982. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
  983. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  984. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  985. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
  986. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  987. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  988. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
  989. package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
  990. package/cjs/resources/V2/Billing/Profiles.d.ts +0 -166
  991. package/cjs/resources/V2/Billing/Profiles.js +0 -35
  992. package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
  993. package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -373
  994. package/cjs/resources/V2/Core/BatchJobs.js +0 -225
  995. package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
  996. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  997. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
  998. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  999. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  1000. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -62
  1001. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  1002. package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
  1003. package/cjs/resources/V2/Core/Vault/index.js +0 -15
  1004. package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
  1005. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  1006. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
  1007. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  1008. package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
  1009. package/cjs/resources/V2/Data/Reporting/index.js +0 -13
  1010. package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
  1011. package/cjs/resources/V2/Data/index.d.ts +0 -10
  1012. package/cjs/resources/V2/Data/index.js +0 -13
  1013. package/cjs/resources/V2/Data/index.js.map +0 -1
  1014. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  1015. package/cjs/resources/V2/EventMisc.js +0 -2
  1016. package/cjs/resources/V2/EventMisc.js.map +0 -1
  1017. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  1018. package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
  1019. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  1020. package/cjs/resources/V2/Extend/Workflows.d.ts +0 -123
  1021. package/cjs/resources/V2/Extend/Workflows.js +0 -30
  1022. package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
  1023. package/cjs/resources/V2/Extend/index.d.ts +0 -20
  1024. package/cjs/resources/V2/Extend/index.js +0 -15
  1025. package/cjs/resources/V2/Extend/index.js.map +0 -1
  1026. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  1027. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
  1028. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  1029. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  1030. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
  1031. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  1032. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -214
  1033. package/cjs/resources/V2/Iam/ActivityLogs.js +0 -23
  1034. package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
  1035. package/cjs/resources/V2/Iam/index.d.ts +0 -13
  1036. package/cjs/resources/V2/Iam/index.js +0 -13
  1037. package/cjs/resources/V2/Iam/index.js.map +0 -1
  1038. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  1039. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
  1040. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  1041. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  1042. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
  1043. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  1044. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  1045. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
  1046. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  1047. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  1048. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
  1049. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  1050. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  1051. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
  1052. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  1053. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  1054. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
  1055. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  1056. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
  1057. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
  1058. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  1059. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  1060. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
  1061. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  1062. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  1063. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -44
  1064. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  1065. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  1066. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
  1067. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  1068. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
  1069. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
  1070. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  1071. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  1072. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
  1073. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  1074. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  1075. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
  1076. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  1077. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  1078. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
  1079. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  1080. package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -104
  1081. package/cjs/resources/V2/MoneyManagement/index.js +0 -39
  1082. package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
  1083. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  1084. package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
  1085. package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
  1086. package/cjs/resources/V2/Network/index.d.ts +0 -13
  1087. package/cjs/resources/V2/Network/index.js +0 -13
  1088. package/cjs/resources/V2/Network/index.js.map +0 -1
  1089. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  1090. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
  1091. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  1092. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  1093. package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
  1094. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  1095. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  1096. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
  1097. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  1098. package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
  1099. package/cjs/resources/V2/TestHelpers/index.js +0 -13
  1100. package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
  1101. package/esm/StripeEventNotificationHandler.d.ts +0 -19
  1102. package/esm/StripeEventNotificationHandler.js +0 -144
  1103. package/esm/StripeEventNotificationHandler.js.map +0 -1
  1104. package/esm/resources/AccountNotices.d.ts +0 -140
  1105. package/esm/resources/AccountNotices.js +0 -25
  1106. package/esm/resources/AccountNotices.js.map +0 -1
  1107. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  1108. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
  1109. package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  1110. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  1111. package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
  1112. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  1113. package/esm/resources/Billing/Analytics/index.d.ts +0 -15
  1114. package/esm/resources/Billing/Analytics/index.js +0 -9
  1115. package/esm/resources/Billing/Analytics/index.js.map +0 -1
  1116. package/esm/resources/Capital/FinancingOffers.d.ts +0 -191
  1117. package/esm/resources/Capital/FinancingOffers.js +0 -26
  1118. package/esm/resources/Capital/FinancingOffers.js.map +0 -1
  1119. package/esm/resources/Capital/FinancingSummary.d.ts +0 -98
  1120. package/esm/resources/Capital/FinancingSummary.js +0 -11
  1121. package/esm/resources/Capital/FinancingSummary.js.map +0 -1
  1122. package/esm/resources/Capital/FinancingTransactions.d.ts +0 -143
  1123. package/esm/resources/Capital/FinancingTransactions.js +0 -20
  1124. package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
  1125. package/esm/resources/Capital/index.d.ts +0 -25
  1126. package/esm/resources/Capital/index.js +0 -13
  1127. package/esm/resources/Capital/index.js.map +0 -1
  1128. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  1129. package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
  1130. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  1131. package/esm/resources/FinancialConnections/Authorizations.d.ts +0 -87
  1132. package/esm/resources/FinancialConnections/Authorizations.js +0 -11
  1133. package/esm/resources/FinancialConnections/Authorizations.js.map +0 -1
  1134. package/esm/resources/FinancialConnections/Institutions.d.ts +0 -101
  1135. package/esm/resources/FinancialConnections/Institutions.js +0 -19
  1136. package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
  1137. package/esm/resources/FxQuotes.d.ts +0 -212
  1138. package/esm/resources/FxQuotes.js +0 -25
  1139. package/esm/resources/FxQuotes.js.map +0 -1
  1140. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  1141. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
  1142. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  1143. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  1144. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
  1145. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  1146. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  1147. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
  1148. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  1149. package/esm/resources/Issuing/Settlements.d.ts +0 -85
  1150. package/esm/resources/Issuing/Settlements.js +0 -3
  1151. package/esm/resources/Issuing/Settlements.js.map +0 -1
  1152. package/esm/resources/Margins.d.ts +0 -115
  1153. package/esm/resources/Margins.js +0 -31
  1154. package/esm/resources/Margins.js.map +0 -1
  1155. package/esm/resources/Orders.d.ts +0 -4693
  1156. package/esm/resources/Orders.js +0 -453
  1157. package/esm/resources/Orders.js.map +0 -1
  1158. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  1159. package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
  1160. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  1161. package/esm/resources/Privacy/RedactionJobs.d.ts +0 -229
  1162. package/esm/resources/Privacy/RedactionJobs.js +0 -69
  1163. package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
  1164. package/esm/resources/Privacy/index.d.ts +0 -22
  1165. package/esm/resources/Privacy/index.js +0 -9
  1166. package/esm/resources/Privacy/index.js.map +0 -1
  1167. package/esm/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  1168. package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
  1169. package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
  1170. package/esm/resources/ProductCatalog/index.d.ts +0 -12
  1171. package/esm/resources/ProductCatalog/index.js +0 -9
  1172. package/esm/resources/ProductCatalog/index.js.map +0 -1
  1173. package/esm/resources/QuoteLines.d.ts +0 -507
  1174. package/esm/resources/QuoteLines.js +0 -3
  1175. package/esm/resources/QuoteLines.js.map +0 -1
  1176. package/esm/resources/QuotePreviewInvoices.d.ts +0 -1120
  1177. package/esm/resources/QuotePreviewInvoices.js +0 -3
  1178. package/esm/resources/QuotePreviewInvoices.js.map +0 -1
  1179. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
  1180. package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
  1181. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  1182. package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
  1183. package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
  1184. package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
  1185. package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  1186. package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
  1187. package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
  1188. package/esm/resources/SharedPayment/index.d.ts +0 -19
  1189. package/esm/resources/SharedPayment/index.js +0 -11
  1190. package/esm/resources/SharedPayment/index.js.map +0 -1
  1191. package/esm/resources/Tax/Forms.d.ts +0 -230
  1192. package/esm/resources/Tax/Forms.js +0 -28
  1193. package/esm/resources/Tax/Forms.js.map +0 -1
  1194. package/esm/resources/Tax/Locations.d.ts +0 -108
  1195. package/esm/resources/Tax/Locations.js +0 -29
  1196. package/esm/resources/Tax/Locations.js.map +0 -1
  1197. package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  1198. package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
  1199. package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
  1200. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  1201. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
  1202. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  1203. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  1204. package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
  1205. package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  1206. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  1207. package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
  1208. package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  1209. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  1210. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
  1211. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  1212. package/esm/resources/V2/Billing/BillSettings.d.ts +0 -284
  1213. package/esm/resources/V2/Billing/BillSettings.js +0 -37
  1214. package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
  1215. package/esm/resources/V2/Billing/Cadences.d.ts +0 -951
  1216. package/esm/resources/V2/Billing/Cadences.js +0 -194
  1217. package/esm/resources/V2/Billing/Cadences.js.map +0 -1
  1218. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  1219. package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
  1220. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  1221. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  1222. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
  1223. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  1224. package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  1225. package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
  1226. package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
  1227. package/esm/resources/V2/Billing/Profiles.d.ts +0 -166
  1228. package/esm/resources/V2/Billing/Profiles.js +0 -31
  1229. package/esm/resources/V2/Billing/Profiles.js.map +0 -1
  1230. package/esm/resources/V2/Core/BatchJobs.d.ts +0 -373
  1231. package/esm/resources/V2/Core/BatchJobs.js +0 -221
  1232. package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
  1233. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  1234. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
  1235. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  1236. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  1237. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -58
  1238. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  1239. package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
  1240. package/esm/resources/V2/Core/Vault/index.js +0 -11
  1241. package/esm/resources/V2/Core/Vault/index.js.map +0 -1
  1242. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  1243. package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
  1244. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  1245. package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
  1246. package/esm/resources/V2/Data/Reporting/index.js +0 -9
  1247. package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
  1248. package/esm/resources/V2/Data/index.d.ts +0 -10
  1249. package/esm/resources/V2/Data/index.js +0 -9
  1250. package/esm/resources/V2/Data/index.js.map +0 -1
  1251. package/esm/resources/V2/EventMisc.d.ts +0 -0
  1252. package/esm/resources/V2/EventMisc.js +0 -2
  1253. package/esm/resources/V2/EventMisc.js.map +0 -1
  1254. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  1255. package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
  1256. package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  1257. package/esm/resources/V2/Extend/Workflows.d.ts +0 -123
  1258. package/esm/resources/V2/Extend/Workflows.js +0 -26
  1259. package/esm/resources/V2/Extend/Workflows.js.map +0 -1
  1260. package/esm/resources/V2/Extend/index.d.ts +0 -20
  1261. package/esm/resources/V2/Extend/index.js +0 -11
  1262. package/esm/resources/V2/Extend/index.js.map +0 -1
  1263. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  1264. package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
  1265. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  1266. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  1267. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
  1268. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  1269. package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -214
  1270. package/esm/resources/V2/Iam/ActivityLogs.js +0 -19
  1271. package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
  1272. package/esm/resources/V2/Iam/index.d.ts +0 -13
  1273. package/esm/resources/V2/Iam/index.js +0 -9
  1274. package/esm/resources/V2/Iam/index.js.map +0 -1
  1275. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  1276. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
  1277. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  1278. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  1279. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
  1280. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  1281. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  1282. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
  1283. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  1284. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  1285. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
  1286. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  1287. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  1288. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
  1289. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  1290. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  1291. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
  1292. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  1293. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
  1294. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
  1295. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  1296. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  1297. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
  1298. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  1299. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  1300. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -40
  1301. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  1302. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  1303. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
  1304. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  1305. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
  1306. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
  1307. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  1308. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  1309. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
  1310. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  1311. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  1312. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
  1313. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  1314. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  1315. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
  1316. package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  1317. package/esm/resources/V2/MoneyManagement/index.d.ts +0 -104
  1318. package/esm/resources/V2/MoneyManagement/index.js +0 -35
  1319. package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
  1320. package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  1321. package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
  1322. package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
  1323. package/esm/resources/V2/Network/index.d.ts +0 -13
  1324. package/esm/resources/V2/Network/index.js +0 -9
  1325. package/esm/resources/V2/Network/index.js.map +0 -1
  1326. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  1327. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
  1328. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  1329. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  1330. package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
  1331. package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  1332. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  1333. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
  1334. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  1335. package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
  1336. package/esm/resources/V2/TestHelpers/index.js +0 -9
  1337. package/esm/resources/V2/TestHelpers/index.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { StripeResource } from '../StripeResource.js';
2
+ import { Discount as _Discount } from './Discounts.js';
2
3
  import { Application, DeletedApplication } from './Applications.js';
3
4
  import { Customer, DeletedCustomer } from './Customers.js';
4
5
  import { Subscription } from './Subscriptions.js';
@@ -10,7 +11,6 @@ import { Price, DeletedPrice } from './Prices.js';
10
11
  import { Coupon } from './Coupons.js';
11
12
  import { PromotionCode } from './PromotionCodes.js';
12
13
  import { Plan, DeletedPlan } from './Plans.js';
13
- import { Invoice } from './Invoices.js';
14
14
  import * as TestHelpers from './TestHelpers/index.js';
15
15
  import { Emptyable, MetadataParam, Decimal, PaginationParams, RangeQueryParam, Metadata } from '../shared.js';
16
16
  import { RequestOptions, ApiListPromise, Response } from '../lib.js';
@@ -31,10 +31,6 @@ export declare class SubscriptionScheduleResource extends StripeResource {
31
31
  * Updates an existing subscription schedule.
32
32
  */
33
33
  update(id: string, params?: SubscriptionScheduleUpdateParams, options?: RequestOptions): Promise<Response<SubscriptionSchedule>>;
34
- /**
35
- * Amends an existing subscription schedule.
36
- */
37
- amend(id: string, params?: SubscriptionScheduleAmendParams, options?: RequestOptions): Promise<Response<SubscriptionSchedule>>;
38
34
  /**
39
35
  * Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
40
36
  */
@@ -57,10 +53,6 @@ export interface SubscriptionSchedule {
57
53
  * ID of the Connect Application that created the schedule.
58
54
  */
59
55
  application: string | Application | DeletedApplication | null;
60
- /**
61
- * Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
62
- */
63
- billing_behavior?: SubscriptionSchedule.BillingBehavior;
64
56
  /**
65
57
  * The billing mode of the subscription.
66
58
  */
@@ -94,10 +86,6 @@ export interface SubscriptionSchedule {
94
86
  * Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
95
87
  */
96
88
  end_behavior: SubscriptionSchedule.EndBehavior;
97
- /**
98
- * Details of the most recent price migration that failed for the subscription schedule.
99
- */
100
- last_price_migration_error?: SubscriptionSchedule.LastPriceMigrationError | null;
101
89
  /**
102
90
  * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
103
91
  */
@@ -110,10 +98,6 @@ export interface SubscriptionSchedule {
110
98
  * Configuration for the subscription schedule's phases.
111
99
  */
112
100
  phases: Array<SubscriptionSchedule.Phase>;
113
- /**
114
- * Time period and invoice for a Subscription billed in advance.
115
- */
116
- prebilling?: SubscriptionSchedule.Prebilling | null;
117
101
  /**
118
102
  * Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
119
103
  */
@@ -136,7 +120,6 @@ export interface SubscriptionSchedule {
136
120
  test_clock: string | TestHelpers.TestClock | null;
137
121
  }
138
122
  export declare namespace SubscriptionSchedule {
139
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
140
123
  interface BillingMode {
141
124
  /**
142
125
  * Configure behavior for flexible billing mode
@@ -198,20 +181,6 @@ export declare namespace SubscriptionSchedule {
198
181
  transfer_data: DefaultSettings.TransferData | null;
199
182
  }
200
183
  type EndBehavior = 'cancel' | 'none' | 'release' | 'renew';
201
- interface LastPriceMigrationError {
202
- /**
203
- * The time at which the price migration encountered an error.
204
- */
205
- errored_at: number;
206
- /**
207
- * The involved price pairs in each failed transition.
208
- */
209
- failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
210
- /**
211
- * The type of error encountered by the price migration.
212
- */
213
- type: 'price_uniqueness_violation';
214
- }
215
184
  interface Phase {
216
185
  /**
217
186
  * A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
@@ -274,10 +243,6 @@ export declare namespace SubscriptionSchedule {
274
243
  * The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
275
244
  */
276
245
  on_behalf_of: string | Account | null;
277
- /**
278
- * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
279
- */
280
- pause_collection?: Phase.PauseCollection | null;
281
246
  /**
282
247
  * When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
283
248
  */
@@ -290,36 +255,10 @@ export declare namespace SubscriptionSchedule {
290
255
  * The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
291
256
  */
292
257
  transfer_data: Phase.TransferData | null;
293
- /**
294
- * Specify behavior of the trial when crossing schedule phase boundaries
295
- */
296
- trial_continuation?: Phase.TrialContinuation | null;
297
258
  /**
298
259
  * When the trial ends within the phase.
299
260
  */
300
261
  trial_end: number | null;
301
- /**
302
- * Settings related to any trials on the subscription during this phase.
303
- */
304
- trial_settings?: Phase.TrialSettings | null;
305
- }
306
- interface Prebilling {
307
- /**
308
- * ID of the prebilling invoice.
309
- */
310
- invoice: string | Invoice;
311
- /**
312
- * The end of the last period for which the invoice pre-bills.
313
- */
314
- period_end: number;
315
- /**
316
- * The start of the first period for which the invoice pre-bills.
317
- */
318
- period_start: number;
319
- /**
320
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
321
- */
322
- update_behavior?: Prebilling.UpdateBehavior;
323
262
  }
324
263
  type Status = 'active' | 'canceled' | 'completed' | 'not_started' | 'released';
325
264
  namespace BillingMode {
@@ -413,18 +352,6 @@ export declare namespace SubscriptionSchedule {
413
352
  }
414
353
  }
415
354
  }
416
- namespace LastPriceMigrationError {
417
- interface FailedTransition {
418
- /**
419
- * The original price to be migrated.
420
- */
421
- source_price: string;
422
- /**
423
- * The intended resulting price of the migration.
424
- */
425
- target_price: string;
426
- }
427
- }
428
355
  namespace Phase {
429
356
  interface AddInvoiceItem {
430
357
  /**
@@ -487,11 +414,7 @@ export declare namespace SubscriptionSchedule {
487
414
  /**
488
415
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
489
416
  */
490
- discount: string | Discount | null;
491
- /**
492
- * Details to determine how long the discount should be applied for.
493
- */
494
- discount_end?: Discount.DiscountEnd | null;
417
+ discount: string | _Discount | null;
495
418
  /**
496
419
  * ID of the promotion code to create a new discount for.
497
420
  */
@@ -540,20 +463,6 @@ export declare namespace SubscriptionSchedule {
540
463
  * The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
541
464
  */
542
465
  tax_rates?: Array<TaxRate> | null;
543
- /**
544
- * Options that configure the trial on the subscription item.
545
- */
546
- trial?: Item.Trial | null;
547
- /**
548
- * The ID of the trial offer to apply to the configuration item.
549
- */
550
- trial_offer?: string | null;
551
- }
552
- interface PauseCollection {
553
- /**
554
- * The payment collection behavior for this subscription while paused.
555
- */
556
- behavior: PauseCollection.Behavior;
557
466
  }
558
467
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
559
468
  interface TransferData {
@@ -566,13 +475,6 @@ export declare namespace SubscriptionSchedule {
566
475
  */
567
476
  destination: string | Account;
568
477
  }
569
- type TrialContinuation = 'continue' | 'none';
570
- interface TrialSettings {
571
- /**
572
- * Defines how the subscription should behave when a trial ends.
573
- */
574
- end_behavior: TrialSettings.EndBehavior | null;
575
- }
576
478
  namespace AddInvoiceItem {
577
479
  interface Discount {
578
480
  /**
@@ -582,11 +484,7 @@ export declare namespace SubscriptionSchedule {
582
484
  /**
583
485
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
584
486
  */
585
- discount: string | Discount | null;
586
- /**
587
- * Details to determine how long the discount should be applied for.
588
- */
589
- discount_end?: Discount.DiscountEnd | null;
487
+ discount: string | _Discount | null;
590
488
  /**
591
489
  * ID of the promotion code to create a new discount for.
592
490
  */
@@ -596,18 +494,6 @@ export declare namespace SubscriptionSchedule {
596
494
  end: Period.End;
597
495
  start: Period.Start;
598
496
  }
599
- namespace Discount {
600
- interface DiscountEnd {
601
- /**
602
- * The discount end timestamp.
603
- */
604
- timestamp: number | null;
605
- /**
606
- * The discount end type.
607
- */
608
- type: 'timestamp';
609
- }
610
- }
611
497
  namespace Period {
612
498
  interface End {
613
499
  /**
@@ -652,18 +538,6 @@ export declare namespace SubscriptionSchedule {
652
538
  type Type = 'account' | 'self';
653
539
  }
654
540
  }
655
- namespace Discount {
656
- interface DiscountEnd {
657
- /**
658
- * The discount end timestamp.
659
- */
660
- timestamp: number | null;
661
- /**
662
- * The discount end type.
663
- */
664
- type: 'timestamp';
665
- }
666
- }
667
541
  namespace InvoiceSettings {
668
542
  interface Issuer {
669
543
  /**
@@ -694,66 +568,16 @@ export declare namespace SubscriptionSchedule {
694
568
  /**
695
569
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
696
570
  */
697
- discount: string | Discount | null;
698
- /**
699
- * Details to determine how long the discount should be applied for.
700
- */
701
- discount_end?: Discount.DiscountEnd | null;
571
+ discount: string | _Discount | null;
702
572
  /**
703
573
  * ID of the promotion code to create a new discount for.
704
574
  */
705
575
  promotion_code: string | PromotionCode | null;
706
576
  }
707
- interface Trial {
708
- /**
709
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
710
- */
711
- converts_to?: Array<string> | null;
712
- /**
713
- * Determines the type of trial for this item.
714
- */
715
- type: Trial.Type;
716
- }
717
- namespace Discount {
718
- interface DiscountEnd {
719
- /**
720
- * The discount end timestamp.
721
- */
722
- timestamp: number | null;
723
- /**
724
- * The discount end type.
725
- */
726
- type: 'timestamp';
727
- }
728
- }
729
- namespace Trial {
730
- type Type = 'free' | 'paid';
731
- }
732
- }
733
- namespace PauseCollection {
734
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
735
- }
736
- namespace TrialSettings {
737
- interface EndBehavior {
738
- /**
739
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
740
- */
741
- prorate_up_front: EndBehavior.ProrateUpFront | null;
742
- }
743
- namespace EndBehavior {
744
- type ProrateUpFront = 'defer' | 'include';
745
- }
746
577
  }
747
578
  }
748
- namespace Prebilling {
749
- type UpdateBehavior = 'prebill' | 'reset';
750
- }
751
579
  }
752
580
  export interface SubscriptionScheduleCreateParams {
753
- /**
754
- * Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
755
- */
756
- billing_behavior?: SubscriptionScheduleCreateParams.BillingBehavior;
757
581
  /**
758
582
  * Controls how prorations and invoices for subscriptions are calculated and orchestrated.
759
583
  */
@@ -790,17 +614,12 @@ export interface SubscriptionScheduleCreateParams {
790
614
  * List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
791
615
  */
792
616
  phases?: Array<SubscriptionScheduleCreateParams.Phase>;
793
- /**
794
- * If specified, the invoicing for the given billing cycle iterations will be processed now.
795
- */
796
- prebilling?: SubscriptionScheduleCreateParams.Prebilling;
797
617
  /**
798
618
  * When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
799
619
  */
800
620
  start_date?: number | 'now';
801
621
  }
802
622
  export declare namespace SubscriptionScheduleCreateParams {
803
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
804
623
  interface BillingMode {
805
624
  /**
806
625
  * Configure behavior for flexible billing mode.
@@ -923,10 +742,6 @@ export declare namespace SubscriptionScheduleCreateParams {
923
742
  * The account on behalf of which to charge, for each of the associated subscription's invoices.
924
743
  */
925
744
  on_behalf_of?: string;
926
- /**
927
- * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
928
- */
929
- pause_collection?: Phase.PauseCollection;
930
745
  /**
931
746
  * Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
932
747
  */
@@ -939,28 +754,10 @@ export declare namespace SubscriptionScheduleCreateParams {
939
754
  * If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
940
755
  */
941
756
  trial?: boolean;
942
- /**
943
- * Specify trial behavior when crossing phase boundaries
944
- */
945
- trial_continuation?: Phase.TrialContinuation;
946
757
  /**
947
758
  * Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
948
759
  */
949
760
  trial_end?: number;
950
- /**
951
- * Settings related to subscription trials.
952
- */
953
- trial_settings?: Phase.TrialSettings;
954
- }
955
- interface Prebilling {
956
- /**
957
- * This is used to determine the number of billing cycles to prebill.
958
- */
959
- iterations: number;
960
- /**
961
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
962
- */
963
- update_behavior?: Prebilling.UpdateBehavior;
964
761
  }
965
762
  namespace BillingMode {
966
763
  interface Flexible {
@@ -1118,10 +915,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1118
915
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1119
916
  */
1120
917
  discount?: string;
1121
- /**
1122
- * Details to determine how long the discount should be applied for.
1123
- */
1124
- discount_end?: Discount.DiscountEnd;
1125
918
  /**
1126
919
  * ID of the promotion code to create a new discount for.
1127
920
  */
@@ -1184,20 +977,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1184
977
  * A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
1185
978
  */
1186
979
  tax_rates?: Emptyable<Array<string>>;
1187
- /**
1188
- * Options that configure the trial on the subscription item.
1189
- */
1190
- trial?: Item.Trial;
1191
- /**
1192
- * The ID of the trial offer to apply to the configuration item.
1193
- */
1194
- trial_offer?: string;
1195
- }
1196
- interface PauseCollection {
1197
- /**
1198
- * The payment collection behavior for this subscription while paused.
1199
- */
1200
- behavior: PauseCollection.Behavior;
1201
980
  }
1202
981
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
1203
982
  interface TransferData {
@@ -1210,13 +989,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1210
989
  */
1211
990
  destination: string;
1212
991
  }
1213
- type TrialContinuation = 'continue' | 'none';
1214
- interface TrialSettings {
1215
- /**
1216
- * Defines how the subscription should behave when a trial ends.
1217
- */
1218
- end_behavior?: TrialSettings.EndBehavior;
1219
- }
1220
992
  namespace AddInvoiceItem {
1221
993
  interface Discount {
1222
994
  /**
@@ -1227,10 +999,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1227
999
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1228
1000
  */
1229
1001
  discount?: string;
1230
- /**
1231
- * Details to determine how long the discount should be applied for.
1232
- */
1233
- discount_end?: Discount.DiscountEnd;
1234
1002
  /**
1235
1003
  * ID of the promotion code to create a new discount for.
1236
1004
  */
@@ -1268,38 +1036,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1268
1036
  */
1269
1037
  unit_amount_decimal?: Decimal;
1270
1038
  }
1271
- namespace Discount {
1272
- interface DiscountEnd {
1273
- /**
1274
- * Time span for the redeemed discount.
1275
- */
1276
- duration?: DiscountEnd.Duration;
1277
- /**
1278
- * A precise Unix timestamp for the discount to end. Must be in the future.
1279
- */
1280
- timestamp?: number;
1281
- /**
1282
- * The type of calculation made to determine when the discount ends.
1283
- */
1284
- type: DiscountEnd.Type;
1285
- }
1286
- namespace DiscountEnd {
1287
- interface Duration {
1288
- /**
1289
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1290
- */
1291
- interval: Duration.Interval;
1292
- /**
1293
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1294
- */
1295
- interval_count: number;
1296
- }
1297
- type Type = 'duration' | 'timestamp';
1298
- namespace Duration {
1299
- type Interval = 'day' | 'month' | 'week' | 'year';
1300
- }
1301
- }
1302
- }
1303
1039
  namespace Period {
1304
1040
  interface End {
1305
1041
  /**
@@ -1347,38 +1083,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1347
1083
  type Type = 'account' | 'self';
1348
1084
  }
1349
1085
  }
1350
- namespace Discount {
1351
- interface DiscountEnd {
1352
- /**
1353
- * Time span for the redeemed discount.
1354
- */
1355
- duration?: DiscountEnd.Duration;
1356
- /**
1357
- * A precise Unix timestamp for the discount to end. Must be in the future.
1358
- */
1359
- timestamp?: number;
1360
- /**
1361
- * The type of calculation made to determine when the discount ends.
1362
- */
1363
- type: DiscountEnd.Type;
1364
- }
1365
- namespace DiscountEnd {
1366
- interface Duration {
1367
- /**
1368
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1369
- */
1370
- interval: Duration.Interval;
1371
- /**
1372
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1373
- */
1374
- interval_count: number;
1375
- }
1376
- type Type = 'duration' | 'timestamp';
1377
- namespace Duration {
1378
- type Interval = 'day' | 'month' | 'week' | 'year';
1379
- }
1380
- }
1381
- }
1382
1086
  namespace Duration {
1383
1087
  type Interval = 'day' | 'month' | 'week' | 'year';
1384
1088
  }
@@ -1413,10 +1117,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1413
1117
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1414
1118
  */
1415
1119
  discount?: string;
1416
- /**
1417
- * Details to determine how long the discount should be applied for.
1418
- */
1419
- discount_end?: Discount.DiscountEnd;
1420
1120
  /**
1421
1121
  * ID of the promotion code to create a new discount for.
1422
1122
  */
@@ -1448,48 +1148,6 @@ export declare namespace SubscriptionScheduleCreateParams {
1448
1148
  */
1449
1149
  unit_amount_decimal?: Decimal;
1450
1150
  }
1451
- interface Trial {
1452
- /**
1453
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
1454
- */
1455
- converts_to?: Array<string>;
1456
- /**
1457
- * Determines the type of trial for this item.
1458
- */
1459
- type: Trial.Type;
1460
- }
1461
- namespace Discount {
1462
- interface DiscountEnd {
1463
- /**
1464
- * Time span for the redeemed discount.
1465
- */
1466
- duration?: DiscountEnd.Duration;
1467
- /**
1468
- * A precise Unix timestamp for the discount to end. Must be in the future.
1469
- */
1470
- timestamp?: number;
1471
- /**
1472
- * The type of calculation made to determine when the discount ends.
1473
- */
1474
- type: DiscountEnd.Type;
1475
- }
1476
- namespace DiscountEnd {
1477
- interface Duration {
1478
- /**
1479
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1480
- */
1481
- interval: Duration.Interval;
1482
- /**
1483
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1484
- */
1485
- interval_count: number;
1486
- }
1487
- type Type = 'duration' | 'timestamp';
1488
- namespace Duration {
1489
- type Interval = 'day' | 'month' | 'week' | 'year';
1490
- }
1491
- }
1492
- }
1493
1151
  namespace PriceData {
1494
1152
  interface Recurring {
1495
1153
  /**
@@ -1506,28 +1164,8 @@ export declare namespace SubscriptionScheduleCreateParams {
1506
1164
  type Interval = 'day' | 'month' | 'week' | 'year';
1507
1165
  }
1508
1166
  }
1509
- namespace Trial {
1510
- type Type = 'free' | 'paid';
1511
- }
1512
- }
1513
- namespace PauseCollection {
1514
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
1515
- }
1516
- namespace TrialSettings {
1517
- interface EndBehavior {
1518
- /**
1519
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
1520
- */
1521
- prorate_up_front?: EndBehavior.ProrateUpFront;
1522
- }
1523
- namespace EndBehavior {
1524
- type ProrateUpFront = 'defer' | 'include';
1525
- }
1526
1167
  }
1527
1168
  }
1528
- namespace Prebilling {
1529
- type UpdateBehavior = 'prebill' | 'reset';
1530
- }
1531
1169
  }
1532
1170
  export interface SubscriptionScheduleRetrieveParams {
1533
1171
  /**
@@ -1536,10 +1174,6 @@ export interface SubscriptionScheduleRetrieveParams {
1536
1174
  expand?: Array<string>;
1537
1175
  }
1538
1176
  export interface SubscriptionScheduleUpdateParams {
1539
- /**
1540
- * Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
1541
- */
1542
- billing_behavior?: SubscriptionScheduleUpdateParams.BillingBehavior;
1543
1177
  /**
1544
1178
  * Object representing the subscription schedule's default settings.
1545
1179
  */
@@ -1560,17 +1194,12 @@ export interface SubscriptionScheduleUpdateParams {
1560
1194
  * List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
1561
1195
  */
1562
1196
  phases?: Array<SubscriptionScheduleUpdateParams.Phase>;
1563
- /**
1564
- * If specified, the invoicing for the given billing cycle iterations will be processed now.
1565
- */
1566
- prebilling?: SubscriptionScheduleUpdateParams.Prebilling;
1567
1197
  /**
1568
1198
  * If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.
1569
1199
  */
1570
1200
  proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
1571
1201
  }
1572
1202
  export declare namespace SubscriptionScheduleUpdateParams {
1573
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
1574
1203
  interface DefaultSettings {
1575
1204
  /**
1576
1205
  * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
@@ -1683,10 +1312,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
1683
1312
  * The account on behalf of which to charge, for each of the associated subscription's invoices.
1684
1313
  */
1685
1314
  on_behalf_of?: string;
1686
- /**
1687
- * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
1688
- */
1689
- pause_collection?: Phase.PauseCollection;
1690
1315
  /**
1691
1316
  * Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
1692
1317
  */
@@ -1703,28 +1328,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
1703
1328
  * If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
1704
1329
  */
1705
1330
  trial?: boolean;
1706
- /**
1707
- * Specify trial behavior when crossing phase boundaries
1708
- */
1709
- trial_continuation?: Phase.TrialContinuation;
1710
1331
  /**
1711
1332
  * Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
1712
1333
  */
1713
1334
  trial_end?: number | 'now';
1714
- /**
1715
- * Settings related to subscription trials.
1716
- */
1717
- trial_settings?: Phase.TrialSettings;
1718
- }
1719
- interface Prebilling {
1720
- /**
1721
- * This is used to determine the number of billing cycles to prebill.
1722
- */
1723
- iterations: number;
1724
- /**
1725
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
1726
- */
1727
- update_behavior?: Prebilling.UpdateBehavior;
1728
1335
  }
1729
1336
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
1730
1337
  namespace DefaultSettings {
@@ -1871,10 +1478,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
1871
1478
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1872
1479
  */
1873
1480
  discount?: string;
1874
- /**
1875
- * Details to determine how long the discount should be applied for.
1876
- */
1877
- discount_end?: Discount.DiscountEnd;
1878
1481
  /**
1879
1482
  * ID of the promotion code to create a new discount for.
1880
1483
  */
@@ -1937,20 +1540,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
1937
1540
  * A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
1938
1541
  */
1939
1542
  tax_rates?: Emptyable<Array<string>>;
1940
- /**
1941
- * Options that configure the trial on the subscription item.
1942
- */
1943
- trial?: Item.Trial;
1944
- /**
1945
- * The ID of the trial offer to apply to the configuration item.
1946
- */
1947
- trial_offer?: string;
1948
- }
1949
- interface PauseCollection {
1950
- /**
1951
- * The payment collection behavior for this subscription while paused.
1952
- */
1953
- behavior: PauseCollection.Behavior;
1954
1543
  }
1955
1544
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
1956
1545
  interface TransferData {
@@ -1963,13 +1552,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
1963
1552
  */
1964
1553
  destination: string;
1965
1554
  }
1966
- type TrialContinuation = 'continue' | 'none';
1967
- interface TrialSettings {
1968
- /**
1969
- * Defines how the subscription should behave when a trial ends.
1970
- */
1971
- end_behavior?: TrialSettings.EndBehavior;
1972
- }
1973
1555
  namespace AddInvoiceItem {
1974
1556
  interface Discount {
1975
1557
  /**
@@ -1980,10 +1562,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
1980
1562
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1981
1563
  */
1982
1564
  discount?: string;
1983
- /**
1984
- * Details to determine how long the discount should be applied for.
1985
- */
1986
- discount_end?: Discount.DiscountEnd;
1987
1565
  /**
1988
1566
  * ID of the promotion code to create a new discount for.
1989
1567
  */
@@ -2021,38 +1599,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
2021
1599
  */
2022
1600
  unit_amount_decimal?: Decimal;
2023
1601
  }
2024
- namespace Discount {
2025
- interface DiscountEnd {
2026
- /**
2027
- * Time span for the redeemed discount.
2028
- */
2029
- duration?: DiscountEnd.Duration;
2030
- /**
2031
- * A precise Unix timestamp for the discount to end. Must be in the future.
2032
- */
2033
- timestamp?: number;
2034
- /**
2035
- * The type of calculation made to determine when the discount ends.
2036
- */
2037
- type: DiscountEnd.Type;
2038
- }
2039
- namespace DiscountEnd {
2040
- interface Duration {
2041
- /**
2042
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2043
- */
2044
- interval: Duration.Interval;
2045
- /**
2046
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2047
- */
2048
- interval_count: number;
2049
- }
2050
- type Type = 'duration' | 'timestamp';
2051
- namespace Duration {
2052
- type Interval = 'day' | 'month' | 'week' | 'year';
2053
- }
2054
- }
2055
- }
2056
1602
  namespace Period {
2057
1603
  interface End {
2058
1604
  /**
@@ -2100,38 +1646,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
2100
1646
  type Type = 'account' | 'self';
2101
1647
  }
2102
1648
  }
2103
- namespace Discount {
2104
- interface DiscountEnd {
2105
- /**
2106
- * Time span for the redeemed discount.
2107
- */
2108
- duration?: DiscountEnd.Duration;
2109
- /**
2110
- * A precise Unix timestamp for the discount to end. Must be in the future.
2111
- */
2112
- timestamp?: number;
2113
- /**
2114
- * The type of calculation made to determine when the discount ends.
2115
- */
2116
- type: DiscountEnd.Type;
2117
- }
2118
- namespace DiscountEnd {
2119
- interface Duration {
2120
- /**
2121
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2122
- */
2123
- interval: Duration.Interval;
2124
- /**
2125
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2126
- */
2127
- interval_count: number;
2128
- }
2129
- type Type = 'duration' | 'timestamp';
2130
- namespace Duration {
2131
- type Interval = 'day' | 'month' | 'week' | 'year';
2132
- }
2133
- }
2134
- }
2135
1649
  namespace Duration {
2136
1650
  type Interval = 'day' | 'month' | 'week' | 'year';
2137
1651
  }
@@ -2166,10 +1680,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
2166
1680
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2167
1681
  */
2168
1682
  discount?: string;
2169
- /**
2170
- * Details to determine how long the discount should be applied for.
2171
- */
2172
- discount_end?: Discount.DiscountEnd;
2173
1683
  /**
2174
1684
  * ID of the promotion code to create a new discount for.
2175
1685
  */
@@ -2201,48 +1711,6 @@ export declare namespace SubscriptionScheduleUpdateParams {
2201
1711
  */
2202
1712
  unit_amount_decimal?: Decimal;
2203
1713
  }
2204
- interface Trial {
2205
- /**
2206
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
2207
- */
2208
- converts_to?: Array<string>;
2209
- /**
2210
- * Determines the type of trial for this item.
2211
- */
2212
- type: Trial.Type;
2213
- }
2214
- namespace Discount {
2215
- interface DiscountEnd {
2216
- /**
2217
- * Time span for the redeemed discount.
2218
- */
2219
- duration?: DiscountEnd.Duration;
2220
- /**
2221
- * A precise Unix timestamp for the discount to end. Must be in the future.
2222
- */
2223
- timestamp?: number;
2224
- /**
2225
- * The type of calculation made to determine when the discount ends.
2226
- */
2227
- type: DiscountEnd.Type;
2228
- }
2229
- namespace DiscountEnd {
2230
- interface Duration {
2231
- /**
2232
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2233
- */
2234
- interval: Duration.Interval;
2235
- /**
2236
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2237
- */
2238
- interval_count: number;
2239
- }
2240
- type Type = 'duration' | 'timestamp';
2241
- namespace Duration {
2242
- type Interval = 'day' | 'month' | 'week' | 'year';
2243
- }
2244
- }
2245
- }
2246
1714
  namespace PriceData {
2247
1715
  interface Recurring {
2248
1716
  /**
@@ -2259,28 +1727,8 @@ export declare namespace SubscriptionScheduleUpdateParams {
2259
1727
  type Interval = 'day' | 'month' | 'week' | 'year';
2260
1728
  }
2261
1729
  }
2262
- namespace Trial {
2263
- type Type = 'free' | 'paid';
2264
- }
2265
- }
2266
- namespace PauseCollection {
2267
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
2268
- }
2269
- namespace TrialSettings {
2270
- interface EndBehavior {
2271
- /**
2272
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
2273
- */
2274
- prorate_up_front?: EndBehavior.ProrateUpFront;
2275
- }
2276
- namespace EndBehavior {
2277
- type ProrateUpFront = 'defer' | 'include';
2278
- }
2279
1730
  }
2280
1731
  }
2281
- namespace Prebilling {
2282
- type UpdateBehavior = 'prebill' | 'reset';
2283
- }
2284
1732
  }
2285
1733
  export interface SubscriptionScheduleListParams extends PaginationParams {
2286
1734
  /**
@@ -2316,605 +1764,6 @@ export interface SubscriptionScheduleListParams extends PaginationParams {
2316
1764
  */
2317
1765
  scheduled?: boolean;
2318
1766
  }
2319
- export interface SubscriptionScheduleAmendParams {
2320
- /**
2321
- * Changes to apply to the phases of the subscription schedule, in the order provided.
2322
- */
2323
- amendments?: Array<SubscriptionScheduleAmendParams.Amendment>;
2324
- /**
2325
- * Specifies which fields in the response should be expanded.
2326
- */
2327
- expand?: Array<string>;
2328
- /**
2329
- * Provide any time periods to bill in advance.
2330
- */
2331
- prebilling?: Emptyable<Array<SubscriptionScheduleAmendParams.Prebilling>>;
2332
- /**
2333
- * In cases where the amendment changes the currently active phase,
2334
- * specifies if and how to prorate at the time of the request.
2335
- */
2336
- proration_behavior?: SubscriptionScheduleAmendParams.ProrationBehavior;
2337
- /**
2338
- * Changes to apply to the subscription schedule.
2339
- */
2340
- schedule_settings?: SubscriptionScheduleAmendParams.ScheduleSettings;
2341
- }
2342
- export declare namespace SubscriptionScheduleAmendParams {
2343
- interface Amendment {
2344
- /**
2345
- * Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
2346
- */
2347
- amendment_end?: Amendment.AmendmentEnd;
2348
- /**
2349
- * Details to identify the earliest timestamp where the proposed change should take effect.
2350
- */
2351
- amendment_start: Amendment.AmendmentStart;
2352
- /**
2353
- * For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
2354
- */
2355
- billing_cycle_anchor?: Amendment.BillingCycleAnchor;
2356
- /**
2357
- * Changes to the coupons being redeemed or discounts being applied during the amendment time span.
2358
- */
2359
- discount_actions?: Array<Amendment.DiscountAction>;
2360
- /**
2361
- * Changes to the subscription items during the amendment time span.
2362
- */
2363
- item_actions?: Array<Amendment.ItemAction>;
2364
- /**
2365
- * Instructions for how to modify phase metadata
2366
- */
2367
- metadata_actions?: Array<Amendment.MetadataAction>;
2368
- /**
2369
- * Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
2370
- */
2371
- proration_behavior?: Amendment.ProrationBehavior;
2372
- /**
2373
- * Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
2374
- */
2375
- set_pause_collection?: Amendment.SetPauseCollection;
2376
- /**
2377
- * Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
2378
- */
2379
- set_schedule_end?: Amendment.SetScheduleEnd;
2380
- /**
2381
- * Settings related to subscription trials.
2382
- */
2383
- trial_settings?: Amendment.TrialSettings;
2384
- }
2385
- interface Prebilling {
2386
- /**
2387
- * The beginning of the prebilled time period. The default value is `now`.
2388
- */
2389
- bill_from?: Prebilling.BillFrom;
2390
- /**
2391
- * The end of the prebilled time period.
2392
- */
2393
- bill_until?: Prebilling.BillUntil;
2394
- /**
2395
- * When the prebilling invoice should be created. The default value is `now`.
2396
- */
2397
- invoice_at?: 'now';
2398
- /**
2399
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
2400
- */
2401
- update_behavior?: Prebilling.UpdateBehavior;
2402
- }
2403
- type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
2404
- interface ScheduleSettings {
2405
- /**
2406
- * Behavior of the subscription schedule and underlying subscription when it ends.
2407
- */
2408
- end_behavior?: ScheduleSettings.EndBehavior;
2409
- }
2410
- namespace Amendment {
2411
- interface AmendmentEnd {
2412
- /**
2413
- * Use the `end` time of a given discount.
2414
- */
2415
- discount_end?: AmendmentEnd.DiscountEnd;
2416
- /**
2417
- * Time span for the amendment starting from the `amendment_start`.
2418
- */
2419
- duration?: AmendmentEnd.Duration;
2420
- /**
2421
- * A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
2422
- */
2423
- timestamp?: number;
2424
- /**
2425
- * Select one of three ways to pass the `amendment_end`.
2426
- */
2427
- type: AmendmentEnd.Type;
2428
- }
2429
- interface AmendmentStart {
2430
- /**
2431
- * Details of another amendment in the same array, immediately after which this amendment should begin.
2432
- */
2433
- amendment_end?: AmendmentStart.AmendmentEnd;
2434
- /**
2435
- * Use the `end` time of a given discount.
2436
- */
2437
- discount_end?: AmendmentStart.DiscountEnd;
2438
- /**
2439
- * A precise Unix timestamp for the amendment to start.
2440
- */
2441
- timestamp?: number;
2442
- /**
2443
- * Select one of three ways to pass the `amendment_start`.
2444
- */
2445
- type: AmendmentStart.Type;
2446
- }
2447
- type BillingCycleAnchor = 'amendment_start' | 'automatic';
2448
- interface DiscountAction {
2449
- /**
2450
- * Details of the discount to add.
2451
- */
2452
- add?: DiscountAction.Add;
2453
- /**
2454
- * Details of the discount to remove.
2455
- */
2456
- remove?: DiscountAction.Remove;
2457
- /**
2458
- * Details of the discount to replace the existing discounts with.
2459
- */
2460
- set?: DiscountAction.Set;
2461
- /**
2462
- * Determines the type of discount action.
2463
- */
2464
- type: DiscountAction.Type;
2465
- }
2466
- interface ItemAction {
2467
- /**
2468
- * Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
2469
- */
2470
- add?: ItemAction.Add;
2471
- /**
2472
- * Details of the subscription item to remove.
2473
- */
2474
- remove?: ItemAction.Remove;
2475
- /**
2476
- * Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
2477
- */
2478
- set?: ItemAction.Set;
2479
- /**
2480
- * Determines the type of item action.
2481
- */
2482
- type: ItemAction.Type;
2483
- }
2484
- interface MetadataAction {
2485
- /**
2486
- * Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
2487
- */
2488
- add?: {
2489
- [key: string]: string;
2490
- };
2491
- /**
2492
- * Keys to remove from schedule phase metadata.
2493
- */
2494
- remove?: Array<string>;
2495
- /**
2496
- * Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
2497
- */
2498
- set?: Emptyable<{
2499
- [key: string]: string;
2500
- }>;
2501
- /**
2502
- * Select one of three ways to update phase-level `metadata` on subscription schedules.
2503
- */
2504
- type: MetadataAction.Type;
2505
- }
2506
- type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
2507
- interface SetPauseCollection {
2508
- /**
2509
- * Details of the pause_collection behavior to apply to the amendment.
2510
- */
2511
- set?: SetPauseCollection.Set;
2512
- /**
2513
- * Determines the type of the pause_collection amendment.
2514
- */
2515
- type: SetPauseCollection.Type;
2516
- }
2517
- type SetScheduleEnd = 'amendment_end' | 'amendment_start';
2518
- interface TrialSettings {
2519
- /**
2520
- * Defines how the subscription should behave when a trial ends.
2521
- */
2522
- end_behavior?: TrialSettings.EndBehavior;
2523
- }
2524
- namespace AmendmentEnd {
2525
- interface DiscountEnd {
2526
- /**
2527
- * The ID of a specific discount.
2528
- */
2529
- discount: string;
2530
- }
2531
- interface Duration {
2532
- /**
2533
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2534
- */
2535
- interval: Duration.Interval;
2536
- /**
2537
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2538
- */
2539
- interval_count: number;
2540
- }
2541
- type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
2542
- namespace Duration {
2543
- type Interval = 'day' | 'month' | 'week' | 'year';
2544
- }
2545
- }
2546
- namespace AmendmentStart {
2547
- interface AmendmentEnd {
2548
- /**
2549
- * The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
2550
- */
2551
- index: number;
2552
- }
2553
- interface DiscountEnd {
2554
- /**
2555
- * The ID of a specific discount.
2556
- */
2557
- discount: string;
2558
- }
2559
- type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
2560
- }
2561
- namespace DiscountAction {
2562
- interface Add {
2563
- /**
2564
- * The coupon code to redeem.
2565
- */
2566
- coupon?: string;
2567
- /**
2568
- * An ID of an existing discount for a coupon that was already redeemed.
2569
- */
2570
- discount?: string;
2571
- /**
2572
- * Details to determine how long the discount should be applied for.
2573
- */
2574
- discount_end?: Add.DiscountEnd;
2575
- /**
2576
- * The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
2577
- */
2578
- index?: number;
2579
- /**
2580
- * The promotion code to redeem.
2581
- */
2582
- promotion_code?: string;
2583
- }
2584
- interface Remove {
2585
- /**
2586
- * The coupon code to remove from the `discounts` array.
2587
- */
2588
- coupon?: string;
2589
- /**
2590
- * The ID of a discount to remove from the `discounts` array.
2591
- */
2592
- discount?: string;
2593
- /**
2594
- * The ID of a promotion code to remove from the `discounts` array.
2595
- */
2596
- promotion_code?: string;
2597
- }
2598
- interface Set {
2599
- /**
2600
- * The coupon code to replace the `discounts` array with.
2601
- */
2602
- coupon?: string;
2603
- /**
2604
- * An ID of an existing discount to replace the `discounts` array with.
2605
- */
2606
- discount?: string;
2607
- /**
2608
- * An ID of an existing promotion code to replace the `discounts` array with.
2609
- */
2610
- promotion_code?: string;
2611
- }
2612
- type Type = 'add' | 'remove' | 'set';
2613
- namespace Add {
2614
- interface DiscountEnd {
2615
- /**
2616
- * The type of calculation made to determine when the discount ends.
2617
- */
2618
- type: 'amendment_end';
2619
- }
2620
- }
2621
- }
2622
- namespace ItemAction {
2623
- interface Add {
2624
- /**
2625
- * The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
2626
- */
2627
- discounts?: Array<Add.Discount>;
2628
- /**
2629
- * 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`.
2630
- */
2631
- metadata?: MetadataParam;
2632
- /**
2633
- * The ID of the price object.
2634
- */
2635
- price: string;
2636
- /**
2637
- * Quantity for this item.
2638
- */
2639
- quantity?: number;
2640
- /**
2641
- * The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
2642
- */
2643
- tax_rates?: Array<string>;
2644
- /**
2645
- * Options that configure the trial on the subscription item.
2646
- */
2647
- trial?: Add.Trial;
2648
- /**
2649
- * The ID of the trial offer to apply to the configuration item.
2650
- */
2651
- trial_offer?: string;
2652
- }
2653
- interface Remove {
2654
- /**
2655
- * ID of a price to remove.
2656
- */
2657
- price: string;
2658
- }
2659
- interface Set {
2660
- /**
2661
- * If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
2662
- */
2663
- discounts?: Array<Set.Discount>;
2664
- /**
2665
- * If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
2666
- */
2667
- metadata?: MetadataParam;
2668
- /**
2669
- * The ID of the price object.
2670
- */
2671
- price: string;
2672
- /**
2673
- * If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
2674
- */
2675
- quantity?: number;
2676
- /**
2677
- * If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
2678
- */
2679
- tax_rates?: Array<string>;
2680
- /**
2681
- * If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
2682
- */
2683
- trial?: Set.Trial;
2684
- /**
2685
- * The ID of the trial offer to apply to the configuration item.
2686
- */
2687
- trial_offer?: string;
2688
- }
2689
- type Type = 'add' | 'remove' | 'set';
2690
- namespace Add {
2691
- interface Discount {
2692
- /**
2693
- * ID of the coupon to create a new discount for.
2694
- */
2695
- coupon?: string;
2696
- /**
2697
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
2698
- */
2699
- discount?: string;
2700
- /**
2701
- * Details to determine how long the discount should be applied for.
2702
- */
2703
- discount_end?: Discount.DiscountEnd;
2704
- /**
2705
- * ID of the promotion code to create a new discount for.
2706
- */
2707
- promotion_code?: string;
2708
- }
2709
- interface Trial {
2710
- /**
2711
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
2712
- */
2713
- converts_to?: Array<string>;
2714
- /**
2715
- * Determines the type of trial for this item.
2716
- */
2717
- type: Trial.Type;
2718
- }
2719
- namespace Discount {
2720
- interface DiscountEnd {
2721
- /**
2722
- * Time span for the redeemed discount.
2723
- */
2724
- duration?: DiscountEnd.Duration;
2725
- /**
2726
- * A precise Unix timestamp for the discount to end. Must be in the future.
2727
- */
2728
- timestamp?: number;
2729
- /**
2730
- * The type of calculation made to determine when the discount ends.
2731
- */
2732
- type: DiscountEnd.Type;
2733
- }
2734
- namespace DiscountEnd {
2735
- interface Duration {
2736
- /**
2737
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2738
- */
2739
- interval: Duration.Interval;
2740
- /**
2741
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2742
- */
2743
- interval_count: number;
2744
- }
2745
- type Type = 'duration' | 'timestamp';
2746
- namespace Duration {
2747
- type Interval = 'day' | 'month' | 'week' | 'year';
2748
- }
2749
- }
2750
- }
2751
- namespace Trial {
2752
- type Type = 'free' | 'paid';
2753
- }
2754
- }
2755
- namespace Set {
2756
- interface Discount {
2757
- /**
2758
- * ID of the coupon to create a new discount for.
2759
- */
2760
- coupon?: string;
2761
- /**
2762
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
2763
- */
2764
- discount?: string;
2765
- /**
2766
- * Details to determine how long the discount should be applied for.
2767
- */
2768
- discount_end?: Discount.DiscountEnd;
2769
- /**
2770
- * ID of the promotion code to create a new discount for.
2771
- */
2772
- promotion_code?: string;
2773
- }
2774
- interface Trial {
2775
- /**
2776
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
2777
- */
2778
- converts_to?: Array<string>;
2779
- /**
2780
- * Determines the type of trial for this item.
2781
- */
2782
- type: Trial.Type;
2783
- }
2784
- namespace Discount {
2785
- interface DiscountEnd {
2786
- /**
2787
- * Time span for the redeemed discount.
2788
- */
2789
- duration?: DiscountEnd.Duration;
2790
- /**
2791
- * A precise Unix timestamp for the discount to end. Must be in the future.
2792
- */
2793
- timestamp?: number;
2794
- /**
2795
- * The type of calculation made to determine when the discount ends.
2796
- */
2797
- type: DiscountEnd.Type;
2798
- }
2799
- namespace DiscountEnd {
2800
- interface Duration {
2801
- /**
2802
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2803
- */
2804
- interval: Duration.Interval;
2805
- /**
2806
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2807
- */
2808
- interval_count: number;
2809
- }
2810
- type Type = 'duration' | 'timestamp';
2811
- namespace Duration {
2812
- type Interval = 'day' | 'month' | 'week' | 'year';
2813
- }
2814
- }
2815
- }
2816
- namespace Trial {
2817
- type Type = 'free' | 'paid';
2818
- }
2819
- }
2820
- }
2821
- namespace MetadataAction {
2822
- type Type = 'add' | 'remove' | 'set';
2823
- }
2824
- namespace SetPauseCollection {
2825
- interface Set {
2826
- /**
2827
- * The payment collection behavior for this subscription while paused.
2828
- */
2829
- behavior: Set.Behavior;
2830
- }
2831
- type Type = 'remove' | 'set';
2832
- namespace Set {
2833
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
2834
- }
2835
- }
2836
- namespace TrialSettings {
2837
- interface EndBehavior {
2838
- /**
2839
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
2840
- */
2841
- prorate_up_front?: EndBehavior.ProrateUpFront;
2842
- }
2843
- namespace EndBehavior {
2844
- type ProrateUpFront = 'defer' | 'include';
2845
- }
2846
- }
2847
- }
2848
- namespace Prebilling {
2849
- interface BillFrom {
2850
- /**
2851
- * Start the prebilled period when a specified amendment begins.
2852
- */
2853
- amendment_start?: BillFrom.AmendmentStart;
2854
- /**
2855
- * Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
2856
- */
2857
- timestamp?: number;
2858
- /**
2859
- * Select one of several ways to pass the `bill_from` value.
2860
- */
2861
- type: BillFrom.Type;
2862
- }
2863
- interface BillUntil {
2864
- /**
2865
- * End the prebilled period when a specified amendment ends.
2866
- */
2867
- amendment_end?: BillUntil.AmendmentEnd;
2868
- /**
2869
- * Time span for prebilling, starting from `bill_from`.
2870
- */
2871
- duration?: BillUntil.Duration;
2872
- /**
2873
- * End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
2874
- */
2875
- timestamp?: number;
2876
- /**
2877
- * Select one of several ways to pass the `bill_until` value.
2878
- */
2879
- type: BillUntil.Type;
2880
- }
2881
- type UpdateBehavior = 'prebill' | 'reset';
2882
- namespace BillFrom {
2883
- interface AmendmentStart {
2884
- /**
2885
- * The position of the amendment in the `amendments` array with which prebilling should begin. Indexes start from 0 and must be less than the total number of supplied amendments.
2886
- */
2887
- index: number;
2888
- }
2889
- type Type = 'amendment_start' | 'now' | 'timestamp';
2890
- }
2891
- namespace BillUntil {
2892
- interface AmendmentEnd {
2893
- /**
2894
- * The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
2895
- */
2896
- index: number;
2897
- }
2898
- interface Duration {
2899
- /**
2900
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2901
- */
2902
- interval: Duration.Interval;
2903
- /**
2904
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2905
- */
2906
- interval_count: number;
2907
- }
2908
- type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp';
2909
- namespace Duration {
2910
- type Interval = 'day' | 'month' | 'week' | 'year';
2911
- }
2912
- }
2913
- }
2914
- namespace ScheduleSettings {
2915
- type EndBehavior = 'cancel' | 'release';
2916
- }
2917
- }
2918
1767
  export interface SubscriptionScheduleCancelParams {
2919
1768
  /**
2920
1769
  * Specifies which fields in the response should be expanded.