@suluk/cost - v0.2.0
    Preparing search index...

    Function reconciledAmount

    • Resolve the ACTUAL charged amount (in µ$) from the event when the model is payload-reconciled (C026), else undefined. Reads the runtime amount-expression (e.g. the Stripe event amount) and converts from its declared unit — so the recorded cost is the third party's real invoice line, not the operator's declared estimate.

      Parameters

      • model: CostModel
      • event: Record<string, unknown>

      Returns number | undefined