@paid-ai/paid-node 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/cjs/Client.d.ts +6 -0
  2. package/dist/cjs/Client.js +30 -20
  3. package/dist/cjs/api/resources/cost/client/Client.d.ts +38 -0
  4. package/dist/cjs/api/resources/cost/client/Client.js +139 -0
  5. package/dist/cjs/api/resources/cost/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/cost/client/index.js +17 -0
  7. package/dist/cjs/api/resources/cost/client/requests/CostIngestRequest.d.ts +17 -0
  8. package/dist/cjs/api/resources/cost/client/requests/CostIngestRequest.js +3 -0
  9. package/dist/cjs/api/resources/cost/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/cost/client/requests/index.js +2 -0
  11. package/dist/cjs/api/resources/cost/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/cost/index.js +17 -0
  13. package/dist/cjs/api/resources/index.d.ts +5 -0
  14. package/dist/cjs/api/resources/index.js +6 -1
  15. package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +1 -0
  16. package/dist/cjs/api/resources/pricing/client/Client.d.ts +71 -0
  17. package/dist/cjs/api/resources/pricing/client/Client.js +284 -0
  18. package/dist/cjs/api/resources/pricing/client/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/pricing/client/index.js +17 -0
  20. package/dist/cjs/api/resources/pricing/client/requests/GetPricingRequest.d.ts +9 -0
  21. package/dist/cjs/api/resources/pricing/client/requests/GetPricingRequest.js +3 -0
  22. package/dist/cjs/api/resources/pricing/client/requests/ListPricingRequest.d.ts +10 -0
  23. package/dist/cjs/api/resources/pricing/client/requests/ListPricingRequest.js +3 -0
  24. package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.d.ts +20 -0
  25. package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.js +3 -0
  26. package/dist/cjs/api/resources/pricing/client/requests/index.d.ts +3 -0
  27. package/dist/cjs/api/resources/pricing/client/requests/index.js +2 -0
  28. package/dist/cjs/api/resources/pricing/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/pricing/index.js +17 -0
  30. package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +85 -0
  31. package/dist/cjs/api/resources/valueReceipts/client/Client.js +362 -1
  32. package/dist/cjs/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.d.ts +9 -0
  33. package/dist/cjs/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.js +3 -0
  34. package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.ts +7 -0
  35. package/dist/cjs/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.d.ts +9 -0
  36. package/dist/cjs/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.js +3 -0
  37. package/dist/cjs/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.d.ts +9 -0
  38. package/dist/cjs/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.js +3 -0
  39. package/dist/cjs/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.d.ts +28 -0
  40. package/dist/cjs/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.js +3 -0
  41. package/dist/cjs/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.d.ts +9 -0
  42. package/dist/cjs/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.js +3 -0
  43. package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +5 -0
  44. package/dist/cjs/api/resources/valueReceipts/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/valueReceipts/index.js +1 -0
  46. package/dist/cjs/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.d.ts +5 -0
  47. package/dist/cjs/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.js +8 -0
  48. package/dist/cjs/api/resources/valueReceipts/types/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/valueReceipts/types/index.js +17 -0
  50. package/dist/cjs/api/types/Cost.d.ts +10 -0
  51. package/dist/cjs/api/types/Cost.js +3 -0
  52. package/dist/cjs/api/types/CostIngestResponse.d.ts +6 -0
  53. package/dist/cjs/api/types/CostIngestResponse.js +3 -0
  54. package/dist/cjs/api/types/CostOverride.d.ts +8 -0
  55. package/dist/cjs/api/types/CostOverride.js +3 -0
  56. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +1 -0
  57. package/dist/cjs/api/types/CreditBalance.d.ts +6 -0
  58. package/dist/cjs/api/types/CreditBenefitInput.d.ts +30 -0
  59. package/dist/cjs/api/types/CreditBenefitInput.js +20 -0
  60. package/dist/cjs/api/types/CreditBenefitOutput.d.ts +13 -0
  61. package/dist/cjs/api/types/CreditBenefitOutput.js +3 -0
  62. package/dist/cjs/api/types/CreditGrant.d.ts +11 -0
  63. package/dist/cjs/api/types/CreditGrant.js +3 -0
  64. package/dist/cjs/api/types/OneTimePerUnitInput.d.ts +21 -0
  65. package/dist/cjs/api/types/OneTimePerUnitInput.js +18 -0
  66. package/dist/cjs/api/types/Order.d.ts +2 -0
  67. package/dist/cjs/api/types/OrderBillingFrequencyOverride.d.ts +14 -0
  68. package/dist/cjs/api/types/OrderBillingFrequencyOverride.js +14 -0
  69. package/dist/cjs/api/types/PrecomputedCost.d.ts +17 -0
  70. package/dist/cjs/api/types/PrecomputedCost.js +3 -0
  71. package/dist/cjs/api/types/PricingInput.d.ts +46 -0
  72. package/dist/cjs/api/types/PricingInput.js +3 -0
  73. package/dist/cjs/api/types/PricingListResponse.d.ts +4 -0
  74. package/dist/cjs/api/types/PricingListResponse.js +3 -0
  75. package/dist/cjs/api/types/PricingOutput.d.ts +36 -0
  76. package/dist/cjs/api/types/PricingOutput.js +23 -0
  77. package/dist/cjs/api/types/PricingPricePointOutput.d.ts +29 -0
  78. package/dist/cjs/api/types/PricingPricePointOutput.js +17 -0
  79. package/dist/cjs/api/types/PricingResponse.d.ts +7 -0
  80. package/dist/cjs/api/types/PricingResponse.js +3 -0
  81. package/dist/cjs/api/types/ProductAttribution.d.ts +2 -0
  82. package/dist/cjs/api/types/ProductAttribution.js +3 -0
  83. package/dist/cjs/api/types/RecurringGraduatedInput.d.ts +22 -0
  84. package/dist/cjs/api/types/RecurringGraduatedInput.js +18 -0
  85. package/dist/cjs/api/types/RecurringPerUnitInput.d.ts +22 -0
  86. package/dist/cjs/api/types/RecurringPerUnitInput.js +18 -0
  87. package/dist/cjs/api/types/RecurringPercentOfTotalInput.d.ts +23 -0
  88. package/dist/cjs/api/types/RecurringPercentOfTotalInput.js +18 -0
  89. package/dist/cjs/api/types/RecurringVolumeInput.d.ts +22 -0
  90. package/dist/cjs/api/types/RecurringVolumeInput.js +18 -0
  91. package/dist/cjs/api/types/SeatBasedGraduatedInput.d.ts +22 -0
  92. package/dist/cjs/api/types/SeatBasedGraduatedInput.js +18 -0
  93. package/dist/cjs/api/types/SeatBasedPerUnitInput.d.ts +22 -0
  94. package/dist/cjs/api/types/SeatBasedPerUnitInput.js +18 -0
  95. package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.d.ts +25 -0
  96. package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.js +18 -0
  97. package/dist/cjs/api/types/SeatBasedVolumeInput.d.ts +22 -0
  98. package/dist/cjs/api/types/SeatBasedVolumeInput.js +18 -0
  99. package/dist/cjs/api/types/SimplePricePoint.d.ts +29 -0
  100. package/dist/cjs/api/types/SimplePricePoint.js +17 -0
  101. package/dist/cjs/api/types/SuccessResponse.d.ts +3 -0
  102. package/dist/cjs/api/types/SuccessResponse.js +3 -0
  103. package/dist/cjs/api/types/TieredPricePoint.d.ts +29 -0
  104. package/dist/cjs/api/types/TieredPricePoint.js +17 -0
  105. package/dist/cjs/api/types/TokenUsage.d.ts +12 -0
  106. package/dist/cjs/api/types/TokenUsage.js +3 -0
  107. package/dist/cjs/api/types/UsageCost.d.ts +15 -0
  108. package/dist/cjs/api/types/UsageCost.js +3 -0
  109. package/dist/cjs/api/types/UsageCostPlusInput.d.ts +23 -0
  110. package/dist/cjs/api/types/UsageCostPlusInput.js +18 -0
  111. package/dist/cjs/api/types/UsageGraduatedInput.d.ts +23 -0
  112. package/dist/cjs/api/types/UsageGraduatedInput.js +18 -0
  113. package/dist/cjs/api/types/UsagePerUnitInput.d.ts +23 -0
  114. package/dist/cjs/api/types/UsagePerUnitInput.js +18 -0
  115. package/dist/cjs/api/types/UsagePrepaidCreditsInput.d.ts +26 -0
  116. package/dist/cjs/api/types/UsagePrepaidCreditsInput.js +18 -0
  117. package/dist/cjs/api/types/UsageVolumeInput.d.ts +23 -0
  118. package/dist/cjs/api/types/UsageVolumeInput.js +18 -0
  119. package/dist/cjs/api/types/ValueReceiptDetail.d.ts +2 -0
  120. package/dist/cjs/api/types/ValueReceiptSummary.d.ts +2 -0
  121. package/dist/cjs/api/types/ValueReceiptSyncResponse.d.ts +6 -0
  122. package/dist/cjs/api/types/ValueReceiptSyncResponse.js +3 -0
  123. package/dist/cjs/api/types/index.d.ts +34 -0
  124. package/dist/cjs/api/types/index.js +34 -0
  125. package/dist/cjs/version.d.ts +1 -1
  126. package/dist/cjs/version.js +1 -1
  127. package/dist/esm/Client.d.mts +6 -0
  128. package/dist/esm/Client.mjs +12 -2
  129. package/dist/esm/api/resources/cost/client/Client.d.mts +38 -0
  130. package/dist/esm/api/resources/cost/client/Client.mjs +102 -0
  131. package/dist/esm/api/resources/cost/client/index.d.mts +1 -0
  132. package/dist/esm/api/resources/cost/client/index.mjs +1 -0
  133. package/dist/esm/api/resources/cost/client/requests/CostIngestRequest.d.mts +17 -0
  134. package/dist/esm/api/resources/cost/client/requests/CostIngestRequest.mjs +2 -0
  135. package/dist/esm/api/resources/cost/client/requests/index.d.mts +1 -0
  136. package/dist/esm/api/resources/cost/client/requests/index.mjs +1 -0
  137. package/dist/esm/api/resources/cost/index.d.mts +1 -0
  138. package/dist/esm/api/resources/cost/index.mjs +1 -0
  139. package/dist/esm/api/resources/index.d.mts +5 -0
  140. package/dist/esm/api/resources/index.mjs +5 -0
  141. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +1 -0
  142. package/dist/esm/api/resources/pricing/client/Client.d.mts +71 -0
  143. package/dist/esm/api/resources/pricing/client/Client.mjs +247 -0
  144. package/dist/esm/api/resources/pricing/client/index.d.mts +1 -0
  145. package/dist/esm/api/resources/pricing/client/index.mjs +1 -0
  146. package/dist/esm/api/resources/pricing/client/requests/GetPricingRequest.d.mts +9 -0
  147. package/dist/esm/api/resources/pricing/client/requests/GetPricingRequest.mjs +2 -0
  148. package/dist/esm/api/resources/pricing/client/requests/ListPricingRequest.d.mts +10 -0
  149. package/dist/esm/api/resources/pricing/client/requests/ListPricingRequest.mjs +2 -0
  150. package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.d.mts +20 -0
  151. package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.mjs +2 -0
  152. package/dist/esm/api/resources/pricing/client/requests/index.d.mts +3 -0
  153. package/dist/esm/api/resources/pricing/client/requests/index.mjs +1 -0
  154. package/dist/esm/api/resources/pricing/index.d.mts +1 -0
  155. package/dist/esm/api/resources/pricing/index.mjs +1 -0
  156. package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +85 -0
  157. package/dist/esm/api/resources/valueReceipts/client/Client.mjs +362 -1
  158. package/dist/esm/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.d.mts +9 -0
  159. package/dist/esm/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.mjs +2 -0
  160. package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.mts +7 -0
  161. package/dist/esm/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.d.mts +9 -0
  162. package/dist/esm/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.mjs +2 -0
  163. package/dist/esm/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.d.mts +9 -0
  164. package/dist/esm/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.mjs +2 -0
  165. package/dist/esm/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.d.mts +28 -0
  166. package/dist/esm/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.mjs +2 -0
  167. package/dist/esm/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.d.mts +9 -0
  168. package/dist/esm/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.mjs +2 -0
  169. package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +5 -0
  170. package/dist/esm/api/resources/valueReceipts/index.d.mts +1 -0
  171. package/dist/esm/api/resources/valueReceipts/index.mjs +1 -0
  172. package/dist/esm/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.d.mts +5 -0
  173. package/dist/esm/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.mjs +5 -0
  174. package/dist/esm/api/resources/valueReceipts/types/index.d.mts +1 -0
  175. package/dist/esm/api/resources/valueReceipts/types/index.mjs +1 -0
  176. package/dist/esm/api/types/Cost.d.mts +10 -0
  177. package/dist/esm/api/types/Cost.mjs +2 -0
  178. package/dist/esm/api/types/CostIngestResponse.d.mts +6 -0
  179. package/dist/esm/api/types/CostIngestResponse.mjs +2 -0
  180. package/dist/esm/api/types/CostOverride.d.mts +8 -0
  181. package/dist/esm/api/types/CostOverride.mjs +2 -0
  182. package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +1 -0
  183. package/dist/esm/api/types/CreditBalance.d.mts +6 -0
  184. package/dist/esm/api/types/CreditBenefitInput.d.mts +30 -0
  185. package/dist/esm/api/types/CreditBenefitInput.mjs +17 -0
  186. package/dist/esm/api/types/CreditBenefitOutput.d.mts +13 -0
  187. package/dist/esm/api/types/CreditBenefitOutput.mjs +2 -0
  188. package/dist/esm/api/types/CreditGrant.d.mts +11 -0
  189. package/dist/esm/api/types/CreditGrant.mjs +2 -0
  190. package/dist/esm/api/types/OneTimePerUnitInput.d.mts +21 -0
  191. package/dist/esm/api/types/OneTimePerUnitInput.mjs +15 -0
  192. package/dist/esm/api/types/Order.d.mts +2 -0
  193. package/dist/esm/api/types/OrderBillingFrequencyOverride.d.mts +14 -0
  194. package/dist/esm/api/types/OrderBillingFrequencyOverride.mjs +11 -0
  195. package/dist/esm/api/types/PrecomputedCost.d.mts +17 -0
  196. package/dist/esm/api/types/PrecomputedCost.mjs +2 -0
  197. package/dist/esm/api/types/PricingInput.d.mts +46 -0
  198. package/dist/esm/api/types/PricingInput.mjs +2 -0
  199. package/dist/esm/api/types/PricingListResponse.d.mts +4 -0
  200. package/dist/esm/api/types/PricingListResponse.mjs +2 -0
  201. package/dist/esm/api/types/PricingOutput.d.mts +36 -0
  202. package/dist/esm/api/types/PricingOutput.mjs +20 -0
  203. package/dist/esm/api/types/PricingPricePointOutput.d.mts +29 -0
  204. package/dist/esm/api/types/PricingPricePointOutput.mjs +14 -0
  205. package/dist/esm/api/types/PricingResponse.d.mts +7 -0
  206. package/dist/esm/api/types/PricingResponse.mjs +2 -0
  207. package/dist/esm/api/types/ProductAttribution.d.mts +2 -0
  208. package/dist/esm/api/types/ProductAttribution.mjs +2 -0
  209. package/dist/esm/api/types/RecurringGraduatedInput.d.mts +22 -0
  210. package/dist/esm/api/types/RecurringGraduatedInput.mjs +15 -0
  211. package/dist/esm/api/types/RecurringPerUnitInput.d.mts +22 -0
  212. package/dist/esm/api/types/RecurringPerUnitInput.mjs +15 -0
  213. package/dist/esm/api/types/RecurringPercentOfTotalInput.d.mts +23 -0
  214. package/dist/esm/api/types/RecurringPercentOfTotalInput.mjs +15 -0
  215. package/dist/esm/api/types/RecurringVolumeInput.d.mts +22 -0
  216. package/dist/esm/api/types/RecurringVolumeInput.mjs +15 -0
  217. package/dist/esm/api/types/SeatBasedGraduatedInput.d.mts +22 -0
  218. package/dist/esm/api/types/SeatBasedGraduatedInput.mjs +15 -0
  219. package/dist/esm/api/types/SeatBasedPerUnitInput.d.mts +22 -0
  220. package/dist/esm/api/types/SeatBasedPerUnitInput.mjs +15 -0
  221. package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.d.mts +25 -0
  222. package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.mjs +15 -0
  223. package/dist/esm/api/types/SeatBasedVolumeInput.d.mts +22 -0
  224. package/dist/esm/api/types/SeatBasedVolumeInput.mjs +15 -0
  225. package/dist/esm/api/types/SimplePricePoint.d.mts +29 -0
  226. package/dist/esm/api/types/SimplePricePoint.mjs +14 -0
  227. package/dist/esm/api/types/SuccessResponse.d.mts +3 -0
  228. package/dist/esm/api/types/SuccessResponse.mjs +2 -0
  229. package/dist/esm/api/types/TieredPricePoint.d.mts +29 -0
  230. package/dist/esm/api/types/TieredPricePoint.mjs +14 -0
  231. package/dist/esm/api/types/TokenUsage.d.mts +12 -0
  232. package/dist/esm/api/types/TokenUsage.mjs +2 -0
  233. package/dist/esm/api/types/UsageCost.d.mts +15 -0
  234. package/dist/esm/api/types/UsageCost.mjs +2 -0
  235. package/dist/esm/api/types/UsageCostPlusInput.d.mts +23 -0
  236. package/dist/esm/api/types/UsageCostPlusInput.mjs +15 -0
  237. package/dist/esm/api/types/UsageGraduatedInput.d.mts +23 -0
  238. package/dist/esm/api/types/UsageGraduatedInput.mjs +15 -0
  239. package/dist/esm/api/types/UsagePerUnitInput.d.mts +23 -0
  240. package/dist/esm/api/types/UsagePerUnitInput.mjs +15 -0
  241. package/dist/esm/api/types/UsagePrepaidCreditsInput.d.mts +26 -0
  242. package/dist/esm/api/types/UsagePrepaidCreditsInput.mjs +15 -0
  243. package/dist/esm/api/types/UsageVolumeInput.d.mts +23 -0
  244. package/dist/esm/api/types/UsageVolumeInput.mjs +15 -0
  245. package/dist/esm/api/types/ValueReceiptDetail.d.mts +2 -0
  246. package/dist/esm/api/types/ValueReceiptSummary.d.mts +2 -0
  247. package/dist/esm/api/types/ValueReceiptSyncResponse.d.mts +6 -0
  248. package/dist/esm/api/types/ValueReceiptSyncResponse.mjs +2 -0
  249. package/dist/esm/api/types/index.d.mts +34 -0
  250. package/dist/esm/api/types/index.mjs +34 -0
  251. package/dist/esm/version.d.mts +1 -1
  252. package/dist/esm/version.mjs +1 -1
  253. package/package.json +1 -1
  254. package/reference.md +610 -7
