@metronome/sdk 2.2.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/CHANGELOG.md +188 -0
  2. package/LICENSE +1 -1
  3. package/README.md +26 -4
  4. package/client.d.mts +5 -3
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +5 -3
  7. package/client.d.ts.map +1 -1
  8. package/client.js +26 -10
  9. package/client.js.map +1 -1
  10. package/client.mjs +26 -10
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/internal/tslib.js +17 -17
  19. package/internal/utils/query.d.mts +2 -0
  20. package/internal/utils/query.d.mts.map +1 -0
  21. package/internal/utils/query.d.ts +2 -0
  22. package/internal/utils/query.d.ts.map +1 -0
  23. package/internal/utils/query.js +10 -0
  24. package/internal/utils/query.js.map +1 -0
  25. package/internal/utils/query.mjs +6 -0
  26. package/internal/utils/query.mjs.map +1 -0
  27. package/internal/utils.d.mts +1 -0
  28. package/internal/utils.d.ts +1 -0
  29. package/internal/utils.js +1 -0
  30. package/internal/utils.js.map +1 -1
  31. package/internal/utils.mjs +1 -0
  32. package/package.json +12 -1
  33. package/resources/shared.d.mts +111 -30
  34. package/resources/shared.d.mts.map +1 -1
  35. package/resources/shared.d.ts +111 -30
  36. package/resources/shared.d.ts.map +1 -1
  37. package/resources/v1/alerts.d.mts +3 -0
  38. package/resources/v1/alerts.d.mts.map +1 -1
  39. package/resources/v1/alerts.d.ts +3 -0
  40. package/resources/v1/alerts.d.ts.map +1 -1
  41. package/resources/v1/alerts.js +3 -0
  42. package/resources/v1/alerts.js.map +1 -1
  43. package/resources/v1/alerts.mjs +3 -0
  44. package/resources/v1/alerts.mjs.map +1 -1
  45. package/resources/v1/audit-logs.d.mts +3 -0
  46. package/resources/v1/audit-logs.d.mts.map +1 -1
  47. package/resources/v1/audit-logs.d.ts +3 -0
  48. package/resources/v1/audit-logs.d.ts.map +1 -1
  49. package/resources/v1/audit-logs.js +3 -0
  50. package/resources/v1/audit-logs.js.map +1 -1
  51. package/resources/v1/audit-logs.mjs +3 -0
  52. package/resources/v1/audit-logs.mjs.map +1 -1
  53. package/resources/v1/billable-metrics.d.mts +3 -0
  54. package/resources/v1/billable-metrics.d.mts.map +1 -1
  55. package/resources/v1/billable-metrics.d.ts +3 -0
  56. package/resources/v1/billable-metrics.d.ts.map +1 -1
  57. package/resources/v1/billable-metrics.js +3 -0
  58. package/resources/v1/billable-metrics.js.map +1 -1
  59. package/resources/v1/billable-metrics.mjs +3 -0
  60. package/resources/v1/billable-metrics.mjs.map +1 -1
  61. package/resources/v1/contracts/contracts.d.mts +134 -14
  62. package/resources/v1/contracts/contracts.d.mts.map +1 -1
  63. package/resources/v1/contracts/contracts.d.ts +134 -14
  64. package/resources/v1/contracts/contracts.d.ts.map +1 -1
  65. package/resources/v1/contracts/contracts.js +69 -0
  66. package/resources/v1/contracts/contracts.js.map +1 -1
  67. package/resources/v1/contracts/contracts.mjs +69 -0
  68. package/resources/v1/contracts/contracts.mjs.map +1 -1
  69. package/resources/v1/contracts/index.d.mts +1 -1
  70. package/resources/v1/contracts/index.d.mts.map +1 -1
  71. package/resources/v1/contracts/index.d.ts +1 -1
  72. package/resources/v1/contracts/index.d.ts.map +1 -1
  73. package/resources/v1/contracts/index.js.map +1 -1
  74. package/resources/v1/contracts/index.mjs.map +1 -1
  75. package/resources/v1/contracts/named-schedules.d.mts +3 -0
  76. package/resources/v1/contracts/named-schedules.d.mts.map +1 -1
  77. package/resources/v1/contracts/named-schedules.d.ts +3 -0
  78. package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
  79. package/resources/v1/contracts/named-schedules.js +3 -0
  80. package/resources/v1/contracts/named-schedules.js.map +1 -1
  81. package/resources/v1/contracts/named-schedules.mjs +3 -0
  82. package/resources/v1/contracts/named-schedules.mjs.map +1 -1
  83. package/resources/v1/contracts/products.d.mts +3 -0
  84. package/resources/v1/contracts/products.d.mts.map +1 -1
  85. package/resources/v1/contracts/products.d.ts +3 -0
  86. package/resources/v1/contracts/products.d.ts.map +1 -1
  87. package/resources/v1/contracts/products.js +3 -0
  88. package/resources/v1/contracts/products.js.map +1 -1
  89. package/resources/v1/contracts/products.mjs +3 -0
  90. package/resources/v1/contracts/products.mjs.map +1 -1
  91. package/resources/v1/contracts/rate-cards/named-schedules.d.mts +3 -0
  92. package/resources/v1/contracts/rate-cards/named-schedules.d.mts.map +1 -1
  93. package/resources/v1/contracts/rate-cards/named-schedules.d.ts +3 -0
  94. package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
  95. package/resources/v1/contracts/rate-cards/named-schedules.js +3 -0
  96. package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -1
  97. package/resources/v1/contracts/rate-cards/named-schedules.mjs +3 -0
  98. package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
  99. package/resources/v1/contracts/rate-cards/product-orders.d.mts +3 -0
  100. package/resources/v1/contracts/rate-cards/product-orders.d.mts.map +1 -1
  101. package/resources/v1/contracts/rate-cards/product-orders.d.ts +3 -0
  102. package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
  103. package/resources/v1/contracts/rate-cards/product-orders.js +3 -0
  104. package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -1
  105. package/resources/v1/contracts/rate-cards/product-orders.mjs +3 -0
  106. package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
  107. package/resources/v1/contracts/rate-cards/rate-cards.d.mts +4 -1
  108. package/resources/v1/contracts/rate-cards/rate-cards.d.mts.map +1 -1
  109. package/resources/v1/contracts/rate-cards/rate-cards.d.ts +4 -1
  110. package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
  111. package/resources/v1/contracts/rate-cards/rate-cards.js +3 -0
  112. package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
  113. package/resources/v1/contracts/rate-cards/rate-cards.mjs +3 -0
  114. package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
  115. package/resources/v1/contracts/rate-cards/rates.d.mts +6 -21
  116. package/resources/v1/contracts/rate-cards/rates.d.mts.map +1 -1
  117. package/resources/v1/contracts/rate-cards/rates.d.ts +6 -21
  118. package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
  119. package/resources/v1/contracts/rate-cards/rates.js +3 -0
  120. package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
  121. package/resources/v1/contracts/rate-cards/rates.mjs +3 -0
  122. package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
  123. package/resources/v1/credit-grants.d.mts +3 -0
  124. package/resources/v1/credit-grants.d.mts.map +1 -1
  125. package/resources/v1/credit-grants.d.ts +3 -0
  126. package/resources/v1/credit-grants.d.ts.map +1 -1
  127. package/resources/v1/credit-grants.js +3 -0
  128. package/resources/v1/credit-grants.js.map +1 -1
  129. package/resources/v1/credit-grants.mjs +3 -0
  130. package/resources/v1/credit-grants.mjs.map +1 -1
  131. package/resources/v1/custom-fields.d.mts +9 -6
  132. package/resources/v1/custom-fields.d.mts.map +1 -1
  133. package/resources/v1/custom-fields.d.ts +9 -6
  134. package/resources/v1/custom-fields.d.ts.map +1 -1
  135. package/resources/v1/custom-fields.js +3 -0
  136. package/resources/v1/custom-fields.js.map +1 -1
  137. package/resources/v1/custom-fields.mjs +3 -0
  138. package/resources/v1/custom-fields.mjs.map +1 -1
  139. package/resources/v1/customers/alerts.d.mts +3 -0
  140. package/resources/v1/customers/alerts.d.mts.map +1 -1
  141. package/resources/v1/customers/alerts.d.ts +3 -0
  142. package/resources/v1/customers/alerts.d.ts.map +1 -1
  143. package/resources/v1/customers/alerts.js +3 -0
  144. package/resources/v1/customers/alerts.js.map +1 -1
  145. package/resources/v1/customers/alerts.mjs +3 -0
  146. package/resources/v1/customers/alerts.mjs.map +1 -1
  147. package/resources/v1/customers/billing-config.d.mts +8 -5
  148. package/resources/v1/customers/billing-config.d.mts.map +1 -1
  149. package/resources/v1/customers/billing-config.d.ts +8 -5
  150. package/resources/v1/customers/billing-config.d.ts.map +1 -1
  151. package/resources/v1/customers/billing-config.js +3 -0
  152. package/resources/v1/customers/billing-config.js.map +1 -1
  153. package/resources/v1/customers/billing-config.mjs +3 -0
  154. package/resources/v1/customers/billing-config.mjs.map +1 -1
  155. package/resources/v1/customers/commits.d.mts +3 -0
  156. package/resources/v1/customers/commits.d.mts.map +1 -1
  157. package/resources/v1/customers/commits.d.ts +3 -0
  158. package/resources/v1/customers/commits.d.ts.map +1 -1
  159. package/resources/v1/customers/commits.js +3 -0
  160. package/resources/v1/customers/commits.js.map +1 -1
  161. package/resources/v1/customers/commits.mjs +3 -0
  162. package/resources/v1/customers/commits.mjs.map +1 -1
  163. package/resources/v1/customers/credits.d.mts +3 -0
  164. package/resources/v1/customers/credits.d.mts.map +1 -1
  165. package/resources/v1/customers/credits.d.ts +3 -0
  166. package/resources/v1/customers/credits.d.ts.map +1 -1
  167. package/resources/v1/customers/credits.js +3 -0
  168. package/resources/v1/customers/credits.js.map +1 -1
  169. package/resources/v1/customers/credits.mjs +3 -0
  170. package/resources/v1/customers/credits.mjs.map +1 -1
  171. package/resources/v1/customers/customers.d.mts +84 -8
  172. package/resources/v1/customers/customers.d.mts.map +1 -1
  173. package/resources/v1/customers/customers.d.ts +84 -8
  174. package/resources/v1/customers/customers.d.ts.map +1 -1
  175. package/resources/v1/customers/customers.js +53 -0
  176. package/resources/v1/customers/customers.js.map +1 -1
  177. package/resources/v1/customers/customers.mjs +53 -0
  178. package/resources/v1/customers/customers.mjs.map +1 -1
  179. package/resources/v1/customers/index.d.mts +1 -1
  180. package/resources/v1/customers/index.d.mts.map +1 -1
  181. package/resources/v1/customers/index.d.ts +1 -1
  182. package/resources/v1/customers/index.d.ts.map +1 -1
  183. package/resources/v1/customers/index.js.map +1 -1
  184. package/resources/v1/customers/index.mjs.map +1 -1
  185. package/resources/v1/customers/invoices.d.mts +38 -19
  186. package/resources/v1/customers/invoices.d.mts.map +1 -1
  187. package/resources/v1/customers/invoices.d.ts +38 -19
  188. package/resources/v1/customers/invoices.d.ts.map +1 -1
  189. package/resources/v1/customers/invoices.js +3 -0
  190. package/resources/v1/customers/invoices.js.map +1 -1
  191. package/resources/v1/customers/invoices.mjs +3 -0
  192. package/resources/v1/customers/invoices.mjs.map +1 -1
  193. package/resources/v1/customers/named-schedules.d.mts +3 -0
  194. package/resources/v1/customers/named-schedules.d.mts.map +1 -1
  195. package/resources/v1/customers/named-schedules.d.ts +3 -0
  196. package/resources/v1/customers/named-schedules.d.ts.map +1 -1
  197. package/resources/v1/customers/named-schedules.js +3 -0
  198. package/resources/v1/customers/named-schedules.js.map +1 -1
  199. package/resources/v1/customers/named-schedules.mjs +3 -0
  200. package/resources/v1/customers/named-schedules.mjs.map +1 -1
  201. package/resources/v1/customers/plans.d.mts +8 -5
  202. package/resources/v1/customers/plans.d.mts.map +1 -1
  203. package/resources/v1/customers/plans.d.ts +8 -5
  204. package/resources/v1/customers/plans.d.ts.map +1 -1
  205. package/resources/v1/customers/plans.js +3 -0
  206. package/resources/v1/customers/plans.js.map +1 -1
  207. package/resources/v1/customers/plans.mjs +3 -0
  208. package/resources/v1/customers/plans.mjs.map +1 -1
  209. package/resources/v1/dashboards.d.mts +3 -0
  210. package/resources/v1/dashboards.d.mts.map +1 -1
  211. package/resources/v1/dashboards.d.ts +3 -0
  212. package/resources/v1/dashboards.d.ts.map +1 -1
  213. package/resources/v1/dashboards.js +3 -0
  214. package/resources/v1/dashboards.js.map +1 -1
  215. package/resources/v1/dashboards.mjs +3 -0
  216. package/resources/v1/dashboards.mjs.map +1 -1
  217. package/resources/v1/index.d.mts +3 -2
  218. package/resources/v1/index.d.mts.map +1 -1
  219. package/resources/v1/index.d.ts +3 -2
  220. package/resources/v1/index.d.ts.map +1 -1
  221. package/resources/v1/index.js +3 -1
  222. package/resources/v1/index.js.map +1 -1
  223. package/resources/v1/index.mjs +1 -0
  224. package/resources/v1/index.mjs.map +1 -1
  225. package/resources/v1/invoices.d.mts +3 -0
  226. package/resources/v1/invoices.d.mts.map +1 -1
  227. package/resources/v1/invoices.d.ts +3 -0
  228. package/resources/v1/invoices.d.ts.map +1 -1
  229. package/resources/v1/invoices.js +3 -0
  230. package/resources/v1/invoices.js.map +1 -1
  231. package/resources/v1/invoices.mjs +3 -0
  232. package/resources/v1/invoices.mjs.map +1 -1
  233. package/resources/v1/packages.d.mts +2352 -0
  234. package/resources/v1/packages.d.mts.map +1 -0
  235. package/resources/v1/packages.d.ts +2352 -0
  236. package/resources/v1/packages.d.ts.map +1 -0
  237. package/resources/v1/packages.js +160 -0
  238. package/resources/v1/packages.js.map +1 -0
  239. package/resources/v1/packages.mjs +156 -0
  240. package/resources/v1/packages.mjs.map +1 -0
  241. package/resources/v1/payments.d.mts +10 -0
  242. package/resources/v1/payments.d.mts.map +1 -1
  243. package/resources/v1/payments.d.ts +10 -0
  244. package/resources/v1/payments.d.ts.map +1 -1
  245. package/resources/v1/plans.d.mts +5 -2
  246. package/resources/v1/plans.d.mts.map +1 -1
  247. package/resources/v1/plans.d.ts +5 -2
  248. package/resources/v1/plans.d.ts.map +1 -1
  249. package/resources/v1/plans.js +3 -0
  250. package/resources/v1/plans.js.map +1 -1
  251. package/resources/v1/plans.mjs +3 -0
  252. package/resources/v1/plans.mjs.map +1 -1
  253. package/resources/v1/pricing-units.d.mts +3 -0
  254. package/resources/v1/pricing-units.d.mts.map +1 -1
  255. package/resources/v1/pricing-units.d.ts +3 -0
  256. package/resources/v1/pricing-units.d.ts.map +1 -1
  257. package/resources/v1/pricing-units.js +3 -0
  258. package/resources/v1/pricing-units.js.map +1 -1
  259. package/resources/v1/pricing-units.mjs +3 -0
  260. package/resources/v1/pricing-units.mjs.map +1 -1
  261. package/resources/v1/services.d.mts +3 -0
  262. package/resources/v1/services.d.mts.map +1 -1
  263. package/resources/v1/services.d.ts +3 -0
  264. package/resources/v1/services.d.ts.map +1 -1
  265. package/resources/v1/services.js +3 -0
  266. package/resources/v1/services.js.map +1 -1
  267. package/resources/v1/services.mjs +3 -0
  268. package/resources/v1/services.mjs.map +1 -1
  269. package/resources/v1/settings/billing-providers.d.mts +3 -0
  270. package/resources/v1/settings/billing-providers.d.mts.map +1 -1
  271. package/resources/v1/settings/billing-providers.d.ts +3 -0
  272. package/resources/v1/settings/billing-providers.d.ts.map +1 -1
  273. package/resources/v1/settings/billing-providers.js +3 -0
  274. package/resources/v1/settings/billing-providers.js.map +1 -1
  275. package/resources/v1/settings/billing-providers.mjs +3 -0
  276. package/resources/v1/settings/billing-providers.mjs.map +1 -1
  277. package/resources/v1/settings/settings.d.mts +3 -0
  278. package/resources/v1/settings/settings.d.mts.map +1 -1
  279. package/resources/v1/settings/settings.d.ts +3 -0
  280. package/resources/v1/settings/settings.d.ts.map +1 -1
  281. package/resources/v1/settings/settings.js +3 -0
  282. package/resources/v1/settings/settings.js.map +1 -1
  283. package/resources/v1/settings/settings.mjs +3 -0
  284. package/resources/v1/settings/settings.mjs.map +1 -1
  285. package/resources/v1/usage.d.mts +87 -18
  286. package/resources/v1/usage.d.mts.map +1 -1
  287. package/resources/v1/usage.d.ts +87 -18
  288. package/resources/v1/usage.d.ts.map +1 -1
  289. package/resources/v1/usage.js +37 -11
  290. package/resources/v1/usage.js.map +1 -1
  291. package/resources/v1/usage.mjs +37 -11
  292. package/resources/v1/usage.mjs.map +1 -1
  293. package/resources/v1/v1.d.mts +8 -4
  294. package/resources/v1/v1.d.mts.map +1 -1
  295. package/resources/v1/v1.d.ts +8 -4
  296. package/resources/v1/v1.d.ts.map +1 -1
  297. package/resources/v1/v1.js +4 -0
  298. package/resources/v1/v1.js.map +1 -1
  299. package/resources/v1/v1.mjs +4 -0
  300. package/resources/v1/v1.mjs.map +1 -1
  301. package/resources/v2/contracts.d.mts +45 -7
  302. package/resources/v2/contracts.d.mts.map +1 -1
  303. package/resources/v2/contracts.d.ts +45 -7
  304. package/resources/v2/contracts.d.ts.map +1 -1
  305. package/resources/v2/contracts.js +1 -4
  306. package/resources/v2/contracts.js.map +1 -1
  307. package/resources/v2/contracts.mjs +1 -4
  308. package/resources/v2/contracts.mjs.map +1 -1
  309. package/src/client.ts +37 -15
  310. package/src/internal/parse.ts +6 -0
  311. package/src/internal/utils/query.ts +7 -0
  312. package/src/internal/utils.ts +1 -0
  313. package/src/resources/shared.ts +127 -32
  314. package/src/resources/v1/alerts.ts +3 -0
  315. package/src/resources/v1/audit-logs.ts +3 -0
  316. package/src/resources/v1/billable-metrics.ts +3 -0
  317. package/src/resources/v1/contracts/contracts.ts +151 -13
  318. package/src/resources/v1/contracts/index.ts +2 -0
  319. package/src/resources/v1/contracts/named-schedules.ts +3 -0
  320. package/src/resources/v1/contracts/products.ts +3 -0
  321. package/src/resources/v1/contracts/rate-cards/named-schedules.ts +3 -0
  322. package/src/resources/v1/contracts/rate-cards/product-orders.ts +3 -0
  323. package/src/resources/v1/contracts/rate-cards/rate-cards.ts +4 -1
  324. package/src/resources/v1/contracts/rate-cards/rates.ts +6 -24
  325. package/src/resources/v1/credit-grants.ts +3 -0
  326. package/src/resources/v1/custom-fields.ts +32 -5
  327. package/src/resources/v1/customers/alerts.ts +3 -0
  328. package/src/resources/v1/customers/billing-config.ts +8 -5
  329. package/src/resources/v1/customers/commits.ts +3 -0
  330. package/src/resources/v1/customers/credits.ts +3 -0
  331. package/src/resources/v1/customers/customers.ts +96 -7
  332. package/src/resources/v1/customers/index.ts +2 -0
  333. package/src/resources/v1/customers/invoices.ts +45 -19
  334. package/src/resources/v1/customers/named-schedules.ts +3 -0
  335. package/src/resources/v1/customers/plans.ts +8 -5
  336. package/src/resources/v1/dashboards.ts +3 -0
  337. package/src/resources/v1/index.ts +19 -0
  338. package/src/resources/v1/invoices.ts +3 -0
  339. package/src/resources/v1/packages.ts +3057 -0
  340. package/src/resources/v1/payments.ts +15 -0
  341. package/src/resources/v1/plans.ts +5 -2
  342. package/src/resources/v1/pricing-units.ts +3 -0
  343. package/src/resources/v1/services.ts +3 -0
  344. package/src/resources/v1/settings/billing-providers.ts +3 -0
  345. package/src/resources/v1/settings/settings.ts +3 -0
  346. package/src/resources/v1/usage.ts +86 -18
  347. package/src/resources/v1/v1.ts +42 -0
  348. package/src/resources/v2/contracts.ts +55 -7
  349. package/src/version.ts +1 -1
  350. package/version.d.mts +1 -1
  351. package/version.d.ts +1 -1
  352. package/version.js +1 -1
  353. package/version.mjs +1 -1
