Files
orion/app/modules
Samir Boulahtit 3de69e55a1
Some checks failed
CI / ruff (push) Successful in 11s
CI / pytest (push) Failing after 47m33s
CI / validate (push) Successful in 24s
CI / dependency-scanning (push) Successful in 29s
CI / docs (push) Has been skipped
CI / deploy (push) Has been skipped
fix: add GET /cards/lookup endpoint for loyalty terminal customer search
The terminal JS uses GET with a free-text ?q= parameter, but only a POST
endpoint existed with typed params (card_id, qr_code, card_number).

- Add search_card_for_store service method (tries card number then email)
- Add GET /cards/lookup route using the service method
- Extract _build_card_lookup_response helper to DRY up POST and GET endpoints

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:55:11 +01:00
..