stripe 23.1.0 → 23.2.0-alpha.2

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 (1910) hide show
  1. package/CHANGELOG.md +2269 -4845
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +69 -60
  4. package/VERSION +1 -1
  5. package/cjs/Error.d.ts +29 -0
  6. package/cjs/Error.js +54 -1
  7. package/cjs/Error.js.map +1 -1
  8. package/cjs/RequestSender.js +25 -4
  9. package/cjs/RequestSender.js.map +1 -1
  10. package/cjs/StripeEventNotificationHandler.js +226 -3
  11. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  12. package/cjs/Types.d.ts +21 -2
  13. package/cjs/Types.js.map +1 -1
  14. package/cjs/WorkloadIdentity.d.ts +99 -0
  15. package/cjs/WorkloadIdentity.js +292 -0
  16. package/cjs/WorkloadIdentity.js.map +1 -0
  17. package/cjs/apiVersion.d.ts +2 -2
  18. package/cjs/apiVersion.js +2 -2
  19. package/cjs/apiVersion.js.map +1 -1
  20. package/cjs/net/WorkloadIdentityTokenTransport.d.ts +27 -0
  21. package/cjs/net/WorkloadIdentityTokenTransport.js +53 -0
  22. package/cjs/net/WorkloadIdentityTokenTransport.js.map +1 -0
  23. package/cjs/resources/AccountLinks.d.ts +5 -1
  24. package/cjs/resources/AccountNotices.d.ts +140 -0
  25. package/cjs/resources/AccountNotices.js +29 -0
  26. package/cjs/resources/AccountNotices.js.map +1 -0
  27. package/cjs/resources/AccountSessions.d.ts +729 -8
  28. package/cjs/resources/AccountSessions.js.map +1 -1
  29. package/cjs/resources/AccountSignals.d.ts +111 -0
  30. package/cjs/resources/AccountSignals.js +4 -0
  31. package/cjs/resources/AccountSignals.js.map +1 -0
  32. package/cjs/resources/Accounts.d.ts +871 -3
  33. package/cjs/resources/Accounts.js +47 -0
  34. package/cjs/resources/Accounts.js.map +1 -1
  35. package/cjs/resources/ApplicationFees.d.ts +28 -1
  36. package/cjs/resources/Apps/Installs.d.ts +1 -1
  37. package/cjs/resources/Apps/Installs.js +1 -1
  38. package/cjs/resources/Balance.d.ts +205 -0
  39. package/cjs/resources/BalanceSettings.d.ts +26 -0
  40. package/cjs/resources/BalanceTransactions.d.ts +1 -1
  41. package/cjs/resources/BalanceTransfers.d.ts +160 -0
  42. package/cjs/resources/BalanceTransfers.js +15 -0
  43. package/cjs/resources/BalanceTransfers.js.map +1 -0
  44. package/cjs/resources/BankAccounts.d.ts +16 -2
  45. package/cjs/resources/Billing/AlertNotifications.d.ts +79 -0
  46. package/cjs/resources/Billing/AlertNotifications.js +4 -0
  47. package/cjs/resources/Billing/AlertNotifications.js.map +1 -0
  48. package/cjs/resources/Billing/AlertRecovereds.d.ts +56 -0
  49. package/cjs/resources/Billing/AlertRecovereds.js +4 -0
  50. package/cjs/resources/Billing/AlertRecovereds.js.map +1 -0
  51. package/cjs/resources/Billing/AlertTriggereds.d.ts +59 -1
  52. package/cjs/resources/Billing/Alerts.d.ts +462 -5
  53. package/cjs/resources/Billing/Alerts.js +329 -5
  54. package/cjs/resources/Billing/Alerts.js.map +1 -1
  55. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +89 -0
  56. package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
  57. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  58. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +38 -0
  59. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
  60. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  61. package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
  62. package/cjs/resources/Billing/Analytics/index.js +13 -0
  63. package/cjs/resources/Billing/Analytics/index.js.map +1 -0
  64. package/cjs/resources/Billing/CreditBalanceSummary.d.ts +136 -3
  65. package/cjs/resources/Billing/CreditBalanceSummary.js +39 -1
  66. package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
  67. package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
  68. package/cjs/resources/Billing/CreditBalanceTransactions.js +100 -1
  69. package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  70. package/cjs/resources/Billing/CreditGrants.d.ts +105 -3
  71. package/cjs/resources/Billing/CreditGrants.js +134 -5
  72. package/cjs/resources/Billing/CreditGrants.js.map +1 -1
  73. package/cjs/resources/Billing/MeterEventSummaries.d.ts +6 -0
  74. package/cjs/resources/Billing/Meters.d.ts +31 -0
  75. package/cjs/resources/Billing/index.d.ts +10 -0
  76. package/cjs/resources/Billing/index.js +2 -0
  77. package/cjs/resources/Billing/index.js.map +1 -1
  78. package/cjs/resources/Capabilities.d.ts +39 -2
  79. package/cjs/resources/Capital/FinancingOffers.d.ts +217 -0
  80. package/cjs/resources/Capital/FinancingOffers.js +30 -0
  81. package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
  82. package/cjs/resources/Capital/FinancingSummary.d.ts +123 -0
  83. package/cjs/resources/Capital/FinancingSummary.js +15 -0
  84. package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
  85. package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
  86. package/cjs/resources/Capital/FinancingTransactions.js +24 -0
  87. package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
  88. package/cjs/resources/Capital/index.d.ts +25 -0
  89. package/cjs/resources/Capital/index.js +17 -0
  90. package/cjs/resources/Capital/index.js.map +1 -0
  91. package/cjs/resources/Cards.d.ts +28 -0
  92. package/cjs/resources/Charges.d.ts +3783 -94
  93. package/cjs/resources/Charges.js.map +1 -1
  94. package/cjs/resources/Checkout/Sessions.d.ts +2287 -79
  95. package/cjs/resources/Checkout/Sessions.js +668 -12
  96. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  97. package/cjs/resources/Checkout/index.d.ts +1 -0
  98. package/cjs/resources/ConfirmationTokens.d.ts +201 -1
  99. package/cjs/resources/ConfirmationTokens.js.map +1 -1
  100. package/cjs/resources/Coupons.d.ts +128 -2
  101. package/cjs/resources/Coupons.js +41 -0
  102. package/cjs/resources/Coupons.js.map +1 -1
  103. package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
  104. package/cjs/resources/CreditNotes.d.ts +7 -1
  105. package/cjs/resources/CreditNotes.js +13 -0
  106. package/cjs/resources/CreditNotes.js.map +1 -1
  107. package/cjs/resources/Crypto/CustomerConsumerWallets.d.ts +30 -0
  108. package/cjs/resources/Crypto/CustomerConsumerWallets.js +4 -0
  109. package/cjs/resources/Crypto/CustomerConsumerWallets.js.map +1 -0
  110. package/cjs/resources/Crypto/CustomerPaymentTokens.d.ts +80 -0
  111. package/cjs/resources/Crypto/CustomerPaymentTokens.js +4 -0
  112. package/cjs/resources/Crypto/CustomerPaymentTokens.js.map +1 -0
  113. package/cjs/resources/Crypto/Customers.d.ts +111 -0
  114. package/cjs/resources/Crypto/Customers.js +31 -0
  115. package/cjs/resources/Crypto/Customers.js.map +1 -0
  116. package/cjs/resources/Crypto/DepositAddresses.d.ts +128 -0
  117. package/cjs/resources/Crypto/DepositAddresses.js +31 -0
  118. package/cjs/resources/Crypto/DepositAddresses.js.map +1 -0
  119. package/cjs/resources/Crypto/OnrampSessions.d.ts +425 -0
  120. package/cjs/resources/Crypto/OnrampSessions.js +47 -0
  121. package/cjs/resources/Crypto/OnrampSessions.js.map +1 -0
  122. package/cjs/resources/Crypto/OnrampTransactionLimits.d.ts +61 -0
  123. package/cjs/resources/Crypto/OnrampTransactionLimits.js +15 -0
  124. package/cjs/resources/Crypto/OnrampTransactionLimits.js.map +1 -0
  125. package/cjs/resources/Crypto/index.d.ts +41 -0
  126. package/cjs/resources/Crypto/index.js +19 -0
  127. package/cjs/resources/Crypto/index.js.map +1 -0
  128. package/cjs/resources/CustomerCashBalanceTransactions.d.ts +15 -0
  129. package/cjs/resources/CustomerSessions.d.ts +82 -0
  130. package/cjs/resources/CustomerSessions.js +13 -0
  131. package/cjs/resources/CustomerSessions.js.map +1 -1
  132. package/cjs/resources/CustomerTaxExemptions.d.ts +107 -0
  133. package/cjs/resources/CustomerTaxExemptions.js +4 -0
  134. package/cjs/resources/CustomerTaxExemptions.js.map +1 -0
  135. package/cjs/resources/Customers.d.ts +334 -1
  136. package/cjs/resources/Customers.js +221 -0
  137. package/cjs/resources/Customers.js.map +1 -1
  138. package/cjs/resources/DelegatedCheckout/OrderEvents.d.ts +129 -0
  139. package/cjs/resources/DelegatedCheckout/OrderEvents.js +4 -0
  140. package/cjs/resources/DelegatedCheckout/OrderEvents.js.map +1 -0
  141. package/cjs/resources/DelegatedCheckout/Orders.d.ts +159 -0
  142. package/cjs/resources/DelegatedCheckout/Orders.js +15 -0
  143. package/cjs/resources/DelegatedCheckout/Orders.js.map +1 -0
  144. package/cjs/resources/DelegatedCheckout/RequestedSessions.d.ts +1427 -0
  145. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +47 -0
  146. package/cjs/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
  147. package/cjs/resources/DelegatedCheckout/index.d.ts +25 -0
  148. package/cjs/resources/DelegatedCheckout/index.js +15 -0
  149. package/cjs/resources/DelegatedCheckout/index.js.map +1 -0
  150. package/cjs/resources/Discounts.d.ts +19 -0
  151. package/cjs/resources/Disputes.d.ts +29 -1
  152. package/cjs/resources/Disputes.js +14 -0
  153. package/cjs/resources/Disputes.js.map +1 -1
  154. package/cjs/resources/Events.d.ts +640 -3
  155. package/cjs/resources/ExternalAccounts.d.ts +212 -1
  156. package/cjs/resources/ExternalAccounts.js +44 -0
  157. package/cjs/resources/ExternalAccounts.js.map +1 -1
  158. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  159. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
  160. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  161. package/cjs/resources/FinancialConnections/Accounts.d.ts +105 -4
  162. package/cjs/resources/FinancialConnections/Accounts.js +8 -0
  163. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  164. package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
  165. package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
  166. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
  167. package/cjs/resources/FinancialConnections/Consents.d.ts +113 -0
  168. package/cjs/resources/FinancialConnections/Consents.js +21 -0
  169. package/cjs/resources/FinancialConnections/Consents.js.map +1 -0
  170. package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
  171. package/cjs/resources/FinancialConnections/Institutions.js +23 -0
  172. package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
  173. package/cjs/resources/FinancialConnections/Sessions.d.ts +134 -9
  174. package/cjs/resources/FinancialConnections/Transactions.d.ts +70 -0
  175. package/cjs/resources/FinancialConnections/index.d.ts +27 -9
  176. package/cjs/resources/FinancialConnections/index.js +6 -0
  177. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  178. package/cjs/resources/FxQuotes.d.ts +216 -0
  179. package/cjs/resources/FxQuotes.js +29 -0
  180. package/cjs/resources/FxQuotes.js.map +1 -0
  181. package/cjs/resources/GiftCardOperations.d.ts +249 -0
  182. package/cjs/resources/GiftCardOperations.js +15 -0
  183. package/cjs/resources/GiftCardOperations.js.map +1 -0
  184. package/cjs/resources/GiftCards.d.ts +188 -0
  185. package/cjs/resources/GiftCards.js +51 -0
  186. package/cjs/resources/GiftCards.js.map +1 -0
  187. package/cjs/resources/Identity/BlocklistEntries.d.ts +155 -0
  188. package/cjs/resources/Identity/BlocklistEntries.js +54 -0
  189. package/cjs/resources/Identity/BlocklistEntries.js.map +1 -0
  190. package/cjs/resources/Identity/VerificationReports.d.ts +203 -2
  191. package/cjs/resources/Identity/VerificationReports.js.map +1 -1
  192. package/cjs/resources/Identity/VerificationSessions.d.ts +45 -1
  193. package/cjs/resources/Identity/index.d.ts +18 -10
  194. package/cjs/resources/Identity/index.js +2 -0
  195. package/cjs/resources/Identity/index.js.map +1 -1
  196. package/cjs/resources/InvoiceItems.d.ts +215 -2
  197. package/cjs/resources/InvoiceItems.js +41 -0
  198. package/cjs/resources/InvoiceItems.js.map +1 -1
  199. package/cjs/resources/InvoiceLineItems.d.ts +174 -4
  200. package/cjs/resources/InvoiceRenderingTemplates.d.ts +12 -0
  201. package/cjs/resources/InvoiceRenderingTemplates.js +28 -0
  202. package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
  203. package/cjs/resources/Invoices.d.ts +2167 -73
  204. package/cjs/resources/Invoices.js +221 -0
  205. package/cjs/resources/Invoices.js.map +1 -1
  206. package/cjs/resources/Issuing/Authorizations.d.ts +821 -1
  207. package/cjs/resources/Issuing/Authorizations.js +177 -0
  208. package/cjs/resources/Issuing/Authorizations.js.map +1 -1
  209. package/cjs/resources/Issuing/Cardholders.d.ts +22 -4
  210. package/cjs/resources/Issuing/Cards.d.ts +141 -2
  211. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +654 -0
  212. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +53 -0
  213. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  214. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  215. package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
  216. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  217. package/cjs/resources/Issuing/Disputes.d.ts +246 -0
  218. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  219. package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
  220. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  221. package/cjs/resources/Issuing/Programs.d.ts +95 -0
  222. package/cjs/resources/Issuing/Programs.js +35 -0
  223. package/cjs/resources/Issuing/Programs.js.map +1 -0
  224. package/cjs/resources/Issuing/Settlements.d.ts +83 -0
  225. package/cjs/resources/Issuing/Settlements.js +4 -0
  226. package/cjs/resources/Issuing/Settlements.js.map +1 -0
  227. package/cjs/resources/Issuing/Tokens.d.ts +26 -0
  228. package/cjs/resources/Issuing/Transactions.d.ts +259 -0
  229. package/cjs/resources/Issuing/Transactions.js +48 -0
  230. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  231. package/cjs/resources/Issuing/index.d.ts +56 -22
  232. package/cjs/resources/Issuing/index.js +8 -0
  233. package/cjs/resources/Issuing/index.js.map +1 -1
  234. package/cjs/resources/LineItems.d.ts +29 -2
  235. package/cjs/resources/Mandates.d.ts +36 -2
  236. package/cjs/resources/Mandates.js +8 -0
  237. package/cjs/resources/Mandates.js.map +1 -1
  238. package/cjs/resources/Margins.d.ts +115 -0
  239. package/cjs/resources/Margins.js +35 -0
  240. package/cjs/resources/Margins.js.map +1 -0
  241. package/cjs/resources/Orchestration/PaymentAttempts.d.ts +34 -0
  242. package/cjs/resources/Orchestration/PaymentAttempts.js +15 -0
  243. package/cjs/resources/Orchestration/PaymentAttempts.js.map +1 -0
  244. package/cjs/resources/Orchestration/index.d.ts +12 -0
  245. package/cjs/resources/Orchestration/index.js +13 -0
  246. package/cjs/resources/Orchestration/index.js.map +1 -0
  247. package/cjs/resources/Orders.d.ts +4776 -0
  248. package/cjs/resources/Orders.js +457 -0
  249. package/cjs/resources/Orders.js.map +1 -0
  250. package/cjs/resources/PaymentAttemptRecords.d.ts +908 -2
  251. package/cjs/resources/PaymentAttemptRecords.js +48 -0
  252. package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
  253. package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +104 -0
  254. package/cjs/resources/PaymentIntents.d.ts +19847 -4859
  255. package/cjs/resources/PaymentIntents.js +46 -0
  256. package/cjs/resources/PaymentIntents.js.map +1 -1
  257. package/cjs/resources/PaymentLinks.d.ts +73 -12
  258. package/cjs/resources/PaymentLocationCapabilities.d.ts +124 -0
  259. package/cjs/resources/PaymentLocationCapabilities.js +29 -0
  260. package/cjs/resources/PaymentLocationCapabilities.js.map +1 -0
  261. package/cjs/resources/PaymentLocations.d.ts +178 -0
  262. package/cjs/resources/PaymentLocations.js +41 -0
  263. package/cjs/resources/PaymentLocations.js.map +1 -0
  264. package/cjs/resources/PaymentMethodBalances.d.ts +46 -0
  265. package/cjs/resources/PaymentMethodBalances.js +4 -0
  266. package/cjs/resources/PaymentMethodBalances.js.map +1 -0
  267. package/cjs/resources/PaymentMethodConfigurations.d.ts +420 -0
  268. package/cjs/resources/PaymentMethods.d.ts +423 -3
  269. package/cjs/resources/PaymentMethods.js +20 -0
  270. package/cjs/resources/PaymentMethods.js.map +1 -1
  271. package/cjs/resources/PaymentPlans.d.ts +427 -0
  272. package/cjs/resources/PaymentPlans.js +35 -0
  273. package/cjs/resources/PaymentPlans.js.map +1 -0
  274. package/cjs/resources/PaymentRecords.d.ts +906 -20
  275. package/cjs/resources/PaymentRecords.js +18 -0
  276. package/cjs/resources/PaymentRecords.js.map +1 -1
  277. package/cjs/resources/Payouts.d.ts +30 -0
  278. package/cjs/resources/Persons.d.ts +39 -2
  279. package/cjs/resources/Prices.d.ts +60 -0
  280. package/cjs/resources/Prices.js +27 -0
  281. package/cjs/resources/Prices.js.map +1 -1
  282. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  283. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
  284. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  285. package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
  286. package/cjs/resources/Privacy/RedactionJobs.js +73 -0
  287. package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
  288. package/cjs/resources/Privacy/index.d.ts +22 -0
  289. package/cjs/resources/Privacy/index.js +13 -0
  290. package/cjs/resources/Privacy/index.js.map +1 -0
  291. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  292. package/cjs/resources/Products.d.ts +156 -0
  293. package/cjs/resources/Products.js +69 -0
  294. package/cjs/resources/Products.js.map +1 -1
  295. package/cjs/resources/Profiles.d.ts +68 -0
  296. package/cjs/resources/Profiles.js +4 -0
  297. package/cjs/resources/Profiles.js.map +1 -0
  298. package/cjs/resources/PromotionCodes.d.ts +12 -0
  299. package/cjs/resources/PromotionCodes.js +27 -0
  300. package/cjs/resources/PromotionCodes.js.map +1 -1
  301. package/cjs/resources/QuoteLines.d.ts +684 -0
  302. package/cjs/resources/QuoteLines.js +4 -0
  303. package/cjs/resources/QuoteLines.js.map +1 -0
  304. package/cjs/resources/QuotePreviewInvoices.d.ts +1291 -0
  305. package/cjs/resources/QuotePreviewInvoices.js +4 -0
  306. package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
  307. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +1134 -0
  308. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
  309. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  310. package/cjs/resources/Quotes.d.ts +3548 -254
  311. package/cjs/resources/Quotes.js +1184 -16
  312. package/cjs/resources/Quotes.js.map +1 -1
  313. package/cjs/resources/Radar/AccountEvaluations.d.ts +309 -0
  314. package/cjs/resources/Radar/AccountEvaluations.js +27 -0
  315. package/cjs/resources/Radar/AccountEvaluations.js.map +1 -0
  316. package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
  317. package/cjs/resources/Radar/BillingEvaluations.js +15 -0
  318. package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
  319. package/cjs/resources/Radar/CustomerEvaluations.d.ts +245 -0
  320. package/cjs/resources/Radar/CustomerEvaluations.js +27 -0
  321. package/cjs/resources/Radar/CustomerEvaluations.js.map +1 -0
  322. package/cjs/resources/Radar/IssuingAuthorizationEvaluations.d.ts +433 -0
  323. package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js +15 -0
  324. package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
  325. package/cjs/resources/Radar/PaymentEvaluations.d.ts +234 -5
  326. package/cjs/resources/Radar/PaymentEvaluations.js.map +1 -1
  327. package/cjs/resources/Radar/Rules.d.ts +18 -0
  328. package/cjs/resources/Radar/Rules.js +4 -0
  329. package/cjs/resources/Radar/Rules.js.map +1 -0
  330. package/cjs/resources/Radar/ValueListItems.d.ts +39 -1
  331. package/cjs/resources/Radar/ValueListItems.js +13 -0
  332. package/cjs/resources/Radar/ValueListItems.js.map +1 -1
  333. package/cjs/resources/Radar/index.d.ts +44 -16
  334. package/cjs/resources/Radar/index.js +8 -0
  335. package/cjs/resources/Radar/index.js.map +1 -1
  336. package/cjs/resources/Refunds.d.ts +113 -0
  337. package/cjs/resources/Refunds.js +27 -0
  338. package/cjs/resources/Refunds.js.map +1 -1
  339. package/cjs/resources/Reporting/ReportRuns.d.ts +4 -0
  340. package/cjs/resources/Reserve/Holds.d.ts +53 -1
  341. package/cjs/resources/Reserve/Holds.js +19 -0
  342. package/cjs/resources/Reserve/Holds.js.map +1 -1
  343. package/cjs/resources/Reserve/Plans.d.ts +41 -1
  344. package/cjs/resources/Reserve/Plans.js +19 -0
  345. package/cjs/resources/Reserve/Plans.js.map +1 -1
  346. package/cjs/resources/Reserve/Releases.d.ts +41 -1
  347. package/cjs/resources/Reserve/Releases.js +19 -0
  348. package/cjs/resources/Reserve/Releases.js.map +1 -1
  349. package/cjs/resources/Reserve/index.d.ts +18 -6
  350. package/cjs/resources/Reserve/index.js +9 -0
  351. package/cjs/resources/Reserve/index.js.map +1 -1
  352. package/cjs/resources/Risk/Forms.d.ts +380 -0
  353. package/cjs/resources/Risk/Forms.js +38 -0
  354. package/cjs/resources/Risk/Forms.js.map +1 -0
  355. package/cjs/resources/Risk/index.d.ts +13 -0
  356. package/cjs/resources/Risk/index.js +13 -0
  357. package/cjs/resources/Risk/index.js.map +1 -0
  358. package/cjs/resources/RiskSignals.d.ts +10 -0
  359. package/cjs/resources/RiskSignals.js +4 -0
  360. package/cjs/resources/RiskSignals.js.map +1 -0
  361. package/cjs/resources/SetupAttempts.d.ts +39 -1
  362. package/cjs/resources/SetupAttempts.js.map +1 -1
  363. package/cjs/resources/SetupIntents.d.ts +877 -16
  364. package/cjs/resources/SetupIntents.js.map +1 -1
  365. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +442 -0
  366. package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
  367. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
  368. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +378 -0
  369. package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
  370. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
  371. package/cjs/resources/SharedPayment/index.d.ts +19 -0
  372. package/cjs/resources/SharedPayment/index.js +15 -0
  373. package/cjs/resources/SharedPayment/index.js.map +1 -0
  374. package/cjs/resources/Sources.d.ts +29 -1
  375. package/cjs/resources/SubscriptionItems.d.ts +236 -0
  376. package/cjs/resources/SubscriptionItems.js +41 -0
  377. package/cjs/resources/SubscriptionItems.js.map +1 -1
  378. package/cjs/resources/SubscriptionSchedules.d.ts +2007 -31
  379. package/cjs/resources/SubscriptionSchedules.js +61 -0
  380. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  381. package/cjs/resources/Subscriptions.d.ts +910 -14
  382. package/cjs/resources/Subscriptions.js +186 -0
  383. package/cjs/resources/Subscriptions.js.map +1 -1
  384. package/cjs/resources/Tax/CalculationLineItems.d.ts +12 -1
  385. package/cjs/resources/Tax/Calculations.d.ts +43 -1
  386. package/cjs/resources/Tax/Certificates.d.ts +107 -0
  387. package/cjs/resources/Tax/Certificates.js +35 -0
  388. package/cjs/resources/Tax/Certificates.js.map +1 -0
  389. package/cjs/resources/Tax/FormCorrections.d.ts +29 -0
  390. package/cjs/resources/Tax/FormCorrections.js +4 -0
  391. package/cjs/resources/Tax/FormCorrections.js.map +1 -0
  392. package/cjs/resources/Tax/Forms.d.ts +973 -0
  393. package/cjs/resources/Tax/Forms.js +38 -0
  394. package/cjs/resources/Tax/Forms.js.map +1 -0
  395. package/cjs/resources/Tax/Registrations.d.ts +60 -4
  396. package/cjs/resources/Tax/Registrations.js +27 -0
  397. package/cjs/resources/Tax/Registrations.js.map +1 -1
  398. package/cjs/resources/Tax/Settings.d.ts +8 -0
  399. package/cjs/resources/Tax/Settings.js +13 -0
  400. package/cjs/resources/Tax/Settings.js.map +1 -1
  401. package/cjs/resources/Tax/Transactions.d.ts +12 -0
  402. package/cjs/resources/Tax/Transactions.js +13 -0
  403. package/cjs/resources/Tax/Transactions.js.map +1 -1
  404. package/cjs/resources/Tax/index.d.ts +41 -17
  405. package/cjs/resources/Tax/index.js +4 -0
  406. package/cjs/resources/Tax/index.js.map +1 -1
  407. package/cjs/resources/TaxFunds.d.ts +174 -0
  408. package/cjs/resources/TaxFunds.js +23 -0
  409. package/cjs/resources/TaxFunds.js.map +1 -0
  410. package/cjs/resources/TaxIds.d.ts +6 -0
  411. package/cjs/resources/TaxIds.js +13 -0
  412. package/cjs/resources/TaxIds.js.map +1 -1
  413. package/cjs/resources/TaxRates.d.ts +12 -0
  414. package/cjs/resources/TaxRates.js +27 -0
  415. package/cjs/resources/TaxRates.js.map +1 -1
  416. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  417. package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
  418. package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
  419. package/cjs/resources/Terminal/Readers.d.ts +235 -2
  420. package/cjs/resources/Terminal/Readers.js +24 -0
  421. package/cjs/resources/Terminal/Readers.js.map +1 -1
  422. package/cjs/resources/Terminal/index.d.ts +9 -0
  423. package/cjs/resources/Terminal/index.js +2 -0
  424. package/cjs/resources/Terminal/index.js.map +1 -1
  425. package/cjs/resources/TestHelpers/Capital/FinancingOffers.d.ts +82 -0
  426. package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +21 -0
  427. package/cjs/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
  428. package/cjs/resources/TestHelpers/Capital/index.d.ts +8 -0
  429. package/cjs/resources/TestHelpers/Capital/index.js +13 -0
  430. package/cjs/resources/TestHelpers/Capital/index.js.map +1 -0
  431. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +165 -1
  432. package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +95 -0
  433. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +245 -0
  434. package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  435. package/cjs/resources/TestHelpers/Issuing/Disputes.d.ts +127 -0
  436. package/cjs/resources/TestHelpers/Issuing/Disputes.js +39 -0
  437. package/cjs/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
  438. package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +48 -0
  439. package/cjs/resources/TestHelpers/Issuing/Transactions.js +48 -0
  440. package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  441. package/cjs/resources/TestHelpers/Issuing/index.d.ts +2 -0
  442. package/cjs/resources/TestHelpers/Issuing/index.js +2 -0
  443. package/cjs/resources/TestHelpers/Issuing/index.js.map +1 -1
  444. package/cjs/resources/TestHelpers/PaymentIntents.d.ts +38 -0
  445. package/cjs/resources/TestHelpers/PaymentIntents.js +15 -0
  446. package/cjs/resources/TestHelpers/PaymentIntents.js.map +1 -0
  447. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +92 -0
  448. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
  449. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  450. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  451. package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
  452. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  453. package/cjs/resources/TestHelpers/Terminal/Readers.d.ts +18 -1
  454. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  455. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  456. package/cjs/resources/TestHelpers/index.d.ts +14 -6
  457. package/cjs/resources/TestHelpers/index.js +12 -6
  458. package/cjs/resources/TestHelpers/index.js.map +1 -1
  459. package/cjs/resources/Tokens.d.ts +76 -0
  460. package/cjs/resources/Transfers.d.ts +12 -0
  461. package/cjs/resources/Transfers.js.map +1 -1
  462. package/cjs/resources/TransitBalances.d.ts +25 -0
  463. package/cjs/resources/TransitBalances.js +4 -0
  464. package/cjs/resources/TransitBalances.js.map +1 -0
  465. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  466. package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
  467. package/cjs/resources/Treasury/InboundTransfers.d.ts +60 -0
  468. package/cjs/resources/Treasury/OutboundPayments.d.ts +48 -0
  469. package/cjs/resources/Treasury/OutboundTransfers.d.ts +66 -0
  470. package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
  471. package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
  472. package/cjs/resources/Treasury/TransactionEntries.js +76 -0
  473. package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
  474. package/cjs/resources/Treasury/Transactions.js +82 -0
  475. package/cjs/resources/Treasury/Transactions.js.map +1 -1
  476. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  477. package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
  478. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  479. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  480. package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
  481. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  482. package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
  483. package/cjs/resources/V2/Billing/BillSettings.js +41 -0
  484. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
  485. package/cjs/resources/V2/Billing/CadenceSpendModifiers.d.ts +87 -0
  486. package/cjs/resources/V2/Billing/CadenceSpendModifiers.js +4 -0
  487. package/cjs/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
  488. package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
  489. package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js +23 -0
  490. package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
  491. package/cjs/resources/V2/Billing/Cadences.d.ts +1022 -0
  492. package/cjs/resources/V2/Billing/Cadences.js +264 -0
  493. package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
  494. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  495. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
  496. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  497. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  498. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
  499. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  500. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  501. package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
  502. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
  503. package/cjs/resources/V2/Billing/ContractPricingLineQuantityChanges.d.ts +50 -0
  504. package/cjs/resources/V2/Billing/ContractPricingLineQuantityChanges.js +4 -0
  505. package/cjs/resources/V2/Billing/ContractPricingLineQuantityChanges.js.map +1 -0
  506. package/cjs/resources/V2/Billing/ContractTermQuantityChanges.d.ts +35 -0
  507. package/cjs/resources/V2/Billing/ContractTermQuantityChanges.js +4 -0
  508. package/cjs/resources/V2/Billing/ContractTermQuantityChanges.js.map +1 -0
  509. package/cjs/resources/V2/Billing/ContractTerms.d.ts +216 -0
  510. package/cjs/resources/V2/Billing/ContractTerms.js +4 -0
  511. package/cjs/resources/V2/Billing/ContractTerms.js.map +1 -0
  512. package/cjs/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.d.ts +23 -0
  513. package/cjs/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js +29 -0
  514. package/cjs/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js.map +1 -0
  515. package/cjs/resources/V2/Billing/Contracts/PricingLines.d.ts +8 -0
  516. package/cjs/resources/V2/Billing/Contracts/PricingLines.js +15 -0
  517. package/cjs/resources/V2/Billing/Contracts/PricingLines.js.map +1 -0
  518. package/cjs/resources/V2/Billing/Contracts/Terms/QuantityChanges.d.ts +23 -0
  519. package/cjs/resources/V2/Billing/Contracts/Terms/QuantityChanges.js +29 -0
  520. package/cjs/resources/V2/Billing/Contracts/Terms/QuantityChanges.js.map +1 -0
  521. package/cjs/resources/V2/Billing/Contracts/Terms.d.ts +46 -0
  522. package/cjs/resources/V2/Billing/Contracts/Terms.js +82 -0
  523. package/cjs/resources/V2/Billing/Contracts/Terms.js.map +1 -0
  524. package/cjs/resources/V2/Billing/Contracts.d.ts +2762 -0
  525. package/cjs/resources/V2/Billing/Contracts.js +657 -0
  526. package/cjs/resources/V2/Billing/Contracts.js.map +1 -0
  527. package/cjs/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
  528. package/cjs/resources/V2/Billing/CustomPricingUnits.js +35 -0
  529. package/cjs/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
  530. package/cjs/resources/V2/Billing/IntentActions.d.ts +609 -0
  531. package/cjs/resources/V2/Billing/IntentActions.js +4 -0
  532. package/cjs/resources/V2/Billing/IntentActions.js.map +1 -0
  533. package/cjs/resources/V2/Billing/Intents/Actions.d.ts +33 -0
  534. package/cjs/resources/V2/Billing/Intents/Actions.js +70 -0
  535. package/cjs/resources/V2/Billing/Intents/Actions.js.map +1 -0
  536. package/cjs/resources/V2/Billing/Intents.d.ts +1267 -0
  537. package/cjs/resources/V2/Billing/Intents.js +87 -0
  538. package/cjs/resources/V2/Billing/Intents.js.map +1 -0
  539. package/cjs/resources/V2/Billing/LicenseFeeVersions.d.ts +78 -0
  540. package/cjs/resources/V2/Billing/LicenseFeeVersions.js +4 -0
  541. package/cjs/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
  542. package/cjs/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
  543. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +64 -0
  544. package/cjs/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
  545. package/cjs/resources/V2/Billing/LicenseFees.d.ts +360 -0
  546. package/cjs/resources/V2/Billing/LicenseFees.js +148 -0
  547. package/cjs/resources/V2/Billing/LicenseFees.js.map +1 -0
  548. package/cjs/resources/V2/Billing/LicensedItems.d.ts +170 -0
  549. package/cjs/resources/V2/Billing/LicensedItems.js +35 -0
  550. package/cjs/resources/V2/Billing/LicensedItems.js.map +1 -0
  551. package/cjs/resources/V2/Billing/MeteredItems.d.ts +218 -0
  552. package/cjs/resources/V2/Billing/MeteredItems.js +35 -0
  553. package/cjs/resources/V2/Billing/MeteredItems.js.map +1 -0
  554. package/cjs/resources/V2/Billing/OneTimeItems.d.ts +170 -0
  555. package/cjs/resources/V2/Billing/OneTimeItems.js +35 -0
  556. package/cjs/resources/V2/Billing/OneTimeItems.js.map +1 -0
  557. package/cjs/resources/V2/Billing/PricingPlanComponents.d.ts +80 -0
  558. package/cjs/resources/V2/Billing/PricingPlanComponents.js +4 -0
  559. package/cjs/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
  560. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.d.ts +636 -0
  561. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +296 -0
  562. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
  563. package/cjs/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
  564. package/cjs/resources/V2/Billing/PricingPlanVersions.js +4 -0
  565. package/cjs/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
  566. package/cjs/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
  567. package/cjs/resources/V2/Billing/PricingPlans/Components.js +41 -0
  568. package/cjs/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
  569. package/cjs/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
  570. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +23 -0
  571. package/cjs/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
  572. package/cjs/resources/V2/Billing/PricingPlans.d.ts +169 -0
  573. package/cjs/resources/V2/Billing/PricingPlans.js +43 -0
  574. package/cjs/resources/V2/Billing/PricingPlans.js.map +1 -0
  575. package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
  576. package/cjs/resources/V2/Billing/Profiles.js +35 -0
  577. package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
  578. package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
  579. package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +4 -0
  580. package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
  581. package/cjs/resources/V2/Billing/RateCardRates.d.ts +111 -0
  582. package/cjs/resources/V2/Billing/RateCardRates.js +4 -0
  583. package/cjs/resources/V2/Billing/RateCardRates.js.map +1 -0
  584. package/cjs/resources/V2/Billing/RateCardSubscriptions.d.ts +218 -0
  585. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +41 -0
  586. package/cjs/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
  587. package/cjs/resources/V2/Billing/RateCardVersions.d.ts +22 -0
  588. package/cjs/resources/V2/Billing/RateCardVersions.js +4 -0
  589. package/cjs/resources/V2/Billing/RateCardVersions.js.map +1 -0
  590. package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
  591. package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +35 -0
  592. package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
  593. package/cjs/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
  594. package/cjs/resources/V2/Billing/RateCards/Rates.js +110 -0
  595. package/cjs/resources/V2/Billing/RateCards/Rates.js.map +1 -0
  596. package/cjs/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
  597. package/cjs/resources/V2/Billing/RateCards/Versions.js +23 -0
  598. package/cjs/resources/V2/Billing/RateCards/Versions.js.map +1 -0
  599. package/cjs/resources/V2/Billing/RateCards.d.ts +336 -0
  600. package/cjs/resources/V2/Billing/RateCards.js +76 -0
  601. package/cjs/resources/V2/Billing/RateCards.js.map +1 -0
  602. package/cjs/resources/V2/Billing/ServiceActions.d.ts +536 -0
  603. package/cjs/resources/V2/Billing/ServiceActions.js +162 -0
  604. package/cjs/resources/V2/Billing/ServiceActions.js.map +1 -0
  605. package/cjs/resources/V2/Billing/index.d.ts +181 -6
  606. package/cjs/resources/V2/Billing/index.js +32 -0
  607. package/cjs/resources/V2/Billing/index.js.map +1 -1
  608. package/cjs/resources/V2/Core/AccountEvaluations.d.ts +167 -0
  609. package/cjs/resources/V2/Core/AccountEvaluations.js +15 -0
  610. package/cjs/resources/V2/Core/AccountEvaluations.js.map +1 -0
  611. package/cjs/resources/V2/Core/AccountLinks.d.ts +138 -2
  612. package/cjs/resources/V2/Core/AccountPersons.d.ts +5 -2
  613. package/cjs/resources/V2/Core/AccountSessions.d.ts +1649 -0
  614. package/cjs/resources/V2/Core/AccountSessions.js +16 -0
  615. package/cjs/resources/V2/Core/AccountSessions.js.map +1 -0
  616. package/cjs/resources/V2/Core/AccountTokens.d.ts +242 -4
  617. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +5 -2
  618. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +10 -4
  619. package/cjs/resources/V2/Core/Accounts.d.ts +22332 -1163
  620. package/cjs/resources/V2/Core/Accounts.js +23373 -30
  621. package/cjs/resources/V2/Core/Accounts.js.map +1 -1
  622. package/cjs/resources/V2/Core/ApprovalRequests.d.ts +410 -0
  623. package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
  624. package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
  625. package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
  626. package/cjs/resources/V2/Core/BatchJobs.js +252 -0
  627. package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
  628. package/cjs/resources/V2/Core/ClaimableSandboxes.d.ts +225 -0
  629. package/cjs/resources/V2/Core/ClaimableSandboxes.js +31 -0
  630. package/cjs/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
  631. package/cjs/resources/V2/Core/ConnectionSessions.d.ts +86 -0
  632. package/cjs/resources/V2/Core/ConnectionSessions.js +21 -0
  633. package/cjs/resources/V2/Core/ConnectionSessions.js.map +1 -0
  634. package/cjs/resources/V2/Core/Events.d.ts +6062 -593
  635. package/cjs/resources/V2/Core/FeeBatches.d.ts +228 -0
  636. package/cjs/resources/V2/Core/FeeBatches.js +23 -0
  637. package/cjs/resources/V2/Core/FeeBatches.js.map +1 -0
  638. package/cjs/resources/V2/Core/FeeEntries.d.ts +196 -0
  639. package/cjs/resources/V2/Core/FeeEntries.js +23 -0
  640. package/cjs/resources/V2/Core/FeeEntries.js.map +1 -0
  641. package/cjs/resources/V2/Core/Health/AlertHistoryEntries.d.ts +426 -0
  642. package/cjs/resources/V2/Core/Health/AlertHistoryEntries.js +4 -0
  643. package/cjs/resources/V2/Core/Health/AlertHistoryEntries.js.map +1 -0
  644. package/cjs/resources/V2/Core/Health/Alerts/History.d.ts +23 -0
  645. package/cjs/resources/V2/Core/Health/Alerts/History.js +101 -0
  646. package/cjs/resources/V2/Core/Health/Alerts/History.js.map +1 -0
  647. package/cjs/resources/V2/Core/Health/Alerts.d.ts +540 -0
  648. package/cjs/resources/V2/Core/Health/Alerts.js +182 -0
  649. package/cjs/resources/V2/Core/Health/Alerts.js.map +1 -0
  650. package/cjs/resources/V2/Core/Health/index.d.ts +16 -0
  651. package/cjs/resources/V2/Core/Health/index.js +13 -0
  652. package/cjs/resources/V2/Core/Health/index.js.map +1 -0
  653. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  654. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  655. package/cjs/resources/V2/Core/Vault/NetworkTokens.d.ts +199 -0
  656. package/cjs/resources/V2/Core/Vault/NetworkTokens.js +42 -0
  657. package/cjs/resources/V2/Core/Vault/NetworkTokens.js.map +1 -0
  658. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  659. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  660. package/cjs/resources/V2/Core/Vault/index.d.ts +17 -9
  661. package/cjs/resources/V2/Core/Vault/index.js +2 -0
  662. package/cjs/resources/V2/Core/Vault/index.js.map +1 -1
  663. package/cjs/resources/V2/Core/index.d.ts +69 -14
  664. package/cjs/resources/V2/Core/index.js +20 -2
  665. package/cjs/resources/V2/Core/index.js.map +1 -1
  666. package/cjs/resources/V2/Data/Analytics/MetricQuery.d.ts +74 -0
  667. package/cjs/resources/V2/Data/Analytics/MetricQuery.js +36 -0
  668. package/cjs/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
  669. package/cjs/resources/V2/Data/Analytics/MetricQueryResults.d.ts +76 -0
  670. package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js +4 -0
  671. package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
  672. package/cjs/resources/V2/Data/Analytics/index.d.ts +12 -0
  673. package/cjs/resources/V2/Data/Analytics/index.js +13 -0
  674. package/cjs/resources/V2/Data/Analytics/index.js.map +1 -0
  675. package/cjs/resources/V2/Data/Operations.d.ts +37 -0
  676. package/cjs/resources/V2/Data/Operations.js +40 -0
  677. package/cjs/resources/V2/Data/Operations.js.map +1 -0
  678. package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
  679. package/cjs/resources/V2/Data/QueryRuns.js +51 -0
  680. package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
  681. package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
  682. package/cjs/resources/V2/Data/ReportRuns.js +53 -0
  683. package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
  684. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +176 -0
  685. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  686. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  687. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  688. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  689. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  690. package/cjs/resources/V2/Data/Reports.d.ts +140 -0
  691. package/cjs/resources/V2/Data/Reports.js +25 -0
  692. package/cjs/resources/V2/Data/Reports.js.map +1 -0
  693. package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
  694. package/cjs/resources/V2/Data/Schemas.js +23 -0
  695. package/cjs/resources/V2/Data/Schemas.js.map +1 -0
  696. package/cjs/resources/V2/Data/SearchResultLists.d.ts +348 -0
  697. package/cjs/resources/V2/Data/SearchResultLists.js +4 -0
  698. package/cjs/resources/V2/Data/SearchResultLists.js.map +1 -0
  699. package/cjs/resources/V2/Data/index.d.ts +42 -0
  700. package/cjs/resources/V2/Data/index.js +25 -0
  701. package/cjs/resources/V2/Data/index.js.map +1 -0
  702. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
  703. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js +4 -0
  704. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
  705. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
  706. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js +23 -0
  707. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
  708. package/cjs/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
  709. package/cjs/resources/V2/Extend/ObjectDefinitions.js +29 -0
  710. package/cjs/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
  711. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  712. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  713. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  714. package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
  715. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  716. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  717. package/cjs/resources/V2/Extend/index.d.ts +29 -0
  718. package/cjs/resources/V2/Extend/index.js +17 -0
  719. package/cjs/resources/V2/Extend/index.js.map +1 -0
  720. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +457 -0
  721. package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
  722. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  723. package/cjs/resources/V2/Iam/ApiKeys.d.ts +306 -0
  724. package/cjs/resources/V2/Iam/ApiKeys.js +47 -0
  725. package/cjs/resources/V2/Iam/ApiKeys.js.map +1 -0
  726. package/cjs/resources/V2/Iam/index.d.ts +23 -0
  727. package/cjs/resources/V2/Iam/index.js +15 -0
  728. package/cjs/resources/V2/Iam/index.js.map +1 -0
  729. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +44 -2
  730. package/cjs/resources/V2/MoneyManagement/CurrencyConversions.d.ts +131 -0
  731. package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +31 -0
  732. package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
  733. package/cjs/resources/V2/MoneyManagement/DebitDisputes.d.ts +173 -0
  734. package/cjs/resources/V2/MoneyManagement/DebitDisputes.js +29 -0
  735. package/cjs/resources/V2/MoneyManagement/DebitDisputes.js.map +1 -0
  736. package/cjs/resources/V2/MoneyManagement/EarnedCreditSimulations.d.ts +18 -0
  737. package/cjs/resources/V2/MoneyManagement/EarnedCreditSimulations.js +4 -0
  738. package/cjs/resources/V2/MoneyManagement/EarnedCreditSimulations.js.map +1 -0
  739. package/cjs/resources/V2/MoneyManagement/EarnedCredits.d.ts +134 -0
  740. package/cjs/resources/V2/MoneyManagement/EarnedCredits.js +23 -0
  741. package/cjs/resources/V2/MoneyManagement/EarnedCredits.js.map +1 -0
  742. package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +99 -0
  743. package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.js +4 -0
  744. package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.js.map +1 -0
  745. package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.d.ts +62 -0
  746. package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js +4 -0
  747. package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js.map +1 -0
  748. package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExports.d.ts +50 -0
  749. package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExports.js +4 -0
  750. package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExports.js.map +1 -0
  751. package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +49 -0
  752. package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.js +53 -0
  753. package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.js.map +1 -0
  754. package/cjs/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.d.ts +51 -0
  755. package/cjs/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js +22 -0
  756. package/cjs/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js.map +1 -0
  757. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +437 -4
  758. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +132 -2
  759. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  760. package/cjs/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.d.ts +14 -0
  761. package/cjs/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js +4 -0
  762. package/cjs/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js.map +1 -0
  763. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  764. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
  765. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  766. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +144 -6
  767. package/cjs/resources/V2/MoneyManagement/FundingIntents.d.ts +504 -0
  768. package/cjs/resources/V2/MoneyManagement/FundingIntents.js +53 -0
  769. package/cjs/resources/V2/MoneyManagement/FundingIntents.js.map +1 -0
  770. package/cjs/resources/V2/MoneyManagement/FundingSessions.d.ts +111 -0
  771. package/cjs/resources/V2/MoneyManagement/FundingSessions.js +15 -0
  772. package/cjs/resources/V2/MoneyManagement/FundingSessions.js.map +1 -0
  773. package/cjs/resources/V2/MoneyManagement/InboundFundings.d.ts +178 -0
  774. package/cjs/resources/V2/MoneyManagement/InboundFundings.js +23 -0
  775. package/cjs/resources/V2/MoneyManagement/InboundFundings.js.map +1 -0
  776. package/cjs/resources/V2/MoneyManagement/InboundTransferMandates.d.ts +265 -0
  777. package/cjs/resources/V2/MoneyManagement/InboundTransferMandates.js +39 -0
  778. package/cjs/resources/V2/MoneyManagement/InboundTransferMandates.js.map +1 -0
  779. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +88 -2
  780. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +374 -0
  781. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
  782. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  783. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +246 -6
  784. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
  785. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +143 -2
  786. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +434 -0
  787. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
  788. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  789. package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +18 -6
  790. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +125 -1
  791. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  792. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  793. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +344 -6
  794. package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +171 -0
  795. package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js +29 -0
  796. package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -0
  797. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +373 -0
  798. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
  799. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  800. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  801. package/cjs/resources/V2/MoneyManagement/RewardProgramEnrollments.d.ts +140 -0
  802. package/cjs/resources/V2/MoneyManagement/RewardProgramEnrollments.js +46 -0
  803. package/cjs/resources/V2/MoneyManagement/RewardProgramEnrollments.js.map +1 -0
  804. package/cjs/resources/V2/MoneyManagement/RewardProgramRules.d.ts +85 -0
  805. package/cjs/resources/V2/MoneyManagement/RewardProgramRules.js +4 -0
  806. package/cjs/resources/V2/MoneyManagement/RewardProgramRules.js.map +1 -0
  807. package/cjs/resources/V2/MoneyManagement/RewardPrograms/Rules.d.ts +205 -0
  808. package/cjs/resources/V2/MoneyManagement/RewardPrograms/Rules.js +177 -0
  809. package/cjs/resources/V2/MoneyManagement/RewardPrograms/Rules.js.map +1 -0
  810. package/cjs/resources/V2/MoneyManagement/RewardPrograms.d.ts +135 -0
  811. package/cjs/resources/V2/MoneyManagement/RewardPrograms.js +57 -0
  812. package/cjs/resources/V2/MoneyManagement/RewardPrograms.js.map +1 -0
  813. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +43 -1
  814. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +13 -0
  815. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  816. package/cjs/resources/V2/MoneyManagement/TestHelpers.d.ts +37 -0
  817. package/cjs/resources/V2/MoneyManagement/TestHelpers.js +21 -0
  818. package/cjs/resources/V2/MoneyManagement/TestHelpers.js.map +1 -0
  819. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +140 -4
  820. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +140 -4
  821. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  822. package/cjs/resources/V2/MoneyManagement/index.d.ts +175 -57
  823. package/cjs/resources/V2/MoneyManagement/index.js +28 -2
  824. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
  825. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  826. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  827. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  828. package/cjs/resources/V2/Network/index.d.ts +13 -0
  829. package/cjs/resources/V2/Network/index.js +13 -0
  830. package/cjs/resources/V2/Network/index.js.map +1 -0
  831. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  832. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  833. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  834. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  835. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  836. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  837. package/cjs/resources/V2/Payments/OffSessionPayments.d.ts +736 -0
  838. package/cjs/resources/V2/Payments/OffSessionPayments.js +47 -0
  839. package/cjs/resources/V2/Payments/OffSessionPayments.js.map +1 -0
  840. package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +73 -0
  841. package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js +4 -0
  842. package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
  843. package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
  844. package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +35 -0
  845. package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
  846. package/cjs/resources/V2/Payments/SettlementAllocationIntents.d.ts +212 -0
  847. package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +53 -0
  848. package/cjs/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
  849. package/cjs/resources/V2/Payments/index.d.ts +30 -0
  850. package/cjs/resources/V2/Payments/index.js +15 -0
  851. package/cjs/resources/V2/Payments/index.js.map +1 -0
  852. package/cjs/resources/V2/Provisioning/Catalog/Providers.d.ts +33 -0
  853. package/cjs/resources/V2/Provisioning/Catalog/Providers.js +17 -0
  854. package/cjs/resources/V2/Provisioning/Catalog/Providers.js.map +1 -0
  855. package/cjs/resources/V2/Provisioning/Catalog/Services.d.ts +37 -0
  856. package/cjs/resources/V2/Provisioning/Catalog/Services.js +17 -0
  857. package/cjs/resources/V2/Provisioning/Catalog/Services.js.map +1 -0
  858. package/cjs/resources/V2/Provisioning/Catalog/index.d.ts +10 -0
  859. package/cjs/resources/V2/Provisioning/Catalog/index.js +15 -0
  860. package/cjs/resources/V2/Provisioning/Catalog/index.js.map +1 -0
  861. package/cjs/resources/V2/Provisioning/Eligibility.d.ts +33 -0
  862. package/cjs/resources/V2/Provisioning/Eligibility.js +16 -0
  863. package/cjs/resources/V2/Provisioning/Eligibility.js.map +1 -0
  864. package/cjs/resources/V2/Provisioning/PaymentMethodRequests.d.ts +79 -0
  865. package/cjs/resources/V2/Provisioning/PaymentMethodRequests.js +25 -0
  866. package/cjs/resources/V2/Provisioning/PaymentMethodRequests.js.map +1 -0
  867. package/cjs/resources/V2/Provisioning/PaymentProfile.d.ts +139 -0
  868. package/cjs/resources/V2/Provisioning/PaymentProfile.js +74 -0
  869. package/cjs/resources/V2/Provisioning/PaymentProfile.js.map +1 -0
  870. package/cjs/resources/V2/Provisioning/Projects.d.ts +79 -0
  871. package/cjs/resources/V2/Provisioning/Projects.js +15 -0
  872. package/cjs/resources/V2/Provisioning/Projects.js.map +1 -0
  873. package/cjs/resources/V2/Provisioning/ProviderConnectionRequests.d.ts +145 -0
  874. package/cjs/resources/V2/Provisioning/ProviderConnectionRequests.js +27 -0
  875. package/cjs/resources/V2/Provisioning/ProviderConnectionRequests.js.map +1 -0
  876. package/cjs/resources/V2/Provisioning/ProviderConnections.d.ts +115 -0
  877. package/cjs/resources/V2/Provisioning/ProviderConnections.js +23 -0
  878. package/cjs/resources/V2/Provisioning/ProviderConnections.js.map +1 -0
  879. package/cjs/resources/V2/Provisioning/ProviderServiceDetails.d.ts +243 -0
  880. package/cjs/resources/V2/Provisioning/ProviderServiceDetails.js +4 -0
  881. package/cjs/resources/V2/Provisioning/ProviderServiceDetails.js.map +1 -0
  882. package/cjs/resources/V2/Provisioning/Providers.d.ts +67 -0
  883. package/cjs/resources/V2/Provisioning/Providers.js +4 -0
  884. package/cjs/resources/V2/Provisioning/Providers.js.map +1 -0
  885. package/cjs/resources/V2/Provisioning/ResourceAccessConfigurations.d.ts +28 -0
  886. package/cjs/resources/V2/Provisioning/ResourceAccessConfigurations.js +4 -0
  887. package/cjs/resources/V2/Provisioning/ResourceAccessConfigurations.js.map +1 -0
  888. package/cjs/resources/V2/Provisioning/Resources.d.ts +287 -0
  889. package/cjs/resources/V2/Provisioning/Resources.js +66 -0
  890. package/cjs/resources/V2/Provisioning/Resources.js.map +1 -0
  891. package/cjs/resources/V2/Provisioning/index.d.ts +66 -0
  892. package/cjs/resources/V2/Provisioning/index.js +27 -0
  893. package/cjs/resources/V2/Provisioning/index.js.map +1 -0
  894. package/cjs/resources/V2/Reporting/ReportRuns.d.ts +195 -0
  895. package/cjs/resources/V2/Reporting/ReportRuns.js +50 -0
  896. package/cjs/resources/V2/Reporting/ReportRuns.js.map +1 -0
  897. package/cjs/resources/V2/Reporting/Reports.d.ts +106 -0
  898. package/cjs/resources/V2/Reporting/Reports.js +17 -0
  899. package/cjs/resources/V2/Reporting/Reports.js.map +1 -0
  900. package/cjs/resources/V2/Reporting/index.d.ts +18 -0
  901. package/cjs/resources/V2/Reporting/index.js +15 -0
  902. package/cjs/resources/V2/Reporting/index.js.map +1 -0
  903. package/cjs/resources/V2/Risk/Forms.d.ts +253 -0
  904. package/cjs/resources/V2/Risk/Forms.js +21 -0
  905. package/cjs/resources/V2/Risk/Forms.js.map +1 -0
  906. package/cjs/resources/V2/Risk/index.d.ts +13 -0
  907. package/cjs/resources/V2/Risk/index.js +13 -0
  908. package/cjs/resources/V2/Risk/index.js.map +1 -0
  909. package/cjs/resources/V2/Signals/AccountActivities.d.ts +747 -0
  910. package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
  911. package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
  912. package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +516 -0
  913. package/cjs/resources/V2/Signals/AccountEvaluations.js +67 -0
  914. package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  915. package/cjs/resources/V2/Signals/AccountSignals.d.ts +361 -0
  916. package/cjs/resources/V2/Signals/AccountSignals.js +118 -0
  917. package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
  918. package/cjs/resources/V2/Signals/PaymentRetryEvaluations.d.ts +116 -0
  919. package/cjs/resources/V2/Signals/PaymentRetryEvaluations.js +38 -0
  920. package/cjs/resources/V2/Signals/PaymentRetryEvaluations.js.map +1 -0
  921. package/cjs/resources/V2/Signals/PaymentRetrySignals.d.ts +63 -0
  922. package/cjs/resources/V2/Signals/PaymentRetrySignals.js +15 -0
  923. package/cjs/resources/V2/Signals/PaymentRetrySignals.js.map +1 -0
  924. package/cjs/resources/V2/Signals/index.d.ts +39 -0
  925. package/cjs/resources/V2/Signals/index.js +21 -0
  926. package/cjs/resources/V2/Signals/index.js.map +1 -0
  927. package/cjs/resources/V2/Tax/IntegrationConfigurations.d.ts +116 -0
  928. package/cjs/resources/V2/Tax/IntegrationConfigurations.js +21 -0
  929. package/cjs/resources/V2/Tax/IntegrationConfigurations.js.map +1 -0
  930. package/cjs/resources/V2/Tax/ManualRules.d.ts +331 -0
  931. package/cjs/resources/V2/Tax/ManualRules.js +193 -0
  932. package/cjs/resources/V2/Tax/ManualRules.js.map +1 -0
  933. package/cjs/resources/V2/Tax/Operations.d.ts +43 -0
  934. package/cjs/resources/V2/Tax/Operations.js +15 -0
  935. package/cjs/resources/V2/Tax/Operations.js.map +1 -0
  936. package/cjs/resources/V2/Tax/OperationsResolveAddressResults.d.ts +70 -0
  937. package/cjs/resources/V2/Tax/OperationsResolveAddressResults.js +4 -0
  938. package/cjs/resources/V2/Tax/OperationsResolveAddressResults.js.map +1 -0
  939. package/cjs/resources/V2/Tax/index.d.ts +27 -0
  940. package/cjs/resources/V2/Tax/index.js +17 -0
  941. package/cjs/resources/V2/Tax/index.js.map +1 -0
  942. package/cjs/resources/V2/index.d.ts +33 -0
  943. package/cjs/resources/V2/index.js +26 -4
  944. package/cjs/resources/V2/index.js.map +1 -1
  945. package/cjs/resources/WebhookEndpoints.d.ts +2 -2
  946. package/cjs/resources.d.ts +20 -0
  947. package/cjs/resources.js +313 -21
  948. package/cjs/resources.js.map +1 -1
  949. package/cjs/stripe.cjs.node.d.ts +20042 -2747
  950. package/cjs/stripe.cjs.node.js.map +1 -1
  951. package/cjs/stripe.core.d.ts +170 -56
  952. package/cjs/stripe.core.js +156 -45
  953. package/cjs/stripe.core.js.map +1 -1
  954. package/esm/Error.d.ts +29 -0
  955. package/esm/Error.js +47 -0
  956. package/esm/Error.js.map +1 -1
  957. package/esm/RequestSender.js +26 -5
  958. package/esm/RequestSender.js.map +1 -1
  959. package/esm/StripeEventNotificationHandler.js +226 -3
  960. package/esm/StripeEventNotificationHandler.js.map +1 -1
  961. package/esm/Types.d.ts +21 -2
  962. package/esm/Types.js.map +1 -1
  963. package/esm/WorkloadIdentity.d.ts +99 -0
  964. package/esm/WorkloadIdentity.js +282 -0
  965. package/esm/WorkloadIdentity.js.map +1 -0
  966. package/esm/apiVersion.d.ts +2 -2
  967. package/esm/apiVersion.js +2 -2
  968. package/esm/apiVersion.js.map +1 -1
  969. package/esm/net/WorkloadIdentityTokenTransport.d.ts +27 -0
  970. package/esm/net/WorkloadIdentityTokenTransport.js +49 -0
  971. package/esm/net/WorkloadIdentityTokenTransport.js.map +1 -0
  972. package/esm/resources/AccountLinks.d.ts +5 -1
  973. package/esm/resources/AccountNotices.d.ts +140 -0
  974. package/esm/resources/AccountNotices.js +25 -0
  975. package/esm/resources/AccountNotices.js.map +1 -0
  976. package/esm/resources/AccountSessions.d.ts +729 -8
  977. package/esm/resources/AccountSessions.js.map +1 -1
  978. package/esm/resources/AccountSignals.d.ts +111 -0
  979. package/esm/resources/AccountSignals.js +3 -0
  980. package/esm/resources/AccountSignals.js.map +1 -0
  981. package/esm/resources/Accounts.d.ts +871 -3
  982. package/esm/resources/Accounts.js +47 -0
  983. package/esm/resources/Accounts.js.map +1 -1
  984. package/esm/resources/ApplicationFees.d.ts +28 -1
  985. package/esm/resources/Apps/Installs.d.ts +1 -1
  986. package/esm/resources/Apps/Installs.js +1 -1
  987. package/esm/resources/Balance.d.ts +205 -0
  988. package/esm/resources/BalanceSettings.d.ts +26 -0
  989. package/esm/resources/BalanceTransactions.d.ts +1 -1
  990. package/esm/resources/BalanceTransfers.d.ts +160 -0
  991. package/esm/resources/BalanceTransfers.js +11 -0
  992. package/esm/resources/BalanceTransfers.js.map +1 -0
  993. package/esm/resources/BankAccounts.d.ts +16 -2
  994. package/esm/resources/Billing/AlertNotifications.d.ts +79 -0
  995. package/esm/resources/Billing/AlertNotifications.js +3 -0
  996. package/esm/resources/Billing/AlertNotifications.js.map +1 -0
  997. package/esm/resources/Billing/AlertRecovereds.d.ts +56 -0
  998. package/esm/resources/Billing/AlertRecovereds.js +3 -0
  999. package/esm/resources/Billing/AlertRecovereds.js.map +1 -0
  1000. package/esm/resources/Billing/AlertTriggereds.d.ts +59 -1
  1001. package/esm/resources/Billing/Alerts.d.ts +462 -5
  1002. package/esm/resources/Billing/Alerts.js +329 -5
  1003. package/esm/resources/Billing/Alerts.js.map +1 -1
  1004. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +89 -0
  1005. package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
  1006. package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  1007. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +38 -0
  1008. package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
  1009. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  1010. package/esm/resources/Billing/Analytics/index.d.ts +15 -0
  1011. package/esm/resources/Billing/Analytics/index.js +9 -0
  1012. package/esm/resources/Billing/Analytics/index.js.map +1 -0
  1013. package/esm/resources/Billing/CreditBalanceSummary.d.ts +136 -3
  1014. package/esm/resources/Billing/CreditBalanceSummary.js +39 -1
  1015. package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
  1016. package/esm/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
  1017. package/esm/resources/Billing/CreditBalanceTransactions.js +100 -1
  1018. package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  1019. package/esm/resources/Billing/CreditGrants.d.ts +105 -3
  1020. package/esm/resources/Billing/CreditGrants.js +134 -5
  1021. package/esm/resources/Billing/CreditGrants.js.map +1 -1
  1022. package/esm/resources/Billing/MeterEventSummaries.d.ts +6 -0
  1023. package/esm/resources/Billing/Meters.d.ts +31 -0
  1024. package/esm/resources/Billing/index.d.ts +10 -0
  1025. package/esm/resources/Billing/index.js +2 -0
  1026. package/esm/resources/Billing/index.js.map +1 -1
  1027. package/esm/resources/Capabilities.d.ts +39 -2
  1028. package/esm/resources/Capital/FinancingOffers.d.ts +217 -0
  1029. package/esm/resources/Capital/FinancingOffers.js +26 -0
  1030. package/esm/resources/Capital/FinancingOffers.js.map +1 -0
  1031. package/esm/resources/Capital/FinancingSummary.d.ts +123 -0
  1032. package/esm/resources/Capital/FinancingSummary.js +11 -0
  1033. package/esm/resources/Capital/FinancingSummary.js.map +1 -0
  1034. package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
  1035. package/esm/resources/Capital/FinancingTransactions.js +20 -0
  1036. package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
  1037. package/esm/resources/Capital/index.d.ts +25 -0
  1038. package/esm/resources/Capital/index.js +13 -0
  1039. package/esm/resources/Capital/index.js.map +1 -0
  1040. package/esm/resources/Cards.d.ts +28 -0
  1041. package/esm/resources/Charges.d.ts +3783 -94
  1042. package/esm/resources/Charges.js.map +1 -1
  1043. package/esm/resources/Checkout/Sessions.d.ts +2287 -79
  1044. package/esm/resources/Checkout/Sessions.js +668 -12
  1045. package/esm/resources/Checkout/Sessions.js.map +1 -1
  1046. package/esm/resources/Checkout/index.d.ts +1 -0
  1047. package/esm/resources/ConfirmationTokens.d.ts +201 -1
  1048. package/esm/resources/ConfirmationTokens.js.map +1 -1
  1049. package/esm/resources/Coupons.d.ts +128 -2
  1050. package/esm/resources/Coupons.js +41 -0
  1051. package/esm/resources/Coupons.js.map +1 -1
  1052. package/esm/resources/CreditNoteLineItems.d.ts +15 -1
  1053. package/esm/resources/CreditNotes.d.ts +7 -1
  1054. package/esm/resources/CreditNotes.js +13 -0
  1055. package/esm/resources/CreditNotes.js.map +1 -1
  1056. package/esm/resources/Crypto/CustomerConsumerWallets.d.ts +30 -0
  1057. package/esm/resources/Crypto/CustomerConsumerWallets.js +3 -0
  1058. package/esm/resources/Crypto/CustomerConsumerWallets.js.map +1 -0
  1059. package/esm/resources/Crypto/CustomerPaymentTokens.d.ts +80 -0
  1060. package/esm/resources/Crypto/CustomerPaymentTokens.js +3 -0
  1061. package/esm/resources/Crypto/CustomerPaymentTokens.js.map +1 -0
  1062. package/esm/resources/Crypto/Customers.d.ts +111 -0
  1063. package/esm/resources/Crypto/Customers.js +27 -0
  1064. package/esm/resources/Crypto/Customers.js.map +1 -0
  1065. package/esm/resources/Crypto/DepositAddresses.d.ts +128 -0
  1066. package/esm/resources/Crypto/DepositAddresses.js +27 -0
  1067. package/esm/resources/Crypto/DepositAddresses.js.map +1 -0
  1068. package/esm/resources/Crypto/OnrampSessions.d.ts +425 -0
  1069. package/esm/resources/Crypto/OnrampSessions.js +43 -0
  1070. package/esm/resources/Crypto/OnrampSessions.js.map +1 -0
  1071. package/esm/resources/Crypto/OnrampTransactionLimits.d.ts +61 -0
  1072. package/esm/resources/Crypto/OnrampTransactionLimits.js +11 -0
  1073. package/esm/resources/Crypto/OnrampTransactionLimits.js.map +1 -0
  1074. package/esm/resources/Crypto/index.d.ts +41 -0
  1075. package/esm/resources/Crypto/index.js +15 -0
  1076. package/esm/resources/Crypto/index.js.map +1 -0
  1077. package/esm/resources/CustomerCashBalanceTransactions.d.ts +15 -0
  1078. package/esm/resources/CustomerSessions.d.ts +82 -0
  1079. package/esm/resources/CustomerSessions.js +13 -0
  1080. package/esm/resources/CustomerSessions.js.map +1 -1
  1081. package/esm/resources/CustomerTaxExemptions.d.ts +107 -0
  1082. package/esm/resources/CustomerTaxExemptions.js +3 -0
  1083. package/esm/resources/CustomerTaxExemptions.js.map +1 -0
  1084. package/esm/resources/Customers.d.ts +334 -1
  1085. package/esm/resources/Customers.js +221 -0
  1086. package/esm/resources/Customers.js.map +1 -1
  1087. package/esm/resources/DelegatedCheckout/OrderEvents.d.ts +129 -0
  1088. package/esm/resources/DelegatedCheckout/OrderEvents.js +3 -0
  1089. package/esm/resources/DelegatedCheckout/OrderEvents.js.map +1 -0
  1090. package/esm/resources/DelegatedCheckout/Orders.d.ts +159 -0
  1091. package/esm/resources/DelegatedCheckout/Orders.js +11 -0
  1092. package/esm/resources/DelegatedCheckout/Orders.js.map +1 -0
  1093. package/esm/resources/DelegatedCheckout/RequestedSessions.d.ts +1427 -0
  1094. package/esm/resources/DelegatedCheckout/RequestedSessions.js +43 -0
  1095. package/esm/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
  1096. package/esm/resources/DelegatedCheckout/index.d.ts +25 -0
  1097. package/esm/resources/DelegatedCheckout/index.js +11 -0
  1098. package/esm/resources/DelegatedCheckout/index.js.map +1 -0
  1099. package/esm/resources/Discounts.d.ts +19 -0
  1100. package/esm/resources/Disputes.d.ts +29 -1
  1101. package/esm/resources/Disputes.js +14 -0
  1102. package/esm/resources/Disputes.js.map +1 -1
  1103. package/esm/resources/Events.d.ts +640 -3
  1104. package/esm/resources/ExternalAccounts.d.ts +212 -1
  1105. package/esm/resources/ExternalAccounts.js +42 -1
  1106. package/esm/resources/ExternalAccounts.js.map +1 -1
  1107. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  1108. package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
  1109. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  1110. package/esm/resources/FinancialConnections/Accounts.d.ts +105 -4
  1111. package/esm/resources/FinancialConnections/Accounts.js +8 -0
  1112. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  1113. package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
  1114. package/esm/resources/FinancialConnections/Authorizations.js +9 -1
  1115. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
  1116. package/esm/resources/FinancialConnections/Consents.d.ts +113 -0
  1117. package/esm/resources/FinancialConnections/Consents.js +17 -0
  1118. package/esm/resources/FinancialConnections/Consents.js.map +1 -0
  1119. package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
  1120. package/esm/resources/FinancialConnections/Institutions.js +19 -0
  1121. package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
  1122. package/esm/resources/FinancialConnections/Sessions.d.ts +134 -9
  1123. package/esm/resources/FinancialConnections/Transactions.d.ts +70 -0
  1124. package/esm/resources/FinancialConnections/index.d.ts +27 -9
  1125. package/esm/resources/FinancialConnections/index.js +6 -0
  1126. package/esm/resources/FinancialConnections/index.js.map +1 -1
  1127. package/esm/resources/FxQuotes.d.ts +216 -0
  1128. package/esm/resources/FxQuotes.js +25 -0
  1129. package/esm/resources/FxQuotes.js.map +1 -0
  1130. package/esm/resources/GiftCardOperations.d.ts +249 -0
  1131. package/esm/resources/GiftCardOperations.js +11 -0
  1132. package/esm/resources/GiftCardOperations.js.map +1 -0
  1133. package/esm/resources/GiftCards.d.ts +188 -0
  1134. package/esm/resources/GiftCards.js +47 -0
  1135. package/esm/resources/GiftCards.js.map +1 -0
  1136. package/esm/resources/Identity/BlocklistEntries.d.ts +155 -0
  1137. package/esm/resources/Identity/BlocklistEntries.js +50 -0
  1138. package/esm/resources/Identity/BlocklistEntries.js.map +1 -0
  1139. package/esm/resources/Identity/VerificationReports.d.ts +203 -2
  1140. package/esm/resources/Identity/VerificationReports.js.map +1 -1
  1141. package/esm/resources/Identity/VerificationSessions.d.ts +45 -1
  1142. package/esm/resources/Identity/index.d.ts +18 -10
  1143. package/esm/resources/Identity/index.js +2 -0
  1144. package/esm/resources/Identity/index.js.map +1 -1
  1145. package/esm/resources/InvoiceItems.d.ts +215 -2
  1146. package/esm/resources/InvoiceItems.js +41 -0
  1147. package/esm/resources/InvoiceItems.js.map +1 -1
  1148. package/esm/resources/InvoiceLineItems.d.ts +174 -4
  1149. package/esm/resources/InvoiceRenderingTemplates.d.ts +12 -0
  1150. package/esm/resources/InvoiceRenderingTemplates.js +28 -0
  1151. package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
  1152. package/esm/resources/Invoices.d.ts +2167 -73
  1153. package/esm/resources/Invoices.js +221 -0
  1154. package/esm/resources/Invoices.js.map +1 -1
  1155. package/esm/resources/Issuing/Authorizations.d.ts +821 -1
  1156. package/esm/resources/Issuing/Authorizations.js +177 -0
  1157. package/esm/resources/Issuing/Authorizations.js.map +1 -1
  1158. package/esm/resources/Issuing/Cardholders.d.ts +22 -4
  1159. package/esm/resources/Issuing/Cards.d.ts +141 -2
  1160. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +654 -0
  1161. package/esm/resources/Issuing/CreditUnderwritingRecords.js +49 -0
  1162. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  1163. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  1164. package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
  1165. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  1166. package/esm/resources/Issuing/Disputes.d.ts +246 -0
  1167. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  1168. package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
  1169. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  1170. package/esm/resources/Issuing/Programs.d.ts +95 -0
  1171. package/esm/resources/Issuing/Programs.js +31 -0
  1172. package/esm/resources/Issuing/Programs.js.map +1 -0
  1173. package/esm/resources/Issuing/Settlements.d.ts +83 -0
  1174. package/esm/resources/Issuing/Settlements.js +3 -0
  1175. package/esm/resources/Issuing/Settlements.js.map +1 -0
  1176. package/esm/resources/Issuing/Tokens.d.ts +26 -0
  1177. package/esm/resources/Issuing/Transactions.d.ts +259 -0
  1178. package/esm/resources/Issuing/Transactions.js +48 -0
  1179. package/esm/resources/Issuing/Transactions.js.map +1 -1
  1180. package/esm/resources/Issuing/index.d.ts +56 -22
  1181. package/esm/resources/Issuing/index.js +8 -0
  1182. package/esm/resources/Issuing/index.js.map +1 -1
  1183. package/esm/resources/LineItems.d.ts +29 -2
  1184. package/esm/resources/Mandates.d.ts +36 -2
  1185. package/esm/resources/Mandates.js +8 -0
  1186. package/esm/resources/Mandates.js.map +1 -1
  1187. package/esm/resources/Margins.d.ts +115 -0
  1188. package/esm/resources/Margins.js +31 -0
  1189. package/esm/resources/Margins.js.map +1 -0
  1190. package/esm/resources/Orchestration/PaymentAttempts.d.ts +34 -0
  1191. package/esm/resources/Orchestration/PaymentAttempts.js +11 -0
  1192. package/esm/resources/Orchestration/PaymentAttempts.js.map +1 -0
  1193. package/esm/resources/Orchestration/index.d.ts +12 -0
  1194. package/esm/resources/Orchestration/index.js +9 -0
  1195. package/esm/resources/Orchestration/index.js.map +1 -0
  1196. package/esm/resources/Orders.d.ts +4776 -0
  1197. package/esm/resources/Orders.js +453 -0
  1198. package/esm/resources/Orders.js.map +1 -0
  1199. package/esm/resources/PaymentAttemptRecords.d.ts +908 -2
  1200. package/esm/resources/PaymentAttemptRecords.js +48 -0
  1201. package/esm/resources/PaymentAttemptRecords.js.map +1 -1
  1202. package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +104 -0
  1203. package/esm/resources/PaymentIntents.d.ts +19847 -4859
  1204. package/esm/resources/PaymentIntents.js +46 -0
  1205. package/esm/resources/PaymentIntents.js.map +1 -1
  1206. package/esm/resources/PaymentLinks.d.ts +73 -12
  1207. package/esm/resources/PaymentLocationCapabilities.d.ts +124 -0
  1208. package/esm/resources/PaymentLocationCapabilities.js +25 -0
  1209. package/esm/resources/PaymentLocationCapabilities.js.map +1 -0
  1210. package/esm/resources/PaymentLocations.d.ts +178 -0
  1211. package/esm/resources/PaymentLocations.js +37 -0
  1212. package/esm/resources/PaymentLocations.js.map +1 -0
  1213. package/esm/resources/PaymentMethodBalances.d.ts +46 -0
  1214. package/esm/resources/PaymentMethodBalances.js +3 -0
  1215. package/esm/resources/PaymentMethodBalances.js.map +1 -0
  1216. package/esm/resources/PaymentMethodConfigurations.d.ts +420 -0
  1217. package/esm/resources/PaymentMethods.d.ts +423 -3
  1218. package/esm/resources/PaymentMethods.js +20 -0
  1219. package/esm/resources/PaymentMethods.js.map +1 -1
  1220. package/esm/resources/PaymentPlans.d.ts +427 -0
  1221. package/esm/resources/PaymentPlans.js +31 -0
  1222. package/esm/resources/PaymentPlans.js.map +1 -0
  1223. package/esm/resources/PaymentRecords.d.ts +906 -20
  1224. package/esm/resources/PaymentRecords.js +18 -0
  1225. package/esm/resources/PaymentRecords.js.map +1 -1
  1226. package/esm/resources/Payouts.d.ts +30 -0
  1227. package/esm/resources/Persons.d.ts +39 -2
  1228. package/esm/resources/Prices.d.ts +60 -0
  1229. package/esm/resources/Prices.js +27 -0
  1230. package/esm/resources/Prices.js.map +1 -1
  1231. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  1232. package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
  1233. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  1234. package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
  1235. package/esm/resources/Privacy/RedactionJobs.js +69 -0
  1236. package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
  1237. package/esm/resources/Privacy/index.d.ts +22 -0
  1238. package/esm/resources/Privacy/index.js +9 -0
  1239. package/esm/resources/Privacy/index.js.map +1 -0
  1240. package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  1241. package/esm/resources/Products.d.ts +156 -0
  1242. package/esm/resources/Products.js +69 -0
  1243. package/esm/resources/Products.js.map +1 -1
  1244. package/esm/resources/Profiles.d.ts +68 -0
  1245. package/esm/resources/Profiles.js +3 -0
  1246. package/esm/resources/Profiles.js.map +1 -0
  1247. package/esm/resources/PromotionCodes.d.ts +12 -0
  1248. package/esm/resources/PromotionCodes.js +27 -0
  1249. package/esm/resources/PromotionCodes.js.map +1 -1
  1250. package/esm/resources/QuoteLines.d.ts +684 -0
  1251. package/esm/resources/QuoteLines.js +3 -0
  1252. package/esm/resources/QuoteLines.js.map +1 -0
  1253. package/esm/resources/QuotePreviewInvoices.d.ts +1291 -0
  1254. package/esm/resources/QuotePreviewInvoices.js +3 -0
  1255. package/esm/resources/QuotePreviewInvoices.js.map +1 -0
  1256. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +1134 -0
  1257. package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
  1258. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  1259. package/esm/resources/Quotes.d.ts +3548 -254
  1260. package/esm/resources/Quotes.js +1184 -16
  1261. package/esm/resources/Quotes.js.map +1 -1
  1262. package/esm/resources/Radar/AccountEvaluations.d.ts +309 -0
  1263. package/esm/resources/Radar/AccountEvaluations.js +23 -0
  1264. package/esm/resources/Radar/AccountEvaluations.js.map +1 -0
  1265. package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
  1266. package/esm/resources/Radar/BillingEvaluations.js +11 -0
  1267. package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
  1268. package/esm/resources/Radar/CustomerEvaluations.d.ts +245 -0
  1269. package/esm/resources/Radar/CustomerEvaluations.js +23 -0
  1270. package/esm/resources/Radar/CustomerEvaluations.js.map +1 -0
  1271. package/esm/resources/Radar/IssuingAuthorizationEvaluations.d.ts +433 -0
  1272. package/esm/resources/Radar/IssuingAuthorizationEvaluations.js +11 -0
  1273. package/esm/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
  1274. package/esm/resources/Radar/PaymentEvaluations.d.ts +234 -5
  1275. package/esm/resources/Radar/PaymentEvaluations.js.map +1 -1
  1276. package/esm/resources/Radar/Rules.d.ts +18 -0
  1277. package/esm/resources/Radar/Rules.js +3 -0
  1278. package/esm/resources/Radar/Rules.js.map +1 -0
  1279. package/esm/resources/Radar/ValueListItems.d.ts +39 -1
  1280. package/esm/resources/Radar/ValueListItems.js +13 -0
  1281. package/esm/resources/Radar/ValueListItems.js.map +1 -1
  1282. package/esm/resources/Radar/index.d.ts +44 -16
  1283. package/esm/resources/Radar/index.js +8 -0
  1284. package/esm/resources/Radar/index.js.map +1 -1
  1285. package/esm/resources/Refunds.d.ts +113 -0
  1286. package/esm/resources/Refunds.js +27 -0
  1287. package/esm/resources/Refunds.js.map +1 -1
  1288. package/esm/resources/Reporting/ReportRuns.d.ts +4 -0
  1289. package/esm/resources/Reserve/Holds.d.ts +53 -1
  1290. package/esm/resources/Reserve/Holds.js +17 -1
  1291. package/esm/resources/Reserve/Holds.js.map +1 -1
  1292. package/esm/resources/Reserve/Plans.d.ts +41 -1
  1293. package/esm/resources/Reserve/Plans.js +17 -1
  1294. package/esm/resources/Reserve/Plans.js.map +1 -1
  1295. package/esm/resources/Reserve/Releases.d.ts +41 -1
  1296. package/esm/resources/Reserve/Releases.js +17 -1
  1297. package/esm/resources/Reserve/Releases.js.map +1 -1
  1298. package/esm/resources/Reserve/index.d.ts +18 -6
  1299. package/esm/resources/Reserve/index.js +9 -0
  1300. package/esm/resources/Reserve/index.js.map +1 -1
  1301. package/esm/resources/Risk/Forms.d.ts +380 -0
  1302. package/esm/resources/Risk/Forms.js +34 -0
  1303. package/esm/resources/Risk/Forms.js.map +1 -0
  1304. package/esm/resources/Risk/index.d.ts +13 -0
  1305. package/esm/resources/Risk/index.js +9 -0
  1306. package/esm/resources/Risk/index.js.map +1 -0
  1307. package/esm/resources/RiskSignals.d.ts +10 -0
  1308. package/esm/resources/RiskSignals.js +3 -0
  1309. package/esm/resources/RiskSignals.js.map +1 -0
  1310. package/esm/resources/SetupAttempts.d.ts +39 -1
  1311. package/esm/resources/SetupAttempts.js.map +1 -1
  1312. package/esm/resources/SetupIntents.d.ts +877 -16
  1313. package/esm/resources/SetupIntents.js.map +1 -1
  1314. package/esm/resources/SharedPayment/GrantedTokens.d.ts +442 -0
  1315. package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
  1316. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
  1317. package/esm/resources/SharedPayment/IssuedTokens.d.ts +378 -0
  1318. package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
  1319. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
  1320. package/esm/resources/SharedPayment/index.d.ts +19 -0
  1321. package/esm/resources/SharedPayment/index.js +11 -0
  1322. package/esm/resources/SharedPayment/index.js.map +1 -0
  1323. package/esm/resources/Sources.d.ts +29 -1
  1324. package/esm/resources/SubscriptionItems.d.ts +236 -0
  1325. package/esm/resources/SubscriptionItems.js +41 -0
  1326. package/esm/resources/SubscriptionItems.js.map +1 -1
  1327. package/esm/resources/SubscriptionSchedules.d.ts +2007 -31
  1328. package/esm/resources/SubscriptionSchedules.js +61 -0
  1329. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  1330. package/esm/resources/Subscriptions.d.ts +910 -14
  1331. package/esm/resources/Subscriptions.js +186 -0
  1332. package/esm/resources/Subscriptions.js.map +1 -1
  1333. package/esm/resources/Tax/CalculationLineItems.d.ts +12 -1
  1334. package/esm/resources/Tax/Calculations.d.ts +43 -1
  1335. package/esm/resources/Tax/Certificates.d.ts +107 -0
  1336. package/esm/resources/Tax/Certificates.js +31 -0
  1337. package/esm/resources/Tax/Certificates.js.map +1 -0
  1338. package/esm/resources/Tax/FormCorrections.d.ts +29 -0
  1339. package/esm/resources/Tax/FormCorrections.js +3 -0
  1340. package/esm/resources/Tax/FormCorrections.js.map +1 -0
  1341. package/esm/resources/Tax/Forms.d.ts +973 -0
  1342. package/esm/resources/Tax/Forms.js +34 -0
  1343. package/esm/resources/Tax/Forms.js.map +1 -0
  1344. package/esm/resources/Tax/Registrations.d.ts +60 -4
  1345. package/esm/resources/Tax/Registrations.js +27 -0
  1346. package/esm/resources/Tax/Registrations.js.map +1 -1
  1347. package/esm/resources/Tax/Settings.d.ts +8 -0
  1348. package/esm/resources/Tax/Settings.js +13 -0
  1349. package/esm/resources/Tax/Settings.js.map +1 -1
  1350. package/esm/resources/Tax/Transactions.d.ts +12 -0
  1351. package/esm/resources/Tax/Transactions.js +13 -0
  1352. package/esm/resources/Tax/Transactions.js.map +1 -1
  1353. package/esm/resources/Tax/index.d.ts +41 -17
  1354. package/esm/resources/Tax/index.js +4 -0
  1355. package/esm/resources/Tax/index.js.map +1 -1
  1356. package/esm/resources/TaxFunds.d.ts +174 -0
  1357. package/esm/resources/TaxFunds.js +19 -0
  1358. package/esm/resources/TaxFunds.js.map +1 -0
  1359. package/esm/resources/TaxIds.d.ts +6 -0
  1360. package/esm/resources/TaxIds.js +13 -0
  1361. package/esm/resources/TaxIds.js.map +1 -1
  1362. package/esm/resources/TaxRates.d.ts +12 -0
  1363. package/esm/resources/TaxRates.js +27 -0
  1364. package/esm/resources/TaxRates.js.map +1 -1
  1365. package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  1366. package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
  1367. package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
  1368. package/esm/resources/Terminal/Readers.d.ts +235 -2
  1369. package/esm/resources/Terminal/Readers.js +24 -0
  1370. package/esm/resources/Terminal/Readers.js.map +1 -1
  1371. package/esm/resources/Terminal/index.d.ts +9 -0
  1372. package/esm/resources/Terminal/index.js +2 -0
  1373. package/esm/resources/Terminal/index.js.map +1 -1
  1374. package/esm/resources/TestHelpers/Capital/FinancingOffers.d.ts +82 -0
  1375. package/esm/resources/TestHelpers/Capital/FinancingOffers.js +17 -0
  1376. package/esm/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
  1377. package/esm/resources/TestHelpers/Capital/index.d.ts +8 -0
  1378. package/esm/resources/TestHelpers/Capital/index.js +9 -0
  1379. package/esm/resources/TestHelpers/Capital/index.js.map +1 -0
  1380. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +165 -1
  1381. package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +95 -0
  1382. package/esm/resources/TestHelpers/Issuing/Authorizations.js +245 -0
  1383. package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  1384. package/esm/resources/TestHelpers/Issuing/Disputes.d.ts +127 -0
  1385. package/esm/resources/TestHelpers/Issuing/Disputes.js +35 -0
  1386. package/esm/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
  1387. package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +48 -0
  1388. package/esm/resources/TestHelpers/Issuing/Transactions.js +48 -0
  1389. package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  1390. package/esm/resources/TestHelpers/Issuing/index.d.ts +2 -0
  1391. package/esm/resources/TestHelpers/Issuing/index.js +2 -0
  1392. package/esm/resources/TestHelpers/Issuing/index.js.map +1 -1
  1393. package/esm/resources/TestHelpers/PaymentIntents.d.ts +38 -0
  1394. package/esm/resources/TestHelpers/PaymentIntents.js +11 -0
  1395. package/esm/resources/TestHelpers/PaymentIntents.js.map +1 -0
  1396. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +92 -0
  1397. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
  1398. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  1399. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  1400. package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
  1401. package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  1402. package/esm/resources/TestHelpers/Terminal/Readers.d.ts +18 -1
  1403. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  1404. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  1405. package/esm/resources/TestHelpers/index.d.ts +14 -6
  1406. package/esm/resources/TestHelpers/index.js +6 -0
  1407. package/esm/resources/TestHelpers/index.js.map +1 -1
  1408. package/esm/resources/Tokens.d.ts +76 -0
  1409. package/esm/resources/Transfers.d.ts +12 -0
  1410. package/esm/resources/Transfers.js.map +1 -1
  1411. package/esm/resources/TransitBalances.d.ts +25 -0
  1412. package/esm/resources/TransitBalances.js +3 -0
  1413. package/esm/resources/TransitBalances.js.map +1 -0
  1414. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  1415. package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
  1416. package/esm/resources/Treasury/InboundTransfers.d.ts +60 -0
  1417. package/esm/resources/Treasury/OutboundPayments.d.ts +48 -0
  1418. package/esm/resources/Treasury/OutboundTransfers.d.ts +66 -0
  1419. package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
  1420. package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
  1421. package/esm/resources/Treasury/TransactionEntries.js +76 -0
  1422. package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
  1423. package/esm/resources/Treasury/Transactions.js +82 -0
  1424. package/esm/resources/Treasury/Transactions.js.map +1 -1
  1425. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  1426. package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
  1427. package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  1428. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  1429. package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
  1430. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  1431. package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
  1432. package/esm/resources/V2/Billing/BillSettings.js +37 -0
  1433. package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
  1434. package/esm/resources/V2/Billing/CadenceSpendModifiers.d.ts +87 -0
  1435. package/esm/resources/V2/Billing/CadenceSpendModifiers.js +3 -0
  1436. package/esm/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
  1437. package/esm/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
  1438. package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js +19 -0
  1439. package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
  1440. package/esm/resources/V2/Billing/Cadences.d.ts +1022 -0
  1441. package/esm/resources/V2/Billing/Cadences.js +260 -0
  1442. package/esm/resources/V2/Billing/Cadences.js.map +1 -0
  1443. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  1444. package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
  1445. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  1446. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  1447. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
  1448. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  1449. package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  1450. package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
  1451. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
  1452. package/esm/resources/V2/Billing/ContractPricingLineQuantityChanges.d.ts +50 -0
  1453. package/esm/resources/V2/Billing/ContractPricingLineQuantityChanges.js +3 -0
  1454. package/esm/resources/V2/Billing/ContractPricingLineQuantityChanges.js.map +1 -0
  1455. package/esm/resources/V2/Billing/ContractTermQuantityChanges.d.ts +35 -0
  1456. package/esm/resources/V2/Billing/ContractTermQuantityChanges.js +3 -0
  1457. package/esm/resources/V2/Billing/ContractTermQuantityChanges.js.map +1 -0
  1458. package/esm/resources/V2/Billing/ContractTerms.d.ts +216 -0
  1459. package/esm/resources/V2/Billing/ContractTerms.js +3 -0
  1460. package/esm/resources/V2/Billing/ContractTerms.js.map +1 -0
  1461. package/esm/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.d.ts +23 -0
  1462. package/esm/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js +25 -0
  1463. package/esm/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js.map +1 -0
  1464. package/esm/resources/V2/Billing/Contracts/PricingLines.d.ts +8 -0
  1465. package/esm/resources/V2/Billing/Contracts/PricingLines.js +11 -0
  1466. package/esm/resources/V2/Billing/Contracts/PricingLines.js.map +1 -0
  1467. package/esm/resources/V2/Billing/Contracts/Terms/QuantityChanges.d.ts +23 -0
  1468. package/esm/resources/V2/Billing/Contracts/Terms/QuantityChanges.js +25 -0
  1469. package/esm/resources/V2/Billing/Contracts/Terms/QuantityChanges.js.map +1 -0
  1470. package/esm/resources/V2/Billing/Contracts/Terms.d.ts +46 -0
  1471. package/esm/resources/V2/Billing/Contracts/Terms.js +78 -0
  1472. package/esm/resources/V2/Billing/Contracts/Terms.js.map +1 -0
  1473. package/esm/resources/V2/Billing/Contracts.d.ts +2762 -0
  1474. package/esm/resources/V2/Billing/Contracts.js +653 -0
  1475. package/esm/resources/V2/Billing/Contracts.js.map +1 -0
  1476. package/esm/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
  1477. package/esm/resources/V2/Billing/CustomPricingUnits.js +31 -0
  1478. package/esm/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
  1479. package/esm/resources/V2/Billing/IntentActions.d.ts +609 -0
  1480. package/esm/resources/V2/Billing/IntentActions.js +3 -0
  1481. package/esm/resources/V2/Billing/IntentActions.js.map +1 -0
  1482. package/esm/resources/V2/Billing/Intents/Actions.d.ts +33 -0
  1483. package/esm/resources/V2/Billing/Intents/Actions.js +66 -0
  1484. package/esm/resources/V2/Billing/Intents/Actions.js.map +1 -0
  1485. package/esm/resources/V2/Billing/Intents.d.ts +1267 -0
  1486. package/esm/resources/V2/Billing/Intents.js +83 -0
  1487. package/esm/resources/V2/Billing/Intents.js.map +1 -0
  1488. package/esm/resources/V2/Billing/LicenseFeeVersions.d.ts +78 -0
  1489. package/esm/resources/V2/Billing/LicenseFeeVersions.js +3 -0
  1490. package/esm/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
  1491. package/esm/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
  1492. package/esm/resources/V2/Billing/LicenseFees/Versions.js +60 -0
  1493. package/esm/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
  1494. package/esm/resources/V2/Billing/LicenseFees.d.ts +360 -0
  1495. package/esm/resources/V2/Billing/LicenseFees.js +144 -0
  1496. package/esm/resources/V2/Billing/LicenseFees.js.map +1 -0
  1497. package/esm/resources/V2/Billing/LicensedItems.d.ts +170 -0
  1498. package/esm/resources/V2/Billing/LicensedItems.js +31 -0
  1499. package/esm/resources/V2/Billing/LicensedItems.js.map +1 -0
  1500. package/esm/resources/V2/Billing/MeteredItems.d.ts +218 -0
  1501. package/esm/resources/V2/Billing/MeteredItems.js +31 -0
  1502. package/esm/resources/V2/Billing/MeteredItems.js.map +1 -0
  1503. package/esm/resources/V2/Billing/OneTimeItems.d.ts +170 -0
  1504. package/esm/resources/V2/Billing/OneTimeItems.js +31 -0
  1505. package/esm/resources/V2/Billing/OneTimeItems.js.map +1 -0
  1506. package/esm/resources/V2/Billing/PricingPlanComponents.d.ts +80 -0
  1507. package/esm/resources/V2/Billing/PricingPlanComponents.js +3 -0
  1508. package/esm/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
  1509. package/esm/resources/V2/Billing/PricingPlanSubscriptions.d.ts +636 -0
  1510. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +292 -0
  1511. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
  1512. package/esm/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
  1513. package/esm/resources/V2/Billing/PricingPlanVersions.js +3 -0
  1514. package/esm/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
  1515. package/esm/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
  1516. package/esm/resources/V2/Billing/PricingPlans/Components.js +37 -0
  1517. package/esm/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
  1518. package/esm/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
  1519. package/esm/resources/V2/Billing/PricingPlans/Versions.js +19 -0
  1520. package/esm/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
  1521. package/esm/resources/V2/Billing/PricingPlans.d.ts +169 -0
  1522. package/esm/resources/V2/Billing/PricingPlans.js +39 -0
  1523. package/esm/resources/V2/Billing/PricingPlans.js.map +1 -0
  1524. package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
  1525. package/esm/resources/V2/Billing/Profiles.js +31 -0
  1526. package/esm/resources/V2/Billing/Profiles.js.map +1 -0
  1527. package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
  1528. package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +3 -0
  1529. package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
  1530. package/esm/resources/V2/Billing/RateCardRates.d.ts +111 -0
  1531. package/esm/resources/V2/Billing/RateCardRates.js +3 -0
  1532. package/esm/resources/V2/Billing/RateCardRates.js.map +1 -0
  1533. package/esm/resources/V2/Billing/RateCardSubscriptions.d.ts +218 -0
  1534. package/esm/resources/V2/Billing/RateCardSubscriptions.js +37 -0
  1535. package/esm/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
  1536. package/esm/resources/V2/Billing/RateCardVersions.d.ts +22 -0
  1537. package/esm/resources/V2/Billing/RateCardVersions.js +3 -0
  1538. package/esm/resources/V2/Billing/RateCardVersions.js.map +1 -0
  1539. package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
  1540. package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +31 -0
  1541. package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
  1542. package/esm/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
  1543. package/esm/resources/V2/Billing/RateCards/Rates.js +106 -0
  1544. package/esm/resources/V2/Billing/RateCards/Rates.js.map +1 -0
  1545. package/esm/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
  1546. package/esm/resources/V2/Billing/RateCards/Versions.js +19 -0
  1547. package/esm/resources/V2/Billing/RateCards/Versions.js.map +1 -0
  1548. package/esm/resources/V2/Billing/RateCards.d.ts +336 -0
  1549. package/esm/resources/V2/Billing/RateCards.js +72 -0
  1550. package/esm/resources/V2/Billing/RateCards.js.map +1 -0
  1551. package/esm/resources/V2/Billing/ServiceActions.d.ts +536 -0
  1552. package/esm/resources/V2/Billing/ServiceActions.js +158 -0
  1553. package/esm/resources/V2/Billing/ServiceActions.js.map +1 -0
  1554. package/esm/resources/V2/Billing/index.d.ts +181 -6
  1555. package/esm/resources/V2/Billing/index.js +32 -0
  1556. package/esm/resources/V2/Billing/index.js.map +1 -1
  1557. package/esm/resources/V2/Core/AccountEvaluations.d.ts +167 -0
  1558. package/esm/resources/V2/Core/AccountEvaluations.js +11 -0
  1559. package/esm/resources/V2/Core/AccountEvaluations.js.map +1 -0
  1560. package/esm/resources/V2/Core/AccountLinks.d.ts +138 -2
  1561. package/esm/resources/V2/Core/AccountPersons.d.ts +5 -2
  1562. package/esm/resources/V2/Core/AccountSessions.d.ts +1649 -0
  1563. package/esm/resources/V2/Core/AccountSessions.js +12 -0
  1564. package/esm/resources/V2/Core/AccountSessions.js.map +1 -0
  1565. package/esm/resources/V2/Core/AccountTokens.d.ts +242 -4
  1566. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +5 -2
  1567. package/esm/resources/V2/Core/Accounts/Persons.d.ts +10 -4
  1568. package/esm/resources/V2/Core/Accounts.d.ts +22332 -1163
  1569. package/esm/resources/V2/Core/Accounts.js +23373 -30
  1570. package/esm/resources/V2/Core/Accounts.js.map +1 -1
  1571. package/esm/resources/V2/Core/ApprovalRequests.d.ts +410 -0
  1572. package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
  1573. package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
  1574. package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
  1575. package/esm/resources/V2/Core/BatchJobs.js +248 -0
  1576. package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
  1577. package/esm/resources/V2/Core/ClaimableSandboxes.d.ts +225 -0
  1578. package/esm/resources/V2/Core/ClaimableSandboxes.js +27 -0
  1579. package/esm/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
  1580. package/esm/resources/V2/Core/ConnectionSessions.d.ts +86 -0
  1581. package/esm/resources/V2/Core/ConnectionSessions.js +17 -0
  1582. package/esm/resources/V2/Core/ConnectionSessions.js.map +1 -0
  1583. package/esm/resources/V2/Core/Events.d.ts +6062 -593
  1584. package/esm/resources/V2/Core/FeeBatches.d.ts +228 -0
  1585. package/esm/resources/V2/Core/FeeBatches.js +19 -0
  1586. package/esm/resources/V2/Core/FeeBatches.js.map +1 -0
  1587. package/esm/resources/V2/Core/FeeEntries.d.ts +196 -0
  1588. package/esm/resources/V2/Core/FeeEntries.js +19 -0
  1589. package/esm/resources/V2/Core/FeeEntries.js.map +1 -0
  1590. package/esm/resources/V2/Core/Health/AlertHistoryEntries.d.ts +426 -0
  1591. package/esm/resources/V2/Core/Health/AlertHistoryEntries.js +3 -0
  1592. package/esm/resources/V2/Core/Health/AlertHistoryEntries.js.map +1 -0
  1593. package/esm/resources/V2/Core/Health/Alerts/History.d.ts +23 -0
  1594. package/esm/resources/V2/Core/Health/Alerts/History.js +97 -0
  1595. package/esm/resources/V2/Core/Health/Alerts/History.js.map +1 -0
  1596. package/esm/resources/V2/Core/Health/Alerts.d.ts +540 -0
  1597. package/esm/resources/V2/Core/Health/Alerts.js +178 -0
  1598. package/esm/resources/V2/Core/Health/Alerts.js.map +1 -0
  1599. package/esm/resources/V2/Core/Health/index.d.ts +16 -0
  1600. package/esm/resources/V2/Core/Health/index.js +9 -0
  1601. package/esm/resources/V2/Core/Health/index.js.map +1 -0
  1602. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  1603. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  1604. package/esm/resources/V2/Core/Vault/NetworkTokens.d.ts +199 -0
  1605. package/esm/resources/V2/Core/Vault/NetworkTokens.js +38 -0
  1606. package/esm/resources/V2/Core/Vault/NetworkTokens.js.map +1 -0
  1607. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  1608. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  1609. package/esm/resources/V2/Core/Vault/index.d.ts +17 -9
  1610. package/esm/resources/V2/Core/Vault/index.js +2 -0
  1611. package/esm/resources/V2/Core/Vault/index.js.map +1 -1
  1612. package/esm/resources/V2/Core/index.d.ts +69 -14
  1613. package/esm/resources/V2/Core/index.js +18 -0
  1614. package/esm/resources/V2/Core/index.js.map +1 -1
  1615. package/esm/resources/V2/Data/Analytics/MetricQuery.d.ts +74 -0
  1616. package/esm/resources/V2/Data/Analytics/MetricQuery.js +32 -0
  1617. package/esm/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
  1618. package/esm/resources/V2/Data/Analytics/MetricQueryResults.d.ts +76 -0
  1619. package/esm/resources/V2/Data/Analytics/MetricQueryResults.js +3 -0
  1620. package/esm/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
  1621. package/esm/resources/V2/Data/Analytics/index.d.ts +12 -0
  1622. package/esm/resources/V2/Data/Analytics/index.js +9 -0
  1623. package/esm/resources/V2/Data/Analytics/index.js.map +1 -0
  1624. package/esm/resources/V2/Data/Operations.d.ts +37 -0
  1625. package/esm/resources/V2/Data/Operations.js +36 -0
  1626. package/esm/resources/V2/Data/Operations.js.map +1 -0
  1627. package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
  1628. package/esm/resources/V2/Data/QueryRuns.js +47 -0
  1629. package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
  1630. package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
  1631. package/esm/resources/V2/Data/ReportRuns.js +49 -0
  1632. package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
  1633. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +176 -0
  1634. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  1635. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  1636. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  1637. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  1638. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  1639. package/esm/resources/V2/Data/Reports.d.ts +140 -0
  1640. package/esm/resources/V2/Data/Reports.js +21 -0
  1641. package/esm/resources/V2/Data/Reports.js.map +1 -0
  1642. package/esm/resources/V2/Data/Schemas.d.ts +161 -0
  1643. package/esm/resources/V2/Data/Schemas.js +19 -0
  1644. package/esm/resources/V2/Data/Schemas.js.map +1 -0
  1645. package/esm/resources/V2/Data/SearchResultLists.d.ts +348 -0
  1646. package/esm/resources/V2/Data/SearchResultLists.js +3 -0
  1647. package/esm/resources/V2/Data/SearchResultLists.js.map +1 -0
  1648. package/esm/resources/V2/Data/index.d.ts +42 -0
  1649. package/esm/resources/V2/Data/index.js +21 -0
  1650. package/esm/resources/V2/Data/index.js.map +1 -0
  1651. package/esm/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
  1652. package/esm/resources/V2/Extend/ObjectDefinitionVersions.js +3 -0
  1653. package/esm/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
  1654. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
  1655. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js +19 -0
  1656. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
  1657. package/esm/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
  1658. package/esm/resources/V2/Extend/ObjectDefinitions.js +25 -0
  1659. package/esm/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
  1660. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  1661. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  1662. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  1663. package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
  1664. package/esm/resources/V2/Extend/Workflows.js +26 -0
  1665. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  1666. package/esm/resources/V2/Extend/index.d.ts +29 -0
  1667. package/esm/resources/V2/Extend/index.js +13 -0
  1668. package/esm/resources/V2/Extend/index.js.map +1 -0
  1669. package/esm/resources/V2/Iam/ActivityLogs.d.ts +457 -0
  1670. package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
  1671. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  1672. package/esm/resources/V2/Iam/ApiKeys.d.ts +306 -0
  1673. package/esm/resources/V2/Iam/ApiKeys.js +43 -0
  1674. package/esm/resources/V2/Iam/ApiKeys.js.map +1 -0
  1675. package/esm/resources/V2/Iam/index.d.ts +23 -0
  1676. package/esm/resources/V2/Iam/index.js +11 -0
  1677. package/esm/resources/V2/Iam/index.js.map +1 -0
  1678. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +44 -2
  1679. package/esm/resources/V2/MoneyManagement/CurrencyConversions.d.ts +131 -0
  1680. package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +27 -0
  1681. package/esm/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
  1682. package/esm/resources/V2/MoneyManagement/DebitDisputes.d.ts +173 -0
  1683. package/esm/resources/V2/MoneyManagement/DebitDisputes.js +25 -0
  1684. package/esm/resources/V2/MoneyManagement/DebitDisputes.js.map +1 -0
  1685. package/esm/resources/V2/MoneyManagement/EarnedCreditSimulations.d.ts +18 -0
  1686. package/esm/resources/V2/MoneyManagement/EarnedCreditSimulations.js +3 -0
  1687. package/esm/resources/V2/MoneyManagement/EarnedCreditSimulations.js.map +1 -0
  1688. package/esm/resources/V2/MoneyManagement/EarnedCredits.d.ts +134 -0
  1689. package/esm/resources/V2/MoneyManagement/EarnedCredits.js +19 -0
  1690. package/esm/resources/V2/MoneyManagement/EarnedCredits.js.map +1 -0
  1691. package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +99 -0
  1692. package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.js +3 -0
  1693. package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.js.map +1 -0
  1694. package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.d.ts +62 -0
  1695. package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js +3 -0
  1696. package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js.map +1 -0
  1697. package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExports.d.ts +50 -0
  1698. package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExports.js +3 -0
  1699. package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExports.js.map +1 -0
  1700. package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +49 -0
  1701. package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.js +49 -0
  1702. package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.js.map +1 -0
  1703. package/esm/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.d.ts +51 -0
  1704. package/esm/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js +18 -0
  1705. package/esm/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js.map +1 -0
  1706. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +437 -4
  1707. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +132 -2
  1708. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  1709. package/esm/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.d.ts +14 -0
  1710. package/esm/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js +3 -0
  1711. package/esm/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js.map +1 -0
  1712. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  1713. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
  1714. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  1715. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +144 -6
  1716. package/esm/resources/V2/MoneyManagement/FundingIntents.d.ts +504 -0
  1717. package/esm/resources/V2/MoneyManagement/FundingIntents.js +49 -0
  1718. package/esm/resources/V2/MoneyManagement/FundingIntents.js.map +1 -0
  1719. package/esm/resources/V2/MoneyManagement/FundingSessions.d.ts +111 -0
  1720. package/esm/resources/V2/MoneyManagement/FundingSessions.js +11 -0
  1721. package/esm/resources/V2/MoneyManagement/FundingSessions.js.map +1 -0
  1722. package/esm/resources/V2/MoneyManagement/InboundFundings.d.ts +178 -0
  1723. package/esm/resources/V2/MoneyManagement/InboundFundings.js +19 -0
  1724. package/esm/resources/V2/MoneyManagement/InboundFundings.js.map +1 -0
  1725. package/esm/resources/V2/MoneyManagement/InboundTransferMandates.d.ts +265 -0
  1726. package/esm/resources/V2/MoneyManagement/InboundTransferMandates.js +35 -0
  1727. package/esm/resources/V2/MoneyManagement/InboundTransferMandates.js.map +1 -0
  1728. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +88 -2
  1729. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +374 -0
  1730. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
  1731. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  1732. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +246 -6
  1733. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
  1734. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +143 -2
  1735. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +434 -0
  1736. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
  1737. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  1738. package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +18 -6
  1739. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +125 -1
  1740. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  1741. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  1742. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +344 -6
  1743. package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +171 -0
  1744. package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js +25 -0
  1745. package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -0
  1746. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +373 -0
  1747. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
  1748. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  1749. package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  1750. package/esm/resources/V2/MoneyManagement/RewardProgramEnrollments.d.ts +140 -0
  1751. package/esm/resources/V2/MoneyManagement/RewardProgramEnrollments.js +42 -0
  1752. package/esm/resources/V2/MoneyManagement/RewardProgramEnrollments.js.map +1 -0
  1753. package/esm/resources/V2/MoneyManagement/RewardProgramRules.d.ts +85 -0
  1754. package/esm/resources/V2/MoneyManagement/RewardProgramRules.js +3 -0
  1755. package/esm/resources/V2/MoneyManagement/RewardProgramRules.js.map +1 -0
  1756. package/esm/resources/V2/MoneyManagement/RewardPrograms/Rules.d.ts +205 -0
  1757. package/esm/resources/V2/MoneyManagement/RewardPrograms/Rules.js +173 -0
  1758. package/esm/resources/V2/MoneyManagement/RewardPrograms/Rules.js.map +1 -0
  1759. package/esm/resources/V2/MoneyManagement/RewardPrograms.d.ts +135 -0
  1760. package/esm/resources/V2/MoneyManagement/RewardPrograms.js +53 -0
  1761. package/esm/resources/V2/MoneyManagement/RewardPrograms.js.map +1 -0
  1762. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +43 -1
  1763. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +13 -0
  1764. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  1765. package/esm/resources/V2/MoneyManagement/TestHelpers.d.ts +37 -0
  1766. package/esm/resources/V2/MoneyManagement/TestHelpers.js +17 -0
  1767. package/esm/resources/V2/MoneyManagement/TestHelpers.js.map +1 -0
  1768. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +140 -4
  1769. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +140 -4
  1770. package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  1771. package/esm/resources/V2/MoneyManagement/index.d.ts +175 -57
  1772. package/esm/resources/V2/MoneyManagement/index.js +28 -2
  1773. package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
  1774. package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  1775. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  1776. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  1777. package/esm/resources/V2/Network/index.d.ts +13 -0
  1778. package/esm/resources/V2/Network/index.js +9 -0
  1779. package/esm/resources/V2/Network/index.js.map +1 -0
  1780. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  1781. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  1782. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  1783. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  1784. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  1785. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  1786. package/esm/resources/V2/Payments/OffSessionPayments.d.ts +736 -0
  1787. package/esm/resources/V2/Payments/OffSessionPayments.js +43 -0
  1788. package/esm/resources/V2/Payments/OffSessionPayments.js.map +1 -0
  1789. package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +73 -0
  1790. package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js +3 -0
  1791. package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
  1792. package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
  1793. package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +31 -0
  1794. package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
  1795. package/esm/resources/V2/Payments/SettlementAllocationIntents.d.ts +212 -0
  1796. package/esm/resources/V2/Payments/SettlementAllocationIntents.js +49 -0
  1797. package/esm/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
  1798. package/esm/resources/V2/Payments/index.d.ts +30 -0
  1799. package/esm/resources/V2/Payments/index.js +11 -0
  1800. package/esm/resources/V2/Payments/index.js.map +1 -0
  1801. package/esm/resources/V2/Provisioning/Catalog/Providers.d.ts +33 -0
  1802. package/esm/resources/V2/Provisioning/Catalog/Providers.js +13 -0
  1803. package/esm/resources/V2/Provisioning/Catalog/Providers.js.map +1 -0
  1804. package/esm/resources/V2/Provisioning/Catalog/Services.d.ts +37 -0
  1805. package/esm/resources/V2/Provisioning/Catalog/Services.js +13 -0
  1806. package/esm/resources/V2/Provisioning/Catalog/Services.js.map +1 -0
  1807. package/esm/resources/V2/Provisioning/Catalog/index.d.ts +10 -0
  1808. package/esm/resources/V2/Provisioning/Catalog/index.js +11 -0
  1809. package/esm/resources/V2/Provisioning/Catalog/index.js.map +1 -0
  1810. package/esm/resources/V2/Provisioning/Eligibility.d.ts +33 -0
  1811. package/esm/resources/V2/Provisioning/Eligibility.js +12 -0
  1812. package/esm/resources/V2/Provisioning/Eligibility.js.map +1 -0
  1813. package/esm/resources/V2/Provisioning/PaymentMethodRequests.d.ts +79 -0
  1814. package/esm/resources/V2/Provisioning/PaymentMethodRequests.js +21 -0
  1815. package/esm/resources/V2/Provisioning/PaymentMethodRequests.js.map +1 -0
  1816. package/esm/resources/V2/Provisioning/PaymentProfile.d.ts +139 -0
  1817. package/esm/resources/V2/Provisioning/PaymentProfile.js +70 -0
  1818. package/esm/resources/V2/Provisioning/PaymentProfile.js.map +1 -0
  1819. package/esm/resources/V2/Provisioning/Projects.d.ts +79 -0
  1820. package/esm/resources/V2/Provisioning/Projects.js +11 -0
  1821. package/esm/resources/V2/Provisioning/Projects.js.map +1 -0
  1822. package/esm/resources/V2/Provisioning/ProviderConnectionRequests.d.ts +145 -0
  1823. package/esm/resources/V2/Provisioning/ProviderConnectionRequests.js +23 -0
  1824. package/esm/resources/V2/Provisioning/ProviderConnectionRequests.js.map +1 -0
  1825. package/esm/resources/V2/Provisioning/ProviderConnections.d.ts +115 -0
  1826. package/esm/resources/V2/Provisioning/ProviderConnections.js +19 -0
  1827. package/esm/resources/V2/Provisioning/ProviderConnections.js.map +1 -0
  1828. package/esm/resources/V2/Provisioning/ProviderServiceDetails.d.ts +243 -0
  1829. package/esm/resources/V2/Provisioning/ProviderServiceDetails.js +3 -0
  1830. package/esm/resources/V2/Provisioning/ProviderServiceDetails.js.map +1 -0
  1831. package/esm/resources/V2/Provisioning/Providers.d.ts +67 -0
  1832. package/esm/resources/V2/Provisioning/Providers.js +3 -0
  1833. package/esm/resources/V2/Provisioning/Providers.js.map +1 -0
  1834. package/esm/resources/V2/Provisioning/ResourceAccessConfigurations.d.ts +28 -0
  1835. package/esm/resources/V2/Provisioning/ResourceAccessConfigurations.js +3 -0
  1836. package/esm/resources/V2/Provisioning/ResourceAccessConfigurations.js.map +1 -0
  1837. package/esm/resources/V2/Provisioning/Resources.d.ts +287 -0
  1838. package/esm/resources/V2/Provisioning/Resources.js +62 -0
  1839. package/esm/resources/V2/Provisioning/Resources.js.map +1 -0
  1840. package/esm/resources/V2/Provisioning/index.d.ts +66 -0
  1841. package/esm/resources/V2/Provisioning/index.js +23 -0
  1842. package/esm/resources/V2/Provisioning/index.js.map +1 -0
  1843. package/esm/resources/V2/Reporting/ReportRuns.d.ts +195 -0
  1844. package/esm/resources/V2/Reporting/ReportRuns.js +46 -0
  1845. package/esm/resources/V2/Reporting/ReportRuns.js.map +1 -0
  1846. package/esm/resources/V2/Reporting/Reports.d.ts +106 -0
  1847. package/esm/resources/V2/Reporting/Reports.js +13 -0
  1848. package/esm/resources/V2/Reporting/Reports.js.map +1 -0
  1849. package/esm/resources/V2/Reporting/index.d.ts +18 -0
  1850. package/esm/resources/V2/Reporting/index.js +11 -0
  1851. package/esm/resources/V2/Reporting/index.js.map +1 -0
  1852. package/esm/resources/V2/Risk/Forms.d.ts +253 -0
  1853. package/esm/resources/V2/Risk/Forms.js +17 -0
  1854. package/esm/resources/V2/Risk/Forms.js.map +1 -0
  1855. package/esm/resources/V2/Risk/index.d.ts +13 -0
  1856. package/esm/resources/V2/Risk/index.js +9 -0
  1857. package/esm/resources/V2/Risk/index.js.map +1 -0
  1858. package/esm/resources/V2/Signals/AccountActivities.d.ts +747 -0
  1859. package/esm/resources/V2/Signals/AccountActivities.js +23 -0
  1860. package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
  1861. package/esm/resources/V2/Signals/AccountEvaluations.d.ts +516 -0
  1862. package/esm/resources/V2/Signals/AccountEvaluations.js +63 -0
  1863. package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  1864. package/esm/resources/V2/Signals/AccountSignals.d.ts +361 -0
  1865. package/esm/resources/V2/Signals/AccountSignals.js +114 -0
  1866. package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
  1867. package/esm/resources/V2/Signals/PaymentRetryEvaluations.d.ts +116 -0
  1868. package/esm/resources/V2/Signals/PaymentRetryEvaluations.js +34 -0
  1869. package/esm/resources/V2/Signals/PaymentRetryEvaluations.js.map +1 -0
  1870. package/esm/resources/V2/Signals/PaymentRetrySignals.d.ts +63 -0
  1871. package/esm/resources/V2/Signals/PaymentRetrySignals.js +11 -0
  1872. package/esm/resources/V2/Signals/PaymentRetrySignals.js.map +1 -0
  1873. package/esm/resources/V2/Signals/index.d.ts +39 -0
  1874. package/esm/resources/V2/Signals/index.js +17 -0
  1875. package/esm/resources/V2/Signals/index.js.map +1 -0
  1876. package/esm/resources/V2/Tax/IntegrationConfigurations.d.ts +116 -0
  1877. package/esm/resources/V2/Tax/IntegrationConfigurations.js +17 -0
  1878. package/esm/resources/V2/Tax/IntegrationConfigurations.js.map +1 -0
  1879. package/esm/resources/V2/Tax/ManualRules.d.ts +331 -0
  1880. package/esm/resources/V2/Tax/ManualRules.js +189 -0
  1881. package/esm/resources/V2/Tax/ManualRules.js.map +1 -0
  1882. package/esm/resources/V2/Tax/Operations.d.ts +43 -0
  1883. package/esm/resources/V2/Tax/Operations.js +11 -0
  1884. package/esm/resources/V2/Tax/Operations.js.map +1 -0
  1885. package/esm/resources/V2/Tax/OperationsResolveAddressResults.d.ts +70 -0
  1886. package/esm/resources/V2/Tax/OperationsResolveAddressResults.js +3 -0
  1887. package/esm/resources/V2/Tax/OperationsResolveAddressResults.js.map +1 -0
  1888. package/esm/resources/V2/Tax/index.d.ts +27 -0
  1889. package/esm/resources/V2/Tax/index.js +13 -0
  1890. package/esm/resources/V2/Tax/index.js.map +1 -0
  1891. package/esm/resources/V2/index.d.ts +33 -0
  1892. package/esm/resources/V2/index.js +22 -0
  1893. package/esm/resources/V2/index.js.map +1 -1
  1894. package/esm/resources/WebhookEndpoints.d.ts +2 -2
  1895. package/esm/resources.d.ts +20 -0
  1896. package/esm/resources.js +283 -3
  1897. package/esm/resources.js.map +1 -1
  1898. package/esm/stripe.core.d.ts +170 -56
  1899. package/esm/stripe.core.js +122 -11
  1900. package/esm/stripe.core.js.map +1 -1
  1901. package/esm/stripe.esm.node.d.ts +172 -58
  1902. package/esm/stripe.esm.node.js +123 -9
  1903. package/esm/stripe.esm.node.js.map +1 -1
  1904. package/package.json +1 -1
  1905. package/cjs/resources/V2/MoneyManagement/TestHelpers/index.d.ts +0 -8
  1906. package/cjs/resources/V2/MoneyManagement/TestHelpers/index.js +0 -13
  1907. package/cjs/resources/V2/MoneyManagement/TestHelpers/index.js.map +0 -1
  1908. package/esm/resources/V2/MoneyManagement/TestHelpers/index.d.ts +0 -8
  1909. package/esm/resources/V2/MoneyManagement/TestHelpers/index.js +0 -9
  1910. package/esm/resources/V2/MoneyManagement/TestHelpers/index.js.map +0 -1