package/reference.md CHANGED
@@ -2930,6 +2930,72 @@ await client.customerPortals.createCustomerPortal();
2930
2930
  </details>
2931
2931
 
2932
2932
  ## ValueReceipts
2933
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">syncValueReceipt</a>({ ...params }) -> Paid.ValueReceiptSyncResponse</code></summary>
2934
+ <dl>
2935
+ <dd>
2936
+
2937
+ #### 📝 Description
2938
+
2939
+ <dl>
2940
+ <dd>
2941
+
2942
+ <dl>
2943
+ <dd>
2944
+
2945
+ Find or create a value receipt by natural key (customer + product/order + dates), then populate it with current data inline. Returns the ID, status, and public URL. Posted (sealed) VRs are returned as-is without re-populating.
2946
+ </dd>
2947
+ </dl>
2948
+ </dd>
2949
+ </dl>
2950
+
2951
+ #### 🔌 Usage
2952
+
2953
+ <dl>
2954
+ <dd>
2955
+
2956
+ <dl>
2957
+ <dd>
2958
+
2959
+ ```typescript
2960
+ await client.valueReceipts.syncValueReceipt({
2961
+ startDate: "2024-01-15T09:30:00Z",
2962
+ endDate: "2024-01-15T09:30:00Z"
2963
+ });
2964
+
2965
+ ```
2966
+ </dd>
2967
+ </dl>
2968
+ </dd>
2969
+ </dl>
2970
+
2971
+ #### ⚙️ Parameters
2972
+
2973
+ <dl>
2974
+ <dd>
2975
+
2976
+ <dl>
2977
+ <dd>
2978
+
2979
+ **request:** `Paid.SyncValueReceiptRequest`
2980
+
2981
+ </dd>
2982
+ </dl>
2983
+
2984
+ <dl>
2985
+ <dd>
2986
+
2987
+ **requestOptions:** `ValueReceipts.RequestOptions`
2988
+
2989
+ </dd>
2990
+ </dl>
2991
+ </dd>
2992
+ </dl>
2993
+
2994
+
2995
+ </dd>
2996
+ </dl>
2997
+ </details>
2998
+
2933
2999
  <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">listValueReceipts</a>({ ...params }) -> Paid.ValueReceiptListResponse</code></summary>
