stripe 22.3.0-beta.1 → 22.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1339) hide show
  1. package/CHANGELOG.md +158 -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 +13 -10
  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/Webhooks.d.ts +2 -2
  14. package/cjs/apiVersion.d.ts +2 -1
  15. package/cjs/apiVersion.js +3 -2
  16. package/cjs/apiVersion.js.map +1 -1
  17. package/cjs/autoPagination.js +27 -2
  18. package/cjs/autoPagination.js.map +1 -1
  19. package/cjs/platform/NodePlatformFunctions.d.ts +3 -0
  20. package/cjs/platform/NodePlatformFunctions.js +36 -2
  21. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  22. package/cjs/platform/PlatformFunctions.d.ts +1 -0
  23. package/cjs/platform/PlatformFunctions.js +3 -0
  24. package/cjs/platform/PlatformFunctions.js.map +1 -1
  25. package/cjs/resources/AccountLinks.d.ts +1 -1
  26. package/cjs/resources/AccountSessions.d.ts +0 -262
  27. package/cjs/resources/AccountSessions.js.map +1 -1
  28. package/cjs/resources/Accounts.d.ts +5 -829
  29. package/cjs/resources/Accounts.js +18 -32
  30. package/cjs/resources/Accounts.js.map +1 -1
  31. package/cjs/resources/ApplePayDomains.js +2 -2
  32. package/cjs/resources/ApplePayDomains.js.map +1 -1
  33. package/cjs/resources/ApplicationFees.js +5 -5
  34. package/cjs/resources/ApplicationFees.js.map +1 -1
  35. package/cjs/resources/Apps/Secrets.d.ts +14 -16
  36. package/cjs/resources/Apps/index.d.ts +1 -1
  37. package/cjs/resources/Balance.d.ts +0 -67
  38. package/cjs/resources/BalanceTransactions.d.ts +5 -5
  39. package/cjs/resources/BalanceTransactions.js +3 -3
  40. package/cjs/resources/BalanceTransactions.js.map +1 -1
  41. package/cjs/resources/BankAccounts.d.ts +2 -2
  42. package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
  43. package/cjs/resources/Billing/Alerts.d.ts +27 -29
  44. package/cjs/resources/Billing/Alerts.js +4 -4
  45. package/cjs/resources/Billing/Alerts.js.map +1 -1
  46. package/cjs/resources/Billing/CreditBalanceSummary.d.ts +40 -42
  47. package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
  48. package/cjs/resources/Billing/CreditBalanceTransactions.js +1 -1
  49. package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  50. package/cjs/resources/Billing/CreditGrants.d.ts +41 -43
  51. package/cjs/resources/Billing/CreditGrants.js +4 -4
  52. package/cjs/resources/Billing/CreditGrants.js.map +1 -1
  53. package/cjs/resources/Billing/MeterEventAdjustments.d.ts +9 -11
  54. package/cjs/resources/Billing/Meters.d.ts +39 -41
  55. package/cjs/resources/Billing/Meters.js +5 -5
  56. package/cjs/resources/Billing/Meters.js.map +1 -1
  57. package/cjs/resources/Billing/index.d.ts +7 -10
  58. package/cjs/resources/Billing/index.js +0 -2
  59. package/cjs/resources/Billing/index.js.map +1 -1
  60. package/cjs/resources/BillingPortal/Configurations.d.ts +132 -134
  61. package/cjs/resources/BillingPortal/Configurations.js +2 -2
  62. package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
  63. package/cjs/resources/BillingPortal/Sessions.d.ts +100 -102
  64. package/cjs/resources/BillingPortal/index.d.ts +2 -2
  65. package/cjs/resources/Capabilities.d.ts +2 -2
  66. package/cjs/resources/Cards.d.ts +0 -4
  67. package/cjs/resources/Charges.d.ts +84 -3066
  68. package/cjs/resources/Charges.js +3 -3
  69. package/cjs/resources/Charges.js.map +1 -1
  70. package/cjs/resources/Checkout/Sessions.d.ts +1598 -1900
  71. package/cjs/resources/Checkout/Sessions.js +4 -4
  72. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  73. package/cjs/resources/Checkout/index.d.ts +1 -1
  74. package/cjs/resources/Climate/Orders.d.ts +47 -49
  75. package/cjs/resources/Climate/Orders.js +3 -3
  76. package/cjs/resources/Climate/Orders.js.map +1 -1
  77. package/cjs/resources/Climate/Products.d.ts +15 -17
  78. package/cjs/resources/Climate/Products.js +1 -1
  79. package/cjs/resources/Climate/Products.js.map +1 -1
  80. package/cjs/resources/Climate/Suppliers.d.ts +25 -27
  81. package/cjs/resources/Climate/Suppliers.js +1 -1
  82. package/cjs/resources/Climate/Suppliers.js.map +1 -1
  83. package/cjs/resources/Climate/index.d.ts +3 -3
  84. package/cjs/resources/ConfirmationTokens.d.ts +13 -67
  85. package/cjs/resources/ConfirmationTokens.js +1 -1
  86. package/cjs/resources/ConfirmationTokens.js.map +1 -1
  87. package/cjs/resources/CountrySpecs.js +1 -1
  88. package/cjs/resources/CountrySpecs.js.map +1 -1
  89. package/cjs/resources/Coupons.d.ts +0 -53
  90. package/cjs/resources/Coupons.js +3 -16
  91. package/cjs/resources/Coupons.js.map +1 -1
  92. package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
  93. package/cjs/resources/CreditNotes.d.ts +8 -5
  94. package/cjs/resources/CreditNotes.js +6 -4
  95. package/cjs/resources/CreditNotes.js.map +1 -1
  96. package/cjs/resources/CustomerSessions.d.ts +0 -68
  97. package/cjs/resources/Customers.d.ts +1 -7
  98. package/cjs/resources/Customers.js +31 -41
  99. package/cjs/resources/Customers.js.map +1 -1
  100. package/cjs/resources/Disputes.d.ts +28 -30
  101. package/cjs/resources/Disputes.js +3 -3
  102. package/cjs/resources/Disputes.js.map +1 -1
  103. package/cjs/resources/Entitlements/ActiveEntitlements.js +1 -1
  104. package/cjs/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  105. package/cjs/resources/Entitlements/Features.js +2 -2
  106. package/cjs/resources/Entitlements/Features.js.map +1 -1
  107. package/cjs/resources/Entitlements/index.d.ts +2 -2
  108. package/cjs/resources/EphemeralKeys.js +1 -1
  109. package/cjs/resources/EphemeralKeys.js.map +1 -1
  110. package/cjs/resources/Events.d.ts +3 -548
  111. package/cjs/resources/Events.js +1 -1
  112. package/cjs/resources/Events.js.map +1 -1
  113. package/cjs/resources/ExchangeRates.js +1 -1
  114. package/cjs/resources/ExchangeRates.js.map +1 -1
  115. package/cjs/resources/ExternalAccounts.d.ts +1 -212
  116. package/cjs/resources/ExternalAccounts.js +0 -44
  117. package/cjs/resources/ExternalAccounts.js.map +1 -1
  118. package/cjs/resources/FileLinks.js +2 -2
  119. package/cjs/resources/FileLinks.js.map +1 -1
  120. package/cjs/resources/Files.js +1 -1
  121. package/cjs/resources/Files.js.map +1 -1
  122. package/cjs/resources/FinancialConnections/Accounts.d.ts +169 -217
  123. package/cjs/resources/FinancialConnections/Accounts.js +6 -14
  124. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  125. package/cjs/resources/FinancialConnections/Sessions.d.ts +43 -193
  126. package/cjs/resources/FinancialConnections/Sessions.js +1 -1
  127. package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
  128. package/cjs/resources/FinancialConnections/Transactions.d.ts +13 -15
  129. package/cjs/resources/FinancialConnections/Transactions.js +1 -1
  130. package/cjs/resources/FinancialConnections/Transactions.js.map +1 -1
  131. package/cjs/resources/FinancialConnections/index.d.ts +9 -24
  132. package/cjs/resources/FinancialConnections/index.js +0 -4
  133. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  134. package/cjs/resources/Forwarding/Requests.d.ts +57 -59
  135. package/cjs/resources/Forwarding/Requests.js +1 -1
  136. package/cjs/resources/Forwarding/Requests.js.map +1 -1
  137. package/cjs/resources/Forwarding/index.d.ts +1 -1
  138. package/cjs/resources/Identity/VerificationReports.d.ts +255 -257
  139. package/cjs/resources/Identity/VerificationReports.js +1 -1
  140. package/cjs/resources/Identity/VerificationReports.js.map +1 -1
  141. package/cjs/resources/Identity/VerificationSessions.d.ts +148 -150
  142. package/cjs/resources/Identity/VerificationSessions.js +4 -4
  143. package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
  144. package/cjs/resources/Identity/index.d.ts +2 -2
  145. package/cjs/resources/InvoiceItems.d.ts +0 -85
  146. package/cjs/resources/InvoiceItems.js +3 -3
  147. package/cjs/resources/InvoiceItems.js.map +1 -1
  148. package/cjs/resources/InvoiceLineItems.d.ts +2 -40
  149. package/cjs/resources/InvoicePayments.js +1 -1
  150. package/cjs/resources/InvoicePayments.js.map +1 -1
  151. package/cjs/resources/InvoiceRenderingTemplates.js +3 -3
  152. package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
  153. package/cjs/resources/Invoices.d.ts +23 -1341
  154. package/cjs/resources/Invoices.js +14 -55
  155. package/cjs/resources/Invoices.js.map +1 -1
  156. package/cjs/resources/Issuing/Authorizations.d.ts +354 -356
  157. package/cjs/resources/Issuing/Authorizations.js +4 -4
  158. package/cjs/resources/Issuing/Authorizations.js.map +1 -1
  159. package/cjs/resources/Issuing/Cardholders.d.ts +144 -147
  160. package/cjs/resources/Issuing/Cardholders.js +2 -2
  161. package/cjs/resources/Issuing/Cardholders.js.map +1 -1
  162. package/cjs/resources/Issuing/Cards.d.ts +183 -185
  163. package/cjs/resources/Issuing/Cards.js +2 -2
  164. package/cjs/resources/Issuing/Cards.js.map +1 -1
  165. package/cjs/resources/Issuing/Disputes.d.ts +215 -217
  166. package/cjs/resources/Issuing/Disputes.js +3 -3
  167. package/cjs/resources/Issuing/Disputes.js.map +1 -1
  168. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
  169. package/cjs/resources/Issuing/PersonalizationDesigns.js +2 -2
  170. package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  171. package/cjs/resources/Issuing/PhysicalBundles.d.ts +24 -26
  172. package/cjs/resources/Issuing/PhysicalBundles.js +1 -1
  173. package/cjs/resources/Issuing/PhysicalBundles.js.map +1 -1
  174. package/cjs/resources/Issuing/Tokens.d.ts +130 -132
  175. package/cjs/resources/Issuing/Tokens.js +2 -2
  176. package/cjs/resources/Issuing/Tokens.js.map +1 -1
  177. package/cjs/resources/Issuing/Transactions.d.ts +223 -234
  178. package/cjs/resources/Issuing/Transactions.js +2 -2
  179. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  180. package/cjs/resources/Issuing/index.d.ts +30 -55
  181. package/cjs/resources/Issuing/index.js +0 -6
  182. package/cjs/resources/Issuing/index.js.map +1 -1
  183. package/cjs/resources/LineItems.d.ts +4 -30
  184. package/cjs/resources/Mandates.d.ts +1 -33
  185. package/cjs/resources/Mandates.js +1 -9
  186. package/cjs/resources/Mandates.js.map +1 -1
  187. package/cjs/resources/PaymentAttemptRecords.d.ts +9 -92
  188. package/cjs/resources/PaymentAttemptRecords.js +1 -1
  189. package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
  190. package/cjs/resources/PaymentIntents.d.ts +6495 -17272
  191. package/cjs/resources/PaymentIntents.js +9 -36
  192. package/cjs/resources/PaymentIntents.js.map +1 -1
  193. package/cjs/resources/PaymentLinks.d.ts +6 -19
  194. package/cjs/resources/PaymentLinks.js +3 -3
  195. package/cjs/resources/PaymentLinks.js.map +1 -1
  196. package/cjs/resources/PaymentMethodConfigurations.d.ts +0 -350
  197. package/cjs/resources/PaymentMethodConfigurations.js +2 -2
  198. package/cjs/resources/PaymentMethodConfigurations.js.map +1 -1
  199. package/cjs/resources/PaymentMethodDomains.js +3 -3
  200. package/cjs/resources/PaymentMethodDomains.js.map +1 -1
  201. package/cjs/resources/PaymentMethods.d.ts +16 -152
  202. package/cjs/resources/PaymentMethods.js +4 -4
  203. package/cjs/resources/PaymentMethods.js.map +1 -1
  204. package/cjs/resources/PaymentRecords.d.ts +19 -102
  205. package/cjs/resources/PaymentRecords.js +7 -7
  206. package/cjs/resources/PaymentRecords.js.map +1 -1
  207. package/cjs/resources/Payouts.js +4 -4
  208. package/cjs/resources/Payouts.js.map +1 -1
  209. package/cjs/resources/Persons.d.ts +2 -2
  210. package/cjs/resources/Plans.d.ts +0 -16
  211. package/cjs/resources/Plans.js +3 -3
  212. package/cjs/resources/Plans.js.map +1 -1
  213. package/cjs/resources/Prices.d.ts +0 -52
  214. package/cjs/resources/Prices.js +2 -2
  215. package/cjs/resources/Prices.js.map +1 -1
  216. package/cjs/resources/Products.d.ts +0 -42
  217. package/cjs/resources/Products.js +7 -7
  218. package/cjs/resources/Products.js.map +1 -1
  219. package/cjs/resources/PromotionCodes.d.ts +0 -12
  220. package/cjs/resources/PromotionCodes.js +2 -29
  221. package/cjs/resources/PromotionCodes.js.map +1 -1
  222. package/cjs/resources/Quotes.d.ts +165 -2374
  223. package/cjs/resources/Quotes.js +20 -1180
  224. package/cjs/resources/Quotes.js.map +1 -1
  225. package/cjs/resources/Radar/EarlyFraudWarnings.js +1 -1
  226. package/cjs/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  227. package/cjs/resources/Radar/PaymentEvaluations.d.ts +294 -296
  228. package/cjs/resources/Radar/ValueListItems.d.ts +14 -16
  229. package/cjs/resources/Radar/ValueListItems.js +2 -2
  230. package/cjs/resources/Radar/ValueListItems.js.map +1 -1
  231. package/cjs/resources/Radar/ValueLists.d.ts +18 -20
  232. package/cjs/resources/Radar/ValueLists.js +3 -3
  233. package/cjs/resources/Radar/ValueLists.js.map +1 -1
  234. package/cjs/resources/Radar/index.d.ts +8 -6
  235. package/cjs/resources/Radar/index.js.map +1 -1
  236. package/cjs/resources/Refunds.d.ts +0 -11
  237. package/cjs/resources/Refunds.js +3 -3
  238. package/cjs/resources/Refunds.js.map +1 -1
  239. package/cjs/resources/Reporting/ReportRuns.d.ts +35 -37
  240. package/cjs/resources/Reporting/ReportRuns.js +1 -1
  241. package/cjs/resources/Reporting/ReportRuns.js.map +1 -1
  242. package/cjs/resources/Reporting/ReportTypes.js +1 -1
  243. package/cjs/resources/Reporting/ReportTypes.js.map +1 -1
  244. package/cjs/resources/Reporting/index.d.ts +2 -2
  245. package/cjs/resources/Reserve/Holds.d.ts +24 -64
  246. package/cjs/resources/Reserve/Holds.js +0 -19
  247. package/cjs/resources/Reserve/Holds.js.map +1 -1
  248. package/cjs/resources/Reserve/Plans.d.ts +25 -43
  249. package/cjs/resources/Reserve/Plans.js +0 -11
  250. package/cjs/resources/Reserve/Plans.js.map +1 -1
  251. package/cjs/resources/Reserve/Releases.d.ts +17 -59
  252. package/cjs/resources/Reserve/Releases.js +0 -19
  253. package/cjs/resources/Reserve/Releases.js.map +1 -1
  254. package/cjs/resources/Reserve/index.d.ts +3 -14
  255. package/cjs/resources/Reserve/index.js +0 -9
  256. package/cjs/resources/Reserve/index.js.map +1 -1
  257. package/cjs/resources/Reviews.js +2 -2
  258. package/cjs/resources/Reviews.js.map +1 -1
  259. package/cjs/resources/SetupAttempts.d.ts +8 -26
  260. package/cjs/resources/SetupIntents.d.ts +14 -333
  261. package/cjs/resources/SetupIntents.js +5 -5
  262. package/cjs/resources/SetupIntents.js.map +1 -1
  263. package/cjs/resources/ShippingRates.js +2 -2
  264. package/cjs/resources/ShippingRates.js.map +1 -1
  265. package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  266. package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
  267. package/cjs/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  268. package/cjs/resources/Sigma/index.d.ts +1 -1
  269. package/cjs/resources/Sources.d.ts +1 -16
  270. package/cjs/resources/Sources.js +4 -4
  271. package/cjs/resources/Sources.js.map +1 -1
  272. package/cjs/resources/SubscriptionItems.d.ts +0 -143
  273. package/cjs/resources/SubscriptionItems.js +3 -3
  274. package/cjs/resources/SubscriptionItems.js.map +1 -1
  275. package/cjs/resources/SubscriptionSchedules.d.ts +4 -1155
  276. package/cjs/resources/SubscriptionSchedules.js +4 -10
  277. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  278. package/cjs/resources/Subscriptions.d.ts +61 -560
  279. package/cjs/resources/Subscriptions.js +7 -152
  280. package/cjs/resources/Subscriptions.js.map +1 -1
  281. package/cjs/resources/Tax/Associations.d.ts +24 -26
  282. package/cjs/resources/Tax/CalculationLineItems.d.ts +56 -62
  283. package/cjs/resources/Tax/Calculations.d.ts +158 -164
  284. package/cjs/resources/Tax/Calculations.js +2 -2
  285. package/cjs/resources/Tax/Calculations.js.map +1 -1
  286. package/cjs/resources/Tax/Registrations.d.ts +1095 -1233
  287. package/cjs/resources/Tax/Registrations.js +2 -2
  288. package/cjs/resources/Tax/Registrations.js.map +1 -1
  289. package/cjs/resources/Tax/Settings.d.ts +37 -39
  290. package/cjs/resources/Tax/TransactionLineItems.d.ts +11 -13
  291. package/cjs/resources/Tax/Transactions.d.ts +113 -115
  292. package/cjs/resources/Tax/Transactions.js +2 -2
  293. package/cjs/resources/Tax/Transactions.js.map +1 -1
  294. package/cjs/resources/Tax/index.d.ts +18 -32
  295. package/cjs/resources/Tax/index.js +0 -4
  296. package/cjs/resources/Tax/index.js.map +1 -1
  297. package/cjs/resources/TaxCodes.d.ts +0 -15
  298. package/cjs/resources/TaxCodes.js +1 -1
  299. package/cjs/resources/TaxCodes.js.map +1 -1
  300. package/cjs/resources/TaxIds.js +2 -2
  301. package/cjs/resources/TaxIds.js.map +1 -1
  302. package/cjs/resources/TaxRates.js +2 -2
  303. package/cjs/resources/TaxRates.js.map +1 -1
  304. package/cjs/resources/Terminal/Configurations.d.ts +479 -508
  305. package/cjs/resources/Terminal/Configurations.js +3 -3
  306. package/cjs/resources/Terminal/Configurations.js.map +1 -1
  307. package/cjs/resources/Terminal/Locations.d.ts +72 -74
  308. package/cjs/resources/Terminal/Locations.js +3 -3
  309. package/cjs/resources/Terminal/Locations.js.map +1 -1
  310. package/cjs/resources/Terminal/OnboardingLinks.d.ts +16 -18
  311. package/cjs/resources/Terminal/Readers.d.ts +479 -497
  312. package/cjs/resources/Terminal/Readers.js +11 -11
  313. package/cjs/resources/Terminal/Readers.js.map +1 -1
  314. package/cjs/resources/Terminal/index.d.ts +11 -13
  315. package/cjs/resources/Terminal/index.js +0 -2
  316. package/cjs/resources/Terminal/index.js.map +1 -1
  317. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
  318. package/cjs/resources/TestHelpers/Customers.js +1 -1
  319. package/cjs/resources/TestHelpers/Customers.js.map +1 -1
  320. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  321. package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  322. package/cjs/resources/TestHelpers/Issuing/Cards.js +5 -5
  323. package/cjs/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  324. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  325. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  326. package/cjs/resources/TestHelpers/Issuing/Transactions.js +1 -1
  327. package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  328. package/cjs/resources/TestHelpers/Refunds.js +1 -1
  329. package/cjs/resources/TestHelpers/Refunds.js.map +1 -1
  330. package/cjs/resources/TestHelpers/Terminal/Readers.js +3 -3
  331. package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  332. package/cjs/resources/TestHelpers/TestClocks.d.ts +27 -29
  333. package/cjs/resources/TestHelpers/TestClocks.js +3 -3
  334. package/cjs/resources/TestHelpers/TestClocks.js.map +1 -1
  335. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  336. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  337. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  338. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  339. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  340. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  341. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  342. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  343. package/cjs/resources/TestHelpers/index.d.ts +3 -5
  344. package/cjs/resources/TestHelpers/index.js +4 -6
  345. package/cjs/resources/TestHelpers/index.js.map +1 -1
  346. package/cjs/resources/Tokens.js +1 -1
  347. package/cjs/resources/Tokens.js.map +1 -1
  348. package/cjs/resources/Topups.d.ts +18 -0
  349. package/cjs/resources/Topups.js +3 -3
  350. package/cjs/resources/Topups.js.map +1 -1
  351. package/cjs/resources/Transfers.d.ts +0 -8
  352. package/cjs/resources/Transfers.js +6 -6
  353. package/cjs/resources/Transfers.js.map +1 -1
  354. package/cjs/resources/Treasury/CreditReversals.d.ts +11 -13
  355. package/cjs/resources/Treasury/CreditReversals.js +1 -1
  356. package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
  357. package/cjs/resources/Treasury/DebitReversals.d.ts +18 -20
  358. package/cjs/resources/Treasury/DebitReversals.js +1 -1
  359. package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
  360. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
  361. package/cjs/resources/Treasury/FinancialAccounts.d.ts +88 -123
  362. package/cjs/resources/Treasury/FinancialAccounts.js +5 -5
  363. package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
  364. package/cjs/resources/Treasury/InboundTransfers.d.ts +79 -81
  365. package/cjs/resources/Treasury/InboundTransfers.js +2 -2
  366. package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
  367. package/cjs/resources/Treasury/OutboundPayments.d.ts +125 -135
  368. package/cjs/resources/Treasury/OutboundPayments.js +2 -2
  369. package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
  370. package/cjs/resources/Treasury/OutboundTransfers.d.ts +114 -160
  371. package/cjs/resources/Treasury/OutboundTransfers.js +2 -2
  372. package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
  373. package/cjs/resources/Treasury/ReceivedCredits.d.ts +118 -142
  374. package/cjs/resources/Treasury/ReceivedCredits.js +1 -1
  375. package/cjs/resources/Treasury/ReceivedCredits.js.map +1 -1
  376. package/cjs/resources/Treasury/ReceivedDebits.d.ts +86 -114
  377. package/cjs/resources/Treasury/ReceivedDebits.js +1 -1
  378. package/cjs/resources/Treasury/ReceivedDebits.js.map +1 -1
  379. package/cjs/resources/Treasury/TransactionEntries.d.ts +75 -77
  380. package/cjs/resources/Treasury/TransactionEntries.js +1 -1
  381. package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
  382. package/cjs/resources/Treasury/Transactions.d.ts +86 -88
  383. package/cjs/resources/Treasury/Transactions.js +1 -1
  384. package/cjs/resources/Treasury/Transactions.js.map +1 -1
  385. package/cjs/resources/Treasury/index.d.ts +10 -10
  386. package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
  387. package/cjs/resources/V2/Billing/index.d.ts +9 -48
  388. package/cjs/resources/V2/Billing/index.js +0 -8
  389. package/cjs/resources/V2/Billing/index.js.map +1 -1
  390. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  391. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
  392. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
  393. package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
  394. package/cjs/resources/V2/Core/AccountLinks.d.ts +81 -85
  395. package/cjs/resources/V2/Core/AccountPersons.d.ts +369 -373
  396. package/cjs/resources/V2/Core/AccountTokens.d.ts +0 -10
  397. package/cjs/resources/V2/Core/AccountTokens.js +1 -1
  398. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  399. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
  400. package/cjs/resources/V2/Core/Accounts/PersonTokens.js +3 -3
  401. package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  402. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  403. package/cjs/resources/V2/Core/Accounts/Persons.js +7 -7
  404. package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
  405. package/cjs/resources/V2/Core/Accounts.d.ts +3043 -4006
  406. package/cjs/resources/V2/Core/Accounts.js +3 -3
  407. package/cjs/resources/V2/Core/Accounts.js.map +1 -1
  408. package/cjs/resources/V2/Core/EventDestinations.d.ts +78 -82
  409. package/cjs/resources/V2/Core/EventDestinations.js +6 -6
  410. package/cjs/resources/V2/Core/EventDestinations.js.map +1 -1
  411. package/cjs/resources/V2/Core/Events.d.ts +31 -1154
  412. package/cjs/resources/V2/Core/Events.js +1 -1
  413. package/cjs/resources/V2/Core/Events.js.map +1 -1
  414. package/cjs/resources/V2/Core/index.d.ts +14 -24
  415. package/cjs/resources/V2/Core/index.js +0 -4
  416. package/cjs/resources/V2/Core/index.js.map +1 -1
  417. package/cjs/resources/V2/index.d.ts +0 -27
  418. package/cjs/resources/V2/index.js +0 -14
  419. package/cjs/resources/V2/index.js.map +1 -1
  420. package/cjs/resources/WebhookEndpoints.d.ts +3 -3
  421. package/cjs/resources/WebhookEndpoints.js +3 -3
  422. package/cjs/resources/WebhookEndpoints.js.map +1 -1
  423. package/cjs/resources.d.ts +0 -10
  424. package/cjs/resources.js +10 -146
  425. package/cjs/resources.js.map +1 -1
  426. package/cjs/stripe.cjs.node.d.ts +14396 -3
  427. package/cjs/stripe.cjs.node.js +1 -4
  428. package/cjs/stripe.cjs.node.js.map +1 -1
  429. package/cjs/stripe.core.d.ts +81 -62
  430. package/cjs/stripe.core.js +37 -55
  431. package/cjs/stripe.core.js.map +1 -1
  432. package/cjs/utils.d.ts +0 -1
  433. package/cjs/utils.js +1 -6
  434. package/cjs/utils.js.map +1 -1
  435. package/esm/Error.d.ts +0 -50
  436. package/esm/Error.js +0 -109
  437. package/esm/Error.js.map +1 -1
  438. package/esm/RequestSender.d.ts +2 -1
  439. package/esm/RequestSender.js +14 -11
  440. package/esm/RequestSender.js.map +1 -1
  441. package/esm/Types.d.ts +2 -4
  442. package/esm/Types.js.map +1 -1
  443. package/esm/Webhooks.d.ts +2 -2
  444. package/esm/apiVersion.d.ts +2 -1
  445. package/esm/apiVersion.js +2 -1
  446. package/esm/apiVersion.js.map +1 -1
  447. package/esm/autoPagination.js +27 -2
  448. package/esm/autoPagination.js.map +1 -1
  449. package/esm/platform/NodePlatformFunctions.d.ts +3 -0
  450. package/esm/platform/NodePlatformFunctions.js +36 -2
  451. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  452. package/esm/platform/PlatformFunctions.d.ts +1 -0
  453. package/esm/platform/PlatformFunctions.js +3 -0
  454. package/esm/platform/PlatformFunctions.js.map +1 -1
  455. package/esm/resources/AccountLinks.d.ts +1 -1
  456. package/esm/resources/AccountSessions.d.ts +0 -262
  457. package/esm/resources/AccountSessions.js.map +1 -1
  458. package/esm/resources/Accounts.d.ts +5 -829
  459. package/esm/resources/Accounts.js +18 -32
  460. package/esm/resources/Accounts.js.map +1 -1
  461. package/esm/resources/ApplePayDomains.js +2 -2
  462. package/esm/resources/ApplePayDomains.js.map +1 -1
  463. package/esm/resources/ApplicationFees.js +5 -5
  464. package/esm/resources/ApplicationFees.js.map +1 -1
  465. package/esm/resources/Apps/Secrets.d.ts +14 -16
  466. package/esm/resources/Apps/index.d.ts +1 -1
  467. package/esm/resources/Balance.d.ts +0 -67
  468. package/esm/resources/BalanceTransactions.d.ts +5 -5
  469. package/esm/resources/BalanceTransactions.js +3 -3
  470. package/esm/resources/BalanceTransactions.js.map +1 -1
  471. package/esm/resources/BankAccounts.d.ts +2 -2
  472. package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
  473. package/esm/resources/Billing/Alerts.d.ts +27 -29
  474. package/esm/resources/Billing/Alerts.js +4 -4
  475. package/esm/resources/Billing/Alerts.js.map +1 -1
  476. package/esm/resources/Billing/CreditBalanceSummary.d.ts +40 -42
  477. package/esm/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
  478. package/esm/resources/Billing/CreditBalanceTransactions.js +1 -1
  479. package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  480. package/esm/resources/Billing/CreditGrants.d.ts +41 -43
  481. package/esm/resources/Billing/CreditGrants.js +4 -4
  482. package/esm/resources/Billing/CreditGrants.js.map +1 -1
  483. package/esm/resources/Billing/MeterEventAdjustments.d.ts +9 -11
  484. package/esm/resources/Billing/Meters.d.ts +39 -41
  485. package/esm/resources/Billing/Meters.js +5 -5
  486. package/esm/resources/Billing/Meters.js.map +1 -1
  487. package/esm/resources/Billing/index.d.ts +7 -10
  488. package/esm/resources/Billing/index.js +0 -2
  489. package/esm/resources/Billing/index.js.map +1 -1
  490. package/esm/resources/BillingPortal/Configurations.d.ts +132 -134
  491. package/esm/resources/BillingPortal/Configurations.js +2 -2
  492. package/esm/resources/BillingPortal/Configurations.js.map +1 -1
  493. package/esm/resources/BillingPortal/Sessions.d.ts +100 -102
  494. package/esm/resources/BillingPortal/index.d.ts +2 -2
  495. package/esm/resources/Capabilities.d.ts +2 -2
  496. package/esm/resources/Cards.d.ts +0 -4
  497. package/esm/resources/Charges.d.ts +84 -3066
  498. package/esm/resources/Charges.js +3 -3
  499. package/esm/resources/Charges.js.map +1 -1
  500. package/esm/resources/Checkout/Sessions.d.ts +1598 -1900
  501. package/esm/resources/Checkout/Sessions.js +4 -4
  502. package/esm/resources/Checkout/Sessions.js.map +1 -1
  503. package/esm/resources/Checkout/index.d.ts +1 -1
  504. package/esm/resources/Climate/Orders.d.ts +47 -49
  505. package/esm/resources/Climate/Orders.js +3 -3
  506. package/esm/resources/Climate/Orders.js.map +1 -1
  507. package/esm/resources/Climate/Products.d.ts +15 -17
  508. package/esm/resources/Climate/Products.js +1 -1
  509. package/esm/resources/Climate/Products.js.map +1 -1
  510. package/esm/resources/Climate/Suppliers.d.ts +25 -27
  511. package/esm/resources/Climate/Suppliers.js +1 -1
  512. package/esm/resources/Climate/Suppliers.js.map +1 -1
  513. package/esm/resources/Climate/index.d.ts +3 -3
  514. package/esm/resources/ConfirmationTokens.d.ts +13 -67
  515. package/esm/resources/ConfirmationTokens.js +1 -1
  516. package/esm/resources/ConfirmationTokens.js.map +1 -1
  517. package/esm/resources/CountrySpecs.js +1 -1
  518. package/esm/resources/CountrySpecs.js.map +1 -1
  519. package/esm/resources/Coupons.d.ts +0 -53
  520. package/esm/resources/Coupons.js +3 -16
  521. package/esm/resources/Coupons.js.map +1 -1
  522. package/esm/resources/CreditNoteLineItems.d.ts +1 -15
  523. package/esm/resources/CreditNotes.d.ts +8 -5
  524. package/esm/resources/CreditNotes.js +6 -4
  525. package/esm/resources/CreditNotes.js.map +1 -1
  526. package/esm/resources/CustomerSessions.d.ts +0 -68
  527. package/esm/resources/Customers.d.ts +1 -7
  528. package/esm/resources/Customers.js +31 -41
  529. package/esm/resources/Customers.js.map +1 -1
  530. package/esm/resources/Disputes.d.ts +28 -30
  531. package/esm/resources/Disputes.js +3 -3
  532. package/esm/resources/Disputes.js.map +1 -1
  533. package/esm/resources/Entitlements/ActiveEntitlements.js +1 -1
  534. package/esm/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  535. package/esm/resources/Entitlements/Features.js +2 -2
  536. package/esm/resources/Entitlements/Features.js.map +1 -1
  537. package/esm/resources/Entitlements/index.d.ts +2 -2
  538. package/esm/resources/EphemeralKeys.js +1 -1
  539. package/esm/resources/EphemeralKeys.js.map +1 -1
  540. package/esm/resources/Events.d.ts +3 -548
  541. package/esm/resources/Events.js +1 -1
  542. package/esm/resources/Events.js.map +1 -1
  543. package/esm/resources/ExchangeRates.js +1 -1
  544. package/esm/resources/ExchangeRates.js.map +1 -1
  545. package/esm/resources/ExternalAccounts.d.ts +1 -212
  546. package/esm/resources/ExternalAccounts.js +1 -42
  547. package/esm/resources/ExternalAccounts.js.map +1 -1
  548. package/esm/resources/FileLinks.js +2 -2
  549. package/esm/resources/FileLinks.js.map +1 -1
  550. package/esm/resources/Files.js +1 -1
  551. package/esm/resources/Files.js.map +1 -1
  552. package/esm/resources/FinancialConnections/Accounts.d.ts +169 -217
  553. package/esm/resources/FinancialConnections/Accounts.js +6 -14
  554. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  555. package/esm/resources/FinancialConnections/Sessions.d.ts +43 -193
  556. package/esm/resources/FinancialConnections/Sessions.js +1 -1
  557. package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
  558. package/esm/resources/FinancialConnections/Transactions.d.ts +13 -15
  559. package/esm/resources/FinancialConnections/Transactions.js +1 -1
  560. package/esm/resources/FinancialConnections/Transactions.js.map +1 -1
  561. package/esm/resources/FinancialConnections/index.d.ts +9 -24
  562. package/esm/resources/FinancialConnections/index.js +0 -4
  563. package/esm/resources/FinancialConnections/index.js.map +1 -1
  564. package/esm/resources/Forwarding/Requests.d.ts +57 -59
  565. package/esm/resources/Forwarding/Requests.js +1 -1
  566. package/esm/resources/Forwarding/Requests.js.map +1 -1
  567. package/esm/resources/Forwarding/index.d.ts +1 -1
  568. package/esm/resources/Identity/VerificationReports.d.ts +255 -257
  569. package/esm/resources/Identity/VerificationReports.js +1 -1
  570. package/esm/resources/Identity/VerificationReports.js.map +1 -1
  571. package/esm/resources/Identity/VerificationSessions.d.ts +148 -150
  572. package/esm/resources/Identity/VerificationSessions.js +4 -4
  573. package/esm/resources/Identity/VerificationSessions.js.map +1 -1
  574. package/esm/resources/Identity/index.d.ts +2 -2
  575. package/esm/resources/InvoiceItems.d.ts +0 -85
  576. package/esm/resources/InvoiceItems.js +3 -3
  577. package/esm/resources/InvoiceItems.js.map +1 -1
  578. package/esm/resources/InvoiceLineItems.d.ts +2 -40
  579. package/esm/resources/InvoicePayments.js +1 -1
  580. package/esm/resources/InvoicePayments.js.map +1 -1
  581. package/esm/resources/InvoiceRenderingTemplates.js +3 -3
  582. package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
  583. package/esm/resources/Invoices.d.ts +23 -1341
  584. package/esm/resources/Invoices.js +14 -55
  585. package/esm/resources/Invoices.js.map +1 -1
  586. package/esm/resources/Issuing/Authorizations.d.ts +354 -356
  587. package/esm/resources/Issuing/Authorizations.js +4 -4
  588. package/esm/resources/Issuing/Authorizations.js.map +1 -1
  589. package/esm/resources/Issuing/Cardholders.d.ts +144 -147
  590. package/esm/resources/Issuing/Cardholders.js +2 -2
  591. package/esm/resources/Issuing/Cardholders.js.map +1 -1
  592. package/esm/resources/Issuing/Cards.d.ts +183 -185
  593. package/esm/resources/Issuing/Cards.js +2 -2
  594. package/esm/resources/Issuing/Cards.js.map +1 -1
  595. package/esm/resources/Issuing/Disputes.d.ts +215 -217
  596. package/esm/resources/Issuing/Disputes.js +3 -3
  597. package/esm/resources/Issuing/Disputes.js.map +1 -1
  598. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
  599. package/esm/resources/Issuing/PersonalizationDesigns.js +2 -2
  600. package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  601. package/esm/resources/Issuing/PhysicalBundles.d.ts +24 -26
  602. package/esm/resources/Issuing/PhysicalBundles.js +1 -1
  603. package/esm/resources/Issuing/PhysicalBundles.js.map +1 -1
  604. package/esm/resources/Issuing/Tokens.d.ts +130 -132
  605. package/esm/resources/Issuing/Tokens.js +2 -2
  606. package/esm/resources/Issuing/Tokens.js.map +1 -1
  607. package/esm/resources/Issuing/Transactions.d.ts +223 -234
  608. package/esm/resources/Issuing/Transactions.js +2 -2
  609. package/esm/resources/Issuing/Transactions.js.map +1 -1
  610. package/esm/resources/Issuing/index.d.ts +30 -55
  611. package/esm/resources/Issuing/index.js +0 -6
  612. package/esm/resources/Issuing/index.js.map +1 -1
  613. package/esm/resources/LineItems.d.ts +4 -30
  614. package/esm/resources/Mandates.d.ts +1 -33
  615. package/esm/resources/Mandates.js +1 -9
  616. package/esm/resources/Mandates.js.map +1 -1
  617. package/esm/resources/PaymentAttemptRecords.d.ts +9 -92
  618. package/esm/resources/PaymentAttemptRecords.js +1 -1
  619. package/esm/resources/PaymentAttemptRecords.js.map +1 -1
  620. package/esm/resources/PaymentIntents.d.ts +6495 -17272
  621. package/esm/resources/PaymentIntents.js +9 -36
  622. package/esm/resources/PaymentIntents.js.map +1 -1
  623. package/esm/resources/PaymentLinks.d.ts +6 -19
  624. package/esm/resources/PaymentLinks.js +3 -3
  625. package/esm/resources/PaymentLinks.js.map +1 -1
  626. package/esm/resources/PaymentMethodConfigurations.d.ts +0 -350
  627. package/esm/resources/PaymentMethodConfigurations.js +2 -2
  628. package/esm/resources/PaymentMethodConfigurations.js.map +1 -1
  629. package/esm/resources/PaymentMethodDomains.js +3 -3
  630. package/esm/resources/PaymentMethodDomains.js.map +1 -1
  631. package/esm/resources/PaymentMethods.d.ts +16 -152
  632. package/esm/resources/PaymentMethods.js +4 -4
  633. package/esm/resources/PaymentMethods.js.map +1 -1
  634. package/esm/resources/PaymentRecords.d.ts +19 -102
  635. package/esm/resources/PaymentRecords.js +7 -7
  636. package/esm/resources/PaymentRecords.js.map +1 -1
  637. package/esm/resources/Payouts.js +4 -4
  638. package/esm/resources/Payouts.js.map +1 -1
  639. package/esm/resources/Persons.d.ts +2 -2
  640. package/esm/resources/Plans.d.ts +0 -16
  641. package/esm/resources/Plans.js +3 -3
  642. package/esm/resources/Plans.js.map +1 -1
  643. package/esm/resources/Prices.d.ts +0 -52
  644. package/esm/resources/Prices.js +2 -2
  645. package/esm/resources/Prices.js.map +1 -1
  646. package/esm/resources/Products.d.ts +0 -42
  647. package/esm/resources/Products.js +7 -7
  648. package/esm/resources/Products.js.map +1 -1
  649. package/esm/resources/PromotionCodes.d.ts +0 -12
  650. package/esm/resources/PromotionCodes.js +2 -29
  651. package/esm/resources/PromotionCodes.js.map +1 -1
  652. package/esm/resources/Quotes.d.ts +165 -2374
  653. package/esm/resources/Quotes.js +20 -1180
  654. package/esm/resources/Quotes.js.map +1 -1
  655. package/esm/resources/Radar/EarlyFraudWarnings.js +1 -1
  656. package/esm/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  657. package/esm/resources/Radar/PaymentEvaluations.d.ts +294 -296
  658. package/esm/resources/Radar/ValueListItems.d.ts +14 -16
  659. package/esm/resources/Radar/ValueListItems.js +2 -2
  660. package/esm/resources/Radar/ValueListItems.js.map +1 -1
  661. package/esm/resources/Radar/ValueLists.d.ts +18 -20
  662. package/esm/resources/Radar/ValueLists.js +3 -3
  663. package/esm/resources/Radar/ValueLists.js.map +1 -1
  664. package/esm/resources/Radar/index.d.ts +8 -6
  665. package/esm/resources/Radar/index.js.map +1 -1
  666. package/esm/resources/Refunds.d.ts +0 -11
  667. package/esm/resources/Refunds.js +3 -3
  668. package/esm/resources/Refunds.js.map +1 -1
  669. package/esm/resources/Reporting/ReportRuns.d.ts +35 -37
  670. package/esm/resources/Reporting/ReportRuns.js +1 -1
  671. package/esm/resources/Reporting/ReportRuns.js.map +1 -1
  672. package/esm/resources/Reporting/ReportTypes.js +1 -1
  673. package/esm/resources/Reporting/ReportTypes.js.map +1 -1
  674. package/esm/resources/Reporting/index.d.ts +2 -2
  675. package/esm/resources/Reserve/Holds.d.ts +24 -64
  676. package/esm/resources/Reserve/Holds.js +1 -17
  677. package/esm/resources/Reserve/Holds.js.map +1 -1
  678. package/esm/resources/Reserve/Plans.d.ts +25 -43
  679. package/esm/resources/Reserve/Plans.js +1 -9
  680. package/esm/resources/Reserve/Plans.js.map +1 -1
  681. package/esm/resources/Reserve/Releases.d.ts +17 -59
  682. package/esm/resources/Reserve/Releases.js +1 -17
  683. package/esm/resources/Reserve/Releases.js.map +1 -1
  684. package/esm/resources/Reserve/index.d.ts +3 -14
  685. package/esm/resources/Reserve/index.js +0 -9
  686. package/esm/resources/Reserve/index.js.map +1 -1
  687. package/esm/resources/Reviews.js +2 -2
  688. package/esm/resources/Reviews.js.map +1 -1
  689. package/esm/resources/SetupAttempts.d.ts +8 -26
  690. package/esm/resources/SetupIntents.d.ts +14 -333
  691. package/esm/resources/SetupIntents.js +5 -5
  692. package/esm/resources/SetupIntents.js.map +1 -1
  693. package/esm/resources/ShippingRates.js +2 -2
  694. package/esm/resources/ShippingRates.js.map +1 -1
  695. package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  696. package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
  697. package/esm/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  698. package/esm/resources/Sigma/index.d.ts +1 -1
  699. package/esm/resources/Sources.d.ts +1 -16
  700. package/esm/resources/Sources.js +4 -4
  701. package/esm/resources/Sources.js.map +1 -1
  702. package/esm/resources/SubscriptionItems.d.ts +0 -143
  703. package/esm/resources/SubscriptionItems.js +3 -3
  704. package/esm/resources/SubscriptionItems.js.map +1 -1
  705. package/esm/resources/SubscriptionSchedules.d.ts +4 -1155
  706. package/esm/resources/SubscriptionSchedules.js +4 -10
  707. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  708. package/esm/resources/Subscriptions.d.ts +61 -560
  709. package/esm/resources/Subscriptions.js +7 -152
  710. package/esm/resources/Subscriptions.js.map +1 -1
  711. package/esm/resources/Tax/Associations.d.ts +24 -26
  712. package/esm/resources/Tax/CalculationLineItems.d.ts +56 -62
  713. package/esm/resources/Tax/Calculations.d.ts +158 -164
  714. package/esm/resources/Tax/Calculations.js +2 -2
  715. package/esm/resources/Tax/Calculations.js.map +1 -1
  716. package/esm/resources/Tax/Registrations.d.ts +1095 -1233
  717. package/esm/resources/Tax/Registrations.js +2 -2
  718. package/esm/resources/Tax/Registrations.js.map +1 -1
  719. package/esm/resources/Tax/Settings.d.ts +37 -39
  720. package/esm/resources/Tax/TransactionLineItems.d.ts +11 -13
  721. package/esm/resources/Tax/Transactions.d.ts +113 -115
  722. package/esm/resources/Tax/Transactions.js +2 -2
  723. package/esm/resources/Tax/Transactions.js.map +1 -1
  724. package/esm/resources/Tax/index.d.ts +18 -32
  725. package/esm/resources/Tax/index.js +0 -4
  726. package/esm/resources/Tax/index.js.map +1 -1
  727. package/esm/resources/TaxCodes.d.ts +0 -15
  728. package/esm/resources/TaxCodes.js +1 -1
  729. package/esm/resources/TaxCodes.js.map +1 -1
  730. package/esm/resources/TaxIds.js +2 -2
  731. package/esm/resources/TaxIds.js.map +1 -1
  732. package/esm/resources/TaxRates.js +2 -2
  733. package/esm/resources/TaxRates.js.map +1 -1
  734. package/esm/resources/Terminal/Configurations.d.ts +479 -508
  735. package/esm/resources/Terminal/Configurations.js +3 -3
  736. package/esm/resources/Terminal/Configurations.js.map +1 -1
  737. package/esm/resources/Terminal/Locations.d.ts +72 -74
  738. package/esm/resources/Terminal/Locations.js +3 -3
  739. package/esm/resources/Terminal/Locations.js.map +1 -1
  740. package/esm/resources/Terminal/OnboardingLinks.d.ts +16 -18
  741. package/esm/resources/Terminal/Readers.d.ts +479 -497
  742. package/esm/resources/Terminal/Readers.js +11 -11
  743. package/esm/resources/Terminal/Readers.js.map +1 -1
  744. package/esm/resources/Terminal/index.d.ts +11 -13
  745. package/esm/resources/Terminal/index.js +0 -2
  746. package/esm/resources/Terminal/index.js.map +1 -1
  747. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
  748. package/esm/resources/TestHelpers/Customers.js +1 -1
  749. package/esm/resources/TestHelpers/Customers.js.map +1 -1
  750. package/esm/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  751. package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  752. package/esm/resources/TestHelpers/Issuing/Cards.js +5 -5
  753. package/esm/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  754. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  755. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  756. package/esm/resources/TestHelpers/Issuing/Transactions.js +1 -1
  757. package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  758. package/esm/resources/TestHelpers/Refunds.js +1 -1
  759. package/esm/resources/TestHelpers/Refunds.js.map +1 -1
  760. package/esm/resources/TestHelpers/Terminal/Readers.js +3 -3
  761. package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  762. package/esm/resources/TestHelpers/TestClocks.d.ts +27 -29
  763. package/esm/resources/TestHelpers/TestClocks.js +3 -3
  764. package/esm/resources/TestHelpers/TestClocks.js.map +1 -1
  765. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  766. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  767. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  768. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  769. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  770. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  771. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  772. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  773. package/esm/resources/TestHelpers/index.d.ts +3 -5
  774. package/esm/resources/TestHelpers/index.js +0 -2
  775. package/esm/resources/TestHelpers/index.js.map +1 -1
  776. package/esm/resources/Tokens.js +1 -1
  777. package/esm/resources/Tokens.js.map +1 -1
  778. package/esm/resources/Topups.d.ts +18 -0
  779. package/esm/resources/Topups.js +3 -3
  780. package/esm/resources/Topups.js.map +1 -1
  781. package/esm/resources/Transfers.d.ts +0 -8
  782. package/esm/resources/Transfers.js +6 -6
  783. package/esm/resources/Transfers.js.map +1 -1
  784. package/esm/resources/Treasury/CreditReversals.d.ts +11 -13
  785. package/esm/resources/Treasury/CreditReversals.js +1 -1
  786. package/esm/resources/Treasury/CreditReversals.js.map +1 -1
  787. package/esm/resources/Treasury/DebitReversals.d.ts +18 -20
  788. package/esm/resources/Treasury/DebitReversals.js +1 -1
  789. package/esm/resources/Treasury/DebitReversals.js.map +1 -1
  790. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
  791. package/esm/resources/Treasury/FinancialAccounts.d.ts +88 -123
  792. package/esm/resources/Treasury/FinancialAccounts.js +5 -5
  793. package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
  794. package/esm/resources/Treasury/InboundTransfers.d.ts +79 -81
  795. package/esm/resources/Treasury/InboundTransfers.js +2 -2
  796. package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
  797. package/esm/resources/Treasury/OutboundPayments.d.ts +125 -135
  798. package/esm/resources/Treasury/OutboundPayments.js +2 -2
  799. package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
  800. package/esm/resources/Treasury/OutboundTransfers.d.ts +114 -160
  801. package/esm/resources/Treasury/OutboundTransfers.js +2 -2
  802. package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
  803. package/esm/resources/Treasury/ReceivedCredits.d.ts +118 -142
  804. package/esm/resources/Treasury/ReceivedCredits.js +1 -1
  805. package/esm/resources/Treasury/ReceivedCredits.js.map +1 -1
  806. package/esm/resources/Treasury/ReceivedDebits.d.ts +86 -114
  807. package/esm/resources/Treasury/ReceivedDebits.js +1 -1
  808. package/esm/resources/Treasury/ReceivedDebits.js.map +1 -1
  809. package/esm/resources/Treasury/TransactionEntries.d.ts +75 -77
  810. package/esm/resources/Treasury/TransactionEntries.js +1 -1
  811. package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
  812. package/esm/resources/Treasury/Transactions.d.ts +86 -88
  813. package/esm/resources/Treasury/Transactions.js +1 -1
  814. package/esm/resources/Treasury/Transactions.js.map +1 -1
  815. package/esm/resources/Treasury/index.d.ts +10 -10
  816. package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
  817. package/esm/resources/V2/Billing/index.d.ts +9 -48
  818. package/esm/resources/V2/Billing/index.js +0 -8
  819. package/esm/resources/V2/Billing/index.js.map +1 -1
  820. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  821. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
  822. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
  823. package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
  824. package/esm/resources/V2/Core/AccountLinks.d.ts +81 -85
  825. package/esm/resources/V2/Core/AccountPersons.d.ts +369 -373
  826. package/esm/resources/V2/Core/AccountTokens.d.ts +0 -10
  827. package/esm/resources/V2/Core/AccountTokens.js +1 -1
  828. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  829. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
  830. package/esm/resources/V2/Core/Accounts/PersonTokens.js +3 -3
  831. package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  832. package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  833. package/esm/resources/V2/Core/Accounts/Persons.js +7 -7
  834. package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
  835. package/esm/resources/V2/Core/Accounts.d.ts +3043 -4006
  836. package/esm/resources/V2/Core/Accounts.js +3 -3
  837. package/esm/resources/V2/Core/Accounts.js.map +1 -1
  838. package/esm/resources/V2/Core/EventDestinations.d.ts +78 -82
  839. package/esm/resources/V2/Core/EventDestinations.js +6 -6
  840. package/esm/resources/V2/Core/EventDestinations.js.map +1 -1
  841. package/esm/resources/V2/Core/Events.d.ts +31 -1154
  842. package/esm/resources/V2/Core/Events.js +1 -1
  843. package/esm/resources/V2/Core/Events.js.map +1 -1
  844. package/esm/resources/V2/Core/index.d.ts +14 -24
  845. package/esm/resources/V2/Core/index.js +0 -4
  846. package/esm/resources/V2/Core/index.js.map +1 -1
  847. package/esm/resources/V2/index.d.ts +0 -27
  848. package/esm/resources/V2/index.js +0 -14
  849. package/esm/resources/V2/index.js.map +1 -1
  850. package/esm/resources/WebhookEndpoints.d.ts +3 -3
  851. package/esm/resources/WebhookEndpoints.js +3 -3
  852. package/esm/resources/WebhookEndpoints.js.map +1 -1
  853. package/esm/resources.d.ts +0 -10
  854. package/esm/resources.js +0 -131
  855. package/esm/resources.js.map +1 -1
  856. package/esm/stripe.core.d.ts +81 -62
  857. package/esm/stripe.core.js +7 -25
  858. package/esm/stripe.core.js.map +1 -1
  859. package/esm/stripe.esm.node.d.ts +80 -63
  860. package/esm/stripe.esm.node.js +2 -25
  861. package/esm/stripe.esm.node.js.map +1 -1
  862. package/esm/utils.d.ts +0 -1
  863. package/esm/utils.js +0 -4
  864. package/esm/utils.js.map +1 -1
  865. package/package.json +1 -1
  866. package/cjs/StripeEventNotificationHandler.d.ts +0 -19
  867. package/cjs/StripeEventNotificationHandler.js +0 -148
  868. package/cjs/StripeEventNotificationHandler.js.map +0 -1
  869. package/cjs/resources/AccountNotices.d.ts +0 -140
  870. package/cjs/resources/AccountNotices.js +0 -29
  871. package/cjs/resources/AccountNotices.js.map +0 -1
  872. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  873. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
  874. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  875. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  876. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
  877. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  878. package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
  879. package/cjs/resources/Billing/Analytics/index.js +0 -13
  880. package/cjs/resources/Billing/Analytics/index.js.map +0 -1
  881. package/cjs/resources/Capital/FinancingOffers.d.ts +0 -191
  882. package/cjs/resources/Capital/FinancingOffers.js +0 -30
  883. package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
  884. package/cjs/resources/Capital/FinancingSummary.d.ts +0 -98
  885. package/cjs/resources/Capital/FinancingSummary.js +0 -15
  886. package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
  887. package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -143
  888. package/cjs/resources/Capital/FinancingTransactions.js +0 -24
  889. package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
  890. package/cjs/resources/Capital/index.d.ts +0 -25
  891. package/cjs/resources/Capital/index.js +0 -17
  892. package/cjs/resources/Capital/index.js.map +0 -1
  893. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  894. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
  895. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  896. package/cjs/resources/FinancialConnections/Authorizations.d.ts +0 -87
  897. package/cjs/resources/FinancialConnections/Authorizations.js +0 -15
  898. package/cjs/resources/FinancialConnections/Authorizations.js.map +0 -1
  899. package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -101
  900. package/cjs/resources/FinancialConnections/Institutions.js +0 -23
  901. package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
  902. package/cjs/resources/FxQuotes.d.ts +0 -212
  903. package/cjs/resources/FxQuotes.js +0 -29
  904. package/cjs/resources/FxQuotes.js.map +0 -1
  905. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  906. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
  907. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  908. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  909. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
  910. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  911. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  912. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
  913. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  914. package/cjs/resources/Issuing/Settlements.d.ts +0 -85
  915. package/cjs/resources/Issuing/Settlements.js +0 -4
  916. package/cjs/resources/Issuing/Settlements.js.map +0 -1
  917. package/cjs/resources/Margins.d.ts +0 -115
  918. package/cjs/resources/Margins.js +0 -35
  919. package/cjs/resources/Margins.js.map +0 -1
  920. package/cjs/resources/Orders.d.ts +0 -4693
  921. package/cjs/resources/Orders.js +0 -457
  922. package/cjs/resources/Orders.js.map +0 -1
  923. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  924. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
  925. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  926. package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -229
  927. package/cjs/resources/Privacy/RedactionJobs.js +0 -73
  928. package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
  929. package/cjs/resources/Privacy/index.d.ts +0 -22
  930. package/cjs/resources/Privacy/index.js +0 -13
  931. package/cjs/resources/Privacy/index.js.map +0 -1
  932. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  933. package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
  934. package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
  935. package/cjs/resources/ProductCatalog/index.d.ts +0 -12
  936. package/cjs/resources/ProductCatalog/index.js +0 -13
  937. package/cjs/resources/ProductCatalog/index.js.map +0 -1
  938. package/cjs/resources/QuoteLines.d.ts +0 -507
  939. package/cjs/resources/QuoteLines.js +0 -4
  940. package/cjs/resources/QuoteLines.js.map +0 -1
  941. package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1120
  942. package/cjs/resources/QuotePreviewInvoices.js +0 -4
  943. package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
  944. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
  945. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
  946. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  947. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
  948. package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
  949. package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
  950. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  951. package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
  952. package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
  953. package/cjs/resources/SharedPayment/index.d.ts +0 -19
  954. package/cjs/resources/SharedPayment/index.js +0 -15
  955. package/cjs/resources/SharedPayment/index.js.map +0 -1
  956. package/cjs/resources/Tax/Forms.d.ts +0 -230
  957. package/cjs/resources/Tax/Forms.js +0 -32
  958. package/cjs/resources/Tax/Forms.js.map +0 -1
  959. package/cjs/resources/Tax/Locations.d.ts +0 -108
  960. package/cjs/resources/Tax/Locations.js +0 -33
  961. package/cjs/resources/Tax/Locations.js.map +0 -1
  962. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  963. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
  964. package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
  965. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  966. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
  967. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  968. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  969. package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
  970. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  971. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  972. package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
  973. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  974. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  975. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
  976. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  977. package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -284
  978. package/cjs/resources/V2/Billing/BillSettings.js +0 -41
  979. package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
  980. package/cjs/resources/V2/Billing/Cadences.d.ts +0 -951
  981. package/cjs/resources/V2/Billing/Cadences.js +0 -198
  982. package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
  983. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  984. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
  985. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  986. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  987. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
  988. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  989. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  990. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
  991. package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
  992. package/cjs/resources/V2/Billing/Profiles.d.ts +0 -166
  993. package/cjs/resources/V2/Billing/Profiles.js +0 -35
  994. package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
  995. package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -373
  996. package/cjs/resources/V2/Core/BatchJobs.js +0 -225
  997. package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
  998. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  999. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
  1000. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  1001. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  1002. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -62
  1003. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  1004. package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
  1005. package/cjs/resources/V2/Core/Vault/index.js +0 -15
  1006. package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
  1007. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  1008. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
  1009. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  1010. package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
  1011. package/cjs/resources/V2/Data/Reporting/index.js +0 -13
  1012. package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
  1013. package/cjs/resources/V2/Data/index.d.ts +0 -10
  1014. package/cjs/resources/V2/Data/index.js +0 -13
  1015. package/cjs/resources/V2/Data/index.js.map +0 -1
  1016. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  1017. package/cjs/resources/V2/EventMisc.js +0 -2
  1018. package/cjs/resources/V2/EventMisc.js.map +0 -1
  1019. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  1020. package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
  1021. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  1022. package/cjs/resources/V2/Extend/Workflows.d.ts +0 -123
  1023. package/cjs/resources/V2/Extend/Workflows.js +0 -30
  1024. package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
  1025. package/cjs/resources/V2/Extend/index.d.ts +0 -20
  1026. package/cjs/resources/V2/Extend/index.js +0 -15
  1027. package/cjs/resources/V2/Extend/index.js.map +0 -1
  1028. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  1029. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
  1030. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  1031. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  1032. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
  1033. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  1034. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -214
  1035. package/cjs/resources/V2/Iam/ActivityLogs.js +0 -23
  1036. package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
  1037. package/cjs/resources/V2/Iam/index.d.ts +0 -13
  1038. package/cjs/resources/V2/Iam/index.js +0 -13
  1039. package/cjs/resources/V2/Iam/index.js.map +0 -1
  1040. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  1041. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
  1042. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  1043. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  1044. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
  1045. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  1046. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  1047. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
  1048. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  1049. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  1050. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
  1051. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  1052. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  1053. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
  1054. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  1055. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  1056. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
  1057. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  1058. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
  1059. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
  1060. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  1061. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  1062. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
  1063. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  1064. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  1065. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -44
  1066. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  1067. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  1068. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
  1069. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  1070. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
  1071. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
  1072. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  1073. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  1074. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
  1075. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  1076. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  1077. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
  1078. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  1079. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  1080. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
  1081. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  1082. package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -104
  1083. package/cjs/resources/V2/MoneyManagement/index.js +0 -39
  1084. package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
  1085. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  1086. package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
  1087. package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
  1088. package/cjs/resources/V2/Network/index.d.ts +0 -13
  1089. package/cjs/resources/V2/Network/index.js +0 -13
  1090. package/cjs/resources/V2/Network/index.js.map +0 -1
  1091. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  1092. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
  1093. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  1094. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  1095. package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
  1096. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  1097. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  1098. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
  1099. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  1100. package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
  1101. package/cjs/resources/V2/TestHelpers/index.js +0 -13
  1102. package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
  1103. package/esm/StripeEventNotificationHandler.d.ts +0 -19
  1104. package/esm/StripeEventNotificationHandler.js +0 -144
  1105. package/esm/StripeEventNotificationHandler.js.map +0 -1
  1106. package/esm/resources/AccountNotices.d.ts +0 -140
  1107. package/esm/resources/AccountNotices.js +0 -25
  1108. package/esm/resources/AccountNotices.js.map +0 -1
  1109. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  1110. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
  1111. package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  1112. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  1113. package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
  1114. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  1115. package/esm/resources/Billing/Analytics/index.d.ts +0 -15
  1116. package/esm/resources/Billing/Analytics/index.js +0 -9
  1117. package/esm/resources/Billing/Analytics/index.js.map +0 -1
  1118. package/esm/resources/Capital/FinancingOffers.d.ts +0 -191
  1119. package/esm/resources/Capital/FinancingOffers.js +0 -26
  1120. package/esm/resources/Capital/FinancingOffers.js.map +0 -1
  1121. package/esm/resources/Capital/FinancingSummary.d.ts +0 -98
  1122. package/esm/resources/Capital/FinancingSummary.js +0 -11
  1123. package/esm/resources/Capital/FinancingSummary.js.map +0 -1
  1124. package/esm/resources/Capital/FinancingTransactions.d.ts +0 -143
  1125. package/esm/resources/Capital/FinancingTransactions.js +0 -20
  1126. package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
  1127. package/esm/resources/Capital/index.d.ts +0 -25
  1128. package/esm/resources/Capital/index.js +0 -13
  1129. package/esm/resources/Capital/index.js.map +0 -1
  1130. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  1131. package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
  1132. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  1133. package/esm/resources/FinancialConnections/Authorizations.d.ts +0 -87
  1134. package/esm/resources/FinancialConnections/Authorizations.js +0 -11
  1135. package/esm/resources/FinancialConnections/Authorizations.js.map +0 -1
  1136. package/esm/resources/FinancialConnections/Institutions.d.ts +0 -101
  1137. package/esm/resources/FinancialConnections/Institutions.js +0 -19
  1138. package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
  1139. package/esm/resources/FxQuotes.d.ts +0 -212
  1140. package/esm/resources/FxQuotes.js +0 -25
  1141. package/esm/resources/FxQuotes.js.map +0 -1
  1142. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  1143. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
  1144. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  1145. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  1146. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
  1147. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  1148. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  1149. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
  1150. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  1151. package/esm/resources/Issuing/Settlements.d.ts +0 -85
  1152. package/esm/resources/Issuing/Settlements.js +0 -3
  1153. package/esm/resources/Issuing/Settlements.js.map +0 -1
  1154. package/esm/resources/Margins.d.ts +0 -115
  1155. package/esm/resources/Margins.js +0 -31
  1156. package/esm/resources/Margins.js.map +0 -1
  1157. package/esm/resources/Orders.d.ts +0 -4693
  1158. package/esm/resources/Orders.js +0 -453
  1159. package/esm/resources/Orders.js.map +0 -1
  1160. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  1161. package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
  1162. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  1163. package/esm/resources/Privacy/RedactionJobs.d.ts +0 -229
  1164. package/esm/resources/Privacy/RedactionJobs.js +0 -69
  1165. package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
  1166. package/esm/resources/Privacy/index.d.ts +0 -22
  1167. package/esm/resources/Privacy/index.js +0 -9
  1168. package/esm/resources/Privacy/index.js.map +0 -1
  1169. package/esm/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  1170. package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
  1171. package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
  1172. package/esm/resources/ProductCatalog/index.d.ts +0 -12
  1173. package/esm/resources/ProductCatalog/index.js +0 -9
  1174. package/esm/resources/ProductCatalog/index.js.map +0 -1
  1175. package/esm/resources/QuoteLines.d.ts +0 -507
  1176. package/esm/resources/QuoteLines.js +0 -3
  1177. package/esm/resources/QuoteLines.js.map +0 -1
  1178. package/esm/resources/QuotePreviewInvoices.d.ts +0 -1120
  1179. package/esm/resources/QuotePreviewInvoices.js +0 -3
  1180. package/esm/resources/QuotePreviewInvoices.js.map +0 -1
  1181. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
  1182. package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
  1183. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  1184. package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
  1185. package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
  1186. package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
  1187. package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  1188. package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
  1189. package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
  1190. package/esm/resources/SharedPayment/index.d.ts +0 -19
  1191. package/esm/resources/SharedPayment/index.js +0 -11
  1192. package/esm/resources/SharedPayment/index.js.map +0 -1
  1193. package/esm/resources/Tax/Forms.d.ts +0 -230
  1194. package/esm/resources/Tax/Forms.js +0 -28
  1195. package/esm/resources/Tax/Forms.js.map +0 -1
  1196. package/esm/resources/Tax/Locations.d.ts +0 -108
  1197. package/esm/resources/Tax/Locations.js +0 -29
  1198. package/esm/resources/Tax/Locations.js.map +0 -1
  1199. package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  1200. package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
  1201. package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
  1202. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  1203. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
  1204. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  1205. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  1206. package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
  1207. package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  1208. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  1209. package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
  1210. package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  1211. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  1212. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
  1213. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  1214. package/esm/resources/V2/Billing/BillSettings.d.ts +0 -284
  1215. package/esm/resources/V2/Billing/BillSettings.js +0 -37
  1216. package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
  1217. package/esm/resources/V2/Billing/Cadences.d.ts +0 -951
  1218. package/esm/resources/V2/Billing/Cadences.js +0 -194
  1219. package/esm/resources/V2/Billing/Cadences.js.map +0 -1
  1220. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  1221. package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
  1222. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  1223. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  1224. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
  1225. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  1226. package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  1227. package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
  1228. package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
  1229. package/esm/resources/V2/Billing/Profiles.d.ts +0 -166
  1230. package/esm/resources/V2/Billing/Profiles.js +0 -31
  1231. package/esm/resources/V2/Billing/Profiles.js.map +0 -1
  1232. package/esm/resources/V2/Core/BatchJobs.d.ts +0 -373
  1233. package/esm/resources/V2/Core/BatchJobs.js +0 -221
  1234. package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
  1235. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  1236. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
  1237. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  1238. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  1239. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -58
  1240. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  1241. package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
  1242. package/esm/resources/V2/Core/Vault/index.js +0 -11
  1243. package/esm/resources/V2/Core/Vault/index.js.map +0 -1
  1244. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  1245. package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
  1246. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  1247. package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
  1248. package/esm/resources/V2/Data/Reporting/index.js +0 -9
  1249. package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
  1250. package/esm/resources/V2/Data/index.d.ts +0 -10
  1251. package/esm/resources/V2/Data/index.js +0 -9
  1252. package/esm/resources/V2/Data/index.js.map +0 -1
  1253. package/esm/resources/V2/EventMisc.d.ts +0 -0
  1254. package/esm/resources/V2/EventMisc.js +0 -2
  1255. package/esm/resources/V2/EventMisc.js.map +0 -1
  1256. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  1257. package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
  1258. package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  1259. package/esm/resources/V2/Extend/Workflows.d.ts +0 -123
  1260. package/esm/resources/V2/Extend/Workflows.js +0 -26
  1261. package/esm/resources/V2/Extend/Workflows.js.map +0 -1
  1262. package/esm/resources/V2/Extend/index.d.ts +0 -20
  1263. package/esm/resources/V2/Extend/index.js +0 -11
  1264. package/esm/resources/V2/Extend/index.js.map +0 -1
  1265. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  1266. package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
  1267. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  1268. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  1269. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
  1270. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  1271. package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -214
  1272. package/esm/resources/V2/Iam/ActivityLogs.js +0 -19
  1273. package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
  1274. package/esm/resources/V2/Iam/index.d.ts +0 -13
  1275. package/esm/resources/V2/Iam/index.js +0 -9
  1276. package/esm/resources/V2/Iam/index.js.map +0 -1
  1277. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  1278. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
  1279. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  1280. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  1281. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
  1282. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  1283. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  1284. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
  1285. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  1286. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  1287. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
  1288. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  1289. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  1290. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
  1291. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  1292. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  1293. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
  1294. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  1295. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
  1296. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
  1297. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  1298. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  1299. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
  1300. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  1301. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  1302. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -40
  1303. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  1304. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  1305. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
  1306. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  1307. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
  1308. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
  1309. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  1310. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  1311. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
  1312. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  1313. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  1314. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
  1315. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  1316. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  1317. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
  1318. package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  1319. package/esm/resources/V2/MoneyManagement/index.d.ts +0 -104
  1320. package/esm/resources/V2/MoneyManagement/index.js +0 -35
  1321. package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
  1322. package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  1323. package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
  1324. package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
  1325. package/esm/resources/V2/Network/index.d.ts +0 -13
  1326. package/esm/resources/V2/Network/index.js +0 -9
  1327. package/esm/resources/V2/Network/index.js.map +0 -1
  1328. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  1329. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
  1330. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  1331. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  1332. package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
  1333. package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  1334. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  1335. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
  1336. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  1337. package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
  1338. package/esm/resources/V2/TestHelpers/index.js +0 -9
  1339. package/esm/resources/V2/TestHelpers/index.js.map +0 -1
