Add ticket +/- quantity support to shared contracts and services

- Add ticket_type_id field to TicketDTO for grouping
- Add adjust_ticket_quantity to CalendarService protocol + SQL impl
- Add stub for adjust_ticket_quantity

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-21 08:53:04 +00:00
parent e83df2f742
commit 1f8fb521b2
4 changed files with 69 additions and 0 deletions

View File

@@ -132,6 +132,11 @@ class StubCalendarService:
) -> None:
pass
async def adjust_ticket_quantity(
self, session, entry_id, count, *, user_id, session_id, ticket_type_id=None,
) -> int:
return 0
async def entry_ids_for_content(self, session, content_type, content_id):
return set()