Protected ReadonlydbProtected ReadonlyrewardStaticinstanceThe process default: built from each dependency's own instance().
Match event and event data to the rules defined for the given customer
If multiple rules match, the first one is returned
Data associated with the event, compared against rule matchers
Reward amount that this event qualifies for. null if no active rules match.
Display only: whether the customer has a reward_program row, cached with
negatives. Credits and config writes call rewardProgramGate.ts fresh.
Exact-key bust for RewardProgramService.create, after its insert commits.
Creates or updates the reward event config for the given customer + event
(INSERT ... ON CONFLICT DO UPDATE, keyed on the (customer, event)
unique index). In case of update, rules replace the previous values
(rather than merge).
Rules that are configured per customer to trigger rewards on certain events