stripe 22.4.0-beta.1 → 22.4.0

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