Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / resolvePricing

Function: resolvePricing()

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

Defined in: packages/core/dist/index.d.ts

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}`
table| PriceTable | undefined
capsPricingPricing | undefined

Returns

Pricing | undefined