Spaces:
Running
Running
| using ECommerce.Model.Enums; | |
| using ECommerce.Model.ValueObjects; | |
| namespace ECommerce.Model.Entities; | |
| public class Order : BaseEntity | |
| { | |
| public string OrderNumber { get; set; } = string.Empty; | |
| public Guid CustomerId { get; set; } | |
| public Customer Customer { get; set; } = null!; | |
| public OrderStatus Status { get; set; } = OrderStatus.Pending; | |
| public Address? ShippingAddress { get; set; } | |
| public decimal TotalAmount { get; set; } | |
| public ICollection<OrderItem> Items { get; set; } = new List<OrderItem>(); | |
| public Payment? Payment { get; set; } | |
| } | |