Spaces:
Runtime error
Runtime error
Commit History
-
email testing
0cbb7b5
-
refactor(notification-ms): migrate templates to company-level and integrate merchant context
- Remove template_router.py and consolidate template endpoints into main notification router - Update template models to remove merchant_id requirement (templates now company-level) - Add merchant_name field to SendNotificationRequest and NotificationDetail for runtime injection - Refactor TemplateService to support company-level template queries without merchant filtering - Update dispatcher to inject merchant_name into template variables at dispatch time - Simplify ListTemplatesRequest by removing merchant_id filter parameter - Update seed_templates.py to create templates without merchant_id association - Revise NOTIFICATION_FLOW_DIAGRAM.md to reflect company-level template architecture - Add JWT configuration (SECRET_KEY, ALGORITHM) to core settings for auth integrationf773f54 -
feat(notification-ms): add template management and Fast2SMS integration
- Replace Twilio SMS provider with Fast2SMS bulkV2 API integration - Add template CRUD endpoints with create, read, update, delete, and list operations - Implement TemplateService for database operations on notification templates - Add Template model with merchant_id, channel, name, body, and metadata fields - Create template seeding script for initial data population - Update dispatcher to support template-based message rendering - Add comprehensive notification flow documentation - Update dependencies in requirements.txt for httpx and template support - Normalize phone numbers by removing +, spaces, and dashes in SMS channel - Support DLT template IDs and additional Fast2SMS configuration options01579cf