Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / resolvePricing

Function: resolvePricing()

ts
function resolvePricing(
   ref, 
   table, 
   capsPricing): Pricing | undefined;

Defined in: packages/core/src/model/pricing.ts:24

Resolves the pricing for a model: the versioned table wins; the adapter-reported caps.pricing is the fallback; undefined means unpriced (the CostReport surfaces it, never a silent zero).

Parameters

ParameterType
ref`${string}:${string}`
tablePriceTable | undefined
capsPricingPricing | undefined

Returns

Pricing | undefined