Projektdateien hinzufügen.
This commit is contained in:
35
Webshop.Domain/Entities/ShippingMethod.cs
Normal file
35
Webshop.Domain/Entities/ShippingMethod.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user