@@ -5,6 +5,9 @@ import * as Shared from '../../../shared';
5
5
  import { APIPromise } from '../../../../core/api-promise';
6
6
  import { RequestOptions } from '../../../../internal/request-options';
7
7
 
8
+ /**
9
+ * Rate cards are used to define default pricing for products.
10
+ */
8
11
  export class ProductOrders extends APIResource {
9
12
  /**
10
13
  * The ordering of products on a rate card determines the order in which the
@@ -32,6 +32,9 @@ import { APIPromise } from '../../../../core/api-promise';
32
32
  import { CursorPage, type CursorPageParams, PagePromise } from '../../../../core/pagination';
33
33
  import { RequestOptions } from '../../../../internal/request-options';
34
34
 
35
+ /**
36
+ * Rate cards are used to define default pricing for products.
37
+ */
35
38
  export class RateCards extends APIResource {
36
39
  productOrders: ProductOrdersAPI.ProductOrders = new ProductOrdersAPI.ProductOrders(this._client);
37
40
  rates: RatesAPI.Rates = new RatesAPI.Rates(this._client);
@@ -494,7 +497,7 @@ export namespace RateCardUpdateParams {
494
497
 
495
498
  export interface RateCardListParams extends CursorPageParams {
496
499
  /**
497
- * Body param:
500
+ * Body param
498
501
  */
499
502
  body?: unknown;
500
503
  }
@@ -6,6 +6,9 @@ import { APIPromise } from '../../../../core/api-promise';
6
6
  import { CursorPage, type CursorPageParams, PagePromise } from '../../../../core/pagination';
7
7
  import { RequestOptions } from '../../../../internal/request-options';
8
8
 
9
+ /**
10
+ * Rate cards are used to define default pricing for products.
11
+ */
9
12
  export class Rates extends APIResource {
10
13
  /**
11
14
  * Understand the rate schedule at a given timestamp, optionally filtering the list
@@ -153,7 +156,7 @@ export interface RateAddResponse {
153
156
 
154
157
  export namespace RateAddResponse {
155
158
  export interface Data {
156
- rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'CUSTOM' | 'TIERED';
159
+ rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'CUSTOM' | 'TIERED' | 'TIERED_PERCENTAGE';
157
160
 
158
161
  /**
159
162
  * A distinct rate on the rate card. You can choose to use this rate rather than
@@ -196,13 +199,6 @@ export namespace RateAddResponse {
196
199
  * Only set for TIERED rate_type.
197
200
  */
198
201
  tiers?: Array<Shared.Tier>;
199
-
200
- /**
201
- * Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed
202
- * using list prices rather than the standard rates for this product on the
203
- * contract.
204
- */
205
- use_list_prices?: boolean;
206
202
  }
207
203
  }
208
204
 
@@ -278,7 +274,7 @@ export interface RateAddParams {
278
274
  */
279
275
  rate_card_id: string;
280
276
 
281
- rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'CUSTOM';
277
+ rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'TIERED_PERCENTAGE' | 'CUSTOM';
282
278
 
283
279
  /**
284
280
  * inclusive effective date
@@ -343,13 +339,6 @@ export interface RateAddParams {
343
339
  * Only set for TIERED rate_type.
344
340
  */
345
341
  tiers?: Array<Shared.Tier>;
346
-
347
- /**
348
- * Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed
349
- * using list prices rather than the standard rates for this product on the
350
- * contract.
351
- */
352
- use_list_prices?: boolean;
353
342
  }
354
343
 
355
344
  export interface RateAddManyParams {
@@ -367,7 +356,7 @@ export namespace RateAddManyParams {
367
356
  */
368
357
  product_id: string;
369
358
 
370
- rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'CUSTOM';
359
+ rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'TIERED_PERCENTAGE' | 'CUSTOM';
371
360
 
372
361
  /**
373
362
  * inclusive effective date
@@ -432,13 +421,6 @@ export namespace RateAddManyParams {
432
421
  * Only set for TIERED rate_type.
433
422
  */
434
423
  tiers?: Array<Shared.Tier>;
435
-
436
- /**
437
- * Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed
438
- * using list prices rather than the standard rates for this product on the
439
- * contract.
440
- */
441
- use_list_prices?: boolean;
442
424
  }
443
425
  }
444
426
 
@@ -13,6 +13,9 @@ import {
13
13
  } from '../../core/pagination';
14
14
  import { RequestOptions } from '../../internal/request-options';
15
15
 
16
+ /**
17
+ * [Credit grants](https://docs.metronome.com/invoicing/how-billing-works/manage-credits/) adjust a customer balance for prepayments, reimbursements, promotions, and so on. Use these endpoints to create, retrieve, update, and delete credit grants.
18
+ */
16
19
  export class CreditGrants extends APIResource {
17
20
  /**
18
21
  * Create a new credit grant. This is a Plans (deprecated) endpoint. New clients
@@ -10,6 +10,9 @@ import {
10
10
  import { buildHeaders } from '../../internal/headers';
11
11
  import { RequestOptions } from '../../internal/request-options';
12
12
 
13
+ /**
14
+ * [Custom fields](https://docs.metronome.com/integrations/custom-fields/) enable adding additional data to Metronome entities. Use these endpoints to create, retrieve, update, and delete custom fields.
15
+ */
13
16
  export class CustomFields extends APIResource {
14
17
  /**
15
18
  * Creates a new custom field key for a given entity (e.g. billable metric,
@@ -180,7 +183,11 @@ export interface CustomFieldListKeysResponse {
180
183
  | 'product'
181
184
  | 'rate_card'
182
185
  | 'scheduled_charge'
183
- | 'subscription';
186
+ | 'subscription'
187
+ | 'package_commit'
188
+ | 'package_credit'
189
+ | 'package_subscription'
190
+ | 'package_scheduled_charge';
184
191
 
185
192
  key: string;
186
193
  }
@@ -206,7 +213,11 @@ export interface CustomFieldAddKeyParams {
206
213
  | 'product'
207
214
  | 'rate_card'
208
215
  | 'scheduled_charge'
209
- | 'subscription';
216
+ | 'subscription'
217
+ | 'package_commit'
218
+ | 'package_credit'
219
+ | 'package_subscription'
220
+ | 'package_scheduled_charge';
210
221
 
211
222
  key: string;
212
223
  }
@@ -230,7 +241,11 @@ export interface CustomFieldDeleteValuesParams {
230
241
  | 'product'
231
242
  | 'rate_card'
232
243
  | 'scheduled_charge'
233
- | 'subscription';
244
+ | 'subscription'
245
+ | 'package_commit'
246
+ | 'package_credit'
247
+ | 'package_subscription'
248
+ | 'package_scheduled_charge';
234
249
 
235
250
  entity_id: string;
236
251
 
@@ -260,6 +275,10 @@ export interface CustomFieldListKeysParams extends CursorPageWithoutLimitParams
260
275
  | 'rate_card'
261
276
  | 'scheduled_charge'
262
277
  | 'subscription'
278
+ | 'package_commit'
279
+ | 'package_credit'
280
+ | 'package_subscription'
281
+ | 'package_scheduled_charge'
263
282
  >;
264
283
  }
265
284
 
@@ -282,7 +301,11 @@ export interface CustomFieldRemoveKeyParams {
282
301
  | 'product'
283
302
  | 'rate_card'
284
303
  | 'scheduled_charge'
285
- | 'subscription';
304
+ | 'subscription'
305
+ | 'package_commit'
306
+ | 'package_credit'
307
+ | 'package_subscription'
308
+ | 'package_scheduled_charge';
286
309
 
287
310
  key: string;
288
311
  }
@@ -311,7 +334,11 @@ export interface CustomFieldSetValuesParams {
311
334
  | 'product'
312
335
  | 'rate_card'
313
336
  | 'scheduled_charge'
314
- | 'subscription';
337
+ | 'subscription'
338
+ | 'package_commit'
339
+ | 'package_credit'
340
+ | 'package_subscription'
341
+ | 'package_scheduled_charge';
315
342
 
316
343
  entity_id: string;
317
344
  }
@@ -11,6 +11,9 @@ import {
11
11
  import { buildHeaders } from '../../../internal/headers';
12
12
  import { RequestOptions } from '../../../internal/request-options';
13
13
 
14
+ /**
15
+ * [Alerts](https://docs.metronome.com/connecting-metronome/alerts/) monitor customer spending, balances, and other billing factors. Use these endpoints to create, retrieve, and archive customer alerts. To view sample alert payloads by alert type, navigate [here.](https://docs.metronome.com/manage-product-access/create-manage-alerts/#webhook-notifications)
16
+ */
14
17
  export class Alerts extends APIResource {
15
18
  /**
16
19
  * Retrieve the real-time evaluation status for a specific threshold
@@ -6,6 +6,9 @@ import { buildHeaders } from '../../../internal/headers';
6
6
  import { RequestOptions } from '../../../internal/request-options';
7
7
  import { path } from '../../../internal/utils/path';
8
8
 
9
+ /**
10
+ * [Customers](https://docs.metronome.com/provisioning/create-customers/) in Metronome represent your users for all billing and reporting. Use these endpoints to create, retrieve, update, and archive customers and their billing configuration.
11
+ */
9
12
  export class BillingConfig extends APIResource {
10
13
  /**
11
14
  * Set the billing configuration for a given customer. This is a Plans (deprecated)
@@ -161,7 +164,7 @@ export namespace BillingConfigRetrieveResponse {
161
164
 
162
165
  export interface BillingConfigCreateParams {
163
166
  /**
164
- * Path param:
167
+ * Path param
165
168
  */
166
169
  customer_id: string;
167
170
 
@@ -186,22 +189,22 @@ export interface BillingConfigCreateParams {
186
189
  billing_provider_customer_id: string;
187
190
 
188
191
  /**
189
- * Body param:
192
+ * Body param
190
193
  */
191
194
  aws_customer_account_id?: string;
192
195
 
193
196
  /**
194
- * Body param:
197
+ * Body param
195
198
  */
196
199
  aws_customer_id?: string;
197
200
 
198
201
  /**
199
- * Body param:
202
+ * Body param
200
203
  */
201
204
  aws_product_code?: string;
202
205
 
203
206
  /**
204
- * Body param:
207
+ * Body param
205
208
  */
206
209
  aws_region?:
207
210
  | 'af-south-1'
@@ -7,6 +7,9 @@ import { APIPromise } from '../../../core/api-promise';
7
7
  import { BodyCursorPage, type BodyCursorPageParams, PagePromise } from '../../../core/pagination';
8
8
  import { RequestOptions } from '../../../internal/request-options';
9
9
 
10
+ /**
11
+ * Credits and commits are used to manage customer balances.
12
+ */
10
13
  export class Commits extends APIResource {
11
14
  /**
12
15
  * Creates customer-level commits that establish spending commitments for customers
@@ -7,6 +7,9 @@ import { APIPromise } from '../../../core/api-promise';
7
7
  import { BodyCursorPage, type BodyCursorPageParams, PagePromise } from '../../../core/pagination';
8
8
  import { RequestOptions } from '../../../internal/request-options';
9
9
 
10
+ /**
11
+ * Credits and commits are used to manage customer balances.
12
+ */
10
13
  export class Credits extends APIResource {
11
14
  /**
12
15
  * Creates customer-level credits that provide spending allowances or free credit
@@ -217,6 +217,57 @@ export class Customers extends APIResource {
217
217
  return this._client.post('/v1/customers/archive', { body, ...options });
218
218
  }
219
219
 
220
+ /**
221
+ * Deprecate an existing billing configuration for a customer to handle churn or
222
+ * billing and collection preference changes. Archiving a billing configuration
223
+ * takes effect immediately. If there are active contracts using the configuration,
224
+ * Metronome will archive the configuration on the contract and immediately stop
225
+ * metering to downstream systems.
226
+ *
227
+ * ### Use this endpoint to:
228
+ *
229
+ * - Remove billing provider customer data and configurations when no longer needed
230
+ * - Clean up test or deprecated billing provider configurations
231
+ * - Free up uniqueness keys for reuse with new billing provider configurations
232
+ * - Disable threshold recharge configurations associated with archived billing
233
+ * providers
234
+ *
235
+ * ### Key response fields:
236
+ *
237
+ * A successful response returns:
238
+ *
239
+ * - `success`: Boolean indicating the operation completed successfully
240
+ * - `error`: Null on success, error message on failure
241
+ *
242
+ * ### Usage guidelines:
243
+ *
244
+ * - Archiving a contract configuration during a grace period will result in the
245
+ * invoice not being sent to the customer
246
+ * - Automatically disables both spend-based and credit-based threshold recharge
247
+ * configurations for contracts using the archived billing provider
248
+ * - You can archive multiple configurations for a single customer in a single
249
+ * request, but any validation failures for an individual configuration will
250
+ * prevent the entire operation from succeeding
251
+ *
252
+ * @example
253
+ * ```ts
254
+ * const response =
255
+ * await client.v1.customers.archiveBillingConfigurations({
256
+ * customer_billing_provider_configuration_ids: [
257
+ * '4db51251-61de-4bfe-b9ce-495e244f3491',
258
+ * '4db51251-61de-4bfe-b9ce-495e244f3491',
259
+ * ],
260
+ * customer_id: '20a060d1-aa80-41d4-8bb2-4f3091b93903',
261
+ * });
262
+ * ```
263
+ */
264
+ archiveBillingConfigurations(
265
+ body: CustomerArchiveBillingConfigurationsParams,
266
+ options?: RequestOptions,
267
+ ): APIPromise<CustomerArchiveBillingConfigurationsResponse> {
268
+ return this._client.post('/v1/archiveCustomerBillingProviderConfigurations', { body, ...options });
269
+ }
270
+
220
271
  /**
221
272
  * Get all billable metrics available for a specific customer. Supports pagination
222
273
  * and filtering by current plan status or archived metrics. Use this endpoint to
@@ -404,6 +455,12 @@ export class Customers extends APIResource {
404
455
  * configuration: { ... },
405
456
  * delivery_method: 'direct_to_billing_provider',
406
457
  * },
458
+ * {
459
+ * customer_id: '4db51251-61de-4bfe-b9ce-495e244f3491',
460
+ * billing_provider: 'netsuite',
461
+ * configuration: { ... },
462
+ * delivery_method: 'direct_to_billing_provider',
463
+ * },
407
464
  * ],
408
465
  * });
409
466
  * ```
@@ -602,6 +659,24 @@ export interface CustomerArchiveResponse {
602
659
  data: Shared.ID;
603
660
  }
604
661
 
662
+ export interface CustomerArchiveBillingConfigurationsResponse {
663
+ data: CustomerArchiveBillingConfigurationsResponse.Data;
664
+ }
665
+
666
+ export namespace CustomerArchiveBillingConfigurationsResponse {
667
+ export interface Data {
668
+ /**
669
+ * Array of billing provider configuration IDs to archive
670
+ */
671
+ customer_billing_provider_configuration_ids: Array<string>;
672
+
673
+ /**
674
+ * The customer ID the billing provider configurations belong to
675
+ */
676
+ customer_id: string;
677
+ }
678
+ }
679
+
605
680
  export interface CustomerListBillableMetricsResponse {
606
681
  id: string;
607
682
 
@@ -1001,9 +1076,21 @@ export interface CustomerArchiveParams {
1001
1076
  id: string;
1002
1077
  }
1003
1078
 
1079
+ export interface CustomerArchiveBillingConfigurationsParams {
1080
+ /**
1081
+ * Array of billing provider configuration IDs to archive
1082
+ */
1083
+ customer_billing_provider_configuration_ids: Array<string>;
1084
+
1085
+ /**
1086
+ * The customer ID the billing provider configurations belong to
1087
+ */
1088
+ customer_id: string;
1089
+ }
1090
+
1004
1091
  export interface CustomerListBillableMetricsParams extends CursorPageParams {
1005
1092
  /**
1006
- * Path param:
1093
+ * Path param
1007
1094
  */
1008
1095
  customer_id: string;
1009
1096
 
@@ -1021,7 +1108,7 @@ export interface CustomerListBillableMetricsParams extends CursorPageParams {
1021
1108
 
1022
1109
  export interface CustomerListCostsParams extends CursorPageParams {
1023
1110
  /**
1024
- * Path param:
1111
+ * Path param
1025
1112
  */
1026
1113
  customer_id: string;
1027
1114
 
@@ -1038,7 +1125,7 @@ export interface CustomerListCostsParams extends CursorPageParams {
1038
1125
 
1039
1126
  export interface CustomerPreviewEventsParams {
1040
1127
  /**
1041
- * Path param:
1128
+ * Path param
1042
1129
  */
1043
1130
  customer_id: string;
1044
1131
 
@@ -1146,19 +1233,19 @@ export namespace CustomerSetBillingConfigurationsParams {
1146
1233
 
1147
1234
  export interface CustomerSetIngestAliasesParams {
1148
1235
  /**
1149
- * Path param:
1236
+ * Path param
1150
1237
  */
1151
1238
  customer_id: string;
1152
1239
 
1153
1240
  /**
1154
- * Body param:
1241
+ * Body param
1155
1242
  */
1156
1243
  ingest_aliases: Array<string>;
1157
1244
  }
1158
1245
 
1159
1246
  export interface CustomerSetNameParams {
1160
1247
  /**
1161
- * Path param:
1248
+ * Path param
1162
1249
  */
1163
1250
  customer_id: string;
1164
1251
 
@@ -1171,7 +1258,7 @@ export interface CustomerSetNameParams {
1171
1258
 
1172
1259
  export interface CustomerUpdateConfigParams {
1173
1260
  /**
1174
- * Path param:
1261
+ * Path param
1175
1262
  */
1176
1263
  customer_id: string;
1177
1264
 
@@ -1202,6 +1289,7 @@ export declare namespace Customers {
1202
1289
  type CustomerCreateResponse as CustomerCreateResponse,
1203
1290
  type CustomerRetrieveResponse as CustomerRetrieveResponse,
1204
1291
  type CustomerArchiveResponse as CustomerArchiveResponse,
1292
+ type CustomerArchiveBillingConfigurationsResponse as CustomerArchiveBillingConfigurationsResponse,
1205
1293
  type CustomerListBillableMetricsResponse as CustomerListBillableMetricsResponse,
1206
1294
  type CustomerListCostsResponse as CustomerListCostsResponse,
1207
1295
  type CustomerPreviewEventsResponse as CustomerPreviewEventsResponse,
@@ -1215,6 +1303,7 @@ export declare namespace Customers {
1215
1303
  type CustomerRetrieveParams as CustomerRetrieveParams,
1216
1304
  type CustomerListParams as CustomerListParams,
1217
1305
  type CustomerArchiveParams as CustomerArchiveParams,
1306
+ type CustomerArchiveBillingConfigurationsParams as CustomerArchiveBillingConfigurationsParams,
1218
1307
  type CustomerListBillableMetricsParams as CustomerListBillableMetricsParams,
1219
1308
  type CustomerListCostsParams as CustomerListCostsParams,
1220
1309
  type CustomerPreviewEventsParams as CustomerPreviewEventsParams,
@@ -39,6 +39,7 @@ export {
39
39
  type CustomerCreateResponse,
40
40
  type CustomerRetrieveResponse,
41
41
  type CustomerArchiveResponse,
42
+ type CustomerArchiveBillingConfigurationsResponse,
42
43
  type CustomerListBillableMetricsResponse,
43
44
  type CustomerListCostsResponse,
44
45
  type CustomerPreviewEventsResponse,
@@ -49,6 +50,7 @@ export {
49
50
  type CustomerRetrieveParams,
50
51
  type CustomerListParams,
51
52
  type CustomerArchiveParams,
53
+ type CustomerArchiveBillingConfigurationsParams,
52
54
  type CustomerListBillableMetricsParams,
53
55
  type CustomerListCostsParams,
54
56
  type CustomerPreviewEventsParams,
@@ -8,6 +8,9 @@ import { buildHeaders } from '../../../internal/headers';
8
8
  import { RequestOptions } from '../../../internal/request-options';
9
9
  import { path } from '../../../internal/utils/path';
10
10
 
11
+ /**
12
+ * [Invoices](https://docs.metronome.com/invoicing/) reflect how much a customer spent during a period, which is the basis for billing. Metronome automatically generates invoices based upon your pricing, packaging, and usage events. Use these endpoints to retrieve invoices.
13
+ */
11
14
  export class Invoices extends APIResource {
12
15
  /**
13
16
  * Retrieve detailed information for a specific invoice by its unique identifier.
@@ -299,8 +302,8 @@ export interface Invoice {
299
302
  billable_status?: unknown;
300
303
 
301
304
  /**
302
- * Account hierarchy M3 - Required on invoices with type USAGE_CONSOLIDATED. List
303
- * of constituent invoices that were consolidated to create this invoice.
305
+ * Required on invoices with type USAGE_CONSOLIDATED. List of constituent invoices
306
+ * that were consolidated to create this invoice.
304
307
  */
305
308
  constituent_invoices?: Array<Invoice.ConstituentInvoice>;
306
309
 
@@ -348,8 +351,8 @@ export interface Invoice {
348
351
  netsuite_sales_order_id?: string;
349
352
 
350
353
  /**
351
- * Account hierarchy M3 - Required for account hierarchy usage invoices. An object
352
- * containing the contract and customer UUIDs that pay for this invoice.
354
+ * Required for account hierarchy usage invoices. An object containing the contract
355
+ * and customer UUIDs that pay for this invoice.
353
356
  */
354
357
  payer?: Invoice.Payer;
355
358
 
@@ -367,6 +370,8 @@ export interface Invoice {
367
370
  */
368
371
  reseller_royalty?: Invoice.ResellerRoyalty;
369
372
 
373
+ revenue_system_invoices?: Array<Invoice.RevenueSystemInvoice> | null;
374
+
370
375
  /**
371
376
  * This field's availability is dependent on your client's configuration.
372
377
  */
@@ -498,9 +503,9 @@ export namespace Invoice {
498
503
  netsuite_item_id?: string;
499
504
 
500
505
  /**
501
- * Account hierarchy M3 - Present on line items from invoices with type
502
- * USAGE_CONSOLIDATED. Indicates the original customer, contract, invoice and line
503
- * item from which this line item was copied.
506
+ * Present on line items from invoices with type USAGE_CONSOLIDATED. Indicates the
507
+ * original customer, contract, invoice and line item from which this line item was
508
+ * copied.
504
509
  */
505
510
  origin?: LineItem.Origin;
506
511
 
@@ -581,6 +586,12 @@ export namespace Invoice {
581
586
  */
582
587
  subscription_custom_fields?: { [key: string]: string };
583
588
 
589
+ /**
590
+ * ID of the subscription that this line item is associated with. Only present on
591
+ * line items with product of `SUBSCRIPTION` type.
592
+ */
593
+ subscription_id?: string;
594
+
584
595
  /**
585
596
  * Populated if the line item has a tiered price.
586
597
  */
@@ -605,9 +616,9 @@ export namespace Invoice {
605
616
  }
606
617
 
607
618
  /**
608
- * Account hierarchy M3 - Present on line items from invoices with type
609
- * USAGE_CONSOLIDATED. Indicates the original customer, contract, invoice and line
610
- * item from which this line item was copied.
619
+ * Present on line items from invoices with type USAGE_CONSOLIDATED. Indicates the
620
+ * original customer, contract, invoice and line item from which this line item was
621
+ * copied.
611
622
  */
612
623
  export interface Origin {
613
624
  contract_id: string;
@@ -904,8 +915,8 @@ export namespace Invoice {
904
915
  }
905
916
 
906
917
  /**
907
- * Account hierarchy M3 - Required for account hierarchy usage invoices. An object
908
- * containing the contract and customer UUIDs that pay for this invoice.
918
+ * Required for account hierarchy usage invoices. An object containing the contract
919
+ * and customer UUIDs that pay for this invoice.
909
920
  */
910
921
  export interface Payer {
911
922
  contract_id: string;
@@ -943,6 +954,21 @@ export namespace Invoice {
943
954
  gcp_offer_id?: string;
944
955
  }
945
956
  }
957
+
958
+ export interface RevenueSystemInvoice {
959
+ revenue_system_external_entity_type: string;
960
+
961
+ revenue_system_provider: string;
962
+
963
+ sync_status: string;
964
+
965
+ /**
966
+ * The error message from the revenue system, if available.
967
+ */
968
+ error_message?: string;
969
+
970
+ revenue_system_external_entity_id?: string;
971
+ }
946
972
  }
947
973
 
948
974
  export interface InvoiceRetrieveResponse {
@@ -959,12 +985,12 @@ export interface InvoiceListBreakdownsResponse extends Invoice {
959
985
 
960
986
  export interface InvoiceRetrieveParams {
961
987
  /**
962
- * Path param:
988
+ * Path param
963
989
  */
964
990
  customer_id: string;
965
991
 
966
992
  /**
967
- * Path param:
993
+ * Path param
968
994
  */
969
995
  invoice_id: string;
970
996
 
@@ -977,7 +1003,7 @@ export interface InvoiceRetrieveParams {
977
1003
 
978
1004
  export interface InvoiceListParams extends CursorPageParams {
979
1005
  /**
980
- * Path param:
1006
+ * Path param
981
1007
  */
982
1008
  customer_id: string;
983
1009
 
@@ -1018,7 +1044,7 @@ export interface InvoiceListParams extends CursorPageParams {
1018
1044
 
1019
1045
  export interface InvoiceAddChargeParams {
1020
1046
  /**
1021
- * Path param:
1047
+ * Path param
1022
1048
  */
1023
1049
  customer_id: string;
1024
1050
 
@@ -1035,7 +1061,7 @@ export interface InvoiceAddChargeParams {
1035
1061
  customer_plan_id: string;
1036
1062
 
1037
1063
  /**
1038
- * Body param:
1064
+ * Body param
1039
1065
  */
1040
1066
  description: string;
1041
1067
 
@@ -1051,14 +1077,14 @@ export interface InvoiceAddChargeParams {
1051
1077
  price: number;
1052
1078
 
1053
1079
  /**
1054
- * Body param:
1080
+ * Body param
1055
1081
  */
1056
1082
  quantity: number;
1057
1083
  }
1058
1084
 
1059
1085
  export interface InvoiceListBreakdownsParams extends CursorPageParams {
1060
1086
  /**
1061
- * Path param:
1087
+ * Path param
1062
1088
  */
1063
1089
  customer_id: string;
1064
1090
 
@@ -5,6 +5,9 @@ import { APIPromise } from '../../../core/api-promise';
5
5
  import { buildHeaders } from '../../../internal/headers';
6
6
  import { RequestOptions } from '../../../internal/request-options';
7
7
 
8
+ /**
9
+ * Named schedules are used for storing custom data that can change over time. Named schedules are often used in custom pricing logic.
10
+ */
8
11
  export class NamedSchedules extends APIResource {
9
12
  /**
10
13
  * Get a named schedule for the given customer. This endpoint's availability is