app.services.user_points.persistence module

Atomic persistence of a points assignment.

Writes the user_points row, the wallet balance increment and the wallet transaction inside a single DB transaction, with idempotency-key support.

class app.services.user_points.persistence.PointsPersistenceMixin[source]

Bases: UserPointsContext