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>
116 lines
3.9 KiB
C#
116 lines
3.9 KiB
C#
namespace LittleShop.DTOs;
|
|
|
|
/// <summary>
|
|
/// Complete customer data export for GDPR "Right to Data Portability" compliance.
|
|
/// Contains all personal data stored about a customer.
|
|
/// </summary>
|
|
public class CustomerDataExportDto
|
|
{
|
|
// Customer Profile
|
|
public Guid CustomerId { get; set; }
|
|
public long TelegramUserId { get; set; }
|
|
public string TelegramUsername { get; set; } = string.Empty;
|
|
public string TelegramDisplayName { get; set; } = string.Empty;
|
|
public string TelegramFirstName { get; set; } = string.Empty;
|
|
public string TelegramLastName { get; set; } = string.Empty;
|
|
public string? Email { get; set; }
|
|
public string? PhoneNumber { get; set; }
|
|
|
|
// Preferences
|
|
public bool AllowMarketing { get; set; }
|
|
public bool AllowOrderUpdates { get; set; }
|
|
public string Language { get; set; } = string.Empty;
|
|
public string Timezone { get; set; } = string.Empty;
|
|
|
|
// Metrics
|
|
public int TotalOrders { get; set; }
|
|
public decimal TotalSpent { get; set; }
|
|
public decimal AverageOrderValue { get; set; }
|
|
public DateTime? FirstOrderDate { get; set; }
|
|
public DateTime? LastOrderDate { get; set; }
|
|
|
|
// Account Status
|
|
public bool IsBlocked { get; set; }
|
|
public string? BlockReason { get; set; }
|
|
public int RiskScore { get; set; }
|
|
public string? CustomerNotes { get; set; }
|
|
|
|
// Timestamps
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime UpdatedAt { get; set; }
|
|
public DateTime LastActiveAt { get; set; }
|
|
public DateTime? DataRetentionDate { get; set; }
|
|
|
|
// Related Data
|
|
public List<CustomerOrderExportDto> Orders { get; set; } = new();
|
|
public List<CustomerMessageExportDto> Messages { get; set; } = new();
|
|
public List<CustomerReviewExportDto> Reviews { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Order data included in customer export
|
|
/// </summary>
|
|
public class CustomerOrderExportDto
|
|
{
|
|
public Guid OrderId { get; set; }
|
|
public string Status { get; set; } = string.Empty;
|
|
public decimal TotalAmount { get; set; }
|
|
public string Currency { get; set; } = string.Empty;
|
|
public DateTime OrderDate { get; set; }
|
|
|
|
// Shipping Information
|
|
public string ShippingName { get; set; } = string.Empty;
|
|
public string ShippingAddress { get; set; } = string.Empty;
|
|
public string ShippingCity { get; set; } = string.Empty;
|
|
public string ShippingPostCode { get; set; } = string.Empty;
|
|
public string ShippingCountry { get; set; } = string.Empty;
|
|
|
|
// Tracking
|
|
public string? TrackingNumber { get; set; }
|
|
public DateTime? EstimatedDeliveryDate { get; set; }
|
|
public DateTime? ActualDeliveryDate { get; set; }
|
|
|
|
public string? Notes { get; set; }
|
|
|
|
// Order Items
|
|
public List<CustomerOrderItemExportDto> Items { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Order item data included in customer export
|
|
/// </summary>
|
|
public class CustomerOrderItemExportDto
|
|
{
|
|
public string ProductName { get; set; } = string.Empty;
|
|
public string? VariantName { get; set; }
|
|
public int Quantity { get; set; }
|
|
public decimal UnitPrice { get; set; }
|
|
public decimal TotalPrice { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Message data included in customer export
|
|
/// </summary>
|
|
public class CustomerMessageExportDto
|
|
{
|
|
public DateTime SentAt { get; set; }
|
|
public string MessageType { get; set; } = string.Empty;
|
|
public string Content { get; set; } = string.Empty;
|
|
public bool WasRead { get; set; }
|
|
public DateTime? ReadAt { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Review data included in customer export
|
|
/// </summary>
|
|
public class CustomerReviewExportDto
|
|
{
|
|
public Guid ProductId { get; set; }
|
|
public string ProductName { get; set; } = string.Empty;
|
|
public int Rating { get; set; }
|
|
public string? Comment { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public bool IsApproved { get; set; }
|
|
public bool IsVerifiedPurchase { get; set; }
|
|
}
|