@flexprice/sdk 2.1.44 → 2.1.45-dev.9

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 (507) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/USAGE.md +1 -1
  3. package/docs/sdk/models/accounting-period-response.md +21 -0
  4. package/docs/sdk/models/accounting-period-status.md +17 -0
  5. package/docs/sdk/models/accountingperiod-filter-order.md +15 -0
  6. package/docs/sdk/models/accountingperiod-filter.md +25 -0
  7. package/docs/sdk/models/amortization-method.md +17 -0
  8. package/docs/sdk/models/contract-association-response.md +18 -0
  9. package/docs/sdk/models/contract-filter-order.md +15 -0
  10. package/docs/sdk/models/contract-filter.md +28 -0
  11. package/docs/sdk/models/contract-response.md +25 -0
  12. package/docs/sdk/models/contract-status.md +17 -0
  13. package/docs/sdk/models/create-entitlement-request.md +24 -27
  14. package/docs/sdk/models/create-price-request.md +1 -0
  15. package/docs/sdk/models/create-product-request.md +20 -0
  16. package/docs/sdk/models/create-subscription-entitlement-grant-request.md +24 -0
  17. package/docs/sdk/models/create-subscription-request.md +1 -0
  18. package/docs/sdk/models/delete-product-request.md +17 -0
  19. package/docs/sdk/models/entitlement-filter.md +19 -18
  20. package/docs/sdk/models/entitlement-grant-scope-entity-type.md +17 -0
  21. package/docs/sdk/models/entitlement-response.md +1 -0
  22. package/docs/sdk/models/get-contract-request.md +17 -0
  23. package/docs/sdk/models/get-journal-entry-request.md +17 -0
  24. package/docs/sdk/models/get-performance-obligation-request.md +17 -0
  25. package/docs/sdk/models/get-product-request.md +17 -0
  26. package/docs/sdk/models/grouped-invoicing-child-request.md +1 -0
  27. package/docs/sdk/models/invoice-filter.md +1 -0
  28. package/docs/sdk/models/journal-direction.md +17 -0
  29. package/docs/sdk/models/journal-entry-response.md +26 -0
  30. package/docs/sdk/models/journal-event-type.md +17 -0
  31. package/docs/sdk/models/journal-filter-order.md +15 -0
  32. package/docs/sdk/models/journal-filter.md +32 -0
  33. package/docs/sdk/models/journal-line-response.md +19 -0
  34. package/docs/sdk/models/ledger-account-key.md +17 -0
  35. package/docs/sdk/models/list-accounting-periods-response.md +16 -0
  36. package/docs/sdk/models/list-contracts-response.md +16 -0
  37. package/docs/sdk/models/list-journal-entries-response.md +16 -0
  38. package/docs/sdk/models/list-payments-request.md +2 -1
  39. package/docs/sdk/models/list-performance-obligations-response.md +16 -0
  40. package/docs/sdk/models/list-products-order.md +15 -0
  41. package/docs/sdk/models/list-products-request.md +23 -0
  42. package/docs/sdk/models/list-products-response.md +16 -0
  43. package/docs/sdk/models/list-products-status.md +15 -0
  44. package/docs/sdk/models/performance-obligation-association-response.md +18 -0
  45. package/docs/sdk/models/performance-obligation-response.md +26 -0
  46. package/docs/sdk/models/performance-obligation-status.md +17 -0
  47. package/docs/sdk/models/pob-filter-order.md +15 -0
  48. package/docs/sdk/models/pob-filter.md +28 -0
  49. package/docs/sdk/models/price-filter.md +1 -0
  50. package/docs/sdk/models/price-price.md +1 -0
  51. package/docs/sdk/models/price-response.md +1 -0
  52. package/docs/sdk/models/product-filter-order.md +15 -0
  53. package/docs/sdk/models/product-filter.md +25 -0
  54. package/docs/sdk/models/product-response.md +21 -0
  55. package/docs/sdk/models/recognition-method.md +17 -0
  56. package/docs/sdk/models/rev-rec-entity-type.md +17 -0
  57. package/docs/sdk/models/revenue-breakdown.md +18 -0
  58. package/docs/sdk/models/revenue-report-group-by.md +15 -0
  59. package/docs/sdk/models/rollforward-request.md +28 -0
  60. package/docs/sdk/models/rollforward-response.md +17 -0
  61. package/docs/sdk/models/rollforward-row.md +22 -0
  62. package/docs/sdk/models/subscription-entitlement-grants-response.md +50 -0
  63. package/docs/sdk/models/subscription-entitlements-response.md +41 -5
  64. package/docs/sdk/models/update-price-request.md +1 -0
  65. package/docs/sdk/models/update-product-request-request.md +19 -0
  66. package/docs/sdk/models/update-product-request.md +16 -0
  67. package/docs/sdk/models/waterfall-cell.md +18 -0
  68. package/docs/sdk/models/waterfall-request.md +29 -0
  69. package/docs/sdk/models/waterfall-response.md +17 -0
  70. package/docs/sdk/models/waterfall-row.md +18 -0
  71. package/docs/sdks/accountingperiods/README.md +78 -0
  72. package/docs/sdks/contracts/README.md +150 -0
  73. package/docs/sdks/entitlements/README.md +4 -16
  74. package/docs/sdks/journalentries/README.md +150 -0
  75. package/docs/sdks/performanceobligations/README.md +150 -0
  76. package/docs/sdks/products/README.md +445 -0
  77. package/docs/sdks/revenuereports/README.md +164 -0
  78. package/esm/funcs/accounting-periods-query-accounting-period.d.ts +17 -0
  79. package/esm/funcs/accounting-periods-query-accounting-period.d.ts.map +1 -0
  80. package/esm/funcs/accounting-periods-query-accounting-period.js +83 -0
  81. package/esm/funcs/accounting-periods-query-accounting-period.js.map +1 -0
  82. package/esm/funcs/contracts-get-contract.d.ts +17 -0
  83. package/esm/funcs/contracts-get-contract.d.ts.map +1 -0
  84. package/esm/funcs/contracts-get-contract.js +91 -0
  85. package/esm/funcs/contracts-get-contract.js.map +1 -0
  86. package/esm/funcs/contracts-query-contract.d.ts +17 -0
  87. package/esm/funcs/contracts-query-contract.d.ts.map +1 -0
  88. package/esm/funcs/contracts-query-contract.js +83 -0
  89. package/esm/funcs/contracts-query-contract.js.map +1 -0
  90. package/esm/funcs/journal-entries-get-journal-entry.d.ts +17 -0
  91. package/esm/funcs/journal-entries-get-journal-entry.d.ts.map +1 -0
  92. package/esm/funcs/journal-entries-get-journal-entry.js +91 -0
  93. package/esm/funcs/journal-entries-get-journal-entry.js.map +1 -0
  94. package/esm/funcs/journal-entries-query-journal-entry.d.ts +17 -0
  95. package/esm/funcs/journal-entries-query-journal-entry.d.ts.map +1 -0
  96. package/esm/funcs/journal-entries-query-journal-entry.js +83 -0
  97. package/esm/funcs/journal-entries-query-journal-entry.js.map +1 -0
  98. package/esm/funcs/payments-list-payments.js +1 -0
  99. package/esm/funcs/payments-list-payments.js.map +1 -1
  100. package/esm/funcs/performance-obligations-get-performance-obligation.d.ts +17 -0
  101. package/esm/funcs/performance-obligations-get-performance-obligation.d.ts.map +1 -0
  102. package/esm/funcs/performance-obligations-get-performance-obligation.js +91 -0
  103. package/esm/funcs/performance-obligations-get-performance-obligation.js.map +1 -0
  104. package/esm/funcs/performance-obligations-query-performance-obligation.d.ts +17 -0
  105. package/esm/funcs/performance-obligations-query-performance-obligation.d.ts.map +1 -0
  106. package/esm/funcs/performance-obligations-query-performance-obligation.js +83 -0
  107. package/esm/funcs/performance-obligations-query-performance-obligation.js.map +1 -0
  108. package/esm/funcs/products-create-product.d.ts +17 -0
  109. package/esm/funcs/products-create-product.d.ts.map +1 -0
  110. package/esm/funcs/products-create-product.js +83 -0
  111. package/esm/funcs/products-create-product.js.map +1 -0
  112. package/esm/funcs/products-delete-product.d.ts +17 -0
  113. package/esm/funcs/products-delete-product.d.ts.map +1 -0
  114. package/esm/funcs/products-delete-product.js +91 -0
  115. package/esm/funcs/products-delete-product.js.map +1 -0
  116. package/esm/funcs/products-get-product.d.ts +17 -0
  117. package/esm/funcs/products-get-product.d.ts.map +1 -0
  118. package/esm/funcs/products-get-product.js +91 -0
  119. package/esm/funcs/products-get-product.js.map +1 -0
  120. package/esm/funcs/products-list-products.d.ts +17 -0
  121. package/esm/funcs/products-list-products.d.ts.map +1 -0
  122. package/esm/funcs/products-list-products.js +95 -0
  123. package/esm/funcs/products-list-products.js.map +1 -0
  124. package/esm/funcs/products-query-product.d.ts +17 -0
  125. package/esm/funcs/products-query-product.d.ts.map +1 -0
  126. package/esm/funcs/products-query-product.js +83 -0
  127. package/esm/funcs/products-query-product.js.map +1 -0
  128. package/esm/funcs/products-update-product.d.ts +17 -0
  129. package/esm/funcs/products-update-product.d.ts.map +1 -0
  130. package/esm/funcs/products-update-product.js +93 -0
  131. package/esm/funcs/products-update-product.js.map +1 -0
  132. package/esm/funcs/revenue-reports-get-revenue-rollforward.d.ts +17 -0
  133. package/esm/funcs/revenue-reports-get-revenue-rollforward.d.ts.map +1 -0
  134. package/esm/funcs/revenue-reports-get-revenue-rollforward.js +83 -0
  135. package/esm/funcs/revenue-reports-get-revenue-rollforward.js.map +1 -0
  136. package/esm/funcs/revenue-reports-get-revenue-waterfall.d.ts +17 -0
  137. package/esm/funcs/revenue-reports-get-revenue-waterfall.d.ts.map +1 -0
  138. package/esm/funcs/revenue-reports-get-revenue-waterfall.js +83 -0
  139. package/esm/funcs/revenue-reports-get-revenue-waterfall.js.map +1 -0
  140. package/esm/lib/config.d.ts +3 -3
  141. package/esm/lib/config.js +3 -3
  142. package/esm/lib/config.js.map +1 -1
  143. package/esm/sdk/accounting-periods.d.ts +12 -0
  144. package/esm/sdk/accounting-periods.d.ts.map +1 -0
  145. package/esm/sdk/accounting-periods.js +18 -0
  146. package/esm/sdk/accounting-periods.js.map +1 -0
  147. package/esm/sdk/contracts.d.ts +19 -0
  148. package/esm/sdk/contracts.d.ts.map +1 -0
  149. package/esm/sdk/contracts.js +28 -0
  150. package/esm/sdk/contracts.js.map +1 -0
  151. package/esm/sdk/journal-entries.d.ts +19 -0
  152. package/esm/sdk/journal-entries.d.ts.map +1 -0
  153. package/esm/sdk/journal-entries.js +28 -0
  154. package/esm/sdk/journal-entries.js.map +1 -0
  155. package/esm/sdk/models/accounting-period-response.d.ts +18 -0
  156. package/esm/sdk/models/accounting-period-response.d.ts.map +1 -0
  157. package/esm/sdk/models/accounting-period-response.js +31 -0
  158. package/esm/sdk/models/accounting-period-response.js.map +1 -0
  159. package/esm/sdk/models/accounting-period-status.d.ts +12 -0
  160. package/esm/sdk/models/accounting-period-status.d.ts.map +1 -0
  161. package/esm/sdk/models/accounting-period-status.js +13 -0
  162. package/esm/sdk/models/accounting-period-status.js.map +1 -0
  163. package/esm/sdk/models/accountingperiod-filter.d.ts +44 -0
  164. package/esm/sdk/models/accountingperiod-filter.d.ts.map +1 -0
  165. package/esm/sdk/models/accountingperiod-filter.js +40 -0
  166. package/esm/sdk/models/accountingperiod-filter.js.map +1 -0
  167. package/esm/sdk/models/amortization-method.d.ts +11 -0
  168. package/esm/sdk/models/amortization-method.d.ts.map +1 -0
  169. package/esm/sdk/models/amortization-method.js +12 -0
  170. package/esm/sdk/models/amortization-method.js.map +1 -0
  171. package/esm/sdk/models/contract-association-response.d.ts +14 -0
  172. package/esm/sdk/models/contract-association-response.d.ts.map +1 -0
  173. package/esm/sdk/models/contract-association-response.js +25 -0
  174. package/esm/sdk/models/contract-association-response.js.map +1 -0
  175. package/esm/sdk/models/contract-filter.d.ts +50 -0
  176. package/esm/sdk/models/contract-filter.d.ts.map +1 -0
  177. package/esm/sdk/models/contract-filter.js +46 -0
  178. package/esm/sdk/models/contract-filter.js.map +1 -0
  179. package/esm/sdk/models/contract-response.d.ts +23 -0
  180. package/esm/sdk/models/contract-response.d.ts.map +1 -0
  181. package/esm/sdk/models/contract-response.js +38 -0
  182. package/esm/sdk/models/contract-response.js.map +1 -0
  183. package/esm/sdk/models/contract-status.d.ts +14 -0
  184. package/esm/sdk/models/contract-status.d.ts.map +1 -0
  185. package/esm/sdk/models/contract-status.js +15 -0
  186. package/esm/sdk/models/contract-status.js.map +1 -0
  187. package/esm/sdk/models/create-entitlement-request.d.ts +7 -4
  188. package/esm/sdk/models/create-entitlement-request.d.ts.map +1 -1
  189. package/esm/sdk/models/create-entitlement-request.js +2 -2
  190. package/esm/sdk/models/create-entitlement-request.js.map +1 -1
  191. package/esm/sdk/models/create-price-request.d.ts +2 -0
  192. package/esm/sdk/models/create-price-request.d.ts.map +1 -1
  193. package/esm/sdk/models/create-price-request.js +2 -0
  194. package/esm/sdk/models/create-price-request.js.map +1 -1
  195. package/esm/sdk/models/create-product-request.d.ts +16 -0
  196. package/esm/sdk/models/create-product-request.d.ts.map +1 -0
  197. package/esm/sdk/models/create-product-request.js +19 -0
  198. package/esm/sdk/models/create-product-request.js.map +1 -0
  199. package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts +30 -0
  200. package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts.map +1 -0
  201. package/esm/sdk/models/create-subscription-entitlement-grant-request.js +32 -0
  202. package/esm/sdk/models/create-subscription-entitlement-grant-request.js.map +1 -0
  203. package/esm/sdk/models/create-subscription-request.d.ts +6 -0
  204. package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
  205. package/esm/sdk/models/create-subscription-request.js +3 -0
  206. package/esm/sdk/models/create-subscription-request.js.map +1 -1
  207. package/esm/sdk/models/delete-product-op.d.ts +15 -0
  208. package/esm/sdk/models/delete-product-op.d.ts.map +1 -0
  209. package/esm/sdk/models/delete-product-op.js +12 -0
  210. package/esm/sdk/models/delete-product-op.js.map +1 -0
  211. package/esm/sdk/models/entitlement-filter.d.ts +9 -0
  212. package/esm/sdk/models/entitlement-filter.d.ts.map +1 -1
  213. package/esm/sdk/models/entitlement-filter.js +3 -0
  214. package/esm/sdk/models/entitlement-filter.js.map +1 -1
  215. package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts +13 -0
  216. package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts.map +1 -0
  217. package/esm/sdk/models/entitlement-grant-scope-entity-type.js +14 -0
  218. package/esm/sdk/models/entitlement-grant-scope-entity-type.js.map +1 -0
  219. package/esm/sdk/models/entitlement-response.d.ts +2 -0
  220. package/esm/sdk/models/entitlement-response.d.ts.map +1 -1
  221. package/esm/sdk/models/entitlement-response.js +3 -0
  222. package/esm/sdk/models/entitlement-response.js.map +1 -1
  223. package/esm/sdk/models/get-contract-op.d.ts +15 -0
  224. package/esm/sdk/models/get-contract-op.d.ts.map +1 -0
  225. package/esm/sdk/models/get-contract-op.js +12 -0
  226. package/esm/sdk/models/get-contract-op.js.map +1 -0
  227. package/esm/sdk/models/get-journal-entry-op.d.ts +15 -0
  228. package/esm/sdk/models/get-journal-entry-op.d.ts.map +1 -0
  229. package/esm/sdk/models/get-journal-entry-op.js +12 -0
  230. package/esm/sdk/models/get-journal-entry-op.js.map +1 -0
  231. package/esm/sdk/models/get-performance-obligation-op.d.ts +15 -0
  232. package/esm/sdk/models/get-performance-obligation-op.d.ts.map +1 -0
  233. package/esm/sdk/models/get-performance-obligation-op.js +12 -0
  234. package/esm/sdk/models/get-performance-obligation-op.js.map +1 -0
  235. package/esm/sdk/models/get-product-op.d.ts +15 -0
  236. package/esm/sdk/models/get-product-op.d.ts.map +1 -0
  237. package/esm/sdk/models/get-product-op.js +12 -0
  238. package/esm/sdk/models/get-product-op.js.map +1 -0
  239. package/esm/sdk/models/grouped-invoicing-child-request.d.ts +6 -0
  240. package/esm/sdk/models/grouped-invoicing-child-request.d.ts.map +1 -1
  241. package/esm/sdk/models/grouped-invoicing-child-request.js +3 -0
  242. package/esm/sdk/models/grouped-invoicing-child-request.js.map +1 -1
  243. package/esm/sdk/models/index.d.ts +48 -0
  244. package/esm/sdk/models/index.d.ts.map +1 -1
  245. package/esm/sdk/models/index.js +48 -0
  246. package/esm/sdk/models/index.js.map +1 -1
  247. package/esm/sdk/models/invoice-filter.d.ts +5 -0
  248. package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
  249. package/esm/sdk/models/invoice-filter.js +2 -0
  250. package/esm/sdk/models/invoice-filter.js.map +1 -1
  251. package/esm/sdk/models/journal-direction.d.ts +10 -0
  252. package/esm/sdk/models/journal-direction.d.ts.map +1 -0
  253. package/esm/sdk/models/journal-direction.js +11 -0
  254. package/esm/sdk/models/journal-direction.js.map +1 -0
  255. package/esm/sdk/models/journal-entry-response.d.ts +24 -0
  256. package/esm/sdk/models/journal-entry-response.d.ts.map +1 -0
  257. package/esm/sdk/models/journal-entry-response.js +41 -0
  258. package/esm/sdk/models/journal-entry-response.js.map +1 -0
  259. package/esm/sdk/models/journal-event-type.d.ts +19 -0
  260. package/esm/sdk/models/journal-event-type.d.ts.map +1 -0
  261. package/esm/sdk/models/journal-event-type.js +20 -0
  262. package/esm/sdk/models/journal-event-type.js.map +1 -0
  263. package/esm/sdk/models/journal-filter.d.ts +60 -0
  264. package/esm/sdk/models/journal-filter.d.ts.map +1 -0
  265. package/esm/sdk/models/journal-filter.js +55 -0
  266. package/esm/sdk/models/journal-filter.js.map +1 -0
  267. package/esm/sdk/models/journal-line-response.d.ts +16 -0
  268. package/esm/sdk/models/journal-line-response.d.ts.map +1 -0
  269. package/esm/sdk/models/journal-line-response.js +25 -0
  270. package/esm/sdk/models/journal-line-response.js.map +1 -0
  271. package/esm/sdk/models/ledger-account-key.d.ts +18 -0
  272. package/esm/sdk/models/ledger-account-key.d.ts.map +1 -0
  273. package/esm/sdk/models/ledger-account-key.js +19 -0
  274. package/esm/sdk/models/ledger-account-key.js.map +1 -0
  275. package/esm/sdk/models/list-accounting-periods-response.d.ts +13 -0
  276. package/esm/sdk/models/list-accounting-periods-response.d.ts.map +1 -0
  277. package/esm/sdk/models/list-accounting-periods-response.js +17 -0
  278. package/esm/sdk/models/list-accounting-periods-response.js.map +1 -0
  279. package/esm/sdk/models/list-contracts-response.d.ts +13 -0
  280. package/esm/sdk/models/list-contracts-response.d.ts.map +1 -0
  281. package/esm/sdk/models/list-contracts-response.js +17 -0
  282. package/esm/sdk/models/list-contracts-response.js.map +1 -0
  283. package/esm/sdk/models/list-journal-entries-response.d.ts +13 -0
  284. package/esm/sdk/models/list-journal-entries-response.d.ts.map +1 -0
  285. package/esm/sdk/models/list-journal-entries-response.js +17 -0
  286. package/esm/sdk/models/list-journal-entries-response.js.map +1 -0
  287. package/esm/sdk/models/list-payments-op.d.ts +5 -0
  288. package/esm/sdk/models/list-payments-op.d.ts.map +1 -1
  289. package/esm/sdk/models/list-payments-op.js +2 -0
  290. package/esm/sdk/models/list-payments-op.js.map +1 -1
  291. package/esm/sdk/models/list-performance-obligations-response.d.ts +13 -0
  292. package/esm/sdk/models/list-performance-obligations-response.d.ts.map +1 -0
  293. package/esm/sdk/models/list-performance-obligations-response.js +17 -0
  294. package/esm/sdk/models/list-performance-obligations-response.js.map +1 -0
  295. package/esm/sdk/models/list-products-op.d.ts +44 -0
  296. package/esm/sdk/models/list-products-op.d.ts.map +1 -0
  297. package/esm/sdk/models/list-products-op.js +41 -0
  298. package/esm/sdk/models/list-products-op.js.map +1 -0
  299. package/esm/sdk/models/list-products-response.d.ts +13 -0
  300. package/esm/sdk/models/list-products-response.d.ts.map +1 -0
  301. package/esm/sdk/models/list-products-response.js +17 -0
  302. package/esm/sdk/models/list-products-response.js.map +1 -0
  303. package/esm/sdk/models/performance-obligation-association-response.d.ts +14 -0
  304. package/esm/sdk/models/performance-obligation-association-response.d.ts.map +1 -0
  305. package/esm/sdk/models/performance-obligation-association-response.js +25 -0
  306. package/esm/sdk/models/performance-obligation-association-response.js.map +1 -0
  307. package/esm/sdk/models/performance-obligation-response.d.ts +26 -0
  308. package/esm/sdk/models/performance-obligation-response.d.ts.map +1 -0
  309. package/esm/sdk/models/performance-obligation-response.js +42 -0
  310. package/esm/sdk/models/performance-obligation-response.js.map +1 -0
  311. package/esm/sdk/models/performance-obligation-status.d.ts +14 -0
  312. package/esm/sdk/models/performance-obligation-status.d.ts.map +1 -0
  313. package/esm/sdk/models/performance-obligation-status.js +15 -0
  314. package/esm/sdk/models/performance-obligation-status.js.map +1 -0
  315. package/esm/sdk/models/pob-filter.d.ts +51 -0
  316. package/esm/sdk/models/pob-filter.d.ts.map +1 -0
  317. package/esm/sdk/models/pob-filter.js +47 -0
  318. package/esm/sdk/models/pob-filter.js.map +1 -0
  319. package/esm/sdk/models/price-filter.d.ts +2 -0
  320. package/esm/sdk/models/price-filter.d.ts.map +1 -1
  321. package/esm/sdk/models/price-filter.js +2 -0
  322. package/esm/sdk/models/price-filter.js.map +1 -1
  323. package/esm/sdk/models/price-price.d.ts +1 -0
  324. package/esm/sdk/models/price-price.d.ts.map +1 -1
  325. package/esm/sdk/models/price-price.js +2 -0
  326. package/esm/sdk/models/price-price.js.map +1 -1
  327. package/esm/sdk/models/price-response.d.ts +1 -0
  328. package/esm/sdk/models/price-response.d.ts.map +1 -1
  329. package/esm/sdk/models/price-response.js +2 -0
  330. package/esm/sdk/models/price-response.js.map +1 -1
  331. package/esm/sdk/models/product-filter.d.ts +43 -0
  332. package/esm/sdk/models/product-filter.d.ts.map +1 -0
  333. package/esm/sdk/models/product-filter.js +39 -0
  334. package/esm/sdk/models/product-filter.js.map +1 -0
  335. package/esm/sdk/models/product-response.d.ts +17 -0
  336. package/esm/sdk/models/product-response.d.ts.map +1 -0
  337. package/esm/sdk/models/product-response.js +28 -0
  338. package/esm/sdk/models/product-response.js.map +1 -0
  339. package/esm/sdk/models/recognition-method.d.ts +13 -0
  340. package/esm/sdk/models/recognition-method.d.ts.map +1 -0
  341. package/esm/sdk/models/recognition-method.js +14 -0
  342. package/esm/sdk/models/recognition-method.js.map +1 -0
  343. package/esm/sdk/models/rev-rec-entity-type.d.ts +17 -0
  344. package/esm/sdk/models/rev-rec-entity-type.d.ts.map +1 -0
  345. package/esm/sdk/models/rev-rec-entity-type.js +18 -0
  346. package/esm/sdk/models/rev-rec-entity-type.js.map +1 -0
  347. package/esm/sdk/models/revenue-breakdown.d.ts +16 -0
  348. package/esm/sdk/models/revenue-breakdown.d.ts.map +1 -0
  349. package/esm/sdk/models/revenue-breakdown.js +17 -0
  350. package/esm/sdk/models/revenue-breakdown.js.map +1 -0
  351. package/esm/sdk/models/revenue-report-group-by.d.ts +11 -0
  352. package/esm/sdk/models/revenue-report-group-by.d.ts.map +1 -0
  353. package/esm/sdk/models/revenue-report-group-by.js +12 -0
  354. package/esm/sdk/models/revenue-report-group-by.js.map +1 -0
  355. package/esm/sdk/models/rollforward-request.d.ts +49 -0
  356. package/esm/sdk/models/rollforward-request.d.ts.map +1 -0
  357. package/esm/sdk/models/rollforward-request.js +35 -0
  358. package/esm/sdk/models/rollforward-request.js.map +1 -0
  359. package/esm/sdk/models/rollforward-response.d.ts +20 -0
  360. package/esm/sdk/models/rollforward-response.d.ts.map +1 -0
  361. package/esm/sdk/models/rollforward-response.js +18 -0
  362. package/esm/sdk/models/rollforward-response.js.map +1 -0
  363. package/esm/sdk/models/rollforward-row.d.ts +26 -0
  364. package/esm/sdk/models/rollforward-row.d.ts.map +1 -0
  365. package/esm/sdk/models/rollforward-row.js +29 -0
  366. package/esm/sdk/models/rollforward-row.js.map +1 -0
  367. package/esm/sdk/models/subscription-entitlement-grants-response.d.ts +13 -0
  368. package/esm/sdk/models/subscription-entitlement-grants-response.d.ts.map +1 -0
  369. package/esm/sdk/models/subscription-entitlement-grants-response.js +22 -0
  370. package/esm/sdk/models/subscription-entitlement-grants-response.js.map +1 -0
  371. package/esm/sdk/models/subscription-entitlements-response.d.ts +2 -0
  372. package/esm/sdk/models/subscription-entitlements-response.d.ts.map +1 -1
  373. package/esm/sdk/models/subscription-entitlements-response.js +3 -0
  374. package/esm/sdk/models/subscription-entitlements-response.js.map +1 -1
  375. package/esm/sdk/models/update-price-request.d.ts +5 -0
  376. package/esm/sdk/models/update-price-request.d.ts.map +1 -1
  377. package/esm/sdk/models/update-price-request.js +2 -0
  378. package/esm/sdk/models/update-price-request.js.map +1 -1
  379. package/esm/sdk/models/update-product-op.d.ts +21 -0
  380. package/esm/sdk/models/update-product-op.d.ts.map +1 -0
  381. package/esm/sdk/models/update-product-op.js +14 -0
  382. package/esm/sdk/models/update-product-op.js.map +1 -0
  383. package/esm/sdk/models/update-product-request.d.ts +14 -0
  384. package/esm/sdk/models/update-product-request.d.ts.map +1 -0
  385. package/esm/sdk/models/update-product-request.js +13 -0
  386. package/esm/sdk/models/update-product-request.js.map +1 -0
  387. package/esm/sdk/models/waterfall-cell.d.ts +23 -0
  388. package/esm/sdk/models/waterfall-cell.d.ts.map +1 -0
  389. package/esm/sdk/models/waterfall-cell.js +18 -0
  390. package/esm/sdk/models/waterfall-cell.js.map +1 -0
  391. package/esm/sdk/models/waterfall-request.d.ts +48 -0
  392. package/esm/sdk/models/waterfall-request.d.ts.map +1 -0
  393. package/esm/sdk/models/waterfall-request.js +34 -0
  394. package/esm/sdk/models/waterfall-request.js.map +1 -0
  395. package/esm/sdk/models/waterfall-response.d.ts +18 -0
  396. package/esm/sdk/models/waterfall-response.d.ts.map +1 -0
  397. package/esm/sdk/models/waterfall-response.js +19 -0
  398. package/esm/sdk/models/waterfall-response.js.map +1 -0
  399. package/esm/sdk/models/waterfall-row.d.ts +17 -0
  400. package/esm/sdk/models/waterfall-row.d.ts.map +1 -0
  401. package/esm/sdk/models/waterfall-row.js +25 -0
  402. package/esm/sdk/models/waterfall-row.js.map +1 -0
  403. package/esm/sdk/performance-obligations.d.ts +19 -0
  404. package/esm/sdk/performance-obligations.d.ts.map +1 -0
  405. package/esm/sdk/performance-obligations.js +28 -0
  406. package/esm/sdk/performance-obligations.js.map +1 -0
  407. package/esm/sdk/products.d.ts +47 -0
  408. package/esm/sdk/products.d.ts.map +1 -0
  409. package/esm/sdk/products.js +68 -0
  410. package/esm/sdk/products.js.map +1 -0
  411. package/esm/sdk/revenue-reports.d.ts +19 -0
  412. package/esm/sdk/revenue-reports.d.ts.map +1 -0
  413. package/esm/sdk/revenue-reports.js +28 -0
  414. package/esm/sdk/revenue-reports.js.map +1 -0
  415. package/esm/sdk/sdk.d.ts +18 -0
  416. package/esm/sdk/sdk.d.ts.map +1 -1
  417. package/esm/sdk/sdk.js +30 -0
  418. package/esm/sdk/sdk.js.map +1 -1
  419. package/examples/{activityListActivity.example.ts → accountingPeriodsQueryAccountingPeriod.example.ts} +2 -2
  420. package/jsr.json +1 -1
  421. package/package.json +1 -1
  422. package/src/funcs/accounting-periods-query-accounting-period.ts +172 -0
  423. package/src/funcs/contracts-get-contract.ts +181 -0
  424. package/src/funcs/contracts-query-contract.ts +172 -0
  425. package/src/funcs/journal-entries-get-journal-entry.ts +181 -0
  426. package/src/funcs/journal-entries-query-journal-entry.ts +172 -0
  427. package/src/funcs/payments-list-payments.ts +1 -0
  428. package/src/funcs/performance-obligations-get-performance-obligation.ts +182 -0
  429. package/src/funcs/performance-obligations-query-performance-obligation.ts +172 -0
  430. package/src/funcs/products-create-product.ts +172 -0
  431. package/src/funcs/products-delete-product.ts +181 -0
  432. package/src/funcs/products-get-product.ts +181 -0
  433. package/src/funcs/products-list-products.ts +189 -0
  434. package/src/funcs/products-query-product.ts +172 -0
  435. package/src/funcs/products-update-product.ts +187 -0
  436. package/src/funcs/revenue-reports-get-revenue-rollforward.ts +172 -0
  437. package/src/funcs/revenue-reports-get-revenue-waterfall.ts +172 -0
  438. package/src/lib/config.ts +3 -3
  439. package/src/sdk/accounting-periods.ts +27 -0
  440. package/src/sdk/contracts.ts +45 -0
  441. package/src/sdk/journal-entries.ts +45 -0
  442. package/src/sdk/models/accounting-period-response.ts +60 -0
  443. package/src/sdk/models/accounting-period-status.ts +24 -0
  444. package/src/sdk/models/accountingperiod-filter.ts +100 -0
  445. package/src/sdk/models/amortization-method.ts +20 -0
  446. package/src/sdk/models/contract-association-response.ts +51 -0
  447. package/src/sdk/models/contract-filter.ts +106 -0
  448. package/src/sdk/models/contract-response.ts +76 -0
  449. package/src/sdk/models/contract-status.ts +26 -0
  450. package/src/sdk/models/create-entitlement-request.ts +9 -6
  451. package/src/sdk/models/create-price-request.ts +4 -0
  452. package/src/sdk/models/create-product-request.ts +44 -0
  453. package/src/sdk/models/create-subscription-entitlement-grant-request.ts +85 -0
  454. package/src/sdk/models/create-subscription-request.ts +18 -0
  455. package/src/sdk/models/delete-product-op.ts +33 -0
  456. package/src/sdk/models/entitlement-filter.ts +16 -0
  457. package/src/sdk/models/entitlement-grant-scope-entity-type.ts +27 -0
  458. package/src/sdk/models/entitlement-response.ts +7 -0
  459. package/src/sdk/models/get-contract-op.ts +33 -0
  460. package/src/sdk/models/get-journal-entry-op.ts +33 -0
  461. package/src/sdk/models/get-performance-obligation-op.ts +35 -0
  462. package/src/sdk/models/get-product-op.ts +33 -0
  463. package/src/sdk/models/grouped-invoicing-child-request.ts +18 -0
  464. package/src/sdk/models/index.ts +48 -0
  465. package/src/sdk/models/invoice-filter.ts +9 -0
  466. package/src/sdk/models/journal-direction.ts +19 -0
  467. package/src/sdk/models/journal-entry-response.ts +81 -0
  468. package/src/sdk/models/journal-event-type.ts +31 -0
  469. package/src/sdk/models/journal-filter.ts +129 -0
  470. package/src/sdk/models/journal-line-response.ts +55 -0
  471. package/src/sdk/models/ledger-account-key.ts +30 -0
  472. package/src/sdk/models/list-accounting-periods-response.ts +41 -0
  473. package/src/sdk/models/list-contracts-response.ts +41 -0
  474. package/src/sdk/models/list-journal-entries-response.ts +41 -0
  475. package/src/sdk/models/list-payments-op.ts +7 -0
  476. package/src/sdk/models/list-performance-obligations-response.ts +42 -0
  477. package/src/sdk/models/list-products-op.ts +89 -0
  478. package/src/sdk/models/list-products-response.ts +41 -0
  479. package/src/sdk/models/performance-obligation-association-response.ts +55 -0
  480. package/src/sdk/models/performance-obligation-response.ts +87 -0
  481. package/src/sdk/models/performance-obligation-status.ts +28 -0
  482. package/src/sdk/models/pob-filter.ts +112 -0
  483. package/src/sdk/models/price-filter.ts +4 -0
  484. package/src/sdk/models/price-price.ts +3 -0
  485. package/src/sdk/models/price-response.ts +3 -0
  486. package/src/sdk/models/product-filter.ts +90 -0
  487. package/src/sdk/models/product-response.ts +54 -0
  488. package/src/sdk/models/recognition-method.ts +25 -0
  489. package/src/sdk/models/rev-rec-entity-type.ts +29 -0
  490. package/src/sdk/models/revenue-breakdown.ts +40 -0
  491. package/src/sdk/models/revenue-report-group-by.ts +18 -0
  492. package/src/sdk/models/rollforward-request.ts +97 -0
  493. package/src/sdk/models/rollforward-response.ts +49 -0
  494. package/src/sdk/models/rollforward-row.ts +65 -0
  495. package/src/sdk/models/subscription-entitlement-grants-response.ts +47 -0
  496. package/src/sdk/models/subscription-entitlements-response.ts +11 -0
  497. package/src/sdk/models/update-price-request.ts +7 -0
  498. package/src/sdk/models/update-product-op.ts +46 -0
  499. package/src/sdk/models/update-product-request.ts +33 -0
  500. package/src/sdk/models/waterfall-cell.ts +50 -0
  501. package/src/sdk/models/waterfall-request.ts +93 -0
  502. package/src/sdk/models/waterfall-response.ts +47 -0
  503. package/src/sdk/models/waterfall-row.ts +52 -0
  504. package/src/sdk/performance-obligations.ts +45 -0
  505. package/src/sdk/products.ts +119 -0
  506. package/src/sdk/revenue-reports.ts +45 -0
  507. package/src/sdk/sdk.ts +38 -0
