littleshop/LittleShop/Services/ITeleBotMessagingService.cs
SysAdmin 8b0e3e0611 Implement comprehensive notification system for LittleShop
- Add admin PWA push notifications for order management
- Integrate TeleBot customer messaging service
- Add push notification endpoints and VAPID key support
- Implement order status notifications throughout workflow
- Add notification UI components in admin panel
- Create TeleBotMessagingService for customer updates
- Add WebPush configuration to appsettings
- Fix compilation issues (BotStatus, BotContacts DbSet)
- Add comprehensive testing documentation

Features:
- Real-time admin notifications for new orders and status changes
- Customer order progress updates via TeleBot
- Graceful failure handling for notification services
- Test endpoints for notification system validation

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 16:17:24 +01:00

16 lines
662 B
C#

using LittleShop.Enums;
namespace LittleShop.Services;
public interface ITeleBotMessagingService
{
Task<bool> SendOrderStatusUpdateAsync(Guid orderId, OrderStatus newStatus);
Task<bool> SendPaymentConfirmedAsync(Guid orderId);
Task<bool> SendOrderAcceptedAsync(Guid orderId);
Task<bool> SendOrderPackingAsync(Guid orderId);
Task<bool> SendOrderDispatchedAsync(Guid orderId, string? trackingNumber = null);
Task<bool> SendOrderDeliveredAsync(Guid orderId);
Task<bool> SendOrderOnHoldAsync(Guid orderId, string? reason = null);
Task<bool> SendTestMessageAsync(Guid customerId, string message);
Task<bool> IsAvailableAsync();
}