@@ -4,11 +4,14 @@ 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';
7
8
  import { PaymentMethod } from './PaymentMethods.js';
8
9
  import { CustomerSource } from './CustomerSources.js';
9
10
  import { TaxRate } from './TaxRates.js';
10
11
  import { Account } from './Accounts.js';
12
+ import { PaymentPlan } from './PaymentPlans.js';
11
13
  import { InvoicePayment } from './InvoicePayments.js';
14
+ import { GiftCardOperation } from './GiftCardOperations.js';
12
15
  import { PaymentIntent } from './PaymentIntents.js';
13
16
  import { SetupIntent } from './SetupIntents.js';
14
17
  import { Subscription } from './Subscriptions.js';
@@ -68,6 +71,10 @@ export declare class InvoiceResource extends StripeResource {
68
71
  * See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
69
72
  */
70
73
  attachPayment(id: string, params?: InvoiceAttachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
74
+ /**
75
+ * Detaches a payment from the invoice, removing it from the list of payments
76
+ */
77
+ detachPayment(id: string, params?: InvoiceDetachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
71
78
  /**
72
79
  * 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.
73
80
  */
@@ -112,6 +119,54 @@ export declare class InvoiceResource extends StripeResource {
112
119
  * Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
113
120
  */
114
121
  createPreview(params?: InvoiceCreatePreviewParams, options?: RequestOptions): Promise<Response<Invoice>>;
122
+ serializeBatchDelete(invoice: string, params?: Record<string, unknown>, options?: {
123
+ apiVersion?: string;
124
+ stripeContext?: string;
125
+ }): string;
126
+ serializeBatchUpdate(invoice: string, params?: Record<string, unknown>, options?: {
127
+ apiVersion?: string;
128
+ stripeContext?: string;
129
+ }): string;
130
+ serializeBatchCreate(params?: Record<string, unknown>, options?: {
131
+ apiVersion?: string;
132
+ stripeContext?: string;
133
+ }): string;
134
+ serializeBatchAddLines(invoice: string, params?: Record<string, unknown>, options?: {
135
+ apiVersion?: string;
136
+ stripeContext?: string;
137
+ }): string;
138
+ serializeBatchFinalizeInvoice(invoice: string, params?: Record<string, unknown>, options?: {
139
+ apiVersion?: string;
140
+ stripeContext?: string;
141
+ }): string;
142
+ serializeBatchMarkUncollectible(invoice: string, params?: Record<string, unknown>, options?: {
143
+ apiVersion?: string;
144
+ stripeContext?: string;
145
+ }): string;
146
+ serializeBatchPay(invoice: string, params?: Record<string, unknown>, options?: {
147
+ apiVersion?: string;
148
+ stripeContext?: string;
149
+ }): string;
150
+ serializeBatchRemoveLines(invoice: string, params?: Record<string, unknown>, options?: {
151
+ apiVersion?: string;
152
+ stripeContext?: string;
153
+ }): string;
154
+ serializeBatchSendInvoice(invoice: string, params?: Record<string, unknown>, options?: {
155
+ apiVersion?: string;
156
+ stripeContext?: string;
157
+ }): string;
158
+ serializeBatchUpdateLines(invoice: string, params?: Record<string, unknown>, options?: {
159
+ apiVersion?: string;
160
+ stripeContext?: string;
161
+ }): string;
162
+ serializeBatchVoidInvoice(invoice: string, params?: Record<string, unknown>, options?: {
163
+ apiVersion?: string;
164
+ stripeContext?: string;
165
+ }): string;
166
+ serializeBatchCreatePreview(params?: Record<string, unknown>, options?: {
167
+ apiVersion?: string;
168
+ stripeContext?: string;
169
+ }): string;
115
170
  /**
116
171
  * When retrieving an invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
117
172
  */
@@ -123,6 +178,10 @@ export declare class InvoiceResource extends StripeResource {
123
178
  * Updating an invoice's line item is only possible before the invoice is finalized.
124
179
  */
125
180
  updateLineItem(invoiceId: string, id: string, params?: InvoiceUpdateLineItemParams, options?: RequestOptions): Promise<Response<InvoiceLineItem>>;
181
+ serializeBatchUpdateLineItem(invoice: string, lineItemId: string, params?: Record<string, unknown>, options?: {
182
+ apiVersion?: string;
183
+ stripeContext?: string;
184
+ }): string;
126
185
  }
127
186
  export interface Invoice {
128
187
  /**
@@ -169,6 +228,10 @@ export interface Invoice {
169
228
  * This is the sum of all the shipping amounts.
170
229
  */
171
230
  amount_shipping: number;
231
+ /**
232
+ * List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
233
+ */
234
+ amounts_due?: Array<Invoice.AmountsDue> | null;
172
235
  /**
173
236
  * ID of the Connect Application that created the invoice.
174
237
  */
@@ -234,6 +297,10 @@ export interface Invoice {
234
297
  * The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
235
298
  */
236
299
  customer_address: Address | null;
300
+ /**
301
+ * The customer balance amounts applied to this invoice.
302
+ */
303
+ customer_balance?: Invoice.CustomerBalance | null;
237
304
  /**
238
305
  * The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
239
306
  */
@@ -258,6 +325,10 @@ export interface Invoice {
258
325
  * 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.
259
326
  */
260
327
  customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
328
+ /**
329
+ * The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
330
+ */
331
+ default_margins?: Array<string | Margin> | null;
261
332
  /**
262
333
  * 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.
263
334
  */
@@ -327,6 +398,7 @@ export interface Invoice {
327
398
  * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
328
399
  */
329
400
  livemode: boolean;
401
+ managed_payments?: Invoice.ManagedPayments | null;
330
402
  /**
331
403
  * 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.
332
404
  */
@@ -347,6 +419,10 @@ export interface Invoice {
347
419
  * The parent that generated this invoice
348
420
  */
349
421
  parent: Invoice.Parent | null;
422
+ /**
423
+ * The ID of the payment plan associated with this invoice, if any. Use `expand[]=payment_plan` to include the full payment plan object.
424
+ */
425
+ payment_plan?: string | PaymentPlan;
350
426
  payment_settings: Invoice.PaymentSettings;
351
427
  /**
352
428
  * Payments for this invoice. Use [invoice payment](https://docs.stripe.com/api/invoice-payment) to get more details.
@@ -423,6 +499,10 @@ export interface Invoice {
423
499
  * The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
424
500
  */
425
501
  total_excluding_tax: number | null;
502
+ /**
503
+ * The aggregate amounts calculated per margin across all line items.
504
+ */
505
+ total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
426
506
  /**
427
507
  * 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.
428
508
  */
@@ -451,6 +531,40 @@ export interface DeletedInvoice {
451
531
  deleted: true;
452
532
  }
453
533
  export declare namespace Invoice {
534
+ interface AmountsDue {
535
+ /**
536
+ * Incremental amount due for this payment in cents (or local equivalent).
537
+ */
538
+ amount: number;
539
+ /**
540
+ * The amount in cents (or local equivalent) that was paid for this payment.
541
+ */
542
+ amount_paid: number;
543
+ /**
544
+ * The difference between the payment's amount and amount_paid, in cents (or local equivalent).
545
+ */
546
+ amount_remaining: number;
547
+ /**
548
+ * Number of days from when invoice is finalized until the payment is due.
549
+ */
550
+ days_until_due: number | null;
551
+ /**
552
+ * An arbitrary string attached to the object. Often useful for displaying to users.
553
+ */
554
+ description: string | null;
555
+ /**
556
+ * Date on which a payment plan's payment is due.
557
+ */
558
+ due_date: number | null;
559
+ /**
560
+ * Timestamp when the payment was paid.
561
+ */
562
+ paid_at: number | null;
563
+ /**
564
+ * The status of the payment, one of `open`, `paid`, or `past_due`
565
+ */
566
+ status: AmountsDue.Status;
567
+ }
454
568
  interface AutomaticTax {
455
569
  /**
456
570
  * If Stripe disabled automatic tax, this enum describes why.
@@ -460,6 +574,10 @@ export declare namespace Invoice {
460
574
  * 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.
461
575
  */
462
576
  enabled: boolean;
577
+ /**
578
+ * How `automatic_tax` was set (`explicit`, `managed_payments`, or `tax_integration_configuration`) and why it may have been disabled.
579
+ */
580
+ enablement_details?: AutomaticTax.EnablementDetails | null;
463
581
  /**
464
582
  * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
465
583
  */
@@ -495,6 +613,20 @@ export declare namespace Invoice {
495
613
  */
496
614
  value: string;
497
615
  }
616
+ interface CustomerBalance {
617
+ /**
618
+ * The total amount of customer balance applied to this invoice (automatically + manually).
619
+ */
620
+ applied_balance: number;
621
+ /**
622
+ * The amount of customer balance automatically applied during invoice finalization.
623
+ */
624
+ automatically_applied_balance: number;
625
+ /**
626
+ * The total amount of customer balance manually applied after finalization.
627
+ */
628
+ manually_applied_balance: number;
629
+ }
498
630
  interface CustomerShipping {
499
631
  address?: Address;
500
632
  /**
@@ -566,6 +698,11 @@ export declare namespace Invoice {
566
698
  * A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
567
699
  */
568
700
  doc_url?: string;
701
+ /**
702
+ * A GiftCardOperation represents an operation performed on a third-party gift card,
703
+ * such as activation, reload, cashout, balance check, or void.
704
+ */
705
+ gift_card_operation?: GiftCardOperation;
569
706
  /**
570
707
  * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
571
708
  */
@@ -642,11 +779,25 @@ export declare namespace Invoice {
642
779
  */
643
780
  type: LastFinalizationError.Type;
644
781
  }
782
+ interface ManagedPayments {
783
+ /**
784
+ * Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
785
+ */
786
+ enabled: boolean;
787
+ }
645
788
  interface Parent {
789
+ /**
790
+ * Details about the billing cadence that generated this invoice
791
+ */
792
+ billing_cadence_details?: Parent.BillingCadenceDetails | null;
646
793
  /**
647
794
  * Details about the quote that generated this invoice
648
795
  */
649
796
  quote_details: Parent.QuoteDetails | null;
797
+ /**
798
+ * Details about the schedule that generated this invoice
799
+ */
800
+ schedule_details?: Parent.ScheduleDetails | null;
650
801
  /**
651
802
  * Details about the subscription that generated this invoice
652
803
  */
@@ -771,6 +922,16 @@ export declare namespace Invoice {
771
922
  */
772
923
  discount: string | Discount | DeletedDiscount;
773
924
  }
925
+ interface TotalMarginAmount {
926
+ /**
927
+ * The amount, in cents (or local equivalent), of the reduction in line item amount.
928
+ */
929
+ amount: number;
930
+ /**
931
+ * The margin that was applied to get this margin amount.
932
+ */
933
+ margin: string | Margin;
934
+ }
774
935
  interface TotalPretaxCreditAmount {
775
936
  /**
776
937
  * The amount, in cents (or local equivalent), of the pretax credit amount.
@@ -784,6 +945,10 @@ export declare namespace Invoice {
784
945
  * The discount that was applied to get this pretax credit amount.
785
946
  */
786
947
  discount?: string | Discount | DeletedDiscount;
948
+ /**
949
+ * The margin that was applied to get this pretax credit amount.
950
+ */
951
+ margin?: string | Margin;
787
952
  /**
788
953
  * Type of the pretax credit amount referenced.
789
954
  */
@@ -815,8 +980,21 @@ export declare namespace Invoice {
815
980
  */
816
981
  type: 'tax_rate_details';
817
982
  }
983
+ namespace AmountsDue {
984
+ type Status = 'open' | 'paid' | 'past_due' | OtherString;
985
+ }
818
986
  namespace AutomaticTax {
819
987
  type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error' | OtherString;
988
+ interface EnablementDetails {
989
+ /**
990
+ * Present when `source=tax_integration_configuration`, `automatic_tax[enabled]=false`, and a conflicting parameter is recorded.
991
+ */
992
+ integration_configuration_disabled_reason: EnablementDetails.IntegrationConfigurationDisabledReason | null;
993
+ /**
994
+ * How `automatic_tax` was set: `explicit`, `managed_payments`, or `tax_integration_configuration`.
995
+ */
996
+ source: EnablementDetails.Source;
997
+ }
820
998
  interface Liability {
821
999
  /**
822
1000
  * The connected account being referenced when `type` is `account`.
@@ -828,33 +1006,62 @@ export declare namespace Invoice {
828
1006
  type: Liability.Type;
829
1007
  }
830
1008
  type Status = 'complete' | 'failed' | 'requires_location_inputs' | OtherString;
1009
+ namespace EnablementDetails {
1010
+ interface IntegrationConfigurationDisabledReason {
1011
+ /**
1012
+ * The parameter that prevented `automatic_tax` from being enabled (for example `default_tax_rates`).
1013
+ */
1014
+ conflicting_field: string;
1015
+ }
1016
+ type Source = 'explicit' | 'managed_payments' | 'tax_integration_configuration';
1017
+ }
831
1018
  namespace Liability {
832
- type Type = 'account' | 'self' | OtherString;
1019
+ type Type = 'account' | 'application' | 'self' | OtherString;
833
1020
  }
834
1021
  }
835
1022
  namespace CustomerTaxId {
836
1023
  type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_acn' | 'au_arn' | 'au_wpn' | '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' | 'bw_vat' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'ci_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cz_dic' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'fr_siren' | 'fr_siret' | 'fr_spi' | 'gb_vat' | 'ge_vat' | 'gh_tin' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_kt' | '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_cf' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mu_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'mz_nuit' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_bn' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'pt_nif' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sm_coe' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tt_bir' | 'tt_vat' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin' | OtherString;
837
1024
  }
838
1025
  namespace Issuer {
839
- type Type = 'account' | 'self' | OtherString;
1026
+ type Type = 'account' | 'application' | 'self' | OtherString;
840
1027
  }
841
1028
  namespace LastFinalizationError {
842
- 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_failure' | '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' | 'capability_not_active' | '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' | 'dispute_evidence_page_limit_exceeded' | 'email_invalid' | 'expired_card' | 'expired_payment_method' | '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_consent_locale_invalid' | 'financial_connections_consent_locale_unsupported' | '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_postal_code' | '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_canceled_subscription_fields' | '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_evaluation_on_api_version_not_supported' | '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_restricted' | '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' | 'smart_disputes_not_available' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'subscription_update_trial_after_billing_cycle_anchor' | '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' | 'three_d_secure_authentication_not_supported' | 'three_d_secure_authentication_upstream_error' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | OtherString;
1029
+ 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_failure' | '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' | 'capability_not_active' | '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' | 'dispute_evidence_page_limit_exceeded' | 'email_invalid' | 'expired_card' | 'expired_payment_method' | '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_consent_locale_invalid' | 'financial_connections_consent_locale_unsupported' | '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_postal_code' | '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_canceled_subscription_fields' | '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_evaluation_on_api_version_not_supported' | '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_restricted' | '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' | 'smart_disputes_not_available' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'subscription_update_trial_after_billing_cycle_anchor' | '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' | 'three_d_secure_authentication_not_supported' | 'three_d_secure_authentication_upstream_error' | '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' | OtherString;
843
1030
  type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | OtherString;
844
1031
  }
845
1032
  namespace Parent {
1033
+ interface BillingCadenceDetails {
1034
+ /**
1035
+ * The billing cadence that generated this invoice
1036
+ */
1037
+ billing_cadence: string;
1038
+ }
846
1039
  interface QuoteDetails {
847
1040
  /**
848
1041
  * The quote that generated this invoice
849
1042
  */
850
1043
  quote: string;
851
1044
  }
1045
+ interface ScheduleDetails {
1046
+ /**
1047
+ * The schedule that generated this invoice
1048
+ */
1049
+ schedule: string;
1050
+ /**
1051
+ * The subscription associated with this schedule
1052
+ */
1053
+ subscription: string | Subscription | null;
1054
+ }
852
1055
  interface SubscriptionDetails {
853
1056
  /**
854
1057
  * Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
855
1058
  * *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
856
1059
  */
857
1060
  metadata: Metadata | null;
1061
+ /**
1062
+ * 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).
1063
+ */
1064
+ pause_collection?: SubscriptionDetails.PauseCollection | null;
858
1065
  /**
859
1066
  * The subscription that generated this invoice
860
1067
  */
@@ -864,7 +1071,22 @@ export declare namespace Invoice {
864
1071
  */
865
1072
  subscription_proration_date?: number;
866
1073
  }
867
- type Type = 'quote_details' | 'subscription_details' | OtherString;
1074
+ type Type = 'billing_cadence_details' | 'quote_details' | 'schedule_details' | 'subscription_details' | OtherString;
1075
+ namespace SubscriptionDetails {
1076
+ interface PauseCollection {
1077
+ /**
1078
+ * The payment collection behavior for this subscription while paused.
1079
+ */
1080
+ behavior: PauseCollection.Behavior | null;
1081
+ /**
1082
+ * The time after which the subscription will resume collecting payments.
1083
+ */
1084
+ resumes_at: number | null;
1085
+ }
1086
+ namespace PauseCollection {
1087
+ type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
1088
+ }
1089
+ }
868
1090
  }
869
1091
  namespace PaymentSettings {
870
1092
  interface PaymentMethodOptions {
@@ -872,6 +1094,10 @@ export declare namespace Invoice {
872
1094
  * If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
873
1095
  */
874
1096
  acss_debit: PaymentMethodOptions.AcssDebit | null;
1097
+ /**
1098
+ * If paying by `bacs_debit`, this sub-hash contains details about the Bacs Direct Debit payment method options to pass to the invoice's PaymentIntent.
1099
+ */
1100
+ bacs_debit?: PaymentMethodOptions.BacsDebit | null;
875
1101
  /**
876
1102
  * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
877
1103
  */
@@ -880,6 +1106,10 @@ export declare namespace Invoice {
880
1106
  * If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
881
1107
  */
882
1108
  billie?: PaymentMethodOptions.Billie | null;
1109
+ /**
1110
+ * If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
1111
+ */
1112
+ bizum?: PaymentMethodOptions.Bizum | null;
883
1113
  /**
884
1114
  * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
885
1115
  */
@@ -888,10 +1118,18 @@ export declare namespace Invoice {
888
1118
  * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
889
1119
  */
890
1120
  card: PaymentMethodOptions.Card | null;
1121
+ /**
1122
+ * If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
1123
+ */
1124
+ check_scan?: PaymentMethodOptions.CheckScan | null;
891
1125
  /**
892
1126
  * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
893
1127
  */
894
1128
  customer_balance: PaymentMethodOptions.CustomerBalance | null;
1129
+ /**
1130
+ * 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.
1131
+ */
1132
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
895
1133
  /**
896
1134
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
897
1135
  */
@@ -916,8 +1154,12 @@ export declare namespace Invoice {
916
1154
  * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
917
1155
  */
918
1156
  us_bank_account: PaymentMethodOptions.UsBankAccount | null;
1157
+ /**
1158
+ * If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
1159
+ */
1160
+ wechat_pay?: PaymentMethodOptions.WechatPay | null;
919
1161
  }
920
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
1162
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'touch_n_go' | 'truemoney' | 'twint' | 'upi' | 'us_bank_account' | 'vipps' | 'wechat_pay' | OtherString;
921
1163
  namespace PaymentMethodOptions {
922
1164
  interface AcssDebit {
923
1165
  mandate_options?: AcssDebit.MandateOptions;
@@ -926,6 +1168,13 @@ export declare namespace Invoice {
926
1168
  */
927
1169
  verification_method?: AcssDebit.VerificationMethod;
928
1170
  }
1171
+ interface BacsDebit {
1172
+ /**
1173
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1174
+ */
1175
+ target_date?: string;
1176
+ verification_method?: BacsDebit.VerificationMethod;
1177
+ }
929
1178
  interface Bancontact {
930
1179
  /**
931
1180
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -939,6 +1188,8 @@ export declare namespace Invoice {
939
1188
  */
940
1189
  reference?: string | null;
941
1190
  }
1191
+ interface Bizum {
1192
+ }
942
1193
  interface Blik {
943
1194
  }
944
1195
  interface Card {
@@ -948,6 +1199,8 @@ export declare namespace Invoice {
948
1199
  */
949
1200
  request_three_d_secure: Card.RequestThreeDSecure | null;
950
1201
  }
1202
+ interface CheckScan {
1203
+ }
951
1204
  interface CustomerBalance {
952
1205
  bank_transfer?: CustomerBalance.BankTransfer;
953
1206
  /**
@@ -955,6 +1208,8 @@ export declare namespace Invoice {
955
1208
  */
956
1209
  funding_type: 'bank_transfer' | null;
957
1210
  }
1211
+ interface IdBankTransfer {
1212
+ }
958
1213
  interface Konbini {
959
1214
  }
960
1215
  interface Payto {
@@ -971,6 +1226,10 @@ export declare namespace Invoice {
971
1226
  expires_after_seconds?: number;
972
1227
  }
973
1228
  interface SepaDebit {
1229
+ /**
1230
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1231
+ */
1232
+ target_date?: string;
974
1233
  }
975
1234
  interface Upi {
976
1235
  mandate_options?: Upi.MandateOptions;
@@ -982,6 +1241,16 @@ export declare namespace Invoice {
982
1241
  */
983
1242
  verification_method?: UsBankAccount.VerificationMethod;
984
1243
  }
1244
+ interface WechatPay {
1245
+ /**
1246
+ * The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
1247
+ */
1248
+ app_id?: string;
1249
+ /**
1250
+ * The client type that the end customer will pay from.
1251
+ */
1252
+ client?: WechatPay.Client;
1253
+ }
985
1254
  namespace AcssDebit {
986
1255
  interface MandateOptions {
987
1256
  /**
@@ -994,6 +1263,9 @@ export declare namespace Invoice {
994
1263
  type TransactionType = 'business' | 'personal' | OtherString;
995
1264
  }
996
1265
  }
1266
+ namespace BacsDebit {
1267
+ type VerificationMethod = 'automatic' | 'instant' | 'payer_name_verification' | OtherString;
1268
+ }
997
1269
  namespace Bancontact {
998
1270
  type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
999
1271
  }
@@ -1115,14 +1387,21 @@ export declare namespace Invoice {
1115
1387
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1116
1388
  */
1117
1389
  account_subcategories?: Array<Filters.AccountSubcategory>;
1390
+ /**
1391
+ * The institution to use to filter for possible accounts to link.
1392
+ */
1393
+ institution?: string;
1118
1394
  }
1119
1395
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
1120
- type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
1396
+ type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
1121
1397
  namespace Filters {
1122
1398
  type AccountSubcategory = 'checking' | 'savings' | OtherString;
1123
1399
  }
1124
1400
  }
1125
1401
  }
1402
+ namespace WechatPay {
1403
+ type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
1404
+ }
1126
1405
  }
1127
1406
  }
1128
1407
  namespace Rendering {
@@ -1185,7 +1464,7 @@ export declare namespace Invoice {
1185
1464
  }
1186
1465
  }
1187
1466
  namespace TotalPretaxCreditAmount {
1188
- type Type = 'credit_balance_transaction' | 'discount' | OtherString;
1467
+ type Type = 'credit_balance_transaction' | 'discount' | 'margin' | OtherString;
1189
1468
  }
1190
1469
  namespace TotalTax {
1191
1470
  type TaxBehavior = 'exclusive' | 'inclusive' | OtherString;
@@ -1193,7 +1472,7 @@ export declare namespace Invoice {
1193
1472
  /**
1194
1473
  * ID of the tax rate
1195
1474
  */
1196
- tax_rate: string;
1475
+ tax_rate: string | TaxRate;
1197
1476
  }
1198
1477
  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' | OtherString;
1199
1478
  }
@@ -1203,6 +1482,10 @@ export interface InvoiceCreateParams {
1203
1482
  * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
1204
1483
  */
1205
1484
  account_tax_ids?: Emptyable<Array<string>>;
1485
+ /**
1486
+ * List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
1487
+ */
1488
+ amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
1206
1489
  /**
1207
1490
  * 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).
1208
1491
  */
@@ -1243,6 +1526,10 @@ export interface InvoiceCreateParams {
1243
1526
  * The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
1244
1527
  */
1245
1528
  days_until_due?: number;
1529
+ /**
1530
+ * The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
1531
+ */
1532
+ default_margins?: Array<string>;
1246
1533
  /**
1247
1534
  * 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.
1248
1535
  */
@@ -1287,6 +1574,10 @@ export interface InvoiceCreateParams {
1287
1574
  * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
1288
1575
  */
1289
1576
  issuer?: InvoiceCreateParams.Issuer;
1577
+ /**
1578
+ * Settings for Managed Payments for this invoice.
1579
+ */
1580
+ managed_payments?: InvoiceCreateParams.ManagedPayments;
1290
1581
  /**
1291
1582
  * 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`.
1292
1583
  */
@@ -1333,6 +1624,24 @@ export interface InvoiceCreateParams {
1333
1624
  transfer_data?: InvoiceCreateParams.TransferData;
1334
1625
  }
1335
1626
  export declare namespace InvoiceCreateParams {
1627
+ interface AmountsDue {
1628
+ /**
1629
+ * The amount in cents (or local equivalent).
1630
+ */
1631
+ amount: number;
1632
+ /**
1633
+ * Number of days from when invoice is finalized until the payment is due.
1634
+ */
1635
+ days_until_due?: number;
1636
+ /**
1637
+ * An arbitrary string attached to the object. Often useful for displaying to users.
1638
+ */
1639
+ description: string;
1640
+ /**
1641
+ * Date on which a payment plan's payment is due.
1642
+ */
1643
+ due_date?: number;
1644
+ }
1336
1645
  interface AutomaticTax {
1337
1646
  /**
1338
1647
  * 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.
@@ -1363,6 +1672,10 @@ export declare namespace InvoiceCreateParams {
1363
1672
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
1364
1673
  */
1365
1674
  discount?: string;
1675
+ /**
1676
+ * Details to determine how long the discount should be applied for.
1677
+ */
1678
+ discount_end?: Discount.DiscountEnd;
1366
1679
  /**
1367
1680
  * ID of the promotion code to create a new discount for.
1368
1681
  */
@@ -1388,6 +1701,12 @@ export declare namespace InvoiceCreateParams {
1388
1701
  */
1389
1702
  type: Issuer.Type;
1390
1703
  }
1704
+ interface ManagedPayments {
1705
+ /**
1706
+ * Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution.
1707
+ */
1708
+ enabled?: boolean;
1709
+ }
1391
1710
  interface PaymentSettings {
1392
1711
  /**
1393
1712
  * ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
@@ -1467,11 +1786,43 @@ export declare namespace InvoiceCreateParams {
1467
1786
  type: Liability.Type;
1468
1787
  }
1469
1788
  namespace Liability {
1470
- type Type = 'account' | 'self' | OtherString;
1789
+ type Type = 'account' | 'application' | 'self' | OtherString;
1790
+ }
1791
+ }
1792
+ namespace Discount {
1793
+ interface DiscountEnd {
1794
+ /**
1795
+ * Time span for the redeemed discount.
1796
+ */
1797
+ duration?: DiscountEnd.Duration;
1798
+ /**
1799
+ * A precise Unix timestamp for the discount to end. Must be in the future.
1800
+ */
1801
+ timestamp?: number;
1802
+ /**
1803
+ * The type of calculation made to determine when the discount ends.
1804
+ */
1805
+ type: DiscountEnd.Type;
1806
+ }
1807
+ namespace DiscountEnd {
1808
+ interface Duration {
1809
+ /**
1810
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1811
+ */
1812
+ interval: Duration.Interval;
1813
+ /**
1814
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1815
+ */
1816
+ interval_count: number;
1817
+ }
1818
+ type Type = 'duration' | 'timestamp' | OtherString;
1819
+ namespace Duration {
1820
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
1821
+ }
1471
1822
  }
1472
1823
  }
1473
1824
  namespace Issuer {
1474
- type Type = 'account' | 'self' | OtherString;
1825
+ type Type = 'account' | 'application' | 'self' | OtherString;
1475
1826
  }
1476
1827
  namespace PaymentSettings {
1477
1828
  interface PaymentMethodOptions {
@@ -1479,6 +1830,10 @@ export declare namespace InvoiceCreateParams {
1479
1830
  * If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
1480
1831
  */
1481
1832
  acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
1833
+ /**
1834
+ * If paying by `bacs_debit`, this sub-hash contains details about the Bacs Direct Debit payment method options to pass to the invoice's PaymentIntent.
1835
+ */
1836
+ bacs_debit?: Emptyable<PaymentMethodOptions.BacsDebit>;
1482
1837
  /**
1483
1838
  * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
1484
1839
  */
@@ -1487,6 +1842,10 @@ export declare namespace InvoiceCreateParams {
1487
1842
  * If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
1488
1843
  */
1489
1844
  billie?: Emptyable<PaymentMethodOptions.Billie>;
1845
+ /**
1846
+ * If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
1847
+ */
1848
+ bizum?: Emptyable<PaymentMethodOptions.Bizum>;
1490
1849
  /**
1491
1850
  * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
1492
1851
  */
@@ -1495,10 +1854,18 @@ export declare namespace InvoiceCreateParams {
1495
1854
  * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
1496
1855
  */
1497
1856
  card?: Emptyable<PaymentMethodOptions.Card>;
1857
+ /**
1858
+ * If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
1859
+ */
1860
+ check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
1498
1861
  /**
1499
1862
  * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
1500
1863
  */
1501
1864
  customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
1865
+ /**
1866
+ * 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.
1867
+ */
1868
+ id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
1502
1869
  /**
1503
1870
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1504
1871
  */
@@ -1523,8 +1890,12 @@ export declare namespace InvoiceCreateParams {
1523
1890
  * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
1524
1891
  */
1525
1892
  us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
1893
+ /**
1894
+ * If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
1895
+ */
1896
+ wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
1526
1897
  }
1527
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
1898
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'touch_n_go' | 'truemoney' | 'twint' | 'upi' | 'us_bank_account' | 'vipps' | 'wechat_pay' | OtherString;
1528
1899
  namespace PaymentMethodOptions {
1529
1900
  interface AcssDebit {
1530
1901
  /**
@@ -1536,6 +1907,13 @@ export declare namespace InvoiceCreateParams {
1536
1907
  */
1537
1908
  verification_method?: AcssDebit.VerificationMethod;
1538
1909
  }
1910
+ interface BacsDebit {
1911
+ /**
1912
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1913
+ */
1914
+ target_date?: string;
1915
+ verification_method?: BacsDebit.VerificationMethod;
1916
+ }
1539
1917
  interface Bancontact {
1540
1918
  /**
1541
1919
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -1552,6 +1930,8 @@ export declare namespace InvoiceCreateParams {
1552
1930
  */
1553
1931
  reference?: string;
1554
1932
  }
1933
+ interface Bizum {
1934
+ }
1555
1935
  interface Blik {
1556
1936
  }
1557
1937
  interface Card {
@@ -1566,6 +1946,8 @@ export declare namespace InvoiceCreateParams {
1566
1946
  */
1567
1947
  request_three_d_secure?: Card.RequestThreeDSecure;
1568
1948
  }
1949
+ interface CheckScan {
1950
+ }
1569
1951
  interface CustomerBalance {
1570
1952
  /**
1571
1953
  * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
@@ -1576,6 +1958,8 @@ export declare namespace InvoiceCreateParams {
1576
1958
  */
1577
1959
  funding_type?: string;
1578
1960
  }
1961
+ interface IdBankTransfer {
1962
+ }
1579
1963
  interface Konbini {
1580
1964
  }
1581
1965
  interface Payto {
@@ -1595,6 +1979,10 @@ export declare namespace InvoiceCreateParams {
1595
1979
  expires_after_seconds?: number;
1596
1980
  }
1597
1981
  interface SepaDebit {
1982
+ /**
1983
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1984
+ */
1985
+ target_date?: string;
1598
1986
  }
1599
1987
  interface Upi {
1600
1988
  /**
@@ -1612,6 +2000,16 @@ export declare namespace InvoiceCreateParams {
1612
2000
  */
1613
2001
  verification_method?: UsBankAccount.VerificationMethod;
1614
2002
  }
2003
+ interface WechatPay {
2004
+ /**
2005
+ * The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
2006
+ */
2007
+ app_id?: string;
2008
+ /**
2009
+ * The client type that the end customer will pay from.
2010
+ */
2011
+ client?: WechatPay.Client;
2012
+ }
1615
2013
  namespace AcssDebit {
1616
2014
  interface MandateOptions {
1617
2015
  /**
@@ -1624,6 +2022,9 @@ export declare namespace InvoiceCreateParams {
1624
2022
  type TransactionType = 'business' | 'personal' | OtherString;
1625
2023
  }
1626
2024
  }
2025
+ namespace BacsDebit {
2026
+ type VerificationMethod = 'automatic' | 'instant' | 'payer_name_verification' | OtherString;
2027
+ }
1627
2028
  namespace Bancontact {
1628
2029
  type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
1629
2030
  }
@@ -1771,14 +2172,21 @@ export declare namespace InvoiceCreateParams {
1771
2172
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1772
2173
  */
1773
2174
  account_subcategories?: Array<Filters.AccountSubcategory>;
2175
+ /**
2176
+ * ID of the institution to use to filter for selectable accounts.
2177
+ */
2178
+ institution?: string;
1774
2179
  }
1775
2180
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
1776
- type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
2181
+ type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
1777
2182
  namespace Filters {
1778
2183
  type AccountSubcategory = 'checking' | 'savings' | OtherString;
1779
2184
  }
1780
2185
  }
1781
2186
  }
2187
+ namespace WechatPay {
2188
+ type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
2189
+ }
1782
2190
  }
1783
2191
  }
1784
2192
  namespace Rendering {
@@ -1911,6 +2319,10 @@ export interface InvoiceUpdateParams {
1911
2319
  * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
1912
2320
  */
1913
2321
  account_tax_ids?: Emptyable<Array<string>>;
2322
+ /**
2323
+ * List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
2324
+ */
2325
+ amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
1914
2326
  /**
1915
2327
  * 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).
1916
2328
  */
@@ -1939,6 +2351,10 @@ export interface InvoiceUpdateParams {
1939
2351
  * 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.
1940
2352
  */
1941
2353
  days_until_due?: number;
2354
+ /**
2355
+ * The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
2356
+ */
2357
+ default_margins?: Emptyable<Array<string>>;
1942
2358
  /**
1943
2359
  * 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.
1944
2360
  */
@@ -2017,6 +2433,24 @@ export interface InvoiceUpdateParams {
2017
2433
  transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
2018
2434
  }
2019
2435
  export declare namespace InvoiceUpdateParams {
2436
+ interface AmountsDue {
2437
+ /**
2438
+ * The amount in cents (or local equivalent).
2439
+ */
2440
+ amount: number;
2441
+ /**
2442
+ * Number of days from when invoice is finalized until the payment is due.
2443
+ */
2444
+ days_until_due?: number;
2445
+ /**
2446
+ * An arbitrary string attached to the object. Often useful for displaying to users.
2447
+ */
2448
+ description: string;
2449
+ /**
2450
+ * Date on which a payment plan's payment is due.
2451
+ */
2452
+ due_date?: number;
2453
+ }
2020
2454
  interface AutomaticTax {
2021
2455
  /**
2022
2456
  * 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.
@@ -2047,6 +2481,10 @@ export declare namespace InvoiceUpdateParams {
2047
2481
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2048
2482
  */
2049
2483
  discount?: string;
2484
+ /**
2485
+ * Details to determine how long the discount should be applied for.
2486
+ */
2487
+ discount_end?: Discount.DiscountEnd;
2050
2488
  /**
2051
2489
  * ID of the promotion code to create a new discount for.
2052
2490
  */
@@ -2140,11 +2578,43 @@ export declare namespace InvoiceUpdateParams {
2140
2578
  type: Liability.Type;
2141
2579
  }
2142
2580
  namespace Liability {
2143
- type Type = 'account' | 'self' | OtherString;
2581
+ type Type = 'account' | 'application' | 'self' | OtherString;
2582
+ }
2583
+ }
2584
+ namespace Discount {
2585
+ interface DiscountEnd {
2586
+ /**
2587
+ * Time span for the redeemed discount.
2588
+ */
2589
+ duration?: DiscountEnd.Duration;
2590
+ /**
2591
+ * A precise Unix timestamp for the discount to end. Must be in the future.
2592
+ */
2593
+ timestamp?: number;
2594
+ /**
2595
+ * The type of calculation made to determine when the discount ends.
2596
+ */
2597
+ type: DiscountEnd.Type;
2598
+ }
2599
+ namespace DiscountEnd {
2600
+ interface Duration {
2601
+ /**
2602
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2603
+ */
2604
+ interval: Duration.Interval;
2605
+ /**
2606
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2607
+ */
2608
+ interval_count: number;
2609
+ }
2610
+ type Type = 'duration' | 'timestamp' | OtherString;
2611
+ namespace Duration {
2612
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
2613
+ }
2144
2614
  }
2145
2615
  }
2146
2616
  namespace Issuer {
2147
- type Type = 'account' | 'self' | OtherString;
2617
+ type Type = 'account' | 'application' | 'self' | OtherString;
2148
2618
  }
2149
2619
  namespace PaymentSettings {
2150
2620
  interface PaymentMethodOptions {
@@ -2152,6 +2622,10 @@ export declare namespace InvoiceUpdateParams {
2152
2622
  * If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
2153
2623
  */
2154
2624
  acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
2625
+ /**
2626
+ * If paying by `bacs_debit`, this sub-hash contains details about the Bacs Direct Debit payment method options to pass to the invoice's PaymentIntent.
2627
+ */
2628
+ bacs_debit?: Emptyable<PaymentMethodOptions.BacsDebit>;
2155
2629
  /**
2156
2630
  * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
2157
2631
  */
@@ -2160,6 +2634,10 @@ export declare namespace InvoiceUpdateParams {
2160
2634
  * If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
2161
2635
  */
2162
2636
  billie?: Emptyable<PaymentMethodOptions.Billie>;
2637
+ /**
2638
+ * If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
2639
+ */
2640
+ bizum?: Emptyable<PaymentMethodOptions.Bizum>;
2163
2641
  /**
2164
2642
  * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
2165
2643
  */
@@ -2168,10 +2646,18 @@ export declare namespace InvoiceUpdateParams {
2168
2646
  * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
2169
2647
  */
2170
2648
  card?: Emptyable<PaymentMethodOptions.Card>;
2649
+ /**
2650
+ * If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
2651
+ */
2652
+ check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
2171
2653
  /**
2172
2654
  * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
2173
2655
  */
2174
2656
  customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
2657
+ /**
2658
+ * 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.
2659
+ */
2660
+ id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
2175
2661
  /**
2176
2662
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
2177
2663
  */
@@ -2196,8 +2682,12 @@ export declare namespace InvoiceUpdateParams {
2196
2682
  * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
2197
2683
  */
2198
2684
  us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
2685
+ /**
2686
+ * If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
2687
+ */
2688
+ wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
2199
2689
  }
2200
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
2690
+ type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'touch_n_go' | 'truemoney' | 'twint' | 'upi' | 'us_bank_account' | 'vipps' | 'wechat_pay' | OtherString;
2201
2691
  namespace PaymentMethodOptions {
2202
2692
  interface AcssDebit {
2203
2693
  /**
@@ -2209,6 +2699,13 @@ export declare namespace InvoiceUpdateParams {
2209
2699
  */
2210
2700
  verification_method?: AcssDebit.VerificationMethod;
2211
2701
  }
2702
+ interface BacsDebit {
2703
+ /**
2704
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2705
+ */
2706
+ target_date?: string;
2707
+ verification_method?: BacsDebit.VerificationMethod;
2708
+ }
2212
2709
  interface Bancontact {
2213
2710
  /**
2214
2711
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -2225,6 +2722,8 @@ export declare namespace InvoiceUpdateParams {
2225
2722
  */
2226
2723
  reference?: string;
2227
2724
  }
2725
+ interface Bizum {
2726
+ }
2228
2727
  interface Blik {
2229
2728
  }
2230
2729
  interface Card {
@@ -2239,6 +2738,8 @@ export declare namespace InvoiceUpdateParams {
2239
2738
  */
2240
2739
  request_three_d_secure?: Card.RequestThreeDSecure;
2241
2740
  }
2741
+ interface CheckScan {
2742
+ }
2242
2743
  interface CustomerBalance {
2243
2744
  /**
2244
2745
  * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
@@ -2249,6 +2750,8 @@ export declare namespace InvoiceUpdateParams {
2249
2750
  */
2250
2751
  funding_type?: string;
2251
2752
  }
2753
+ interface IdBankTransfer {
2754
+ }
2252
2755
  interface Konbini {
2253
2756
  }
2254
2757
  interface Payto {
@@ -2268,6 +2771,10 @@ export declare namespace InvoiceUpdateParams {
2268
2771
  expires_after_seconds?: number;
2269
2772
  }
2270
2773
  interface SepaDebit {
2774
+ /**
2775
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2776
+ */
2777
+ target_date?: string;
2271
2778
  }
2272
2779
  interface Upi {
2273
2780
  /**
@@ -2285,6 +2792,16 @@ export declare namespace InvoiceUpdateParams {
2285
2792
  */
2286
2793
  verification_method?: UsBankAccount.VerificationMethod;
2287
2794
  }
2795
+ interface WechatPay {
2796
+ /**
2797
+ * The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
2798
+ */
2799
+ app_id?: string;
2800
+ /**
2801
+ * The client type that the end customer will pay from.
2802
+ */
2803
+ client?: WechatPay.Client;
2804
+ }
2288
2805
  namespace AcssDebit {
2289
2806
  interface MandateOptions {
2290
2807
  /**
@@ -2297,6 +2814,9 @@ export declare namespace InvoiceUpdateParams {
2297
2814
  type TransactionType = 'business' | 'personal' | OtherString;
2298
2815
  }
2299
2816
  }
2817
+ namespace BacsDebit {
2818
+ type VerificationMethod = 'automatic' | 'instant' | 'payer_name_verification' | OtherString;
2819
+ }
2300
2820
  namespace Bancontact {
2301
2821
  type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
2302
2822
  }
@@ -2444,14 +2964,21 @@ export declare namespace InvoiceUpdateParams {
2444
2964
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2445
2965
  */
2446
2966
  account_subcategories?: Array<Filters.AccountSubcategory>;
2967
+ /**
2968
+ * ID of the institution to use to filter for selectable accounts.
2969
+ */
2970
+ institution?: string;
2447
2971
  }
2448
2972
  type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
2449
- type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
2973
+ type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
2450
2974
  namespace Filters {
2451
2975
  type AccountSubcategory = 'checking' | 'savings' | OtherString;
2452
2976
  }
2453
2977
  }
2454
2978
  }
2979
+ namespace WechatPay {
2980
+ type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
2981
+ }
2455
2982
  }
2456
2983
  }
2457
2984
  namespace Rendering {
@@ -2574,6 +3101,10 @@ export declare namespace InvoiceUpdateParams {
2574
3101
  }
2575
3102
  }
2576
3103
  export interface InvoiceListParams extends PaginationParams {
3104
+ /**
3105
+ * Only return invoices for the cadence specified by this billing cadence ID.
3106
+ */
3107
+ billing_cadence?: string;
2577
3108
  /**
2578
3109
  * The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
2579
3110
  */
@@ -2648,6 +3179,10 @@ export declare namespace InvoiceAddLinesParams {
2648
3179
  * ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
2649
3180
  */
2650
3181
  invoice_item?: string;
3182
+ /**
3183
+ * 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.
3184
+ */
3185
+ margins?: Emptyable<Array<string>>;
2651
3186
  /**
2652
3187
  * 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`.
2653
3188
  */
@@ -2691,6 +3226,10 @@ export declare namespace InvoiceAddLinesParams {
2691
3226
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2692
3227
  */
2693
3228
  discount?: string;
3229
+ /**
3230
+ * Details to determine how long the discount should be applied for.
3231
+ */
3232
+ discount_end?: Discount.DiscountEnd;
2694
3233
  /**
2695
3234
  * ID of the promotion code to create a new discount for.
2696
3235
  */
@@ -2758,16 +3297,48 @@ export declare namespace InvoiceAddLinesParams {
2758
3297
  */
2759
3298
  taxable_amount: number;
2760
3299
  }
2761
- namespace PriceData {
2762
- interface ProductData {
3300
+ namespace Discount {
3301
+ interface DiscountEnd {
2763
3302
  /**
2764
- * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
3303
+ * Time span for the redeemed discount.
2765
3304
  */
2766
- description?: string;
3305
+ duration?: DiscountEnd.Duration;
2767
3306
  /**
2768
- * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3307
+ * A precise Unix timestamp for the discount to end. Must be in the future.
2769
3308
  */
2770
- images?: Array<string>;
3309
+ timestamp?: number;
3310
+ /**
3311
+ * The type of calculation made to determine when the discount ends.
3312
+ */
3313
+ type: DiscountEnd.Type;
3314
+ }
3315
+ namespace DiscountEnd {
3316
+ interface Duration {
3317
+ /**
3318
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3319
+ */
3320
+ interval: Duration.Interval;
3321
+ /**
3322
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3323
+ */
3324
+ interval_count: number;
3325
+ }
3326
+ type Type = 'duration' | 'timestamp' | OtherString;
3327
+ namespace Duration {
3328
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
3329
+ }
3330
+ }
3331
+ }
3332
+ namespace PriceData {
3333
+ interface ProductData {
3334
+ /**
3335
+ * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
3336
+ */
3337
+ description?: string;
3338
+ /**
3339
+ * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3340
+ */
3341
+ images?: Array<string>;
2771
3342
  /**
2772
3343
  * 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`.
2773
3344
  */
@@ -2851,6 +3422,10 @@ export declare namespace InvoiceAddLinesParams {
2851
3422
  }
2852
3423
  }
2853
3424
  export interface InvoiceAttachPaymentParams {
3425
+ /**
3426
+ * The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
3427
+ */
3428
+ amount_requested?: number;
2854
3429
  /**
2855
3430
  * Specifies which fields in the response should be expanded.
2856
3431
  */
@@ -2863,12 +3438,48 @@ export interface InvoiceAttachPaymentParams {
2863
3438
  * The ID of the PaymentRecord to attach to the invoice.
2864
3439
  */
2865
3440
  payment_record?: string;
3441
+ /**
3442
+ * The PaymentRecord data for attaching an out of band payment to the invoice.
3443
+ */
3444
+ payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
3445
+ }
3446
+ export declare namespace InvoiceAttachPaymentParams {
3447
+ interface PaymentRecordData {
3448
+ /**
3449
+ * The amount that was paid out of band.
3450
+ */
3451
+ amount: number;
3452
+ /**
3453
+ * The currency that was paid out of band.
3454
+ */
3455
+ currency: string;
3456
+ /**
3457
+ * 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`.
3458
+ */
3459
+ metadata?: Emptyable<MetadataParam>;
3460
+ /**
3461
+ * The type of money movement for this out of band payment record.
3462
+ */
3463
+ money_movement_type: string;
3464
+ /**
3465
+ * The timestamp when this out of band payment was paid.
3466
+ */
3467
+ paid_at?: number;
3468
+ /**
3469
+ * The reference for this out of band payment record.
3470
+ */
3471
+ payment_reference?: string;
3472
+ }
2866
3473
  }
2867
3474
  export interface InvoiceCreatePreviewParams {
2868
3475
  /**
2869
3476
  * Settings for automatic tax lookup for this invoice preview.
2870
3477
  */
2871
3478
  automatic_tax?: InvoiceCreatePreviewParams.AutomaticTax;
3479
+ /**
3480
+ * The identifier of the billing cadence for which you'd like to retrieve the upcoming invoice. Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
3481
+ */
3482
+ billing_cadence?: string;
2872
3483
  /**
2873
3484
  * The currency to preview this invoice in. Defaults to that of `customer` if not specified.
2874
3485
  */
@@ -2909,6 +3520,10 @@ export interface InvoiceCreatePreviewParams {
2909
3520
  * Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
2910
3521
  */
2911
3522
  preview_mode?: InvoiceCreatePreviewParams.PreviewMode;
3523
+ /**
3524
+ * A pricing token whose presentment currency and exchange rate are used to convert the amounts on the previewed invoice into the customer-facing presentment currency. When omitted, amounts are returned in the settlement currency.
3525
+ */
3526
+ pricing_token?: string;
2912
3527
  /**
2913
3528
  * The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
2914
3529
  */
@@ -2968,10 +3583,18 @@ export declare namespace InvoiceCreatePreviewParams {
2968
3583
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
2969
3584
  */
2970
3585
  discount?: string;
3586
+ /**
3587
+ * Details to determine how long the discount should be applied for.
3588
+ */
3589
+ discount_end?: Discount.DiscountEnd;
2971
3590
  /**
2972
3591
  * ID of the promotion code to create a new discount for.
2973
3592
  */
2974
3593
  promotion_code?: string;
3594
+ /**
3595
+ * Settings for discount application including service period anchoring.
3596
+ */
3597
+ settings?: Discount.Settings;
2975
3598
  }
2976
3599
  interface InvoiceItem {
2977
3600
  /**
@@ -3055,10 +3678,26 @@ export declare namespace InvoiceCreatePreviewParams {
3055
3678
  }
3056
3679
  type PreviewMode = 'next' | 'recurring' | OtherString;
3057
3680
  interface ScheduleDetails {
3681
+ /**
3682
+ * Changes to apply to the phases of the subscription schedule, in the order provided.
3683
+ */
3684
+ amendments?: Array<ScheduleDetails.Amendment>;
3685
+ /**
3686
+ * 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.
3687
+ */
3688
+ billing_behavior?: ScheduleDetails.BillingBehavior;
3058
3689
  /**
3059
3690
  * Controls how prorations and invoices for subscriptions are calculated and orchestrated.
3060
3691
  */
3061
3692
  billing_mode?: ScheduleDetails.BillingMode;
3693
+ /**
3694
+ * Sets the billing schedules for the subscription schedule.
3695
+ */
3696
+ billing_schedules?: Emptyable<Array<ScheduleDetails.BillingSchedule>>;
3697
+ /**
3698
+ * Object representing the subscription schedule's default settings.
3699
+ */
3700
+ default_settings?: ScheduleDetails.DefaultSettings;
3062
3701
  /**
3063
3702
  * Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
3064
3703
  */
@@ -3071,6 +3710,10 @@ export declare namespace InvoiceCreatePreviewParams {
3071
3710
  * 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.
3072
3711
  */
3073
3712
  phases?: Array<ScheduleDetails.Phase>;
3713
+ /**
3714
+ * Provide any time periods to bill in advance.
3715
+ */
3716
+ prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
3074
3717
  /**
3075
3718
  * In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
3076
3719
  */
@@ -3121,6 +3764,10 @@ export declare namespace InvoiceCreatePreviewParams {
3121
3764
  * `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either.
3122
3765
  */
3123
3766
  pause?: SubscriptionDetails.Pause;
3767
+ /**
3768
+ * The pre-billing to apply to the subscription as a preview.
3769
+ */
3770
+ prebilling?: SubscriptionDetails.Prebilling;
3124
3771
  /**
3125
3772
  * 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`.
3126
3773
  */
@@ -3154,7 +3801,7 @@ export declare namespace InvoiceCreatePreviewParams {
3154
3801
  type: Liability.Type;
3155
3802
  }
3156
3803
  namespace Liability {
3157
- type Type = 'account' | 'self' | OtherString;
3804
+ type Type = 'account' | 'application' | 'self' | OtherString;
3158
3805
  }
3159
3806
  }
3160
3807
  namespace CustomerDetails {
@@ -3193,6 +3840,86 @@ export declare namespace InvoiceCreatePreviewParams {
3193
3840
  type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_acn' | 'au_arn' | 'au_wpn' | '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' | 'bw_vat' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'ci_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cz_dic' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'fr_siren' | 'fr_siret' | 'fr_spi' | 'gb_vat' | 'ge_vat' | 'gh_tin' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_kt' | '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_cf' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mu_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'mz_nuit' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_bn' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'pt_nif' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sm_coe' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tt_bir' | 'tt_vat' | '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' | OtherString;
3194
3841
  }
3195
3842
  }
3843
+ namespace Discount {
3844
+ interface DiscountEnd {
3845
+ /**
3846
+ * Time span for the redeemed discount.
3847
+ */
3848
+ duration?: DiscountEnd.Duration;
3849
+ /**
3850
+ * A precise Unix timestamp for the discount to end. Must be in the future.
3851
+ */
3852
+ timestamp?: number;
3853
+ /**
3854
+ * The type of calculation made to determine when the discount ends.
3855
+ */
3856
+ type: DiscountEnd.Type;
3857
+ }
3858
+ interface Settings {
3859
+ /**
3860
+ * Configures service period cycle anchoring.
3861
+ */
3862
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
3863
+ /**
3864
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
3865
+ */
3866
+ start_date?: Settings.StartDate;
3867
+ }
3868
+ namespace DiscountEnd {
3869
+ interface Duration {
3870
+ /**
3871
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3872
+ */
3873
+ interval: Duration.Interval;
3874
+ /**
3875
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3876
+ */
3877
+ interval_count: number;
3878
+ }
3879
+ type Type = 'duration' | 'timestamp' | OtherString;
3880
+ namespace Duration {
3881
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
3882
+ }
3883
+ }
3884
+ namespace Settings {
3885
+ interface ServicePeriodAnchorConfig {
3886
+ /**
3887
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
3888
+ */
3889
+ custom?: ServicePeriodAnchorConfig.Custom;
3890
+ /**
3891
+ * The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
3892
+ */
3893
+ type?: ServicePeriodAnchorConfig.Type;
3894
+ }
3895
+ type StartDate = 'current_period_end' | 'current_period_start' | 'now' | OtherString;
3896
+ namespace ServicePeriodAnchorConfig {
3897
+ interface Custom {
3898
+ /**
3899
+ * The day of the month the anchor should be. Ranges from 1 to 31.
3900
+ */
3901
+ day_of_month: number;
3902
+ /**
3903
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
3904
+ */
3905
+ hour?: number;
3906
+ /**
3907
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
3908
+ */
3909
+ minute?: number;
3910
+ /**
3911
+ * The month to start full cycle periods. Ranges from 1 to 12.
3912
+ */
3913
+ month?: number;
3914
+ /**
3915
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
3916
+ */
3917
+ second?: number;
3918
+ }
3919
+ type Type = 'custom' | 'subscription_service_cycle_anchor' | OtherString;
3920
+ }
3921
+ }
3922
+ }
3196
3923
  namespace InvoiceItem {
3197
3924
  interface Discount {
3198
3925
  /**
@@ -3203,6 +3930,10 @@ export declare namespace InvoiceCreatePreviewParams {
3203
3930
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
3204
3931
  */
3205
3932
  discount?: string;
3933
+ /**
3934
+ * Details to determine how long the discount should be applied for.
3935
+ */
3936
+ discount_end?: Discount.DiscountEnd;
3206
3937
  /**
3207
3938
  * ID of the promotion code to create a new discount for.
3208
3939
  */
@@ -3241,14 +3972,97 @@ export declare namespace InvoiceCreatePreviewParams {
3241
3972
  unit_amount_decimal?: Decimal;
3242
3973
  }
3243
3974
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
3975
+ namespace Discount {
3976
+ interface DiscountEnd {
3977
+ /**
3978
+ * Time span for the redeemed discount.
3979
+ */
3980
+ duration?: DiscountEnd.Duration;
3981
+ /**
3982
+ * A precise Unix timestamp for the discount to end. Must be in the future.
3983
+ */
3984
+ timestamp?: number;
3985
+ /**
3986
+ * The type of calculation made to determine when the discount ends.
3987
+ */
3988
+ type: DiscountEnd.Type;
3989
+ }
3990
+ namespace DiscountEnd {
3991
+ interface Duration {
3992
+ /**
3993
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3994
+ */
3995
+ interval: Duration.Interval;
3996
+ /**
3997
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3998
+ */
3999
+ interval_count: number;
4000
+ }
4001
+ type Type = 'duration' | 'timestamp' | OtherString;
4002
+ namespace Duration {
4003
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
4004
+ }
4005
+ }
4006
+ }
3244
4007
  namespace PriceData {
3245
4008
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
3246
4009
  }
3247
4010
  }
3248
4011
  namespace Issuer {
3249
- type Type = 'account' | 'self' | OtherString;
4012
+ type Type = 'account' | 'application' | 'self' | OtherString;
3250
4013
  }
3251
4014
  namespace ScheduleDetails {
4015
+ interface Amendment {
4016
+ /**
4017
+ * 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.
4018
+ */
4019
+ amendment_end?: Amendment.AmendmentEnd;
4020
+ /**
4021
+ * Details to identify the earliest timestamp where the proposed change should take effect.
4022
+ */
4023
+ amendment_start: Amendment.AmendmentStart;
4024
+ /**
4025
+ * 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.
4026
+ */
4027
+ billing_cycle_anchor?: Amendment.BillingCycleAnchor;
4028
+ /**
4029
+ * Actions to apply to the billing schedules.
4030
+ */
4031
+ billing_schedules_actions?: Array<Amendment.BillingSchedulesAction>;
4032
+ /**
4033
+ * Changes to the coupons being redeemed or discounts being applied during the amendment time span.
4034
+ */
4035
+ discount_actions?: Array<Amendment.DiscountAction>;
4036
+ /**
4037
+ * Configures how the subscription schedule handles billing for phase transitions.
4038
+ */
4039
+ effective_at?: Amendment.EffectiveAt;
4040
+ /**
4041
+ * Changes to the subscription items during the amendment time span.
4042
+ */
4043
+ item_actions?: Array<Amendment.ItemAction>;
4044
+ /**
4045
+ * Instructions for how to modify phase metadata
4046
+ */
4047
+ metadata_actions?: Array<Amendment.MetadataAction>;
4048
+ /**
4049
+ * 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`.
4050
+ */
4051
+ proration_behavior?: Amendment.ProrationBehavior;
4052
+ /**
4053
+ * Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
4054
+ */
4055
+ set_pause_collection?: Amendment.SetPauseCollection;
4056
+ /**
4057
+ * Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
4058
+ */
4059
+ set_schedule_end?: Amendment.SetScheduleEnd;
4060
+ /**
4061
+ * Settings related to subscription trials.
4062
+ */
4063
+ trial_settings?: Amendment.TrialSettings;
4064
+ }
4065
+ type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
3252
4066
  interface BillingMode {
3253
4067
  /**
3254
4068
  * Configure behavior for flexible billing mode.
@@ -3259,6 +4073,26 @@ export declare namespace InvoiceCreatePreviewParams {
3259
4073
  */
3260
4074
  type: BillingMode.Type;
3261
4075
  }
4076
+ interface BillingSchedule {
4077
+ /**
4078
+ * Configure billing schedule differently for individual subscription items.
4079
+ */
4080
+ applies_to?: Array<BillingSchedule.AppliesTo>;
4081
+ /**
4082
+ * The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
4083
+ */
4084
+ bill_until?: BillingSchedule.BillUntil;
4085
+ /**
4086
+ * Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
4087
+ */
4088
+ key?: string;
4089
+ }
4090
+ interface DefaultSettings {
4091
+ /**
4092
+ * Configures how the subscription schedule handles billing for phase transitions.
4093
+ */
4094
+ phase_effective_at?: DefaultSettings.PhaseEffectiveAt;
4095
+ }
3262
4096
  type EndBehavior = 'cancel' | 'release' | OtherString;
3263
4097
  interface PauseSchedule {
3264
4098
  /**
@@ -3323,6 +4157,10 @@ export declare namespace InvoiceCreatePreviewParams {
3323
4157
  * The number of intervals the phase should last. If set, `end_date` must not be set.
3324
4158
  */
3325
4159
  duration?: Phase.Duration;
4160
+ /**
4161
+ * Configures how the subscription schedule handles billing for phase transitions.
4162
+ */
4163
+ effective_at?: Phase.EffectiveAt;
3326
4164
  /**
3327
4165
  * The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
3328
4166
  */
@@ -3343,6 +4181,10 @@ export declare namespace InvoiceCreatePreviewParams {
3343
4181
  * The account on behalf of which to charge, for each of the associated subscription's invoices.
3344
4182
  */
3345
4183
  on_behalf_of?: string;
4184
+ /**
4185
+ * 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).
4186
+ */
4187
+ pause_collection?: Phase.PauseCollection;
3346
4188
  /**
3347
4189
  * 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.
3348
4190
  */
@@ -3359,73 +4201,808 @@ export declare namespace InvoiceCreatePreviewParams {
3359
4201
  * If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
3360
4202
  */
3361
4203
  trial?: boolean;
4204
+ /**
4205
+ * Specify trial behavior when crossing phase boundaries
4206
+ */
4207
+ trial_continuation?: Phase.TrialContinuation;
3362
4208
  /**
3363
4209
  * Sets the phase to trialing from the start date to this date. Must be within the phase. When previewing an update, if combined with `trial=true`, it must match the phase end date.
3364
4210
  */
3365
4211
  trial_end?: number | 'now';
4212
+ /**
4213
+ * Settings related to subscription trials.
4214
+ */
4215
+ trial_settings?: Phase.TrialSettings;
4216
+ }
4217
+ interface Prebilling {
4218
+ /**
4219
+ * The end of the prebilled time period.
4220
+ */
4221
+ bill_until?: Prebilling.BillUntil;
4222
+ /**
4223
+ * This is used to determine the number of billing cycles to prebill.
4224
+ */
4225
+ iterations?: number;
3366
4226
  }
3367
4227
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
3368
- namespace BillingMode {
3369
- interface Flexible {
4228
+ namespace Amendment {
4229
+ interface AmendmentEnd {
3370
4230
  /**
3371
- * Controls how invoices and invoice items display proration amounts and discount amounts.
4231
+ * Use the `end` time of a given discount.
3372
4232
  */
3373
- proration_discounts?: Flexible.ProrationDiscounts;
4233
+ discount_end?: AmendmentEnd.DiscountEnd;
4234
+ /**
4235
+ * Time span for the amendment starting from the `amendment_start`.
4236
+ */
4237
+ duration?: AmendmentEnd.Duration;
4238
+ /**
4239
+ * A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
4240
+ */
4241
+ timestamp?: number;
4242
+ /**
4243
+ * Select one of three ways to pass the `amendment_end`.
4244
+ */
4245
+ type: AmendmentEnd.Type;
3374
4246
  }
3375
- type Type = 'classic' | 'flexible' | OtherString;
3376
- namespace Flexible {
3377
- type ProrationDiscounts = 'included' | 'itemized' | OtherString;
4247
+ interface AmendmentStart {
4248
+ /**
4249
+ * Details of another amendment in the same array, immediately after which this amendment should begin.
4250
+ */
4251
+ amendment_end?: AmendmentStart.AmendmentEnd;
4252
+ /**
4253
+ * Use the `end` time of a given discount.
4254
+ */
4255
+ discount_end?: AmendmentStart.DiscountEnd;
4256
+ /**
4257
+ * A precise Unix timestamp for the amendment to start.
4258
+ */
4259
+ timestamp?: number;
4260
+ /**
4261
+ * Select one of three ways to pass the `amendment_start`.
4262
+ */
4263
+ type: AmendmentStart.Type;
3378
4264
  }
3379
- }
3380
- namespace PauseSchedule {
3381
- interface Pause {
4265
+ type BillingCycleAnchor = 'amendment_start' | 'automatic' | OtherString;
4266
+ interface BillingSchedulesAction {
3382
4267
  /**
3383
- * When to pause the subscription.
4268
+ * Specify which subscription items the billing schedule applies to.
3384
4269
  */
3385
- pause_at?: Pause.PauseAt;
4270
+ applies_to?: Array<BillingSchedulesAction.AppliesTo>;
3386
4271
  /**
3387
- * Settings controlling billing behavior during the pause.
4272
+ * Select the action.
3388
4273
  */
3389
- settings?: Pause.Settings;
4274
+ type: BillingSchedulesAction.Type;
3390
4275
  }
3391
- interface Resume {
4276
+ interface DiscountAction {
3392
4277
  /**
3393
- * When to resume the subscription.
4278
+ * Details of the discount to add.
3394
4279
  */
3395
- resume_at?: Resume.ResumeAt;
4280
+ add?: DiscountAction.Add;
3396
4281
  /**
3397
- * Settings controlling how the subscription resumes.
4282
+ * Details of the discount to remove.
3398
4283
  */
3399
- settings?: Resume.Settings;
4284
+ remove?: DiscountAction.Remove;
4285
+ /**
4286
+ * Details of the discount to replace the existing discounts with.
4287
+ */
4288
+ set?: DiscountAction.Set;
4289
+ /**
4290
+ * Determines the type of discount action.
4291
+ */
4292
+ type: DiscountAction.Type;
3400
4293
  }
3401
- namespace Pause {
3402
- interface PauseAt {
3403
- /**
3404
- * The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
3405
- */
3406
- timestamp?: number;
3407
- /**
3408
- * When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
3409
- */
3410
- type: PauseAt.Type;
3411
- }
3412
- interface Settings {
3413
- /**
3414
- * Controls what to bill for when pausing the subscription.
3415
- */
3416
- bill_for?: Settings.BillFor;
3417
- /**
3418
- * Determines whether to generate an invoice for outstanding amounts when pausing. When adding a pause schedule, defaults to `pending_invoice_item`. On updates, the existing value is preserved if not provided.
3419
- */
3420
- invoicing_behavior?: Settings.InvoicingBehavior;
3421
- /**
3422
- * The pause type. Currently only `subscription` is supported.
3423
- */
3424
- type?: Settings.Type;
3425
- }
3426
- namespace PauseAt {
3427
- type Type = 'now' | 'timestamp' | OtherString;
3428
- }
4294
+ type EffectiveAt = 'amendment_start' | 'billing_period_start' | OtherString;
4295
+ interface ItemAction {
4296
+ /**
4297
+ * 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.
4298
+ */
4299
+ add?: ItemAction.Add;
4300
+ /**
4301
+ * Details of the subscription item to remove.
4302
+ */
4303
+ remove?: ItemAction.Remove;
4304
+ /**
4305
+ * 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.
4306
+ */
4307
+ set?: ItemAction.Set;
4308
+ /**
4309
+ * Determines the type of item action.
4310
+ */
4311
+ type: ItemAction.Type;
4312
+ }
4313
+ interface MetadataAction {
4314
+ /**
4315
+ * Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
4316
+ */
4317
+ add?: {
4318
+ [key: string]: string;
4319
+ };
4320
+ /**
4321
+ * Keys to remove from schedule phase metadata.
4322
+ */
4323
+ remove?: Array<string>;
4324
+ /**
4325
+ * Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
4326
+ */
4327
+ set?: Emptyable<{
4328
+ [key: string]: string;
4329
+ }>;
4330
+ /**
4331
+ * Select one of three ways to update phase-level `metadata` on subscription schedules.
4332
+ */
4333
+ type: MetadataAction.Type;
4334
+ }
4335
+ type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
4336
+ interface SetPauseCollection {
4337
+ /**
4338
+ * Details of the pause_collection behavior to apply to the amendment.
4339
+ */
4340
+ set?: SetPauseCollection.Set;
4341
+ /**
4342
+ * Determines the type of the pause_collection amendment.
4343
+ */
4344
+ type: SetPauseCollection.Type;
4345
+ }
4346
+ type SetScheduleEnd = 'amendment_end' | 'amendment_start' | OtherString;
4347
+ interface TrialSettings {
4348
+ /**
4349
+ * Defines how the subscription should behave when a trial ends.
4350
+ */
4351
+ end_behavior?: TrialSettings.EndBehavior;
4352
+ }
4353
+ namespace AmendmentEnd {
4354
+ interface DiscountEnd {
4355
+ /**
4356
+ * The ID of a specific discount.
4357
+ */
4358
+ discount: string;
4359
+ }
4360
+ interface Duration {
4361
+ /**
4362
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4363
+ */
4364
+ interval: Duration.Interval;
4365
+ /**
4366
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4367
+ */
4368
+ interval_count: number;
4369
+ }
4370
+ type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
4371
+ namespace Duration {
4372
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
4373
+ }
4374
+ }
4375
+ namespace AmendmentStart {
4376
+ interface AmendmentEnd {
4377
+ /**
4378
+ * 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.
4379
+ */
4380
+ index: number;
4381
+ }
4382
+ interface DiscountEnd {
4383
+ /**
4384
+ * The ID of a specific discount.
4385
+ */
4386
+ discount: string;
4387
+ }
4388
+ type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
4389
+ }
4390
+ namespace BillingSchedulesAction {
4391
+ interface AppliesTo {
4392
+ /**
4393
+ * The ID of the price object.
4394
+ */
4395
+ price?: string;
4396
+ /**
4397
+ * Controls which subscription items the billing schedule applies to.
4398
+ */
4399
+ type: 'price';
4400
+ }
4401
+ type Type = 'remove' | 'set' | OtherString;
4402
+ }
4403
+ namespace DiscountAction {
4404
+ interface Add {
4405
+ /**
4406
+ * The coupon code to redeem.
4407
+ */
4408
+ coupon?: string;
4409
+ /**
4410
+ * An ID of an existing discount for a coupon that was already redeemed.
4411
+ */
4412
+ discount?: string;
4413
+ /**
4414
+ * Details to determine how long the discount should be applied for.
4415
+ */
4416
+ discount_end?: Add.DiscountEnd;
4417
+ /**
4418
+ * 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.
4419
+ */
4420
+ index?: number;
4421
+ /**
4422
+ * The promotion code to redeem.
4423
+ */
4424
+ promotion_code?: string;
4425
+ /**
4426
+ * Settings for discount application including service period anchoring.
4427
+ */
4428
+ settings?: Add.Settings;
4429
+ }
4430
+ interface Remove {
4431
+ /**
4432
+ * The coupon code to remove from the `discounts` array.
4433
+ */
4434
+ coupon?: string;
4435
+ /**
4436
+ * The ID of a discount to remove from the `discounts` array.
4437
+ */
4438
+ discount?: string;
4439
+ /**
4440
+ * The ID of a promotion code to remove from the `discounts` array.
4441
+ */
4442
+ promotion_code?: string;
4443
+ }
4444
+ interface Set {
4445
+ /**
4446
+ * The coupon code to replace the `discounts` array with.
4447
+ */
4448
+ coupon?: string;
4449
+ /**
4450
+ * An ID of an existing discount to replace the `discounts` array with.
4451
+ */
4452
+ discount?: string;
4453
+ /**
4454
+ * An ID of an existing promotion code to replace the `discounts` array with.
4455
+ */
4456
+ promotion_code?: string;
4457
+ /**
4458
+ * Settings for discount application including service period anchoring.
4459
+ */
4460
+ settings?: Set.Settings;
4461
+ }
4462
+ type Type = 'add' | 'remove' | 'set' | OtherString;
4463
+ namespace Add {
4464
+ interface DiscountEnd {
4465
+ /**
4466
+ * The type of calculation made to determine when the discount ends.
4467
+ */
4468
+ type: 'amendment_end';
4469
+ }
4470
+ interface Settings {
4471
+ /**
4472
+ * Configures service period cycle anchoring.
4473
+ */
4474
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
4475
+ /**
4476
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
4477
+ */
4478
+ start_date?: Settings.StartDate;
4479
+ }
4480
+ namespace Settings {
4481
+ interface ServicePeriodAnchorConfig {
4482
+ /**
4483
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
4484
+ */
4485
+ custom?: ServicePeriodAnchorConfig.Custom;
4486
+ /**
4487
+ * The type of service period anchor config. Defaults to `inherit` if omitted.
4488
+ */
4489
+ type?: ServicePeriodAnchorConfig.Type;
4490
+ }
4491
+ type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
4492
+ namespace ServicePeriodAnchorConfig {
4493
+ interface Custom {
4494
+ /**
4495
+ * The day of the month the anchor should be. Ranges from 1 to 31.
4496
+ */
4497
+ day_of_month: number;
4498
+ /**
4499
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
4500
+ */
4501
+ hour?: number;
4502
+ /**
4503
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
4504
+ */
4505
+ minute?: number;
4506
+ /**
4507
+ * The month to start full cycle periods. Ranges from 1 to 12.
4508
+ */
4509
+ month?: number;
4510
+ /**
4511
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
4512
+ */
4513
+ second?: number;
4514
+ }
4515
+ type Type = 'custom' | 'inherit' | OtherString;
4516
+ }
4517
+ }
4518
+ }
4519
+ namespace Set {
4520
+ interface Settings {
4521
+ /**
4522
+ * Configures service period cycle anchoring.
4523
+ */
4524
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
4525
+ /**
4526
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
4527
+ */
4528
+ start_date?: Settings.StartDate;
4529
+ }
4530
+ namespace Settings {
4531
+ interface ServicePeriodAnchorConfig {
4532
+ /**
4533
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
4534
+ */
4535
+ custom?: ServicePeriodAnchorConfig.Custom;
4536
+ /**
4537
+ * The type of service period anchor config. Defaults to `inherit` if omitted.
4538
+ */
4539
+ type?: ServicePeriodAnchorConfig.Type;
4540
+ }
4541
+ type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
4542
+ namespace ServicePeriodAnchorConfig {
4543
+ interface Custom {
4544
+ /**
4545
+ * The day of the month the anchor should be. Ranges from 1 to 31.
4546
+ */
4547
+ day_of_month: number;
4548
+ /**
4549
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
4550
+ */
4551
+ hour?: number;
4552
+ /**
4553
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
4554
+ */
4555
+ minute?: number;
4556
+ /**
4557
+ * The month to start full cycle periods. Ranges from 1 to 12.
4558
+ */
4559
+ month?: number;
4560
+ /**
4561
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
4562
+ */
4563
+ second?: number;
4564
+ }
4565
+ type Type = 'custom' | 'inherit' | OtherString;
4566
+ }
4567
+ }
4568
+ }
4569
+ }
4570
+ namespace ItemAction {
4571
+ interface Add {
4572
+ /**
4573
+ * The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
4574
+ */
4575
+ discounts?: Array<Add.Discount>;
4576
+ /**
4577
+ * 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`.
4578
+ */
4579
+ metadata?: MetadataParam;
4580
+ /**
4581
+ * The ID of the price object.
4582
+ */
4583
+ price: string;
4584
+ /**
4585
+ * Quantity for this item.
4586
+ */
4587
+ quantity?: number;
4588
+ /**
4589
+ * 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`.
4590
+ */
4591
+ tax_rates?: Array<string>;
4592
+ /**
4593
+ * Options that configure the trial on the subscription item.
4594
+ */
4595
+ trial?: Add.Trial;
4596
+ /**
4597
+ * The ID of the trial offer to apply to the configuration item.
4598
+ */
4599
+ trial_offer?: string;
4600
+ }
4601
+ interface Remove {
4602
+ /**
4603
+ * ID of a price to remove.
4604
+ */
4605
+ price: string;
4606
+ }
4607
+ interface Set {
4608
+ /**
4609
+ * 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`.
4610
+ */
4611
+ discounts?: Array<Set.Discount>;
4612
+ /**
4613
+ * 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`.
4614
+ */
4615
+ metadata?: MetadataParam;
4616
+ /**
4617
+ * The ID of the price object.
4618
+ */
4619
+ price: string;
4620
+ /**
4621
+ * 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`.
4622
+ */
4623
+ quantity?: number;
4624
+ /**
4625
+ * 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`.
4626
+ */
4627
+ tax_rates?: Array<string>;
4628
+ /**
4629
+ * 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`.
4630
+ */
4631
+ trial?: Set.Trial;
4632
+ /**
4633
+ * The ID of the trial offer to apply to the configuration item.
4634
+ */
4635
+ trial_offer?: string;
4636
+ }
4637
+ type Type = 'add' | 'remove' | 'set' | OtherString;
4638
+ namespace Add {
4639
+ interface Discount {
4640
+ /**
4641
+ * ID of the coupon to create a new discount for.
4642
+ */
4643
+ coupon?: string;
4644
+ /**
4645
+ * ID of an existing discount on the object (or one of its ancestors) to reuse.
4646
+ */
4647
+ discount?: string;
4648
+ /**
4649
+ * Details to determine how long the discount should be applied for.
4650
+ */
4651
+ discount_end?: Discount.DiscountEnd;
4652
+ /**
4653
+ * ID of the promotion code to create a new discount for.
4654
+ */
4655
+ promotion_code?: string;
4656
+ /**
4657
+ * Settings for discount application including service period anchoring.
4658
+ */
4659
+ settings?: Discount.Settings;
4660
+ }
4661
+ interface Trial {
4662
+ /**
4663
+ * 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.
4664
+ */
4665
+ converts_to?: Array<string>;
4666
+ /**
4667
+ * Determines the type of trial for this item.
4668
+ */
4669
+ type: Trial.Type;
4670
+ }
4671
+ namespace Discount {
4672
+ interface DiscountEnd {
4673
+ /**
4674
+ * Time span for the redeemed discount.
4675
+ */
4676
+ duration?: DiscountEnd.Duration;
4677
+ /**
4678
+ * A precise Unix timestamp for the discount to end. Must be in the future.
4679
+ */
4680
+ timestamp?: number;
4681
+ /**
4682
+ * The type of calculation made to determine when the discount ends.
4683
+ */
4684
+ type: DiscountEnd.Type;
4685
+ }
4686
+ interface Settings {
4687
+ /**
4688
+ * Configures service period cycle anchoring.
4689
+ */
4690
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
4691
+ /**
4692
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
4693
+ */
4694
+ start_date?: Settings.StartDate;
4695
+ }
4696
+ namespace DiscountEnd {
4697
+ interface Duration {
4698
+ /**
4699
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4700
+ */
4701
+ interval: Duration.Interval;
4702
+ /**
4703
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4704
+ */
4705
+ interval_count: number;
4706
+ }
4707
+ type Type = 'duration' | 'timestamp' | OtherString;
4708
+ namespace Duration {
4709
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
4710
+ }
4711
+ }
4712
+ namespace Settings {
4713
+ interface ServicePeriodAnchorConfig {
4714
+ /**
4715
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
4716
+ */
4717
+ custom?: ServicePeriodAnchorConfig.Custom;
4718
+ /**
4719
+ * The type of service period anchor config. Defaults to `inherit` if omitted.
4720
+ */
4721
+ type?: ServicePeriodAnchorConfig.Type;
4722
+ }
4723
+ type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
4724
+ namespace ServicePeriodAnchorConfig {
4725
+ interface Custom {
4726
+ /**
4727
+ * The day of the month the anchor should be. Ranges from 1 to 31.
4728
+ */
4729
+ day_of_month: number;
4730
+ /**
4731
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
4732
+ */
4733
+ hour?: number;
4734
+ /**
4735
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
4736
+ */
4737
+ minute?: number;
4738
+ /**
4739
+ * The month to start full cycle periods. Ranges from 1 to 12.
4740
+ */
4741
+ month?: number;
4742
+ /**
4743
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
4744
+ */
4745
+ second?: number;
4746
+ }
4747
+ type Type = 'custom' | 'inherit' | OtherString;
4748
+ }
4749
+ }
4750
+ }
4751
+ namespace Trial {
4752
+ type Type = 'free' | 'paid' | OtherString;
4753
+ }
4754
+ }
4755
+ namespace Set {
4756
+ interface Discount {
4757
+ /**
4758
+ * ID of the coupon to create a new discount for.
4759
+ */
4760
+ coupon?: string;
4761
+ /**
4762
+ * ID of an existing discount on the object (or one of its ancestors) to reuse.
4763
+ */
4764
+ discount?: string;
4765
+ /**
4766
+ * Details to determine how long the discount should be applied for.
4767
+ */
4768
+ discount_end?: Discount.DiscountEnd;
4769
+ /**
4770
+ * ID of the promotion code to create a new discount for.
4771
+ */
4772
+ promotion_code?: string;
4773
+ /**
4774
+ * Settings for discount application including service period anchoring.
4775
+ */
4776
+ settings?: Discount.Settings;
4777
+ }
4778
+ interface Trial {
4779
+ /**
4780
+ * 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.
4781
+ */
4782
+ converts_to?: Array<string>;
4783
+ /**
4784
+ * Determines the type of trial for this item.
4785
+ */
4786
+ type: Trial.Type;
4787
+ }
4788
+ namespace Discount {
4789
+ interface DiscountEnd {
4790
+ /**
4791
+ * Time span for the redeemed discount.
4792
+ */
4793
+ duration?: DiscountEnd.Duration;
4794
+ /**
4795
+ * A precise Unix timestamp for the discount to end. Must be in the future.
4796
+ */
4797
+ timestamp?: number;
4798
+ /**
4799
+ * The type of calculation made to determine when the discount ends.
4800
+ */
4801
+ type: DiscountEnd.Type;
4802
+ }
4803
+ interface Settings {
4804
+ /**
4805
+ * Configures service period cycle anchoring.
4806
+ */
4807
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
4808
+ /**
4809
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
4810
+ */
4811
+ start_date?: Settings.StartDate;
4812
+ }
4813
+ namespace DiscountEnd {
4814
+ interface Duration {
4815
+ /**
4816
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4817
+ */
4818
+ interval: Duration.Interval;
4819
+ /**
4820
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4821
+ */
4822
+ interval_count: number;
4823
+ }
4824
+ type Type = 'duration' | 'timestamp' | OtherString;
4825
+ namespace Duration {
4826
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
4827
+ }
4828
+ }
4829
+ namespace Settings {
4830
+ interface ServicePeriodAnchorConfig {
4831
+ /**
4832
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
4833
+ */
4834
+ custom?: ServicePeriodAnchorConfig.Custom;
4835
+ /**
4836
+ * The type of service period anchor config. Defaults to `inherit` if omitted.
4837
+ */
4838
+ type?: ServicePeriodAnchorConfig.Type;
4839
+ }
4840
+ type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
4841
+ namespace ServicePeriodAnchorConfig {
4842
+ interface Custom {
4843
+ /**
4844
+ * The day of the month the anchor should be. Ranges from 1 to 31.
4845
+ */
4846
+ day_of_month: number;
4847
+ /**
4848
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
4849
+ */
4850
+ hour?: number;
4851
+ /**
4852
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
4853
+ */
4854
+ minute?: number;
4855
+ /**
4856
+ * The month to start full cycle periods. Ranges from 1 to 12.
4857
+ */
4858
+ month?: number;
4859
+ /**
4860
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
4861
+ */
4862
+ second?: number;
4863
+ }
4864
+ type Type = 'custom' | 'inherit' | OtherString;
4865
+ }
4866
+ }
4867
+ }
4868
+ namespace Trial {
4869
+ type Type = 'free' | 'paid' | OtherString;
4870
+ }
4871
+ }
4872
+ }
4873
+ namespace MetadataAction {
4874
+ type Type = 'add' | 'remove' | 'set' | OtherString;
4875
+ }
4876
+ namespace SetPauseCollection {
4877
+ interface Set {
4878
+ /**
4879
+ * The payment collection behavior for this subscription while paused.
4880
+ */
4881
+ behavior: Set.Behavior;
4882
+ }
4883
+ type Type = 'remove' | 'set' | OtherString;
4884
+ namespace Set {
4885
+ type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
4886
+ }
4887
+ }
4888
+ namespace TrialSettings {
4889
+ interface EndBehavior {
4890
+ /**
4891
+ * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
4892
+ */
4893
+ prorate_up_front?: EndBehavior.ProrateUpFront;
4894
+ }
4895
+ namespace EndBehavior {
4896
+ type ProrateUpFront = 'defer' | 'include' | OtherString;
4897
+ }
4898
+ }
4899
+ }
4900
+ namespace BillingMode {
4901
+ interface Flexible {
4902
+ /**
4903
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
4904
+ */
4905
+ proration_discounts?: Flexible.ProrationDiscounts;
4906
+ }
4907
+ type Type = 'classic' | 'flexible' | OtherString;
4908
+ namespace Flexible {
4909
+ type ProrationDiscounts = 'included' | 'itemized' | OtherString;
4910
+ }
4911
+ }
4912
+ namespace BillingSchedule {
4913
+ interface AppliesTo {
4914
+ /**
4915
+ * The ID of the price object.
4916
+ */
4917
+ price?: string;
4918
+ /**
4919
+ * Controls which subscription items the billing schedule applies to.
4920
+ */
4921
+ type: 'price';
4922
+ }
4923
+ interface BillUntil {
4924
+ /**
4925
+ * Specifies the billing period.
4926
+ */
4927
+ duration?: BillUntil.Duration;
4928
+ /**
4929
+ * The end date of the billing schedule.
4930
+ */
4931
+ timestamp?: number;
4932
+ /**
4933
+ * Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
4934
+ */
4935
+ type: BillUntil.Type;
4936
+ }
4937
+ namespace BillUntil {
4938
+ interface Duration {
4939
+ /**
4940
+ * Specifies billing duration. Either `day`, `week`, `month` or `year`.
4941
+ */
4942
+ interval: Duration.Interval;
4943
+ /**
4944
+ * The multiplier applied to the interval.
4945
+ */
4946
+ interval_count?: number;
4947
+ }
4948
+ type Type = 'duration' | 'timestamp' | OtherString;
4949
+ namespace Duration {
4950
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
4951
+ }
4952
+ }
4953
+ }
4954
+ namespace DefaultSettings {
4955
+ type PhaseEffectiveAt = 'billing_period_start' | 'phase_start' | OtherString;
4956
+ }
4957
+ namespace PauseSchedule {
4958
+ interface Pause {
4959
+ /**
4960
+ * When to pause the subscription.
4961
+ */
4962
+ pause_at?: Pause.PauseAt;
4963
+ /**
4964
+ * Settings controlling billing behavior during the pause.
4965
+ */
4966
+ settings?: Pause.Settings;
4967
+ }
4968
+ interface Resume {
4969
+ /**
4970
+ * When to resume the subscription.
4971
+ */
4972
+ resume_at?: Resume.ResumeAt;
4973
+ /**
4974
+ * Settings controlling how the subscription resumes.
4975
+ */
4976
+ settings?: Resume.Settings;
4977
+ }
4978
+ namespace Pause {
4979
+ interface PauseAt {
4980
+ /**
4981
+ * The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
4982
+ */
4983
+ timestamp?: number;
4984
+ /**
4985
+ * When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
4986
+ */
4987
+ type: PauseAt.Type;
4988
+ }
4989
+ interface Settings {
4990
+ /**
4991
+ * Controls what to bill for when pausing the subscription.
4992
+ */
4993
+ bill_for?: Settings.BillFor;
4994
+ /**
4995
+ * Determines whether to generate an invoice for outstanding amounts when pausing. When adding a pause schedule, defaults to `pending_invoice_item`. On updates, the existing value is preserved if not provided.
4996
+ */
4997
+ invoicing_behavior?: Settings.InvoicingBehavior;
4998
+ /**
4999
+ * The pause type. Currently only `subscription` is supported.
5000
+ */
5001
+ type?: Settings.Type;
5002
+ }
5003
+ namespace PauseAt {
5004
+ type Type = 'now' | 'timestamp' | OtherString;
5005
+ }
3429
5006
  namespace Settings {
3430
5007
  interface BillFor {
3431
5008
  /**
@@ -3579,10 +5156,18 @@ export declare namespace InvoiceCreatePreviewParams {
3579
5156
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
3580
5157
  */
3581
5158
  discount?: string;
5159
+ /**
5160
+ * Details to determine how long the discount should be applied for.
5161
+ */
5162
+ discount_end?: Discount.DiscountEnd;
3582
5163
  /**
3583
5164
  * ID of the promotion code to create a new discount for.
3584
5165
  */
3585
5166
  promotion_code?: string;
5167
+ /**
5168
+ * Settings for discount application including service period anchoring.
5169
+ */
5170
+ settings?: Discount.Settings;
3586
5171
  }
3587
5172
  interface Duration {
3588
5173
  /**
@@ -3594,6 +5179,7 @@ export declare namespace InvoiceCreatePreviewParams {
3594
5179
  */
3595
5180
  interval_count?: number;
3596
5181
  }
5182
+ type EffectiveAt = 'billing_period_start' | 'phase_start' | OtherString;
3597
5183
  interface InvoiceSettings {
3598
5184
  /**
3599
5185
  * The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
@@ -3641,6 +5227,20 @@ export declare namespace InvoiceCreatePreviewParams {
3641
5227
  * 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.
3642
5228
  */
3643
5229
  tax_rates?: Emptyable<Array<string>>;
5230
+ /**
5231
+ * Options that configure the trial on the subscription item.
5232
+ */
5233
+ trial?: Item.Trial;
5234
+ /**
5235
+ * The ID of the trial offer to apply to the configuration item.
5236
+ */
5237
+ trial_offer?: string;
5238
+ }
5239
+ interface PauseCollection {
5240
+ /**
5241
+ * The payment collection behavior for this subscription while paused.
5242
+ */
5243
+ behavior: PauseCollection.Behavior;
3644
5244
  }
3645
5245
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
3646
5246
  interface TransferData {
@@ -3653,6 +5253,13 @@ export declare namespace InvoiceCreatePreviewParams {
3653
5253
  */
3654
5254
  destination: string;
3655
5255
  }
5256
+ type TrialContinuation = 'continue' | 'none' | OtherString;
5257
+ interface TrialSettings {
5258
+ /**
5259
+ * Defines how the subscription should behave when a trial ends.
5260
+ */
5261
+ end_behavior?: TrialSettings.EndBehavior;
5262
+ }
3656
5263
  namespace AddInvoiceItem {
3657
5264
  interface Discount {
3658
5265
  /**
@@ -3663,6 +5270,10 @@ export declare namespace InvoiceCreatePreviewParams {
3663
5270
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
3664
5271
  */
3665
5272
  discount?: string;
5273
+ /**
5274
+ * Details to determine how long the discount should be applied for.
5275
+ */
5276
+ discount_end?: Discount.DiscountEnd;
3666
5277
  /**
3667
5278
  * ID of the promotion code to create a new discount for.
3668
5279
  */
@@ -3700,6 +5311,38 @@ export declare namespace InvoiceCreatePreviewParams {
3700
5311
  */
3701
5312
  unit_amount_decimal?: Decimal;
3702
5313
  }
5314
+ namespace Discount {
5315
+ interface DiscountEnd {
5316
+ /**
5317
+ * Time span for the redeemed discount.
5318
+ */
5319
+ duration?: DiscountEnd.Duration;
5320
+ /**
5321
+ * A precise Unix timestamp for the discount to end. Must be in the future.
5322
+ */
5323
+ timestamp?: number;
5324
+ /**
5325
+ * The type of calculation made to determine when the discount ends.
5326
+ */
5327
+ type: DiscountEnd.Type;
5328
+ }
5329
+ namespace DiscountEnd {
5330
+ interface Duration {
5331
+ /**
5332
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5333
+ */
5334
+ interval: Duration.Interval;
5335
+ /**
5336
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5337
+ */
5338
+ interval_count: number;
5339
+ }
5340
+ type Type = 'duration' | 'timestamp' | OtherString;
5341
+ namespace Duration {
5342
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
5343
+ }
5344
+ }
5345
+ }
3703
5346
  namespace Period {
3704
5347
  interface End {
3705
5348
  /**
@@ -3744,7 +5387,87 @@ export declare namespace InvoiceCreatePreviewParams {
3744
5387
  type: Liability.Type;
3745
5388
  }
3746
5389
  namespace Liability {
3747
- type Type = 'account' | 'self' | OtherString;
5390
+ type Type = 'account' | 'application' | 'self' | OtherString;
5391
+ }
5392
+ }
5393
+ namespace Discount {
5394
+ interface DiscountEnd {
5395
+ /**
5396
+ * Time span for the redeemed discount.
5397
+ */
5398
+ duration?: DiscountEnd.Duration;
5399
+ /**
5400
+ * A precise Unix timestamp for the discount to end. Must be in the future.
5401
+ */
5402
+ timestamp?: number;
5403
+ /**
5404
+ * The type of calculation made to determine when the discount ends.
5405
+ */
5406
+ type: DiscountEnd.Type;
5407
+ }
5408
+ interface Settings {
5409
+ /**
5410
+ * Configures service period cycle anchoring.
5411
+ */
5412
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
5413
+ /**
5414
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
5415
+ */
5416
+ start_date?: Settings.StartDate;
5417
+ }
5418
+ namespace DiscountEnd {
5419
+ interface Duration {
5420
+ /**
5421
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5422
+ */
5423
+ interval: Duration.Interval;
5424
+ /**
5425
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5426
+ */
5427
+ interval_count: number;
5428
+ }
5429
+ type Type = 'duration' | 'timestamp' | OtherString;
5430
+ namespace Duration {
5431
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
5432
+ }
5433
+ }
5434
+ namespace Settings {
5435
+ interface ServicePeriodAnchorConfig {
5436
+ /**
5437
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
5438
+ */
5439
+ custom?: ServicePeriodAnchorConfig.Custom;
5440
+ /**
5441
+ * The type of service period anchor config. Defaults to `inherit` if omitted.
5442
+ */
5443
+ type?: ServicePeriodAnchorConfig.Type;
5444
+ }
5445
+ type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start' | OtherString;
5446
+ namespace ServicePeriodAnchorConfig {
5447
+ interface Custom {
5448
+ /**
5449
+ * The day of the month the anchor should be. Ranges from 1 to 31.
5450
+ */
5451
+ day_of_month: number;
5452
+ /**
5453
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
5454
+ */
5455
+ hour?: number;
5456
+ /**
5457
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
5458
+ */
5459
+ minute?: number;
5460
+ /**
5461
+ * The month to start full cycle periods. Ranges from 1 to 12.
5462
+ */
5463
+ month?: number;
5464
+ /**
5465
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
5466
+ */
5467
+ second?: number;
5468
+ }
5469
+ type Type = 'custom' | 'inherit' | OtherString;
5470
+ }
3748
5471
  }
3749
5472
  }
3750
5473
  namespace Duration {
@@ -3762,7 +5485,7 @@ export declare namespace InvoiceCreatePreviewParams {
3762
5485
  type: Issuer.Type;
3763
5486
  }
3764
5487
  namespace Issuer {
3765
- type Type = 'account' | 'self' | OtherString;
5488
+ type Type = 'account' | 'application' | 'self' | OtherString;
3766
5489
  }
3767
5490
  }
3768
5491
  namespace Item {
@@ -3781,10 +5504,18 @@ export declare namespace InvoiceCreatePreviewParams {
3781
5504
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
3782
5505
  */
3783
5506
  discount?: string;
5507
+ /**
5508
+ * Details to determine how long the discount should be applied for.
5509
+ */
5510
+ discount_end?: Discount.DiscountEnd;
3784
5511
  /**
3785
5512
  * ID of the promotion code to create a new discount for.
3786
5513
  */
3787
5514
  promotion_code?: string;
5515
+ /**
5516
+ * Settings for discount application including service period anchoring.
5517
+ */
5518
+ settings?: Discount.Settings;
3788
5519
  }
3789
5520
  interface PriceData {
3790
5521
  /**
@@ -3812,6 +5543,96 @@ export declare namespace InvoiceCreatePreviewParams {
3812
5543
  */
3813
5544
  unit_amount_decimal?: Decimal;
3814
5545
  }
5546
+ interface Trial {
5547
+ /**
5548
+ * 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.
5549
+ */
5550
+ converts_to?: Array<string>;
5551
+ /**
5552
+ * Determines the type of trial for this item.
5553
+ */
5554
+ type: Trial.Type;
5555
+ }
5556
+ namespace Discount {
5557
+ interface DiscountEnd {
5558
+ /**
5559
+ * Time span for the redeemed discount.
5560
+ */
5561
+ duration?: DiscountEnd.Duration;
5562
+ /**
5563
+ * A precise Unix timestamp for the discount to end. Must be in the future.
5564
+ */
5565
+ timestamp?: number;
5566
+ /**
5567
+ * The type of calculation made to determine when the discount ends.
5568
+ */
5569
+ type: DiscountEnd.Type;
5570
+ }
5571
+ interface Settings {
5572
+ /**
5573
+ * Configures service period cycle anchoring.
5574
+ */
5575
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
5576
+ /**
5577
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
5578
+ */
5579
+ start_date?: Settings.StartDate;
5580
+ }
5581
+ namespace DiscountEnd {
5582
+ interface Duration {
5583
+ /**
5584
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5585
+ */
5586
+ interval: Duration.Interval;
5587
+ /**
5588
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5589
+ */
5590
+ interval_count: number;
5591
+ }
5592
+ type Type = 'duration' | 'timestamp' | OtherString;
5593
+ namespace Duration {
5594
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
5595
+ }
5596
+ }
5597
+ namespace Settings {
5598
+ interface ServicePeriodAnchorConfig {
5599
+ /**
5600
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
5601
+ */
5602
+ custom?: ServicePeriodAnchorConfig.Custom;
5603
+ /**
5604
+ * The type of service period anchor config. Defaults to `inherit` if omitted.
5605
+ */
5606
+ type?: ServicePeriodAnchorConfig.Type;
5607
+ }
5608
+ type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start' | OtherString;
5609
+ namespace ServicePeriodAnchorConfig {
5610
+ interface Custom {
5611
+ /**
5612
+ * The day of the month the anchor should be. Ranges from 1 to 31.
5613
+ */
5614
+ day_of_month: number;
5615
+ /**
5616
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
5617
+ */
5618
+ hour?: number;
5619
+ /**
5620
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
5621
+ */
5622
+ minute?: number;
5623
+ /**
5624
+ * The month to start full cycle periods. Ranges from 1 to 12.
5625
+ */
5626
+ month?: number;
5627
+ /**
5628
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
5629
+ */
5630
+ second?: number;
5631
+ }
5632
+ type Type = 'custom' | 'inherit' | OtherString;
5633
+ }
5634
+ }
5635
+ }
3815
5636
  namespace PriceData {
3816
5637
  interface Recurring {
3817
5638
  /**
@@ -3828,6 +5649,65 @@ export declare namespace InvoiceCreatePreviewParams {
3828
5649
  type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
3829
5650
  }
3830
5651
  }
5652
+ namespace Trial {
5653
+ type Type = 'free' | 'paid' | OtherString;
5654
+ }
5655
+ }
5656
+ namespace PauseCollection {
5657
+ type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
5658
+ }
5659
+ namespace TrialSettings {
5660
+ interface EndBehavior {
5661
+ /**
5662
+ * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
5663
+ */
5664
+ prorate_up_front?: EndBehavior.ProrateUpFront;
5665
+ }
5666
+ namespace EndBehavior {
5667
+ type ProrateUpFront = 'defer' | 'include' | OtherString;
5668
+ }
5669
+ }
5670
+ }
5671
+ namespace Prebilling {
5672
+ interface BillUntil {
5673
+ /**
5674
+ * End the prebilled period when a specified amendment ends.
5675
+ */
5676
+ amendment_end?: BillUntil.AmendmentEnd;
5677
+ /**
5678
+ * Time span for prebilling, starting from `bill_from`.
5679
+ */
5680
+ duration?: BillUntil.Duration;
5681
+ /**
5682
+ * End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
5683
+ */
5684
+ timestamp?: number;
5685
+ /**
5686
+ * Select one of several ways to pass the `bill_until` value.
5687
+ */
5688
+ type: BillUntil.Type;
5689
+ }
5690
+ namespace BillUntil {
5691
+ interface AmendmentEnd {
5692
+ /**
5693
+ * 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.
5694
+ */
5695
+ index: number;
5696
+ }
5697
+ interface Duration {
5698
+ /**
5699
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5700
+ */
5701
+ interval: Duration.Interval;
5702
+ /**
5703
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5704
+ */
5705
+ interval_count: number;
5706
+ }
5707
+ type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp' | OtherString;
5708
+ namespace Duration {
5709
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
5710
+ }
3831
5711
  }
3832
5712
  }
3833
5713
  }
@@ -3931,6 +5811,12 @@ export declare namespace InvoiceCreatePreviewParams {
3931
5811
  */
3932
5812
  type?: Pause.Type;
3933
5813
  }
5814
+ interface Prebilling {
5815
+ /**
5816
+ * This is used to determine the number of billing cycles to prebill.
5817
+ */
5818
+ iterations: number;
5819
+ }
3934
5820
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
3935
5821
  namespace BillingCycleAnchor {
3936
5822
  type Type = 'now' | 'timestamp' | 'unchanged' | OtherString;
@@ -3997,6 +5883,10 @@ export declare namespace InvoiceCreatePreviewParams {
3997
5883
  usage_gte: number;
3998
5884
  }
3999
5885
  interface CurrentTrial {
5886
+ /**
5887
+ * 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`.
5888
+ */
5889
+ trial_end?: number;
4000
5890
  /**
4001
5891
  * The ID of the trial offer to apply to the subscription item.
4002
5892
  */
@@ -4011,10 +5901,18 @@ export declare namespace InvoiceCreatePreviewParams {
4011
5901
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4012
5902
  */
4013
5903
  discount?: string;
5904
+ /**
5905
+ * Details to determine how long the discount should be applied for.
5906
+ */
5907
+ discount_end?: Discount.DiscountEnd;
4014
5908
  /**
4015
5909
  * ID of the promotion code to create a new discount for.
4016
5910
  */
4017
5911
  promotion_code?: string;
5912
+ /**
5913
+ * Settings for discount application including service period anchoring.
5914
+ */
5915
+ settings?: Discount.Settings;
4018
5916
  }
4019
5917
  interface PriceData {
4020
5918
  /**
@@ -4042,6 +5940,86 @@ export declare namespace InvoiceCreatePreviewParams {
4042
5940
  */
4043
5941
  unit_amount_decimal?: Decimal;
4044
5942
  }
5943
+ namespace Discount {
5944
+ interface DiscountEnd {
5945
+ /**
5946
+ * Time span for the redeemed discount.
5947
+ */
5948
+ duration?: DiscountEnd.Duration;
5949
+ /**
5950
+ * A precise Unix timestamp for the discount to end. Must be in the future.
5951
+ */
5952
+ timestamp?: number;
5953
+ /**
5954
+ * The type of calculation made to determine when the discount ends.
5955
+ */
5956
+ type: DiscountEnd.Type;
5957
+ }
5958
+ interface Settings {
5959
+ /**
5960
+ * Configures service period cycle anchoring.
5961
+ */
5962
+ service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
5963
+ /**
5964
+ * The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
5965
+ */
5966
+ start_date?: Settings.StartDate;
5967
+ }
5968
+ namespace DiscountEnd {
5969
+ interface Duration {
5970
+ /**
5971
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5972
+ */
5973
+ interval: Duration.Interval;
5974
+ /**
5975
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5976
+ */
5977
+ interval_count: number;
5978
+ }
5979
+ type Type = 'duration' | 'timestamp' | OtherString;
5980
+ namespace Duration {
5981
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
5982
+ }
5983
+ }
5984
+ namespace Settings {
5985
+ interface ServicePeriodAnchorConfig {
5986
+ /**
5987
+ * Anchor the service period to a custom date. Type must be `custom` to specify.
5988
+ */
5989
+ custom?: ServicePeriodAnchorConfig.Custom;
5990
+ /**
5991
+ * The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
5992
+ */
5993
+ type?: ServicePeriodAnchorConfig.Type;
5994
+ }
5995
+ type StartDate = 'current_period_end' | 'current_period_start' | 'now' | OtherString;
5996
+ namespace ServicePeriodAnchorConfig {
5997
+ interface Custom {
5998
+ /**
5999
+ * The day of the month the anchor should be. Ranges from 1 to 31.
6000
+ */
6001
+ day_of_month: number;
6002
+ /**
6003
+ * The hour of the day the anchor should be. Ranges from 0 to 23.
6004
+ */
6005
+ hour?: number;
6006
+ /**
6007
+ * The minute of the hour the anchor should be. Ranges from 0 to 59.
6008
+ */
6009
+ minute?: number;
6010
+ /**
6011
+ * The month to start full cycle periods. Ranges from 1 to 12.
6012
+ */
6013
+ month?: number;
6014
+ /**
6015
+ * The second of the minute the anchor should be. Ranges from 0 to 59.
6016
+ */
6017
+ second?: number;
6018
+ }
6019
+ type Type = 'custom' | 'subscription_service_cycle_anchor' | OtherString;
6020
+ }
6021
+ }
6022
+ }
4045
6023
  namespace PriceData {
4046
6024
  interface Recurring {
4047
6025
  /**
@@ -4095,6 +6073,16 @@ export declare namespace InvoiceCreatePreviewParams {
4095
6073
  }
4096
6074
  }
4097
6075
  }
6076
+ export interface InvoiceDetachPaymentParams {
6077
+ /**
6078
+ * Specifies which fields in the response should be expanded.
6079
+ */
6080
+ expand?: Array<string>;
6081
+ /**
6082
+ * The ID of the PaymentIntent to detach from the invoice.
6083
+ */
6084
+ payment_intent?: string;
6085
+ }
4098
6086
  export interface InvoiceFinalizeInvoiceParams {
4099
6087
  /**
4100
6088
  * 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.
@@ -4204,6 +6192,32 @@ export interface InvoiceSendInvoiceParams {
4204
6192
  */
4205
6193
  expand?: Array<string>;
4206
6194
  }
6195
+ export interface InvoiceSerializeBatchAddLinesParams {
6196
+ }
6197
+ export interface InvoiceSerializeBatchCreateParams {
6198
+ }
6199
+ export interface InvoiceSerializeBatchCreatePreviewParams {
6200
+ }
6201
+ export interface InvoiceSerializeBatchDeleteParams {
6202
+ }
6203
+ export interface InvoiceSerializeBatchFinalizeInvoiceParams {
6204
+ }
6205
+ export interface InvoiceSerializeBatchMarkUncollectibleParams {
6206
+ }
6207
+ export interface InvoiceSerializeBatchPayParams {
6208
+ }
6209
+ export interface InvoiceSerializeBatchRemoveLinesParams {
6210
+ }
6211
+ export interface InvoiceSerializeBatchSendInvoiceParams {
6212
+ }
6213
+ export interface InvoiceSerializeBatchUpdateParams {
6214
+ }
6215
+ export interface InvoiceSerializeBatchUpdateLineItemParams {
6216
+ }
6217
+ export interface InvoiceSerializeBatchUpdateLinesParams {
6218
+ }
6219
+ export interface InvoiceSerializeBatchVoidInvoiceParams {
6220
+ }
4207
6221
  export interface InvoiceUpdateLinesParams {
4208
6222
  /**
4209
6223
  * The line items to update.
@@ -4242,6 +6256,10 @@ export declare namespace InvoiceUpdateLinesParams {
4242
6256
  * ID of an existing line item on the invoice.
4243
6257
  */
4244
6258
  id: string;
6259
+ /**
6260
+ * 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.
6261
+ */
6262
+ margins?: Emptyable<Array<string>>;
4245
6263
  /**
4246
6264
  * 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.
4247
6265
  */
@@ -4285,6 +6303,10 @@ export declare namespace InvoiceUpdateLinesParams {
4285
6303
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4286
6304
  */
4287
6305
  discount?: string;
6306
+ /**
6307
+ * Details to determine how long the discount should be applied for.
6308
+ */
6309
+ discount_end?: Discount.DiscountEnd;
4288
6310
  /**
4289
6311
  * ID of the promotion code to create a new discount for.
4290
6312
  */
@@ -4352,6 +6374,38 @@ export declare namespace InvoiceUpdateLinesParams {
4352
6374
  */
4353
6375
  taxable_amount: number;
4354
6376
  }
6377
+ namespace Discount {
6378
+ interface DiscountEnd {
6379
+ /**
6380
+ * Time span for the redeemed discount.
6381
+ */
6382
+ duration?: DiscountEnd.Duration;
6383
+ /**
6384
+ * A precise Unix timestamp for the discount to end. Must be in the future.
6385
+ */
6386
+ timestamp?: number;
6387
+ /**
6388
+ * The type of calculation made to determine when the discount ends.
6389
+ */
6390
+ type: DiscountEnd.Type;
6391
+ }
6392
+ namespace DiscountEnd {
6393
+ interface Duration {
6394
+ /**
6395
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
6396
+ */
6397
+ interval: Duration.Interval;
6398
+ /**
6399
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
6400
+ */
6401
+ interval_count: number;
6402
+ }
6403
+ type Type = 'duration' | 'timestamp' | OtherString;
6404
+ namespace Duration {
6405
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
6406
+ }
6407
+ }
6408
+ }
4355
6409
  namespace PriceData {
4356
6410
  interface ProductData {
4357
6411
  /**
@@ -4465,6 +6519,10 @@ export interface InvoiceUpdateLineItemParams {
4465
6519
  * Specifies which fields in the response should be expanded.
4466
6520
  */
4467
6521
  expand?: Array<string>;
6522
+ /**
6523
+ * 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.
6524
+ */
6525
+ margins?: Emptyable<Array<string>>;
4468
6526
  /**
4469
6527
  * 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.
4470
6528
  */
@@ -4508,6 +6566,10 @@ export declare namespace InvoiceUpdateLineItemParams {
4508
6566
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
4509
6567
  */
4510
6568
  discount?: string;
6569
+ /**
6570
+ * Details to determine how long the discount should be applied for.
6571
+ */
6572
+ discount_end?: Discount.DiscountEnd;
4511
6573
  /**
4512
6574
  * ID of the promotion code to create a new discount for.
4513
6575
  */
@@ -4575,6 +6637,38 @@ export declare namespace InvoiceUpdateLineItemParams {
4575
6637
  */
4576
6638
  taxable_amount: number;
4577
6639
  }
6640
+ namespace Discount {
6641
+ interface DiscountEnd {
6642
+ /**
6643
+ * Time span for the redeemed discount.
6644
+ */
6645
+ duration?: DiscountEnd.Duration;
6646
+ /**
6647
+ * A precise Unix timestamp for the discount to end. Must be in the future.
6648
+ */
6649
+ timestamp?: number;
6650
+ /**
6651
+ * The type of calculation made to determine when the discount ends.
6652
+ */
6653
+ type: DiscountEnd.Type;
6654
+ }
6655
+ namespace DiscountEnd {
6656
+ interface Duration {
6657
+ /**
6658
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
6659
+ */
6660
+ interval: Duration.Interval;
6661
+ /**
6662
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
6663
+ */
6664
+ interval_count: number;
6665
+ }
6666
+ type Type = 'duration' | 'timestamp' | OtherString;
6667
+ namespace Duration {
6668
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
6669
+ }
6670
+ }
6671
+ }
4578
6672
  namespace PriceData {
4579
6673
  interface ProductData {
4580
6674
  /**