Files
ShopSolution-backend/Webshop.Domain/Entities/ShippingMethod.cs
Tizian.Breuch fab0e517d7 fix shipping
2025-09-30 19:27:58 +02:00

38 lines
846 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace Webshop.Domain.Entities;
/// <summary>
/// Konfigurierbare Versandoptionen für den Checkout.
/// </summary>
public class ShippingMethod
{
[Key]
public Guid Id { get; set; }
[Required]
[MaxLength(100)]
public string Name { get; set; }
[MaxLength(500)]
public string? Description { get; set; }
// Precision wird via Fluent API konfiguriert
[Required]
public decimal BaseCost { get; set; }
public decimal? MinimumOrderAmount { get; set; }
[Required]
public bool IsActive { get; set; }
[MaxLength(100)]
public string? EstimatedDeliveryTime { get; set; }
[Required]
public bool RequiresTracking { get; set; }
public int MinDeliveryDays { get; set; }
public int MaxDeliveryDays { get; set; }
}