Credit system
Credits are changed only through ledger operations: grant, spend, refund, promo bonus, referral bonus, admin adjustment, and system bonus.
The balance before and balance after every operation are stored with the ledger row. Technical provider failures automatically refund the exact request cost.
Credit packs are seeded as Starter, Basic, Pro, and Business records. Payment processing is connected through external credit events when a provider is configured.