@@ -4,7 +4,6 @@ import { Discount, DeletedDiscount } from './Discounts.js';
4
4
  import { TaxId, DeletedTaxId } from './TaxIds.js';
5
5
  import { Application, DeletedApplication } from './Applications.js';
6
6
  import { Customer, DeletedCustomer } from './Customers.js';
7
- import { Margin } from './Margins.js';
8
7
  import { PaymentMethod } from './PaymentMethods.js';
9
8
  import { CustomerSource } from './CustomerSources.js';
10
9
  import { TaxRate } from './TaxRates.js';
@@ -68,10 +67,6 @@ export declare class InvoiceResource extends StripeResource {
68
67
  * See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
69
68
  */
70
69
  attachPayment(id: string, params?: InvoiceAttachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
71
- /**
72
- * Detaches a payment from the invoice, removing it from the list of payments
73
- */
74
- detachPayment(id: string, params?: InvoiceDetachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
75
70
  /**
76
71
  * Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
77
72
  */
@@ -173,10 +168,6 @@ export interface Invoice {
173
168
  * This is the sum of all the shipping amounts.
174
169
  */
175
170
  amount_shipping: number;
176
- /**
177
- * List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
178
- */
179
- amounts_due?: Array<Invoice.AmountsDue> | null;
180
171
  /**
181
172
  * ID of the Connect Application that created the invoice.
182
173
  */
@@ -266,10 +257,6 @@ export interface Invoice {
266
257
  * The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
267
258
  */
268
259
  customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
269
- /**
270
- * The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
271
- */
272
- default_margins?: Array<string | Margin> | null;
273
260
  /**
274
261
  * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
275
262
  */
@@ -434,10 +421,6 @@ export interface Invoice {
434
421
  * The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
435
422
  */
436
423
  total_excluding_tax: number | null;
437
- /**
438
- * The aggregate amounts calculated per margin across all line items.
439
- */
440
- total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
441
424
  /**
442
425
  * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
443
426
  */
@@ -466,40 +449,6 @@ export interface DeletedInvoice {
466
449
  deleted: true;
467
450
  }
468
451
  export declare namespace Invoice {
469
- interface AmountsDue {
470
- /**
471
- * Incremental amount due for this payment in cents (or local equivalent).
472
- */
473
- amount: number;
474
- /**
475
- * The amount in cents (or local equivalent) that was paid for this payment.
476
- */
477
- amount_paid: number;
478
- /**
479
- * The difference between the payment's amount and amount_paid, in cents (or local equivalent).
480
- */
481
- amount_remaining: number;
482
- /**
483
- * Number of days from when invoice is finalized until the payment is due.
484
- */
485
- days_until_due: number | null;
486
- /**
487
- * An arbitrary string attached to the object. Often useful for displaying to users.
488
- */
489
- description: string | null;
490
- /**
491
- * Date on which a payment plan's payment is due.
492
- */
493
- due_date: number | null;
494
- /**
495
- * Timestamp when the payment was paid.
496
- */
497
- paid_at: number | null;
498
- /**
499
- * The status of the payment, one of `open`, `paid`, or `past_due`
500
- */
501
- status: AmountsDue.Status;
502
- }
503
452
  interface AutomaticTax {
504
453
  /**
505
454
  * If Stripe disabled automatic tax, this enum describes why.
@@ -817,16 +766,6 @@ export declare namespace Invoice {
817
766
  */
818
767
  discount: string | Discount | DeletedDiscount;
819
768
  }
820
- interface TotalMarginAmount {
821
- /**
822
- * The amount, in cents (or local equivalent), of the reduction in line item amount.
823
- */
824
- amount: number;
825
- /**
826
- * The margin that was applied to get this margin amount.
827
- */
828
- margin: string | Margin;
829
- }
830
769
  interface TotalPretaxCreditAmount {
831
770
  /**
832
771
  * The amount, in cents (or local equivalent), of the pretax credit amount.
@@ -840,10 +779,6 @@ export declare namespace Invoice {
840
779
  * The discount that was applied to get this pretax credit amount.
841
780
  */
842
781
  discount?: string | Discount | DeletedDiscount;
843
- /**
844
- * The margin that was applied to get this pretax credit amount.
845
- */
846
- margin?: string | Margin;
847
782
  /**
848
783
  * Type of the pretax credit amount referenced.
849
784
  */
@@ -875,9 +810,6 @@ export declare namespace Invoice {
875
810
  */
876
811
  type: 'tax_rate_details';
877
812
  }
878
- namespace AmountsDue {
879
- type Status = 'open' | 'paid' | 'past_due';
880
- }
881
813
  namespace AutomaticTax {
882
814
  type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error';
883
815
  interface Liability {
@@ -902,7 +834,7 @@ export declare namespace Invoice {
902
834
  type Type = 'account' | 'self';
903
835
  }
904
836
  namespace LastFinalizationError {
905
- type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_institution_unavailable' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sensitive_data_access_expired' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_collected_data_invalid' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | 'v2_account_disconnection_unsupported' | 'v2_account_missing_configuration';
837
+ type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid';
906
838
  type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error';
907
839
  }
908
840
  namespace Parent {
@@ -918,10 +850,6 @@ export declare namespace Invoice {
918
850
  * *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
919
851
  */
920
852
  metadata: Metadata | null;
921
- /**
922
- * 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).
923
- */
924
- pause_collection?: SubscriptionDetails.PauseCollection | null;
925
853
  /**
926
854
  * The subscription that generated this invoice
927
855
  */
@@ -932,21 +860,6 @@ export declare namespace Invoice {
932
860
  subscription_proration_date?: number;
933
861
  }
934
862
  type Type = 'quote_details' | 'subscription_details';
935
- namespace SubscriptionDetails {
936
- interface PauseCollection {
937
- /**
938
- * The payment collection behavior for this subscription while paused.
939
- */
940
- behavior: PauseCollection.Behavior | null;
941
- /**
942
- * The time after which the subscription will resume collecting payments.
943
- */
944
- resumes_at: number | null;
945
- }
946
- namespace PauseCollection {
947
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
948
- }
949
- }
950
863
  }
951
864
  namespace PaymentSettings {
952
865
  interface PaymentMethodOptions {
@@ -958,10 +871,6 @@ export declare namespace Invoice {
958
871
  * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
959
872
  */
960
873
  bancontact: PaymentMethodOptions.Bancontact | null;
961
- /**
962
- * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
963
- */
964
- blik?: PaymentMethodOptions.Blik | null;
965
874
  /**
966
875
  * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
967
876
  */
@@ -970,10 +879,6 @@ export declare namespace Invoice {
970
879
  * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
971
880
  */
972
881
  customer_balance: PaymentMethodOptions.CustomerBalance | null;
973
- /**
974
- * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
975
- */
976
- id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
977
882
  /**
978
883
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
979
884
  */
@@ -999,7 +904,7 @@ export declare namespace Invoice {
999
904
  */
1000
905
  us_bank_account: PaymentMethodOptions.UsBankAccount | null;
1001
906
  }
1002
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
907
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
1003
908
  namespace PaymentMethodOptions {
1004
909
  interface AcssDebit {
1005
910
  mandate_options?: AcssDebit.MandateOptions;
@@ -1014,8 +919,6 @@ export declare namespace Invoice {
1014
919
  */
1015
920
  preferred_language: Bancontact.PreferredLanguage;
1016
921
  }
1017
- interface Blik {
1018
- }
1019
922
  interface Card {
1020
923
  installments?: Card.Installments;
1021
924
  /**
@@ -1030,8 +933,6 @@ export declare namespace Invoice {
1030
933
  */
1031
934
  funding_type: 'bank_transfer' | null;
1032
935
  }
1033
- interface IdBankTransfer {
1034
- }
1035
936
  interface Konbini {
1036
937
  }
1037
938
  interface Payto {
@@ -1168,13 +1069,9 @@ export declare namespace Invoice {
1168
1069
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1169
1070
  */
1170
1071
  account_subcategories?: Array<Filters.AccountSubcategory>;
1171
- /**
1172
- * The institution to use to filter for possible accounts to link.
1173
- */
1174
- institution?: string;
1175
1072
  }
1176
1073
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
1177
- type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
1074
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1178
1075
  namespace Filters {
1179
1076
  type AccountSubcategory = 'checking' | 'savings';
1180
1077
  }
@@ -1231,7 +1128,7 @@ export declare namespace Invoice {
1231
1128
  }
1232
1129
  }
1233
1130
  namespace TotalPretaxCreditAmount {
1234
- type Type = 'credit_balance_transaction' | 'discount' | 'margin';
1131
+ type Type = 'credit_balance_transaction' | 'discount';
1235
1132
  }
1236
1133
  namespace TotalTax {
1237
1134
  type TaxBehavior = 'exclusive' | 'inclusive';
@@ -1239,7 +1136,7 @@ export declare namespace Invoice {
1239
1136
  /**
1240
1137
  * ID of the tax rate
1241
1138
  */
1242
- tax_rate: string | TaxRate;
1139
+ tax_rate: string;
1243
1140
  }
1244
1141
  type TaxabilityReason = 'customer_exempt' | 'not_available' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
1245
1142
  }
@@ -1249,10 +1146,6 @@ export interface InvoiceCreateParams {
1249
1146
  * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
1250
1147
  */
1251
1148
  account_tax_ids?: Emptyable<Array<string>>;
1252
- /**
1253
- * List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
1254
- */
1255
- amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
1256
1149
  /**
1257
1150
  * A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
1258
1151
  */
@@ -1293,10 +1186,6 @@ export interface InvoiceCreateParams {
1293
1186
  * The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
1294
1187
  */
1295
1188
  days_until_due?: number;
1296
- /**
1297
- * The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
1298
- */
1299
- default_margins?: Array<string>;
1300
1189
  /**
1301
1190
  * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
1302
1191
  */
@@ -1387,24 +1276,6 @@ export interface InvoiceCreateParams {
1387
1276
  transfer_data?: InvoiceCreateParams.TransferData;
1388
1277
  }
1389
1278
  export declare namespace InvoiceCreateParams {
1390
- interface AmountsDue {
1391
- /**
1392
- * The amount in cents (or local equivalent).
1393
- */
1394
- amount: number;
1395
- /**
1396
- * Number of days from when invoice is finalized until the payment is due.
1397
- */
1398
- days_until_due?: number;
1399
- /**
1400
- * An arbitrary string attached to the object. Often useful for displaying to users.
1401
- */
1402
- description: string;
1403
- /**
1404
- * Date on which a payment plan's payment is due.
1405
- */
1406
- due_date?: number;
1407
- }
1408
1279
  interface AutomaticTax {
1409
1280
  /**
1410
1281
  * Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
@@ -1435,10 +1306,6 @@ export declare namespace InvoiceCreateParams {
1435
1306
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1436
1307
  */
1437
1308
  discount?: string;
1438
- /**
1439
- * Details to determine how long the discount should be applied for.
1440
- */
1441
- discount_end?: Discount.DiscountEnd;
1442
1309
  /**
1443
1310
  * ID of the promotion code to create a new discount for.
1444
1311
  */
@@ -1546,38 +1413,6 @@ export declare namespace InvoiceCreateParams {
1546
1413
  type Type = 'account' | 'self';
1547
1414
  }
1548
1415
  }
1549
- namespace Discount {
1550
- interface DiscountEnd {
1551
- /**
1552
- * Time span for the redeemed discount.
1553
- */
1554
- duration?: DiscountEnd.Duration;
1555
- /**
1556
- * A precise Unix timestamp for the discount to end. Must be in the future.
1557
- */
1558
- timestamp?: number;
1559
- /**
1560
- * The type of calculation made to determine when the discount ends.
1561
- */
1562
- type: DiscountEnd.Type;
1563
- }
1564
- namespace DiscountEnd {
1565
- interface Duration {
1566
- /**
1567
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1568
- */
1569
- interval: Duration.Interval;
1570
- /**
1571
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1572
- */
1573
- interval_count: number;
1574
- }
1575
- type Type = 'duration' | 'timestamp';
1576
- namespace Duration {
1577
- type Interval = 'day' | 'month' | 'week' | 'year';
1578
- }
1579
- }
1580
- }
1581
1416
  namespace Issuer {
1582
1417
  type Type = 'account' | 'self';
1583
1418
  }
@@ -1591,10 +1426,6 @@ export declare namespace InvoiceCreateParams {
1591
1426
  * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
1592
1427
  */
1593
1428
  bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
1594
- /**
1595
- * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
1596
- */
1597
- blik?: Emptyable<PaymentMethodOptions.Blik>;
1598
1429
  /**
1599
1430
  * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
1600
1431
  */
@@ -1603,10 +1434,6 @@ export declare namespace InvoiceCreateParams {
1603
1434
  * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
1604
1435
  */
1605
1436
  customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
1606
- /**
1607
- * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
1608
- */
1609
- id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
1610
1437
  /**
1611
1438
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1612
1439
  */
@@ -1632,7 +1459,7 @@ export declare namespace InvoiceCreateParams {
1632
1459
  */
1633
1460
  us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
1634
1461
  }
1635
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
1462
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
1636
1463
  namespace PaymentMethodOptions {
1637
1464
  interface AcssDebit {
1638
1465
  /**
@@ -1650,8 +1477,6 @@ export declare namespace InvoiceCreateParams {
1650
1477
  */
1651
1478
  preferred_language?: Bancontact.PreferredLanguage;
1652
1479
  }
1653
- interface Blik {
1654
- }
1655
1480
  interface Card {
1656
1481
  /**
1657
1482
  * Installment configuration for payments attempted on this invoice.
@@ -1674,8 +1499,6 @@ export declare namespace InvoiceCreateParams {
1674
1499
  */
1675
1500
  funding_type?: string;
1676
1501
  }
1677
- interface IdBankTransfer {
1678
- }
1679
1502
  interface Konbini {
1680
1503
  }
1681
1504
  interface Payto {
@@ -1844,13 +1667,9 @@ export declare namespace InvoiceCreateParams {
1844
1667
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1845
1668
  */
1846
1669
  account_subcategories?: Array<Filters.AccountSubcategory>;
1847
- /**
1848
- * ID of the institution to use to filter for selectable accounts.
1849
- */
1850
- institution?: string;
1851
1670
  }
1852
1671
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
1853
- type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
1672
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1854
1673
  namespace Filters {
1855
1674
  type AccountSubcategory = 'checking' | 'savings';
1856
1675
  }
@@ -1988,10 +1807,6 @@ export interface InvoiceUpdateParams {
1988
1807
  * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
1989
1808
  */
1990
1809
  account_tax_ids?: Emptyable<Array<string>>;
1991
- /**
1992
- * List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
1993
- */
1994
- amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
1995
1810
  /**
1996
1811
  * A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
1997
1812
  */
@@ -2020,10 +1835,6 @@ export interface InvoiceUpdateParams {
2020
1835
  * The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
2021
1836
  */
2022
1837
  days_until_due?: number;
2023
- /**
2024
- * The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
2025
- */
2026
- default_margins?: Emptyable<Array<string>>;
2027
1838
  /**
2028
1839
  * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
2029
1840
  */
@@ -2102,24 +1913,6 @@ export interface InvoiceUpdateParams {
2102
1913
  transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
2103
1914
  }
2104
1915
  export declare namespace InvoiceUpdateParams {
2105
- interface AmountsDue {
2106
- /**
2107
- * The amount in cents (or local equivalent).
2108
- */
2109
- amount: number;
2110
- /**
2111
- * Number of days from when invoice is finalized until the payment is due.
2112
- */
2113
- days_until_due?: number;
2114
- /**
2115
- * An arbitrary string attached to the object. Often useful for displaying to users.
2116
- */
2117
- description: string;
2118
- /**
2119
- * Date on which a payment plan's payment is due.
2120
- */
2121
- due_date?: number;
2122
- }
2123
1916
  interface AutomaticTax {
2124
1917
  /**
2125
1918
  * Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
@@ -2150,10 +1943,6 @@ export declare namespace InvoiceUpdateParams {
2150
1943
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2151
1944
  */
2152
1945
  discount?: string;
2153
- /**
2154
- * Details to determine how long the discount should be applied for.
2155
- */
2156
- discount_end?: Discount.DiscountEnd;
2157
1946
  /**
2158
1947
  * ID of the promotion code to create a new discount for.
2159
1948
  */
@@ -2250,38 +2039,6 @@ export declare namespace InvoiceUpdateParams {
2250
2039
  type Type = 'account' | 'self';
2251
2040
  }
2252
2041
  }
2253
- namespace Discount {
2254
- interface DiscountEnd {
2255
- /**
2256
- * Time span for the redeemed discount.
2257
- */
2258
- duration?: DiscountEnd.Duration;
2259
- /**
2260
- * A precise Unix timestamp for the discount to end. Must be in the future.
2261
- */
2262
- timestamp?: number;
2263
- /**
2264
- * The type of calculation made to determine when the discount ends.
2265
- */
2266
- type: DiscountEnd.Type;
2267
- }
2268
- namespace DiscountEnd {
2269
- interface Duration {
2270
- /**
2271
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2272
- */
2273
- interval: Duration.Interval;
2274
- /**
2275
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2276
- */
2277
- interval_count: number;
2278
- }
2279
- type Type = 'duration' | 'timestamp';
2280
- namespace Duration {
2281
- type Interval = 'day' | 'month' | 'week' | 'year';
2282
- }
2283
- }
2284
- }
2285
2042
  namespace Issuer {
2286
2043
  type Type = 'account' | 'self';
2287
2044
  }
@@ -2295,10 +2052,6 @@ export declare namespace InvoiceUpdateParams {
2295
2052
  * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
2296
2053
  */
2297
2054
  bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
2298
- /**
2299
- * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
2300
- */
2301
- blik?: Emptyable<PaymentMethodOptions.Blik>;
2302
2055
  /**
2303
2056
  * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
2304
2057
  */
@@ -2307,10 +2060,6 @@ export declare namespace InvoiceUpdateParams {
2307
2060
  * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
2308
2061
  */
2309
2062
  customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
2310
- /**
2311
- * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
2312
- */
2313
- id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
2314
2063
  /**
2315
2064
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
2316
2065
  */
@@ -2336,7 +2085,7 @@ export declare namespace InvoiceUpdateParams {
2336
2085
  */
2337
2086
  us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
2338
2087
  }
2339
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
2088
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
2340
2089
  namespace PaymentMethodOptions {
2341
2090
  interface AcssDebit {
2342
2091
  /**
@@ -2354,8 +2103,6 @@ export declare namespace InvoiceUpdateParams {
2354
2103
  */
2355
2104
  preferred_language?: Bancontact.PreferredLanguage;
2356
2105
  }
2357
- interface Blik {
2358
- }
2359
2106
  interface Card {
2360
2107
  /**
2361
2108
  * Installment configuration for payments attempted on this invoice.
@@ -2378,8 +2125,6 @@ export declare namespace InvoiceUpdateParams {
2378
2125
  */
2379
2126
  funding_type?: string;
2380
2127
  }
2381
- interface IdBankTransfer {
2382
- }
2383
2128
  interface Konbini {
2384
2129
  }
2385
2130
  interface Payto {
@@ -2548,13 +2293,9 @@ export declare namespace InvoiceUpdateParams {
2548
2293
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2549
2294
  */
2550
2295
  account_subcategories?: Array<Filters.AccountSubcategory>;
2551
- /**
2552
- * ID of the institution to use to filter for selectable accounts.
2553
- */
2554
- institution?: string;
2555
2296
  }
2556
2297
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
2557
- type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
2298
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2558
2299
  namespace Filters {
2559
2300
  type AccountSubcategory = 'checking' | 'savings';
2560
2301
  }
@@ -2756,10 +2497,6 @@ export declare namespace InvoiceAddLinesParams {
2756
2497
  * ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
2757
2498
  */
2758
2499
  invoice_item?: string;
2759
- /**
2760
- * The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
2761
- */
2762
- margins?: Emptyable<Array<string>>;
2763
2500
  /**
2764
2501
  * 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`.
2765
2502
  */
@@ -2785,7 +2522,7 @@ export declare namespace InvoiceAddLinesParams {
2785
2522
  */
2786
2523
  quantity_decimal?: Decimal;
2787
2524
  /**
2788
- * A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
2525
+ * A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
2789
2526
  */
2790
2527
  tax_amounts?: Emptyable<Array<Line.TaxAmount>>;
2791
2528
  /**
@@ -2803,10 +2540,6 @@ export declare namespace InvoiceAddLinesParams {
2803
2540
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2804
2541
  */
2805
2542
  discount?: string;
2806
- /**
2807
- * Details to determine how long the discount should be applied for.
2808
- */
2809
- discount_end?: Discount.DiscountEnd;
2810
2543
  /**
2811
2544
  * ID of the promotion code to create a new discount for.
2812
2545
  */
@@ -2874,38 +2607,6 @@ export declare namespace InvoiceAddLinesParams {
2874
2607
  */
2875
2608
  taxable_amount: number;
2876
2609
  }
2877
- namespace Discount {
2878
- interface DiscountEnd {
2879
- /**
2880
- * Time span for the redeemed discount.
2881
- */
2882
- duration?: DiscountEnd.Duration;
2883
- /**
2884
- * A precise Unix timestamp for the discount to end. Must be in the future.
2885
- */
2886
- timestamp?: number;
2887
- /**
2888
- * The type of calculation made to determine when the discount ends.
2889
- */
2890
- type: DiscountEnd.Type;
2891
- }
2892
- namespace DiscountEnd {
2893
- interface Duration {
2894
- /**
2895
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2896
- */
2897
- interval: Duration.Interval;
2898
- /**
2899
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2900
- */
2901
- interval_count: number;
2902
- }
2903
- type Type = 'duration' | 'timestamp';
2904
- namespace Duration {
2905
- type Interval = 'day' | 'month' | 'week' | 'year';
2906
- }
2907
- }
2908
- }
2909
2610
  namespace PriceData {
2910
2611
  interface ProductData {
2911
2612
  /**
@@ -2928,28 +2629,12 @@ export declare namespace InvoiceAddLinesParams {
2928
2629
  * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
2929
2630
  */
2930
2631
  tax_code?: string;
2931
- /**
2932
- * Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
2933
- */
2934
- tax_details?: ProductData.TaxDetails;
2935
2632
  /**
2936
2633
  * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
2937
2634
  */
2938
2635
  unit_label?: string;
2939
2636
  }
2940
2637
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
2941
- namespace ProductData {
2942
- interface TaxDetails {
2943
- /**
2944
- * A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
2945
- */
2946
- performance_location?: string;
2947
- /**
2948
- * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
2949
- */
2950
- tax_code?: Emptyable<string>;
2951
- }
2952
- }
2953
2638
  }
2954
2639
  namespace TaxAmount {
2955
2640
  interface TaxRateData {
@@ -2999,10 +2684,6 @@ export declare namespace InvoiceAddLinesParams {
2999
2684
  }
3000
2685
  }
3001
2686
  export interface InvoiceAttachPaymentParams {
3002
- /**
3003
- * The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
3004
- */
3005
- amount_requested?: number;
3006
2687
  /**
3007
2688
  * Specifies which fields in the response should be expanded.
3008
2689
  */
@@ -3015,38 +2696,6 @@ export interface InvoiceAttachPaymentParams {
3015
2696
  * The ID of the PaymentRecord to attach to the invoice.
3016
2697
  */
3017
2698
  payment_record?: string;
3018
- /**
3019
- * The PaymentRecord data for attaching an out of band payment to the invoice.
3020
- */
3021
- payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
3022
- }
3023
- export declare namespace InvoiceAttachPaymentParams {
3024
- interface PaymentRecordData {
3025
- /**
3026
- * The amount that was paid out of band.
3027
- */
3028
- amount: number;
3029
- /**
3030
- * The currency that was paid out of band.
3031
- */
3032
- currency: string;
3033
- /**
3034
- * 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`.
3035
- */
3036
- metadata?: Emptyable<MetadataParam>;
3037
- /**
3038
- * The type of money movement for this out of band payment record.
3039
- */
3040
- money_movement_type: string;
3041
- /**
3042
- * The timestamp when this out of band payment was paid.
3043
- */
3044
- paid_at?: number;
3045
- /**
3046
- * The reference for this out of band payment record.
3047
- */
3048
- payment_reference?: string;
3049
- }
3050
2699
  }
3051
2700
  export interface InvoiceCreatePreviewParams {
3052
2701
  /**
@@ -3152,10 +2801,6 @@ export declare namespace InvoiceCreatePreviewParams {
3152
2801
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
3153
2802
  */
3154
2803
  discount?: string;
3155
- /**
3156
- * Details to determine how long the discount should be applied for.
3157
- */
3158
- discount_end?: Discount.DiscountEnd;
3159
2804
  /**
3160
2805
  * ID of the promotion code to create a new discount for.
3161
2806
  */
@@ -3243,14 +2888,6 @@ export declare namespace InvoiceCreatePreviewParams {
3243
2888
  }
3244
2889
  type PreviewMode = 'next' | 'recurring';
3245
2890
  interface ScheduleDetails {
3246
- /**
3247
- * Changes to apply to the phases of the subscription schedule, in the order provided.
3248
- */
3249
- amendments?: Array<ScheduleDetails.Amendment>;
3250
- /**
3251
- * 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.
3252
- */
3253
- billing_behavior?: ScheduleDetails.BillingBehavior;
3254
2891
  /**
3255
2892
  * Controls how prorations and invoices for subscriptions are calculated and orchestrated.
3256
2893
  */
@@ -3263,10 +2900,6 @@ export declare namespace InvoiceCreatePreviewParams {
3263
2900
  * 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.
3264
2901
  */
3265
2902
  phases?: Array<ScheduleDetails.Phase>;
3266
- /**
3267
- * Provide any time periods to bill in advance.
3268
- */
3269
- prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
3270
2903
  /**
3271
2904
  * In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
3272
2905
  */
@@ -3305,10 +2938,6 @@ export declare namespace InvoiceCreatePreviewParams {
3305
2938
  * A list of up to 20 subscription items, each with an attached price.
3306
2939
  */
3307
2940
  items?: Array<SubscriptionDetails.Item>;
3308
- /**
3309
- * The pre-billing to apply to the subscription as a preview.
3310
- */
3311
- prebilling?: SubscriptionDetails.Prebilling;
3312
2941
  /**
3313
2942
  * Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
3314
2943
  */
@@ -3381,38 +3010,6 @@ export declare namespace InvoiceCreatePreviewParams {
3381
3010
  type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
3382
3011
  }
3383
3012
  }
3384
- namespace Discount {
3385
- interface DiscountEnd {
3386
- /**
3387
- * Time span for the redeemed discount.
3388
- */
3389
- duration?: DiscountEnd.Duration;
3390
- /**
3391
- * A precise Unix timestamp for the discount to end. Must be in the future.
3392
- */
3393
- timestamp?: number;
3394
- /**
3395
- * The type of calculation made to determine when the discount ends.
3396
- */
3397
- type: DiscountEnd.Type;
3398
- }
3399
- namespace DiscountEnd {
3400
- interface Duration {
3401
- /**
3402
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3403
- */
3404
- interval: Duration.Interval;
3405
- /**
3406
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3407
- */
3408
- interval_count: number;
3409
- }
3410
- type Type = 'duration' | 'timestamp';
3411
- namespace Duration {
3412
- type Interval = 'day' | 'month' | 'week' | 'year';
3413
- }
3414
- }
3415
- }
3416
3013
  namespace InvoiceItem {
3417
3014
  interface Discount {
3418
3015
  /**
@@ -3423,10 +3020,6 @@ export declare namespace InvoiceCreatePreviewParams {
3423
3020
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
3424
3021
  */
3425
3022
  discount?: string;
3426
- /**
3427
- * Details to determine how long the discount should be applied for.
3428
- */
3429
- discount_end?: Discount.DiscountEnd;
3430
3023
  /**
3431
3024
  * ID of the promotion code to create a new discount for.
3432
3025
  */
@@ -3465,38 +3058,6 @@ export declare namespace InvoiceCreatePreviewParams {
3465
3058
  unit_amount_decimal?: Decimal;
3466
3059
  }
3467
3060
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3468
- namespace Discount {
3469
- interface DiscountEnd {
3470
- /**
3471
- * Time span for the redeemed discount.
3472
- */
3473
- duration?: DiscountEnd.Duration;
3474
- /**
3475
- * A precise Unix timestamp for the discount to end. Must be in the future.
3476
- */
3477
- timestamp?: number;
3478
- /**
3479
- * The type of calculation made to determine when the discount ends.
3480
- */
3481
- type: DiscountEnd.Type;
3482
- }
3483
- namespace DiscountEnd {
3484
- interface Duration {
3485
- /**
3486
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3487
- */
3488
- interval: Duration.Interval;
3489
- /**
3490
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3491
- */
3492
- interval_count: number;
3493
- }
3494
- type Type = 'duration' | 'timestamp';
3495
- namespace Duration {
3496
- type Interval = 'day' | 'month' | 'week' | 'year';
3497
- }
3498
- }
3499
- }
3500
3061
  namespace PriceData {
3501
3062
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3502
3063
  }
@@ -3505,65 +3066,22 @@ export declare namespace InvoiceCreatePreviewParams {
3505
3066
  type Type = 'account' | 'self';
3506
3067
  }
3507
3068
  namespace ScheduleDetails {
3508
- interface Amendment {
3069
+ interface BillingMode {
3509
3070
  /**
3510
- * 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.
3071
+ * Configure behavior for flexible billing mode.
3511
3072
  */
3512
- amendment_end?: Amendment.AmendmentEnd;
3073
+ flexible?: BillingMode.Flexible;
3513
3074
  /**
3514
- * Details to identify the earliest timestamp where the proposed change should take effect.
3075
+ * Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
3515
3076
  */
3516
- amendment_start: Amendment.AmendmentStart;
3077
+ type: BillingMode.Type;
3078
+ }
3079
+ type EndBehavior = 'cancel' | 'release';
3080
+ interface Phase {
3517
3081
  /**
3518
- * 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.
3082
+ * A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
3519
3083
  */
3520
- billing_cycle_anchor?: Amendment.BillingCycleAnchor;
3521
- /**
3522
- * Changes to the coupons being redeemed or discounts being applied during the amendment time span.
3523
- */
3524
- discount_actions?: Array<Amendment.DiscountAction>;
3525
- /**
3526
- * Changes to the subscription items during the amendment time span.
3527
- */
3528
- item_actions?: Array<Amendment.ItemAction>;
3529
- /**
3530
- * Instructions for how to modify phase metadata
3531
- */
3532
- metadata_actions?: Array<Amendment.MetadataAction>;
3533
- /**
3534
- * 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`.
3535
- */
3536
- proration_behavior?: Amendment.ProrationBehavior;
3537
- /**
3538
- * Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
3539
- */
3540
- set_pause_collection?: Amendment.SetPauseCollection;
3541
- /**
3542
- * Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
3543
- */
3544
- set_schedule_end?: Amendment.SetScheduleEnd;
3545
- /**
3546
- * Settings related to subscription trials.
3547
- */
3548
- trial_settings?: Amendment.TrialSettings;
3549
- }
3550
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
3551
- interface BillingMode {
3552
- /**
3553
- * Configure behavior for flexible billing mode.
3554
- */
3555
- flexible?: BillingMode.Flexible;
3556
- /**
3557
- * Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
3558
- */
3559
- type: BillingMode.Type;
3560
- }
3561
- type EndBehavior = 'cancel' | 'release';
3562
- interface Phase {
3563
- /**
3564
- * A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
3565
- */
3566
- add_invoice_items?: Array<Phase.AddInvoiceItem>;
3084
+ add_invoice_items?: Array<Phase.AddInvoiceItem>;
3567
3085
  /**
3568
3086
  * 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).
3569
3087
  */
@@ -3628,10 +3146,6 @@ export declare namespace InvoiceCreatePreviewParams {
3628
3146
  * The account on behalf of which to charge, for each of the associated subscription's invoices.
3629
3147
  */
3630
3148
  on_behalf_of?: string;
3631
- /**
3632
- * 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).
3633
- */
3634
- pause_collection?: Phase.PauseCollection;
3635
3149
  /**
3636
3150
  * 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.
3637
3151
  */
@@ -3648,468 +3162,12 @@ export declare namespace InvoiceCreatePreviewParams {
3648
3162
  * If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
3649
3163
  */
3650
3164
  trial?: boolean;
3651
- /**
3652
- * Specify trial behavior when crossing phase boundaries
3653
- */
3654
- trial_continuation?: Phase.TrialContinuation;
3655
3165
  /**
3656
3166
  * 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`
3657
3167
  */
3658
3168
  trial_end?: number | 'now';
3659
- /**
3660
- * Settings related to subscription trials.
3661
- */
3662
- trial_settings?: Phase.TrialSettings;
3663
- }
3664
- interface Prebilling {
3665
- /**
3666
- * The end of the prebilled time period.
3667
- */
3668
- bill_until?: Prebilling.BillUntil;
3669
- /**
3670
- * This is used to determine the number of billing cycles to prebill.
3671
- */
3672
- iterations?: number;
3673
3169
  }
3674
3170
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
3675
- namespace Amendment {
3676
- interface AmendmentEnd {
3677
- /**
3678
- * Use the `end` time of a given discount.
3679
- */
3680
- discount_end?: AmendmentEnd.DiscountEnd;
3681
- /**
3682
- * Time span for the amendment starting from the `amendment_start`.
3683
- */
3684
- duration?: AmendmentEnd.Duration;
3685
- /**
3686
- * A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
3687
- */
3688
- timestamp?: number;
3689
- /**
3690
- * Select one of three ways to pass the `amendment_end`.
3691
- */
3692
- type: AmendmentEnd.Type;
3693
- }
3694
- interface AmendmentStart {
3695
- /**
3696
- * Details of another amendment in the same array, immediately after which this amendment should begin.
3697
- */
3698
- amendment_end?: AmendmentStart.AmendmentEnd;
3699
- /**
3700
- * Use the `end` time of a given discount.
3701
- */
3702
- discount_end?: AmendmentStart.DiscountEnd;
3703
- /**
3704
- * A precise Unix timestamp for the amendment to start.
3705
- */
3706
- timestamp?: number;
3707
- /**
3708
- * Select one of three ways to pass the `amendment_start`.
3709
- */
3710
- type: AmendmentStart.Type;
3711
- }
3712
- type BillingCycleAnchor = 'amendment_start' | 'automatic';
3713
- interface DiscountAction {
3714
- /**
3715
- * Details of the discount to add.
3716
- */
3717
- add?: DiscountAction.Add;
3718
- /**
3719
- * Details of the discount to remove.
3720
- */
3721
- remove?: DiscountAction.Remove;
3722
- /**
3723
- * Details of the discount to replace the existing discounts with.
3724
- */
3725
- set?: DiscountAction.Set;
3726
- /**
3727
- * Determines the type of discount action.
3728
- */
3729
- type: DiscountAction.Type;
3730
- }
3731
- interface ItemAction {
3732
- /**
3733
- * 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.
3734
- */
3735
- add?: ItemAction.Add;
3736
- /**
3737
- * Details of the subscription item to remove.
3738
- */
3739
- remove?: ItemAction.Remove;
3740
- /**
3741
- * 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.
3742
- */
3743
- set?: ItemAction.Set;
3744
- /**
3745
- * Determines the type of item action.
3746
- */
3747
- type: ItemAction.Type;
3748
- }
3749
- interface MetadataAction {
3750
- /**
3751
- * Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
3752
- */
3753
- add?: {
3754
- [key: string]: string;
3755
- };
3756
- /**
3757
- * Keys to remove from schedule phase metadata.
3758
- */
3759
- remove?: Array<string>;
3760
- /**
3761
- * Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
3762
- */
3763
- set?: Emptyable<{
3764
- [key: string]: string;
3765
- }>;
3766
- /**
3767
- * Select one of three ways to update phase-level `metadata` on subscription schedules.
3768
- */
3769
- type: MetadataAction.Type;
3770
- }
3771
- type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
3772
- interface SetPauseCollection {
3773
- /**
3774
- * Details of the pause_collection behavior to apply to the amendment.
3775
- */
3776
- set?: SetPauseCollection.Set;
3777
- /**
3778
- * Determines the type of the pause_collection amendment.
3779
- */
3780
- type: SetPauseCollection.Type;
3781
- }
3782
- type SetScheduleEnd = 'amendment_end' | 'amendment_start';
3783
- interface TrialSettings {
3784
- /**
3785
- * Defines how the subscription should behave when a trial ends.
3786
- */
3787
- end_behavior?: TrialSettings.EndBehavior;
3788
- }
3789
- namespace AmendmentEnd {
3790
- interface DiscountEnd {
3791
- /**
3792
- * The ID of a specific discount.
3793
- */
3794
- discount: string;
3795
- }
3796
- interface Duration {
3797
- /**
3798
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3799
- */
3800
- interval: Duration.Interval;
3801
- /**
3802
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3803
- */
3804
- interval_count: number;
3805
- }
3806
- type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
3807
- namespace Duration {
3808
- type Interval = 'day' | 'month' | 'week' | 'year';
3809
- }
3810
- }
3811
- namespace AmendmentStart {
3812
- interface AmendmentEnd {
3813
- /**
3814
- * 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.
3815
- */
3816
- index: number;
3817
- }
3818
- interface DiscountEnd {
3819
- /**
3820
- * The ID of a specific discount.
3821
- */
3822
- discount: string;
3823
- }
3824
- type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
3825
- }
3826
- namespace DiscountAction {
3827
- interface Add {
3828
- /**
3829
- * The coupon code to redeem.
3830
- */
3831
- coupon?: string;
3832
- /**
3833
- * An ID of an existing discount for a coupon that was already redeemed.
3834
- */
3835
- discount?: string;
3836
- /**
3837
- * Details to determine how long the discount should be applied for.
3838
- */
3839
- discount_end?: Add.DiscountEnd;
3840
- /**
3841
- * 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.
3842
- */
3843
- index?: number;
3844
- /**
3845
- * The promotion code to redeem.
3846
- */
3847
- promotion_code?: string;
3848
- }
3849
- interface Remove {
3850
- /**
3851
- * The coupon code to remove from the `discounts` array.
3852
- */
3853
- coupon?: string;
3854
- /**
3855
- * The ID of a discount to remove from the `discounts` array.
3856
- */
3857
- discount?: string;
3858
- /**
3859
- * The ID of a promotion code to remove from the `discounts` array.
3860
- */
3861
- promotion_code?: string;
3862
- }
3863
- interface Set {
3864
- /**
3865
- * The coupon code to replace the `discounts` array with.
3866
- */
3867
- coupon?: string;
3868
- /**
3869
- * An ID of an existing discount to replace the `discounts` array with.
3870
- */
3871
- discount?: string;
3872
- /**
3873
- * An ID of an existing promotion code to replace the `discounts` array with.
3874
- */
3875
- promotion_code?: string;
3876
- }
3877
- type Type = 'add' | 'remove' | 'set';
3878
- namespace Add {
3879
- interface DiscountEnd {
3880
- /**
3881
- * The type of calculation made to determine when the discount ends.
3882
- */
3883
- type: 'amendment_end';
3884
- }
3885
- }
3886
- }
3887
- namespace ItemAction {
3888
- interface Add {
3889
- /**
3890
- * The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
3891
- */
3892
- discounts?: Array<Add.Discount>;
3893
- /**
3894
- * 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`.
3895
- */
3896
- metadata?: MetadataParam;
3897
- /**
3898
- * The ID of the price object.
3899
- */
3900
- price: string;
3901
- /**
3902
- * Quantity for this item.
3903
- */
3904
- quantity?: number;
3905
- /**
3906
- * 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`.
3907
- */
3908
- tax_rates?: Array<string>;
3909
- /**
3910
- * Options that configure the trial on the subscription item.
3911
- */
3912
- trial?: Add.Trial;
3913
- /**
3914
- * The ID of the trial offer to apply to the configuration item.
3915
- */
3916
- trial_offer?: string;
3917
- }
3918
- interface Remove {
3919
- /**
3920
- * ID of a price to remove.
3921
- */
3922
- price: string;
3923
- }
3924
- interface Set {
3925
- /**
3926
- * 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`.
3927
- */
3928
- discounts?: Array<Set.Discount>;
3929
- /**
3930
- * 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`.
3931
- */
3932
- metadata?: MetadataParam;
3933
- /**
3934
- * The ID of the price object.
3935
- */
3936
- price: string;
3937
- /**
3938
- * 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`.
3939
- */
3940
- quantity?: number;
3941
- /**
3942
- * 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`.
3943
- */
3944
- tax_rates?: Array<string>;
3945
- /**
3946
- * 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`.
3947
- */
3948
- trial?: Set.Trial;
3949
- /**
3950
- * The ID of the trial offer to apply to the configuration item.
3951
- */
3952
- trial_offer?: string;
3953
- }
3954
- type Type = 'add' | 'remove' | 'set';
3955
- namespace Add {
3956
- interface Discount {
3957
- /**
3958
- * ID of the coupon to create a new discount for.
3959
- */
3960
- coupon?: string;
3961
- /**
3962
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
3963
- */
3964
- discount?: string;
3965
- /**
3966
- * Details to determine how long the discount should be applied for.
3967
- */
3968
- discount_end?: Discount.DiscountEnd;
3969
- /**
3970
- * ID of the promotion code to create a new discount for.
3971
- */
3972
- promotion_code?: string;
3973
- }
3974
- interface Trial {
3975
- /**
3976
- * 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.
3977
- */
3978
- converts_to?: Array<string>;
3979
- /**
3980
- * Determines the type of trial for this item.
3981
- */
3982
- type: Trial.Type;
3983
- }
3984
- namespace Discount {
3985
- interface DiscountEnd {
3986
- /**
3987
- * Time span for the redeemed discount.
3988
- */
3989
- duration?: DiscountEnd.Duration;
3990
- /**
3991
- * A precise Unix timestamp for the discount to end. Must be in the future.
3992
- */
3993
- timestamp?: number;
3994
- /**
3995
- * The type of calculation made to determine when the discount ends.
3996
- */
3997
- type: DiscountEnd.Type;
3998
- }
3999
- namespace DiscountEnd {
4000
- interface Duration {
4001
- /**
4002
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4003
- */
4004
- interval: Duration.Interval;
4005
- /**
4006
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4007
- */
4008
- interval_count: number;
4009
- }
4010
- type Type = 'duration' | 'timestamp';
4011
- namespace Duration {
4012
- type Interval = 'day' | 'month' | 'week' | 'year';
4013
- }
4014
- }
4015
- }
4016
- namespace Trial {
4017
- type Type = 'free' | 'paid';
4018
- }
4019
- }
4020
- namespace Set {
4021
- interface Discount {
4022
- /**
4023
- * ID of the coupon to create a new discount for.
4024
- */
4025
- coupon?: string;
4026
- /**
4027
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
4028
- */
4029
- discount?: string;
4030
- /**
4031
- * Details to determine how long the discount should be applied for.
4032
- */
4033
- discount_end?: Discount.DiscountEnd;
4034
- /**
4035
- * ID of the promotion code to create a new discount for.
4036
- */
4037
- promotion_code?: string;
4038
- }
4039
- interface Trial {
4040
- /**
4041
- * 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.
4042
- */
4043
- converts_to?: Array<string>;
4044
- /**
4045
- * Determines the type of trial for this item.
4046
- */
4047
- type: Trial.Type;
4048
- }
4049
- namespace Discount {
4050
- interface DiscountEnd {
4051
- /**
4052
- * Time span for the redeemed discount.
4053
- */
4054
- duration?: DiscountEnd.Duration;
4055
- /**
4056
- * A precise Unix timestamp for the discount to end. Must be in the future.
4057
- */
4058
- timestamp?: number;
4059
- /**
4060
- * The type of calculation made to determine when the discount ends.
4061
- */
4062
- type: DiscountEnd.Type;
4063
- }
4064
- namespace DiscountEnd {
4065
- interface Duration {
4066
- /**
4067
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4068
- */
4069
- interval: Duration.Interval;
4070
- /**
4071
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4072
- */
4073
- interval_count: number;
4074
- }
4075
- type Type = 'duration' | 'timestamp';
4076
- namespace Duration {
4077
- type Interval = 'day' | 'month' | 'week' | 'year';
4078
- }
4079
- }
4080
- }
4081
- namespace Trial {
4082
- type Type = 'free' | 'paid';
4083
- }
4084
- }
4085
- }
4086
- namespace MetadataAction {
4087
- type Type = 'add' | 'remove' | 'set';
4088
- }
4089
- namespace SetPauseCollection {
4090
- interface Set {
4091
- /**
4092
- * The payment collection behavior for this subscription while paused.
4093
- */
4094
- behavior: Set.Behavior;
4095
- }
4096
- type Type = 'remove' | 'set';
4097
- namespace Set {
4098
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
4099
- }
4100
- }
4101
- namespace TrialSettings {
4102
- interface EndBehavior {
4103
- /**
4104
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
4105
- */
4106
- prorate_up_front?: EndBehavior.ProrateUpFront;
4107
- }
4108
- namespace EndBehavior {
4109
- type ProrateUpFront = 'defer' | 'include';
4110
- }
4111
- }
4112
- }
4113
3171
  namespace BillingMode {
4114
3172
  interface Flexible {
4115
3173
  /**
@@ -4188,10 +3246,6 @@ export declare namespace InvoiceCreatePreviewParams {
4188
3246
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4189
3247
  */
4190
3248
  discount?: string;
4191
- /**
4192
- * Details to determine how long the discount should be applied for.
4193
- */
4194
- discount_end?: Discount.DiscountEnd;
4195
3249
  /**
4196
3250
  * ID of the promotion code to create a new discount for.
4197
3251
  */
@@ -4254,20 +3308,6 @@ export declare namespace InvoiceCreatePreviewParams {
4254
3308
  * 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.
4255
3309
  */
4256
3310
  tax_rates?: Emptyable<Array<string>>;
4257
- /**
4258
- * Options that configure the trial on the subscription item.
4259
- */
4260
- trial?: Item.Trial;
4261
- /**
4262
- * The ID of the trial offer to apply to the configuration item.
4263
- */
4264
- trial_offer?: string;
4265
- }
4266
- interface PauseCollection {
4267
- /**
4268
- * The payment collection behavior for this subscription while paused.
4269
- */
4270
- behavior: PauseCollection.Behavior;
4271
3311
  }
4272
3312
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
4273
3313
  interface TransferData {
@@ -4280,13 +3320,6 @@ export declare namespace InvoiceCreatePreviewParams {
4280
3320
  */
4281
3321
  destination: string;
4282
3322
  }
4283
- type TrialContinuation = 'continue' | 'none';
4284
- interface TrialSettings {
4285
- /**
4286
- * Defines how the subscription should behave when a trial ends.
4287
- */
4288
- end_behavior?: TrialSettings.EndBehavior;
4289
- }
4290
3323
  namespace AddInvoiceItem {
4291
3324
  interface Discount {
4292
3325
  /**
@@ -4297,10 +3330,6 @@ export declare namespace InvoiceCreatePreviewParams {
4297
3330
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4298
3331
  */
4299
3332
  discount?: string;
4300
- /**
4301
- * Details to determine how long the discount should be applied for.
4302
- */
4303
- discount_end?: Discount.DiscountEnd;
4304
3333
  /**
4305
3334
  * ID of the promotion code to create a new discount for.
4306
3335
  */
@@ -4338,38 +3367,6 @@ export declare namespace InvoiceCreatePreviewParams {
4338
3367
  */
4339
3368
  unit_amount_decimal?: Decimal;
4340
3369
  }
4341
- namespace Discount {
4342
- interface DiscountEnd {
4343
- /**
4344
- * Time span for the redeemed discount.
4345
- */
4346
- duration?: DiscountEnd.Duration;
4347
- /**
4348
- * A precise Unix timestamp for the discount to end. Must be in the future.
4349
- */
4350
- timestamp?: number;
4351
- /**
4352
- * The type of calculation made to determine when the discount ends.
4353
- */
4354
- type: DiscountEnd.Type;
4355
- }
4356
- namespace DiscountEnd {
4357
- interface Duration {
4358
- /**
4359
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4360
- */
4361
- interval: Duration.Interval;
4362
- /**
4363
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4364
- */
4365
- interval_count: number;
4366
- }
4367
- type Type = 'duration' | 'timestamp';
4368
- namespace Duration {
4369
- type Interval = 'day' | 'month' | 'week' | 'year';
4370
- }
4371
- }
4372
- }
4373
3370
  namespace Period {
4374
3371
  interface End {
4375
3372
  /**
@@ -4417,38 +3414,6 @@ export declare namespace InvoiceCreatePreviewParams {
4417
3414
  type Type = 'account' | 'self';
4418
3415
  }
4419
3416
  }
4420
- namespace Discount {
4421
- interface DiscountEnd {
4422
- /**
4423
- * Time span for the redeemed discount.
4424
- */
4425
- duration?: DiscountEnd.Duration;
4426
- /**
4427
- * A precise Unix timestamp for the discount to end. Must be in the future.
4428
- */
4429
- timestamp?: number;
4430
- /**
4431
- * The type of calculation made to determine when the discount ends.
4432
- */
4433
- type: DiscountEnd.Type;
4434
- }
4435
- namespace DiscountEnd {
4436
- interface Duration {
4437
- /**
4438
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4439
- */
4440
- interval: Duration.Interval;
4441
- /**
4442
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4443
- */
4444
- interval_count: number;
4445
- }
4446
- type Type = 'duration' | 'timestamp';
4447
- namespace Duration {
4448
- type Interval = 'day' | 'month' | 'week' | 'year';
4449
- }
4450
- }
4451
- }
4452
3417
  namespace Duration {
4453
3418
  type Interval = 'day' | 'month' | 'week' | 'year';
4454
3419
  }
@@ -4483,10 +3448,6 @@ export declare namespace InvoiceCreatePreviewParams {
4483
3448
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4484
3449
  */
4485
3450
  discount?: string;
4486
- /**
4487
- * Details to determine how long the discount should be applied for.
4488
- */
4489
- discount_end?: Discount.DiscountEnd;
4490
3451
  /**
4491
3452
  * ID of the promotion code to create a new discount for.
4492
3453
  */
@@ -4518,48 +3479,6 @@ export declare namespace InvoiceCreatePreviewParams {
4518
3479
  */
4519
3480
  unit_amount_decimal?: Decimal;
4520
3481
  }
4521
- interface Trial {
4522
- /**
4523
- * 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.
4524
- */
4525
- converts_to?: Array<string>;
4526
- /**
4527
- * Determines the type of trial for this item.
4528
- */
4529
- type: Trial.Type;
4530
- }
4531
- namespace Discount {
4532
- interface DiscountEnd {
4533
- /**
4534
- * Time span for the redeemed discount.
4535
- */
4536
- duration?: DiscountEnd.Duration;
4537
- /**
4538
- * A precise Unix timestamp for the discount to end. Must be in the future.
4539
- */
4540
- timestamp?: number;
4541
- /**
4542
- * The type of calculation made to determine when the discount ends.
4543
- */
4544
- type: DiscountEnd.Type;
4545
- }
4546
- namespace DiscountEnd {
4547
- interface Duration {
4548
- /**
4549
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4550
- */
4551
- interval: Duration.Interval;
4552
- /**
4553
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4554
- */
4555
- interval_count: number;
4556
- }
4557
- type Type = 'duration' | 'timestamp';
4558
- namespace Duration {
4559
- type Interval = 'day' | 'month' | 'week' | 'year';
4560
- }
4561
- }
4562
- }
4563
3482
  namespace PriceData {
4564
3483
  interface Recurring {
4565
3484
  /**
@@ -4576,65 +3495,6 @@ export declare namespace InvoiceCreatePreviewParams {
4576
3495
  type Interval = 'day' | 'month' | 'week' | 'year';
4577
3496
  }
4578
3497
  }
4579
- namespace Trial {
4580
- type Type = 'free' | 'paid';
4581
- }
4582
- }
4583
- namespace PauseCollection {
4584
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
4585
- }
4586
- namespace TrialSettings {
4587
- interface EndBehavior {
4588
- /**
4589
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
4590
- */
4591
- prorate_up_front?: EndBehavior.ProrateUpFront;
4592
- }
4593
- namespace EndBehavior {
4594
- type ProrateUpFront = 'defer' | 'include';
4595
- }
4596
- }
4597
- }
4598
- namespace Prebilling {
4599
- interface BillUntil {
4600
- /**
4601
- * End the prebilled period when a specified amendment ends.
4602
- */
4603
- amendment_end?: BillUntil.AmendmentEnd;
4604
- /**
4605
- * Time span for prebilling, starting from `bill_from`.
4606
- */
4607
- duration?: BillUntil.Duration;
4608
- /**
4609
- * End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
4610
- */
4611
- timestamp?: number;
4612
- /**
4613
- * Select one of several ways to pass the `bill_until` value.
4614
- */
4615
- type: BillUntil.Type;
4616
- }
4617
- namespace BillUntil {
4618
- interface AmendmentEnd {
4619
- /**
4620
- * 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.
4621
- */
4622
- index: number;
4623
- }
4624
- interface Duration {
4625
- /**
4626
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4627
- */
4628
- interval: Duration.Interval;
4629
- /**
4630
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4631
- */
4632
- interval_count: number;
4633
- }
4634
- type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp';
4635
- namespace Duration {
4636
- type Interval = 'day' | 'month' | 'week' | 'year';
4637
- }
4638
3498
  }
4639
3499
  }
4640
3500
  }
@@ -4674,10 +3534,6 @@ export declare namespace InvoiceCreatePreviewParams {
4674
3534
  * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
4675
3535
  */
4676
3536
  clear_usage?: boolean;
4677
- /**
4678
- * The trial offer to apply to this subscription item.
4679
- */
4680
- current_trial?: Item.CurrentTrial;
4681
3537
  /**
4682
3538
  * A flag that, if set to `true`, will delete the specified item.
4683
3539
  */
@@ -4687,7 +3543,7 @@ export declare namespace InvoiceCreatePreviewParams {
4687
3543
  */
4688
3544
  discounts?: Emptyable<Array<Item.Discount>>;
4689
3545
  /**
4690
- * Subscription item to update.
3546
+ * Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing).
4691
3547
  */
4692
3548
  id?: string;
4693
3549
  /**
@@ -4715,12 +3571,6 @@ export declare namespace InvoiceCreatePreviewParams {
4715
3571
  */
4716
3572
  tax_rates?: Emptyable<Array<string>>;
4717
3573
  }
4718
- interface Prebilling {
4719
- /**
4720
- * This is used to determine the number of billing cycles to prebill.
4721
- */
4722
- iterations: number;
4723
- }
4724
3574
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
4725
3575
  namespace BillingMode {
4726
3576
  interface Flexible {
@@ -4783,16 +3633,6 @@ export declare namespace InvoiceCreatePreviewParams {
4783
3633
  */
4784
3634
  usage_gte: number;
4785
3635
  }
4786
- interface CurrentTrial {
4787
- /**
4788
- * Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
4789
- */
4790
- trial_end?: number;
4791
- /**
4792
- * The ID of the trial offer to apply to the subscription item.
4793
- */
4794
- trial_offer: string;
4795
- }
4796
3636
  interface Discount {
4797
3637
  /**
4798
3638
  * ID of the coupon to create a new discount for.
@@ -4802,10 +3642,6 @@ export declare namespace InvoiceCreatePreviewParams {
4802
3642
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4803
3643
  */
4804
3644
  discount?: string;
4805
- /**
4806
- * Details to determine how long the discount should be applied for.
4807
- */
4808
- discount_end?: Discount.DiscountEnd;
4809
3645
  /**
4810
3646
  * ID of the promotion code to create a new discount for.
4811
3647
  */
@@ -4837,38 +3673,6 @@ export declare namespace InvoiceCreatePreviewParams {
4837
3673
  */
4838
3674
  unit_amount_decimal?: Decimal;
4839
3675
  }
4840
- namespace Discount {
4841
- interface DiscountEnd {
4842
- /**
4843
- * Time span for the redeemed discount.
4844
- */
4845
- duration?: DiscountEnd.Duration;
4846
- /**
4847
- * A precise Unix timestamp for the discount to end. Must be in the future.
4848
- */
4849
- timestamp?: number;
4850
- /**
4851
- * The type of calculation made to determine when the discount ends.
4852
- */
4853
- type: DiscountEnd.Type;
4854
- }
4855
- namespace DiscountEnd {
4856
- interface Duration {
4857
- /**
4858
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4859
- */
4860
- interval: Duration.Interval;
4861
- /**
4862
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4863
- */
4864
- interval_count: number;
4865
- }
4866
- type Type = 'duration' | 'timestamp';
4867
- namespace Duration {
4868
- type Interval = 'day' | 'month' | 'week' | 'year';
4869
- }
4870
- }
4871
- }
4872
3676
  namespace PriceData {
4873
3677
  interface Recurring {
4874
3678
  /**
@@ -4888,16 +3692,6 @@ export declare namespace InvoiceCreatePreviewParams {
4888
3692
  }
4889
3693
  }
4890
3694
  }
4891
- export interface InvoiceDetachPaymentParams {
4892
- /**
4893
- * Specifies which fields in the response should be expanded.
4894
- */
4895
- expand?: Array<string>;
4896
- /**
4897
- * The ID of the PaymentIntent to detach from the invoice.
4898
- */
4899
- payment_intent?: string;
4900
- }
4901
3695
  export interface InvoiceFinalizeInvoiceParams {
4902
3696
  /**
4903
3697
  * Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
@@ -5045,10 +3839,6 @@ export declare namespace InvoiceUpdateLinesParams {
5045
3839
  * ID of an existing line item on the invoice.
5046
3840
  */
5047
3841
  id: string;
5048
- /**
5049
- * The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
5050
- */
5051
- margins?: Emptyable<Array<string>>;
5052
3842
  /**
5053
3843
  * 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
5054
3844
  */
@@ -5074,7 +3864,7 @@ export declare namespace InvoiceUpdateLinesParams {
5074
3864
  */
5075
3865
  quantity_decimal?: Decimal;
5076
3866
  /**
5077
- * A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
3867
+ * A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
5078
3868
  */
5079
3869
  tax_amounts?: Emptyable<Array<Line.TaxAmount>>;
5080
3870
  /**
@@ -5092,10 +3882,6 @@ export declare namespace InvoiceUpdateLinesParams {
5092
3882
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
5093
3883
  */
5094
3884
  discount?: string;
5095
- /**
5096
- * Details to determine how long the discount should be applied for.
5097
- */
5098
- discount_end?: Discount.DiscountEnd;
5099
3885
  /**
5100
3886
  * ID of the promotion code to create a new discount for.
5101
3887
  */
@@ -5163,38 +3949,6 @@ export declare namespace InvoiceUpdateLinesParams {
5163
3949
  */
5164
3950
  taxable_amount: number;
5165
3951
  }
5166
- namespace Discount {
5167
- interface DiscountEnd {
5168
- /**
5169
- * Time span for the redeemed discount.
5170
- */
5171
- duration?: DiscountEnd.Duration;
5172
- /**
5173
- * A precise Unix timestamp for the discount to end. Must be in the future.
5174
- */
5175
- timestamp?: number;
5176
- /**
5177
- * The type of calculation made to determine when the discount ends.
5178
- */
5179
- type: DiscountEnd.Type;
5180
- }
5181
- namespace DiscountEnd {
5182
- interface Duration {
5183
- /**
5184
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5185
- */
5186
- interval: Duration.Interval;
5187
- /**
5188
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5189
- */
5190
- interval_count: number;
5191
- }
5192
- type Type = 'duration' | 'timestamp';
5193
- namespace Duration {
5194
- type Interval = 'day' | 'month' | 'week' | 'year';
5195
- }
5196
- }
5197
- }
5198
3952
  namespace PriceData {
5199
3953
  interface ProductData {
5200
3954
  /**
@@ -5217,28 +3971,12 @@ export declare namespace InvoiceUpdateLinesParams {
5217
3971
  * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
5218
3972
  */
5219
3973
  tax_code?: string;
5220
- /**
5221
- * Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
5222
- */
5223
- tax_details?: ProductData.TaxDetails;
5224
3974
  /**
5225
3975
  * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
5226
3976
  */
5227
3977
  unit_label?: string;
5228
3978
  }
5229
3979
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
5230
- namespace ProductData {
5231
- interface TaxDetails {
5232
- /**
5233
- * A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
5234
- */
5235
- performance_location?: string;
5236
- /**
5237
- * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
5238
- */
5239
- tax_code?: Emptyable<string>;
5240
- }
5241
- }
5242
3980
  }
5243
3981
  namespace TaxAmount {
5244
3982
  interface TaxRateData {
@@ -5308,10 +4046,6 @@ export interface InvoiceUpdateLineItemParams {
5308
4046
  * Specifies which fields in the response should be expanded.
5309
4047
  */
5310
4048
  expand?: Array<string>;
5311
- /**
5312
- * The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
5313
- */
5314
- margins?: Emptyable<Array<string>>;
5315
4049
  /**
5316
4050
  * 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](https://docs.stripe.com/api/invoices/line_item) line items, where any existing metadata on the invoice line is merged with the incoming data.
5317
4051
  */
@@ -5337,7 +4071,7 @@ export interface InvoiceUpdateLineItemParams {
5337
4071
  */
5338
4072
  quantity_decimal?: Decimal;
5339
4073
  /**
5340
- * A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
4074
+ * A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
5341
4075
  */
5342
4076
  tax_amounts?: Emptyable<Array<InvoiceUpdateLineItemParams.TaxAmount>>;
5343
4077
  /**
@@ -5355,10 +4089,6 @@ export declare namespace InvoiceUpdateLineItemParams {
5355
4089
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
5356
4090
  */
5357
4091
  discount?: string;
5358
- /**
5359
- * Details to determine how long the discount should be applied for.
5360
- */
5361
- discount_end?: Discount.DiscountEnd;
5362
4092
  /**
5363
4093
  * ID of the promotion code to create a new discount for.
5364
4094
  */
@@ -5426,38 +4156,6 @@ export declare namespace InvoiceUpdateLineItemParams {
5426
4156
  */
5427
4157
  taxable_amount: number;
5428
4158
  }
5429
- namespace Discount {
5430
- interface DiscountEnd {
5431
- /**
5432
- * Time span for the redeemed discount.
5433
- */
5434
- duration?: DiscountEnd.Duration;
5435
- /**
5436
- * A precise Unix timestamp for the discount to end. Must be in the future.
5437
- */
5438
- timestamp?: number;
5439
- /**
5440
- * The type of calculation made to determine when the discount ends.
5441
- */
5442
- type: DiscountEnd.Type;
5443
- }
5444
- namespace DiscountEnd {
5445
- interface Duration {
5446
- /**
5447
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5448
- */
5449
- interval: Duration.Interval;
5450
- /**
5451
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5452
- */
5453
- interval_count: number;
5454
- }
5455
- type Type = 'duration' | 'timestamp';
5456
- namespace Duration {
5457
- type Interval = 'day' | 'month' | 'week' | 'year';
5458
- }
5459
- }
5460
- }
5461
4159
  namespace PriceData {
5462
4160
  interface ProductData {
5463
4161
  /**
@@ -5480,28 +4178,12 @@ export declare namespace InvoiceUpdateLineItemParams {
5480
4178
  * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
5481
4179
  */
5482
4180
  tax_code?: string;
5483
- /**
5484
- * Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
5485
- */
5486
- tax_details?: ProductData.TaxDetails;
5487
4181
  /**
5488
4182
  * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
5489
4183
  */
5490
4184
  unit_label?: string;
5491
4185
  }
5492
4186
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
5493
- namespace ProductData {
5494
- interface TaxDetails {
5495
- /**
5496
- * A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
5497
- */
5498
- performance_location?: string;
5499
- /**
5500
- * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
5501
- */
5502
- tax_code?: Emptyable<string>;
5503
- }
5504
- }
5505
4187
  }
5506
4188
  namespace TaxAmount {
5507
4189
  interface TaxRateData {