@@ -0,0 +1,445 @@
1
+ # Products
2
+
3
+ ## Overview
4
+
5
+ ### Available Operations
6
+
7
+ * [listProducts](#listproducts) - List products
8
+ * [createProduct](#createproduct) - Create product
9
+ * [queryProduct](#queryproduct) - Query products
10
+ * [getProduct](#getproduct) - Get product
11
+ * [updateProduct](#updateproduct) - Update product
12
+ * [deleteProduct](#deleteproduct) - Delete product
13
+
14
+ ## listProducts
15
+
16
+ Use when listing products. Returns a paginated list.
17
+
18
+ ### Example Usage
19
+
20
+ <!-- UsageSnippet language="typescript" operationID="listProducts" method="get" path="/products" -->
21
+ ```typescript
22
+ import { Flexprice } from "@flexprice/sdk";
23
+
24
+ const flexprice = new Flexprice({
25
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
26
+ });
27
+
28
+ async function run() {
29
+ const result = await flexprice.products.listProducts();
30
+
31
+ console.log(result);
32
+ }
33
+
34
+ run();
35
+ ```
36
+
37
+ ### Standalone function
38
+
39
+ The standalone function version of this method:
40
+
41
+ ```typescript
42
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
43
+ import { productsListProducts } from "@flexprice/sdk/funcs/products-list-products.js";
44
+
45
+ // Use `FlexpriceCore` for best tree-shaking performance.
46
+ // You can create one instance of it to use across an application.
47
+ const flexprice = new FlexpriceCore({
48
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
49
+ });
50
+
51
+ async function run() {
52
+ const res = await productsListProducts(flexprice);
53
+ if (res.ok) {
54
+ const { value: result } = res;
55
+ console.log(result);
56
+ } else {
57
+ console.log("productsListProducts failed:", res.error);
58
+ }
59
+ }
60
+
61
+ run();
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Parameter | Type | Required | Description |
67
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
68
+ | `request` | [models.ListProductsRequest](../../sdk/models/list-products-request.md) | :heavy_check_mark: | The request object to use for the request. |
69
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
70
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
71
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
72
+
73
+ ### Response
74
+
75
+ **Promise\<[models.ListProductsResponse](../../sdk/models/list-products-response.md)\>**
76
+
77
+ ### Errors
78
+
79
+ | Error Type | Status Code | Content Type |
80
+ | -------------------------- | -------------------------- | -------------------------- |
81
+ | models.ErrorsErrorResponse | 400 | application/json |
82
+ | models.ErrorsErrorResponse | 500 | application/json |
83
+ | models.SDKError | 4XX, 5XX | \*/\* |
84
+
85
+ ## createProduct
86
+
87
+ Use when defining a reusable commercial identity for what you sell. Prices can reference it through product_id.
88
+
89
+ ### Example Usage
90
+
91
+ <!-- UsageSnippet language="typescript" operationID="createProduct" method="post" path="/products" -->
92
+ ```typescript
93
+ import { Flexprice } from "@flexprice/sdk";
94
+
95
+ const flexprice = new Flexprice({
96
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
97
+ });
98
+
99
+ async function run() {
100
+ const result = await flexprice.products.createProduct({
101
+ lookupKey: "<value>",
102
+ name: "<value>",
103
+ });
104
+
105
+ console.log(result);
106
+ }
107
+
108
+ run();
109
+ ```
110
+
111
+ ### Standalone function
112
+
113
+ The standalone function version of this method:
114
+
115
+ ```typescript
116
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
117
+ import { productsCreateProduct } from "@flexprice/sdk/funcs/products-create-product.js";
118
+
119
+ // Use `FlexpriceCore` for best tree-shaking performance.
120
+ // You can create one instance of it to use across an application.
121
+ const flexprice = new FlexpriceCore({
122
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
123
+ });
124
+
125
+ async function run() {
126
+ const res = await productsCreateProduct(flexprice, {
127
+ lookupKey: "<value>",
128
+ name: "<value>",
129
+ });
130
+ if (res.ok) {
131
+ const { value: result } = res;
132
+ console.log(result);
133
+ } else {
134
+ console.log("productsCreateProduct failed:", res.error);
135
+ }
136
+ }
137
+
138
+ run();
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Parameter | Type | Required | Description |
144
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
145
+ | `request` | [models.CreateProductRequest](../../sdk/models/create-product-request.md) | :heavy_check_mark: | The request object to use for the request. |
146
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
147
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
148
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
149
+
150
+ ### Response
151
+
152
+ **Promise\<[models.ProductResponse](../../sdk/models/product-response.md)\>**
153
+
154
+ ### Errors
155
+
156
+ | Error Type | Status Code | Content Type |
157
+ | -------------------------- | -------------------------- | -------------------------- |
158
+ | models.ErrorsErrorResponse | 400 | application/json |
159
+ | models.ErrorsErrorResponse | 500 | application/json |
160
+ | models.SDKError | 4XX, 5XX | \*/\* |
161
+
162
+ ## queryProduct
163
+
164
+ Use when searching products by ids, lookup keys, filters and sorts. Returns a paginated list.
165
+
166
+ ### Example Usage
167
+
168
+ <!-- UsageSnippet language="typescript" operationID="queryProduct" method="post" path="/products/search" -->
169
+ ```typescript
170
+ import { Flexprice } from "@flexprice/sdk";
171
+
172
+ const flexprice = new Flexprice({
173
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
174
+ });
175
+
176
+ async function run() {
177
+ const result = await flexprice.products.queryProduct({});
178
+
179
+ console.log(result);
180
+ }
181
+
182
+ run();
183
+ ```
184
+
185
+ ### Standalone function
186
+
187
+ The standalone function version of this method:
188
+
189
+ ```typescript
190
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
191
+ import { productsQueryProduct } from "@flexprice/sdk/funcs/products-query-product.js";
192
+
193
+ // Use `FlexpriceCore` for best tree-shaking performance.
194
+ // You can create one instance of it to use across an application.
195
+ const flexprice = new FlexpriceCore({
196
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
197
+ });
198
+
199
+ async function run() {
200
+ const res = await productsQueryProduct(flexprice, {});
201
+ if (res.ok) {
202
+ const { value: result } = res;
203
+ console.log(result);
204
+ } else {
205
+ console.log("productsQueryProduct failed:", res.error);
206
+ }
207
+ }
208
+
209
+ run();
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ | Parameter | Type | Required | Description |
215
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
216
+ | `request` | [models.ProductFilter](../../sdk/models/product-filter.md) | :heavy_check_mark: | The request object to use for the request. |
217
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
218
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
219
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
220
+
221
+ ### Response
222
+
223
+ **Promise\<[models.ListProductsResponse](../../sdk/models/list-products-response.md)\>**
224
+
225
+ ### Errors
226
+
227
+ | Error Type | Status Code | Content Type |
228
+ | -------------------------- | -------------------------- | -------------------------- |
229
+ | models.ErrorsErrorResponse | 400 | application/json |
230
+ | models.ErrorsErrorResponse | 500 | application/json |
231
+ | models.SDKError | 4XX, 5XX | \*/\* |
232
+
233
+ ## getProduct
234
+
235
+ Use when you need to load a single product.
236
+
237
+ ### Example Usage
238
+
239
+ <!-- UsageSnippet language="typescript" operationID="getProduct" method="get" path="/products/{id}" -->
240
+ ```typescript
241
+ import { Flexprice } from "@flexprice/sdk";
242
+
243
+ const flexprice = new Flexprice({
244
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
245
+ });
246
+
247
+ async function run() {
248
+ const result = await flexprice.products.getProduct("<id>");
249
+
250
+ console.log(result);
251
+ }
252
+
253
+ run();
254
+ ```
255
+
256
+ ### Standalone function
257
+
258
+ The standalone function version of this method:
259
+
260
+ ```typescript
261
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
262
+ import { productsGetProduct } from "@flexprice/sdk/funcs/products-get-product.js";
263
+
264
+ // Use `FlexpriceCore` for best tree-shaking performance.
265
+ // You can create one instance of it to use across an application.
266
+ const flexprice = new FlexpriceCore({
267
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
268
+ });
269
+
270
+ async function run() {
271
+ const res = await productsGetProduct(flexprice, "<id>");
272
+ if (res.ok) {
273
+ const { value: result } = res;
274
+ console.log(result);
275
+ } else {
276
+ console.log("productsGetProduct failed:", res.error);
277
+ }
278
+ }
279
+
280
+ run();
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+ | Parameter | Type | Required | Description |
286
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
287
+ | `id` | *string* | :heavy_check_mark: | Product ID |
288
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
289
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
290
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
291
+
292
+ ### Response
293
+
294
+ **Promise\<[models.ProductResponse](../../sdk/models/product-response.md)\>**
295
+
296
+ ### Errors
297
+
298
+ | Error Type | Status Code | Content Type |
299
+ | -------------------------- | -------------------------- | -------------------------- |
300
+ | models.ErrorsErrorResponse | 400, 404 | application/json |
301
+ | models.ErrorsErrorResponse | 500 | application/json |
302
+ | models.SDKError | 4XX, 5XX | \*/\* |
303
+
304
+ ## updateProduct
305
+
306
+ Use when changing a product's name or description. The lookup key never changes.
307
+
308
+ ### Example Usage
309
+
310
+ <!-- UsageSnippet language="typescript" operationID="updateProduct" method="put" path="/products/{id}" -->
311
+ ```typescript
312
+ import { Flexprice } from "@flexprice/sdk";
313
+
314
+ const flexprice = new Flexprice({
315
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
316
+ });
317
+
318
+ async function run() {
319
+ const result = await flexprice.products.updateProduct("<id>", {});
320
+
321
+ console.log(result);
322
+ }
323
+
324
+ run();
325
+ ```
326
+
327
+ ### Standalone function
328
+
329
+ The standalone function version of this method:
330
+
331
+ ```typescript
332
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
333
+ import { productsUpdateProduct } from "@flexprice/sdk/funcs/products-update-product.js";
334
+
335
+ // Use `FlexpriceCore` for best tree-shaking performance.
336
+ // You can create one instance of it to use across an application.
337
+ const flexprice = new FlexpriceCore({
338
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
339
+ });
340
+
341
+ async function run() {
342
+ const res = await productsUpdateProduct(flexprice, "<id>", {});
343
+ if (res.ok) {
344
+ const { value: result } = res;
345
+ console.log(result);
346
+ } else {
347
+ console.log("productsUpdateProduct failed:", res.error);
348
+ }
349
+ }
350
+
351
+ run();
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ | Parameter | Type | Required | Description |
357
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
358
+ | `id` | *string* | :heavy_check_mark: | Product ID |
359
+ | `body` | [models.UpdateProductRequest](../../sdk/models/update-product-request.md) | :heavy_check_mark: | Update Product Request |
360
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
361
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
362
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
363
+
364
+ ### Response
365
+
366
+ **Promise\<[models.ProductResponse](../../sdk/models/product-response.md)\>**
367
+
368
+ ### Errors
369
+
370
+ | Error Type | Status Code | Content Type |
371
+ | -------------------------- | -------------------------- | -------------------------- |
372
+ | models.ErrorsErrorResponse | 400, 404 | application/json |
373
+ | models.ErrorsErrorResponse | 500 | application/json |
374
+ | models.SDKError | 4XX, 5XX | \*/\* |
375
+
376
+ ## deleteProduct
377
+
378
+ Use when retiring a product. Fails while any published price references it.
379
+
380
+ ### Example Usage
381
+
382
+ <!-- UsageSnippet language="typescript" operationID="deleteProduct" method="delete" path="/products/{id}" -->
383
+ ```typescript
384
+ import { Flexprice } from "@flexprice/sdk";
385
+
386
+ const flexprice = new Flexprice({
387
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
388
+ });
389
+
390
+ async function run() {
391
+ const result = await flexprice.products.deleteProduct("<id>");
392
+
393
+ console.log(result);
394
+ }
395
+
396
+ run();
397
+ ```
398
+
399
+ ### Standalone function
400
+
401
+ The standalone function version of this method:
402
+
403
+ ```typescript
404
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
405
+ import { productsDeleteProduct } from "@flexprice/sdk/funcs/products-delete-product.js";
406
+
407
+ // Use `FlexpriceCore` for best tree-shaking performance.
408
+ // You can create one instance of it to use across an application.
409
+ const flexprice = new FlexpriceCore({
410
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
411
+ });
412
+
413
+ async function run() {
414
+ const res = await productsDeleteProduct(flexprice, "<id>");
415
+ if (res.ok) {
416
+ const { value: result } = res;
417
+ console.log(result);
418
+ } else {
419
+ console.log("productsDeleteProduct failed:", res.error);
420
+ }
421
+ }
422
+
423
+ run();
424
+ ```
425
+
426
+ ### Parameters
427
+
428
+ | Parameter | Type | Required | Description |
429
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
430
+ | `id` | *string* | :heavy_check_mark: | Product ID |
431
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
432
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
433
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
434
+
435
+ ### Response
436
+
437
+ **Promise\<[models.SuccessResponse](../../sdk/models/success-response.md)\>**
438
+
439
+ ### Errors
440
+
441
+ | Error Type | Status Code | Content Type |
442
+ | -------------------------- | -------------------------- | -------------------------- |
443
+ | models.ErrorsErrorResponse | 400, 404 | application/json |
444
+ | models.ErrorsErrorResponse | 500 | application/json |
445
+ | models.SDKError | 4XX, 5XX | \*/\* |
@@ -0,0 +1,164 @@
1
+ # RevenueReports
2
+
3
+ ## Overview
4
+
5
+ ### Available Operations
6
+
7
+ * [getRevenueRollforward](#getrevenuerollforward) - Get revenue rollforward
8
+ * [getRevenueWaterfall](#getrevenuewaterfall) - Get revenue waterfall
9
+
10
+ ## getRevenueRollforward
11
+
12
+ Use when explaining how deferred revenue, unbilled receivable or another ledger account moved in ended months: opening balance, movements by category (invoiced, earned, adjustments, payments, refunds) and closing balance, optionally per customer, contract or performance obligation.
13
+
14
+ ### Example Usage
15
+
16
+ <!-- UsageSnippet language="typescript" operationID="getRevenueRollforward" method="post" path="/revenue_reports/rollforward" -->
17
+ ```typescript
18
+ import { Flexprice } from "@flexprice/sdk";
19
+
20
+ const flexprice = new Flexprice({
21
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
22
+ });
23
+
24
+ async function run() {
25
+ const result = await flexprice.revenueReports.getRevenueRollforward({
26
+ currency: "Moldovan Leu",
27
+ periodStart: new Date("2025-06-02T22:16:06.570Z"),
28
+ });
29
+
30
+ console.log(result);
31
+ }
32
+
33
+ run();
34
+ ```
35
+
36
+ ### Standalone function
37
+
38
+ The standalone function version of this method:
39
+
40
+ ```typescript
41
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
42
+ import { revenueReportsGetRevenueRollforward } from "@flexprice/sdk/funcs/revenue-reports-get-revenue-rollforward.js";
43
+
44
+ // Use `FlexpriceCore` for best tree-shaking performance.
45
+ // You can create one instance of it to use across an application.
46
+ const flexprice = new FlexpriceCore({
47
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
48
+ });
49
+
50
+ async function run() {
51
+ const res = await revenueReportsGetRevenueRollforward(flexprice, {
52
+ currency: "Moldovan Leu",
53
+ periodStart: new Date("2025-06-02T22:16:06.570Z"),
54
+ });
55
+ if (res.ok) {
56
+ const { value: result } = res;
57
+ console.log(result);
58
+ } else {
59
+ console.log("revenueReportsGetRevenueRollforward failed:", res.error);
60
+ }
61
+ }
62
+
63
+ run();
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Parameter | Type | Required | Description |
69
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
70
+ | `request` | [models.RollforwardRequest](../../sdk/models/rollforward-request.md) | :heavy_check_mark: | The request object to use for the request. |
71
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
72
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
73
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
74
+
75
+ ### Response
76
+
77
+ **Promise\<[models.RollforwardResponse](../../sdk/models/rollforward-response.md)\>**
78
+
79
+ ### Errors
80
+
81
+ | Error Type | Status Code | Content Type |
82
+ | -------------------------- | -------------------------- | -------------------------- |
83
+ | models.ErrorsErrorResponse | 400 | application/json |
84
+ | models.ErrorsErrorResponse | 500 | application/json |
85
+ | models.SDKError | 4XX, 5XX | \*/\* |
86
+
87
+ ## getRevenueWaterfall
88
+
89
+ Use when showing revenue per customer, contract or performance obligation and month: actual (posted), pending (earned, not yet posted) and scheduled (invoiced, not yet earned), with optional month-end deferred and unbilled balances. Covers at most 36 months.
90
+
91
+ ### Example Usage
92
+
93
+ <!-- UsageSnippet language="typescript" operationID="getRevenueWaterfall" method="post" path="/revenue_reports/waterfall" -->
94
+ ```typescript
95
+ import { Flexprice } from "@flexprice/sdk";
96
+
97
+ const flexprice = new Flexprice({
98
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
99
+ });
100
+
101
+ async function run() {
102
+ const result = await flexprice.revenueReports.getRevenueWaterfall({
103
+ currency: "Dalasi",
104
+ periodEnd: new Date("2025-08-28T20:02:24.445Z"),
105
+ periodStart: new Date("2024-03-13T15:39:09.277Z"),
106
+ });
107
+
108
+ console.log(result);
109
+ }
110
+
111
+ run();
112
+ ```
113
+
114
+ ### Standalone function
115
+
116
+ The standalone function version of this method:
117
+
118
+ ```typescript
119
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
120
+ import { revenueReportsGetRevenueWaterfall } from "@flexprice/sdk/funcs/revenue-reports-get-revenue-waterfall.js";
121
+
122
+ // Use `FlexpriceCore` for best tree-shaking performance.
123
+ // You can create one instance of it to use across an application.
124
+ const flexprice = new FlexpriceCore({
125
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
126
+ });
127
+
128
+ async function run() {
129
+ const res = await revenueReportsGetRevenueWaterfall(flexprice, {
130
+ currency: "Dalasi",
131
+ periodEnd: new Date("2025-08-28T20:02:24.445Z"),
132
+ periodStart: new Date("2024-03-13T15:39:09.277Z"),
133
+ });
134
+ if (res.ok) {
135
+ const { value: result } = res;
136
+ console.log(result);
137
+ } else {
138
+ console.log("revenueReportsGetRevenueWaterfall failed:", res.error);
139
+ }
140
+ }
141
+
142
+ run();
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ | Parameter | Type | Required | Description |
148
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
149
+ | `request` | [models.WaterfallRequest](../../sdk/models/waterfall-request.md) | :heavy_check_mark: | The request object to use for the request. |
150
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
151
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
152
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
153
+
154
+ ### Response
155
+
156
+ **Promise\<[models.WaterfallResponse](../../sdk/models/waterfall-response.md)\>**
157
+
158
+ ### Errors
159
+
160
+ | Error Type | Status Code | Content Type |
161
+ | -------------------------- | -------------------------- | -------------------------- |
162
+ | models.ErrorsErrorResponse | 400 | application/json |
163
+ | models.ErrorsErrorResponse | 500 | application/json |
164
+ | models.SDKError | 4XX, 5XX | \*/\* |