2934
3000
  <dl>
2935
3001
  <dd>
@@ -2942,7 +3008,265 @@ await client.customerPortals.createCustomerPortal();
2942
3008
  <dl>
2943
3009
  <dd>
2944
3010
 
2945
- List value receipts for the organization
3011
+ List value receipts for the organization
3012
+ </dd>
3013
+ </dl>
3014
+ </dd>
3015
+ </dl>
3016
+
3017
+ #### 🔌 Usage
3018
+
3019
+ <dl>
3020
+ <dd>
3021
+
3022
+ <dl>
3023
+ <dd>
3024
+
3025
+ ```typescript
3026
+ await client.valueReceipts.listValueReceipts();
3027
+
3028
+ ```
3029
+ </dd>
3030
+ </dl>
3031
+ </dd>
3032
+ </dl>
3033
+
3034
+ #### ⚙️ Parameters
3035
+
3036
+ <dl>
3037
+ <dd>
3038
+
3039
+ <dl>
3040
+ <dd>
3041
+
3042
+ **request:** `Paid.ListValueReceiptsRequest`
3043
+
3044
+ </dd>
3045
+ </dl>
3046
+
3047
+ <dl>
3048
+ <dd>
3049
+
3050
+ **requestOptions:** `ValueReceipts.RequestOptions`
3051
+
3052
+ </dd>
3053
+ </dl>
3054
+ </dd>
3055
+ </dl>
3056
+
3057
+
3058
+ </dd>
3059
+ </dl>
3060
+ </details>
3061
+
3062
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">getValueReceiptById</a>({ ...params }) -> Paid.ValueReceiptDetail</code></summary>
3063
+ <dl>
3064
+ <dd>
3065
+
3066
+ #### 📝 Description
3067
+
3068
+ <dl>
3069
+ <dd>
3070
+
3071
+ <dl>
3072
+ <dd>
3073
+
3074
+ Get a value receipt by ID, including its publish/share state.
3075
+ </dd>
3076
+ </dl>
3077
+ </dd>
3078
+ </dl>
3079
+
3080
+ #### 🔌 Usage
3081
+
3082
+ <dl>
3083
+ <dd>
3084
+
3085
+ <dl>
3086
+ <dd>
3087
+
3088
+ ```typescript
3089
+ await client.valueReceipts.getValueReceiptById({
3090
+ id: "id"
3091
+ });
3092
+
3093
+ ```
3094
+ </dd>
3095
+ </dl>
3096
+ </dd>
3097
+ </dl>
3098
+
3099
+ #### ⚙️ Parameters
3100
+
3101
+ <dl>
3102
+ <dd>
3103
+
3104
+ <dl>
3105
+ <dd>
3106
+
3107
+ **request:** `Paid.GetValueReceiptByIdRequest`
3108
+
3109
+ </dd>
3110
+ </dl>
3111
+
3112
+ <dl>
3113
+ <dd>
3114
+
3115
+ **requestOptions:** `ValueReceipts.RequestOptions`
3116
+
3117
+ </dd>
3118
+ </dl>
3119
+ </dd>
3120
+ </dl>
3121
+
3122
+
3123
+ </dd>
3124
+ </dl>
3125
+ </details>
3126
+
3127
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">refreshValueReceipt</a>({ ...params }) -> Paid.ValueReceiptSyncResponse</code></summary>
3128
+ <dl>
3129
+ <dd>
3130
+
3131
+ #### 📝 Description
3132
+
3133
+ <dl>
3134
+ <dd>
3135
+
3136
+ <dl>
3137
+ <dd>
3138
+
3139
+ Re-populate an existing draft value receipt with current data inline. Returns the slim sync response. Sealed VRs cannot be refreshed.
3140
+ </dd>
3141
+ </dl>
3142
+ </dd>
3143
+ </dl>
3144
+
3145
+ #### 🔌 Usage
3146
+
3147
+ <dl>
3148
+ <dd>
3149
+
3150
+ <dl>
3151
+ <dd>
3152
+
3153
+ ```typescript
3154
+ await client.valueReceipts.refreshValueReceipt({
3155
+ id: "id"
3156
+ });
3157
+
3158
+ ```
3159
+ </dd>
3160
+ </dl>
3161
+ </dd>
3162
+ </dl>
3163
+
3164
+ #### ⚙️ Parameters
3165
+
3166
+ <dl>
3167
+ <dd>
3168
+
3169
+ <dl>
3170
+ <dd>
3171
+
3172
+ **request:** `Paid.RefreshValueReceiptRequest`
3173
+
3174
+ </dd>
3175
+ </dl>
3176
+
3177
+ <dl>
3178
+ <dd>
3179
+
3180
+ **requestOptions:** `ValueReceipts.RequestOptions`
3181
+
3182
+ </dd>
3183
+ </dl>
3184
+ </dd>
3185
+ </dl>
3186
+
3187
+
3188
+ </dd>
3189
+ </dl>
3190
+ </details>
3191
+
3192
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">sealValueReceipt</a>({ ...params }) -> Paid.SuccessResponse</code></summary>
3193
+ <dl>
3194
+ <dd>
3195
+
3196
+ #### 📝 Description
3197
+
3198
+ <dl>
3199
+ <dd>
3200
+
3201
+ <dl>
3202
+ <dd>
3203
+
3204
+ Transition a draft value receipt to sealed (posted) status. Sealed VRs are immutable — they cannot be updated or re-populated.
3205
+ </dd>
3206
+ </dl>
3207
+ </dd>
3208
+ </dl>
3209
+
3210
+ #### 🔌 Usage
3211
+
3212
+ <dl>
3213
+ <dd>
3214
+
3215
+ <dl>
3216
+ <dd>
3217
+
3218
+ ```typescript
3219
+ await client.valueReceipts.sealValueReceipt({
3220
+ id: "id"
3221
+ });
3222
+
3223
+ ```
3224
+ </dd>
3225
+ </dl>
3226
+ </dd>
3227
+ </dl>
3228
+
3229
+ #### ⚙️ Parameters
3230
+
3231
+ <dl>
3232
+ <dd>
3233
+
3234
+ <dl>
3235
+ <dd>
3236
+
3237
+ **request:** `Paid.SealValueReceiptRequest`
3238
+
3239
+ </dd>
3240
+ </dl>
3241
+
3242
+ <dl>
3243
+ <dd>
3244
+
3245
+ **requestOptions:** `ValueReceipts.RequestOptions`
3246
+
3247
+ </dd>
3248
+ </dl>
3249
+ </dd>
3250
+ </dl>
3251
+
3252
+
3253
+ </dd>
3254
+ </dl>
3255
+ </details>
3256
+
3257
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">archiveValueReceipt</a>({ ...params }) -> Paid.SuccessResponse</code></summary>
3258
+ <dl>
3259
+ <dd>
3260
+
3261
+ #### 📝 Description
3262
+
3263
+ <dl>
3264
+ <dd>
3265
+
3266
+ <dl>
3267
+ <dd>
3268
+
3269
+ Soft-archive a value receipt. Archived VRs are hidden from list by default.
2946
3270
  </dd>
