Phase 5: Add order lifecycle, cart adoption glue services and handlers

- order_lifecycle.py: claim/confirm/get entries for order (cross-domain writes)
- cart_adoption.py: adopt anonymous cart+entries for logged-in user
- login_handlers.py: handle user.logged_in event for cart adoption
- order_handlers.py: placeholder handlers for order.created/paid events
- setup.py: register new handlers at startup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-14 17:35:04 +00:00
parent 0a1c58d6c4
commit 044fdd61e1
5 changed files with 172 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
def register_glue_handlers():
"""Import handlers to trigger registration. Call at app startup."""
import glue.handlers.container_handlers # noqa: F401
import glue.handlers.login_handlers # noqa: F401
import glue.handlers.order_handlers # noqa: F401