You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(billing): apply cumulative review — refund correlation + cleanup
CRITICAL: backfill PaymentIntent metadata with real cs_* session ID after
creditPack succeeds in handleCheckoutPaymentCompleted, so charge.refunded
events can correlate the charge back to the correct ledger entry (the
__pending__ placeholder was breaking refundPartial lookups). Add 3 unit
tests covering PI update, absent PI, and non-fatal failure path.
HIGH: replace stale TODO PR-N3 in refundPartial with accurate comment —
heuristic is still intentionally needed since refundPartial does not
receive packId from the webhook call-site.
HIGH: add Mixed type caveat JSDoc to billing.usage.model (meterBreakdown
and counters fields) matching the existing note in billing.extraBalance.model.
MEDIUM: document BillingExtraBalance.organization vs BillingUsage.organizationId
asymmetry in billing.controller.js.
MEDIUM: add startup priceUsd validation warning in billing.init.js so
misconfigured packs are caught before a refund event exposes the gap.
* fix(billing): correct organization field type comment (both ObjectId)
0 commit comments