2947
3271
  </dl>
2948
3272
  </dd>
@@ -2957,7 +3281,9 @@ List value receipts for the organization
2957
3281
  <dd>
2958
3282
 
2959
3283
  ```typescript
2960
- await client.valueReceipts.listValueReceipts();
3284
+ await client.valueReceipts.archiveValueReceipt({
3285
+ id: "id"
3286
+ });
2961
3287
 
2962
3288
  ```
2963
3289
  </dd>
@@ -2973,7 +3299,7 @@ await client.valueReceipts.listValueReceipts();
2973
3299
  <dl>
2974
3300
  <dd>
2975
3301
 
2976
- **request:** `Paid.ListValueReceiptsRequest`
3302
+ **request:** `Paid.ArchiveValueReceiptRequest`
2977
3303
 
2978
3304
  </dd>
2979
3305
  </dl>
@@ -2993,7 +3319,7 @@ await client.valueReceipts.listValueReceipts();
2993
3319
  </dl>
2994
3320
  </details>
2995
3321
 
2996
- <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">getValueReceiptById</a>({ ...params }) -> Paid.ValueReceiptDetail</code></summary>
3322
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">unarchiveValueReceipt</a>({ ...params }) -> Paid.SuccessResponse</code></summary>
2997
3323
  <dl>
