- Add DeliveryZone, CoverageResult, Delivery, CreateDeliveryDto interfaces
- Implement checkDeliveryCoverage() for coordinates-based coverage check
- Implement checkDeliveryCoverageByAddress() for address/colonia-based check
- Add getDeliveryZones() to list active zones
- Add createDelivery() for order delivery creation
- Add getDelivery() and getDeliveryByOrderId() for retrieval
- Add getPendingDeliveries() for pending deliveries list
- Add updateDeliveryStatus() for status transitions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add BackendApiService for communication with main backend
- Update webhook service to use backend API for orders
- Integrate real data fetching for sales, inventory, fiados
- Add order creation flow with backend persistence
- Add notification hooks for new orders
Sprint 3: MCH-015 Pedidos WhatsApp
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add UserRole type and role detection via getUserRole()
- Add OWNER_TOOLS and CUSTOMER_TOOLS permission arrays
- Implement role-based system prompts (owner vs customer)
- Add owner-specific functions: sales_summary, inventory_status, pending_fiados, etc
- Add getBusinessInfo() for tenant business information
- Add isToolAllowed() for permission validation
- Update webhook service with role-aware message handling
Sprint 2: MCH-012 Chat LLM Dueño + MCH-013 Chat LLM Cliente
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>