Implement SnapshotMapper and SessionSnapshotDto #18

Closed
opened 2026-07-05 19:20:16 +01:00 by TimCane · 0 comments
TimCane commented 2026-07-05 19:20:16 +01:00 (Migrated from github.com)

Goal

The single Session -> SessionSnapshotDto mapper computing derived fields (subtotal, checksum, isHost, expiresAt from TTL, totals via SplitCalculator); token hashes never leak into any DTO.

References

Done when

  • Advances M2 A1 (every endpoint returns a snapshot).

Part of M2: Session core.

## Goal The single Session -> SessionSnapshotDto mapper computing derived fields (subtotal, checksum, isHost, expiresAt from TTL, totals via SplitCalculator); token hashes never leak into any DTO. ## References - [docs/04-api-contract.md#sessionsnapshotdto](https://github.com/TimCane/bill-splitter/blob/main/docs/04-api-contract.md#sessionsnapshotdto) - [docs/07-backend-design.md](https://github.com/TimCane/bill-splitter/blob/main/docs/07-backend-design.md) ## Done when - Advances M2 A1 (every endpoint returns a snapshot). --- Part of **M2: Session core**.
Sign in to join this conversation.
No description provided.