2998
3324
  <dd>
2999
3325
 
@@ -3005,7 +3331,7 @@ await client.valueReceipts.listValueReceipts();
3005
3331
  <dl>
3006
3332
  <dd>
3007
3333
 
3008
- Get a value receipt by ID, including its publish/share state.
3334
+ Restore an archived value receipt.
3009
3335
  </dd>
3010
3336
  </dl>
3011
3337
  </dd>
@@ -3020,7 +3346,7 @@ Get a value receipt by ID, including its publish/share state.
3020
3346
  <dd>
3021
3347
 
3022
3348
  ```typescript
3023
- await client.valueReceipts.getValueReceiptById({
3349
+ await client.valueReceipts.unarchiveValueReceipt({
3024
3350
  id: "id"
3025
3351
  });
3026
3352
 
@@ -3038,7 +3364,7 @@ await client.valueReceipts.getValueReceiptById({
3038
3364
  <dl>
3039
3365
  <dd>
3040
3366
 
3041
- **request:** `Paid.GetValueReceiptByIdRequest`
3367
+ **request:** `Paid.UnarchiveValueReceiptRequest`
3042
3368
 
3043
3369
  </dd>
3044
3370
  </dl>
@@ -3370,6 +3696,283 @@ await client.webhooks.testWebhook({
3370
3696
  </dl>
3371
3697
 
3372
3698
 
3699
+ </dd>
3700
+ </dl>
3701
+ </details>
3702
+
3703
+ ## Pricing
3704
+ <details><summary><code>client.pricing.<a href="/src/api/resources/pricing/client/Client.ts">listPricing</a>({ ...params }) -> Paid.PricingListResponse</code></summary>
3705
+ <dl>
3706
+ <dd>
3707
+
3708
+ #### 📝 Description
3709
+
3710
+ <dl>
3711
+ <dd>
3712
+
3713
+ <dl>
3714
+ <dd>
3715
+
3716
+ Returns pricing for all product attributes of a product. Each entry includes the attribute's pricing configuration and credit benefits.
3717
+ </dd>
3718
+ </dl>
3719
+ </dd>
3720
+ </dl>
3721
+
3722
+ #### 🔌 Usage
3723
+
3724
+ <dl>
3725
+ <dd>
3726
+
3727
+ <dl>
3728
+ <dd>
3729
+
3730
+ ```typescript
3731
+ await client.pricing.listPricing({
3732
+ productId: "productId"
3733
+ });
3734
+
3735
+ ```
3736
+ </dd>
3737
+ </dl>
3738
+ </dd>
3739
+ </dl>
3740
+
3741
+ #### ⚙️ Parameters
3742
+
3743
+ <dl>
3744
+ <dd>
3745
+
3746
+ <dl>
3747
+ <dd>
3748
+
3749
+ **request:** `Paid.ListPricingRequest`
3750
+
3751
+ </dd>
3752
+ </dl>
3753
+
3754
+ <dl>
3755
+ <dd>
3756
+
3757
+ **requestOptions:** `Pricing.RequestOptions`
3758
+
3759
+ </dd>
3760
+ </dl>
3761
+ </dd>
3762
+ </dl>
3763
+
3764
+
3765
+ </dd>
3766
+ </dl>
3767
+ </details>
3768
+
3769
+ <details><summary><code>client.pricing.<a href="/src/api/resources/pricing/client/Client.ts">getPricing</a>({ ...params }) -> Paid.PricingResponse</code></summary>
3770
+ <dl>
3771
+ <dd>
3772
+
3773
+ #### 📝 Description
3774
+
3775
+ <dl>
3776
+ <dd>
3777
+
3778
+ <dl>
3779
+ <dd>
3780
+
3781
+ Returns pricing and credit benefits for a single product attribute.
3782
+ </dd>
3783
+ </dl>
3784
+ </dd>
3785
+ </dl>
3786
+
3787
+ #### 🔌 Usage
3788
+
3789
+ <dl>
3790
+ <dd>
3791
+
3792
+ <dl>
3793
+ <dd>
3794
+
3795
+ ```typescript
3796
+ await client.pricing.getPricing({
3797
+ productAttributeId: "productAttributeId"
3798
+ });
3799
+
3800
+ ```
3801
+ </dd>
3802
+ </dl>
3803
+ </dd>
3804
+ </dl>
3805
+
3806
+ #### ⚙️ Parameters
3807
+
3808
+ <dl>
3809
+ <dd>
3810
+
3811
+ <dl>
3812
+ <dd>
3813
+
3814
+ **request:** `Paid.GetPricingRequest`
3815
+
3816
+ </dd>
3817
+ </dl>
3818
+
3819
+ <dl>
3820
+ <dd>
3821
+
3822
+ **requestOptions:** `Pricing.RequestOptions`
3823
+
3824
+ </dd>
3825
+ </dl>
3826
+ </dd>
3827
+ </dl>
3828
+
3829
+
3830
+ </dd>
3831
+ </dl>
3832
+ </details>
3833
+
3834
+ <details><summary><code>client.pricing.<a href="/src/api/resources/pricing/client/Client.ts">updatePricing</a>({ ...params }) -> Paid.PricingResponse</code></summary>
3835
+ <dl>
3836
+ <dd>
3837
+
3838
+ #### 📝 Description
3839
+
3840
+ <dl>
3841
+ <dd>
3842
+
3843
+ <dl>
3844
+ <dd>
3845
+
3846
+ Updates pricing on an existing product attribute. If creditBenefits is provided, it fully replaces existing benefits. If omitted, existing benefits are preserved.
3847
+ </dd>
3848
+ </dl>
3849
+ </dd>
3850
+ </dl>
3851
+
3852
+ #### 🔌 Usage
3853
+
3854
+ <dl>
3855
+ <dd>
3856
+
3857
+ <dl>
3858
+ <dd>
3859
+
3860
+ ```typescript
3861
+ await client.pricing.updatePricing({
3862
+ productAttributeId: "productAttributeId",
3863
+ pricing: {
3864
+ pricingType: "RecurringPerUnit",
3865
+ billingFrequency: "Monthly",
3866
+ pricePoints: [{
3867
+ currency: "currency",
3868
+ unitPrice: 1.1
3869
+ }]
3870
+ }
3871
+ });
3872
+
3873
+ ```
3874
+ </dd>
3875
+ </dl>
3876
+ </dd>
3877
+ </dl>
3878
+
3879
+ #### ⚙️ Parameters
3880
+
3881
+ <dl>
3882
+ <dd>
3883
+
3884
+ <dl>
3885
+ <dd>
3886
+
3887
+ **request:** `Paid.UpdatePricingRequest`
3888
+
3889
+ </dd>
3890
+ </dl>
3891
+
3892
+ <dl>
3893
+ <dd>
3894
+
3895
+ **requestOptions:** `Pricing.RequestOptions`
3896
+
3897
+ </dd>
3898
+ </dl>
3899
+ </dd>
3900
+ </dl>
3901
+
3902
+
3903
+ </dd>
3904
+ </dl>
3905
+ </details>
3906
+
3907
+ ## Cost
3908
+ <details><summary><code>client.cost.<a href="/src/api/resources/cost/client/Client.ts">ingestCost</a>({ ...params }) -> Paid.CostIngestResponse</code></summary>
3909
+ <dl>
3910
+ <dd>
3911
+
3912
+ #### 📝 Description
3913
+
3914
+ <dl>
3915
+ <dd>
3916
+
3917
+ <dl>
3918
+ <dd>
3919
+
3920
+ Ingests a batch of cost records. Each record is either a pre-computed `cost` (caller supplies amount + currency) or a `usage` record (caller supplies vendor/model/token counts and Paid prices it server-side). The batch is all-or-nothing: if any record fails validation, the entire request is rejected with a 400 and nothing is persisted. Records may carry an optional `idempotencyKey`; matches against previously ingested records are skipped and reported in the `duplicates` count.
3921
+ </dd>
3922
+ </dl>
3923
+ </dd>
3924
+ </dl>
3925
+
3926
+ #### 🔌 Usage
3927
+
3928
+ <dl>
3929
+ <dd>
3930
+
3931
+ <dl>
3932
+ <dd>
3933
+
3934
+ ```typescript
3935
+ await client.cost.ingestCost({
3936
+ costs: [{
3937
+ type: "cost",
3938
+ customer: {
3939
+ customerId: "customerId"
3940
+ },
3941
+ amount: 1.1,
3942
+ currency: "currency"
3943
+ }]
3944
+ });
3945
+
3946
+ ```
3947
+ </dd>
3948
+ </dl>
3949
+ </dd>
3950
+ </dl>
3951
+
3952
+ #### ⚙️ Parameters
3953
+
3954
+ <dl>
3955
+ <dd>
3956
+
3957
+ <dl>
3958
+ <dd>
3959
+
3960
+ **request:** `Paid.CostIngestRequest`
3961
+
3962
+ </dd>
3963
+ </dl>
3964
+
3965
+ <dl>
3966
+ <dd>
3967
+
3968
+ **requestOptions:** `Cost.RequestOptions`
3969
+
3970
+ </dd>
3971
+ </dl>
3972
+ </dd>
3973
+ </dl>
3974
+
3975
+
3373
3976
  </dd>
3374
3977
  </dl>
3375
3978
  </details>