Rulvar API reference / @rulvar/core / journalPricingSnapshot
Function: journalPricingSnapshot()
ts
function journalPricingSnapshot(entries):
| JournalPricingSnapshot
| undefined;Defined in: packages/core/src/engine/pricing-snapshot.ts:276
The read side. Every settling segment pins the union it applied, and each pin's settle seq bounds the rows it settled FIRST, so the pins compose without any journal change (RV505): a seq-aware caller gets the rates of the row's own segment, and a seq-less caller keeps the historical last-pin behavior. Journals settled before the pin shipped, or without any priced model, return undefined: the caller keeps its current-table fold and its export says so.
Parameters
| Parameter | Type |
|---|---|
entries | readonly JournalEntry[] |
Returns
| JournalPricingSnapshot | undefined