bursar.CreditEvent
class bursar.CreditEvent(*, type, timestamp, user_id, data=None)
Bases: BaseModel
A typed credit lifecycle event.
- Parameters:
- type (Literal [ 'credits.deducted' , 'credits.deduct_failed' , 'credits.added' , 'credits.refunded' , 'credits.refund_failed' , 'credits.expired' , 'credits.low_balance' , 'credits.plan_changed' , 'credits.reserved' , 'credits.reservation_released' , 'credits.lease_expired' , 'credits.overdraft' , 'credits.cycle_renewed' , 'credits.revoked' , 'credits.quota_blocked' , 'credits.quota_threshold' ])
- timestamp (datetime)
- user_id (str)
- data (dict *[*str , Any ] | None)
model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].