mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
fix(checkout): resolve itemType validation error for download items Updates ItemTypeSchema to accept bitwise flag combinations instead of only individual enum values. The backend returns combined itemType values (e.g., 20480 = ItemPrice | Download) which were causing Zod validation errors when adding download/e-book items to cart. Changes: - Update ItemTypeSchema to use bitwise validation pattern - Add comprehensive unit tests (24 tests) covering individual flags, combinations, and edge cases - Follow same pattern as NotificationChannelSchema and CRUDASchema Closes #5429 Related work items: #5429