Some checks failed
Build and Deploy LittleShop / Build TeleBot Docker Image (push) Failing after 11s
Build and Deploy LittleShop / Build LittleShop Docker Image (push) Failing after 15s
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Has been skipped
Major Feature Additions: - Customer management: Full CRUD with data export and privacy compliance - Payment management: Centralized payment tracking and administration - Push notification subscriptions: Manage and track web push subscriptions Security Enhancements: - IP whitelist middleware for administrative endpoints - Data retention service with configurable policies - Enhanced push notification security documentation - Security fixes progress tracking (2025-11-14) UI/UX Improvements: - Enhanced navigation with improved mobile responsiveness - Updated admin dashboard with order status counts - Improved product CRUD forms - New customer and payment management interfaces Backend Improvements: - Extended customer service with data export capabilities - Enhanced order service with status count queries - Improved crypto payment service with better error handling - Updated validators and configuration Documentation: - DEPLOYMENT_NGINX_GUIDE.md: Nginx deployment instructions - IP_STORAGE_ANALYSIS.md: IP storage security analysis - PUSH_NOTIFICATION_SECURITY.md: Push notification security guide - UI_UX_IMPROVEMENT_PLAN.md: Planned UI/UX enhancements - UI_UX_IMPROVEMENTS_COMPLETED.md: Completed improvements Cleanup: - Removed temporary database WAL files - Removed stale commit message file 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
1.6 KiB
C#
32 lines
1.6 KiB
C#
using LittleShop.DTOs;
|
|
using LittleShop.Enums;
|
|
|
|
namespace LittleShop.Services;
|
|
|
|
public interface IOrderService
|
|
{
|
|
Task<IEnumerable<OrderDto>> GetAllOrdersAsync();
|
|
Task<IEnumerable<OrderDto>> GetOrdersByIdentityAsync(string identityReference);
|
|
Task<IEnumerable<OrderDto>> GetOrdersByCustomerIdAsync(Guid customerId);
|
|
Task<OrderDto?> GetOrderByIdAsync(Guid id);
|
|
Task<OrderDto> CreateOrderAsync(CreateOrderDto createOrderDto);
|
|
Task<bool> UpdateOrderStatusAsync(Guid id, UpdateOrderStatusDto updateOrderStatusDto);
|
|
Task<bool> CancelOrderAsync(Guid id, string identityReference);
|
|
|
|
// Enhanced workflow methods
|
|
Task<bool> AcceptOrderAsync(Guid id, string userName, AcceptOrderDto acceptDto);
|
|
Task<bool> StartPackingAsync(Guid id, string userName, StartPackingDto packingDto);
|
|
Task<bool> DispatchOrderAsync(Guid id, string userName, DispatchOrderDto dispatchDto);
|
|
Task<bool> PutOnHoldAsync(Guid id, string userName, PutOnHoldDto holdDto);
|
|
Task<bool> RemoveFromHoldAsync(Guid id, string userName);
|
|
Task<bool> MarkDeliveredAsync(Guid id, MarkDeliveredDto deliveredDto);
|
|
|
|
// Workflow queries
|
|
Task<IEnumerable<OrderDto>> GetOrdersByStatusAsync(OrderStatus status);
|
|
Task<IEnumerable<OrderDto>> GetOrdersRequiringActionAsync(); // PaymentReceived orders needing acceptance
|
|
Task<IEnumerable<OrderDto>> GetOrdersForPackingAsync(); // Accepted orders ready for packing
|
|
Task<IEnumerable<OrderDto>> GetOrdersOnHoldAsync(); // Orders on hold
|
|
|
|
// Performance optimization - get all status counts in single query
|
|
Task<OrderStatusCountsDto> GetOrderStatusCountsAsync();
|
|
} |