using AyCode.Interfaces.Entities; using Mango.Nop.Core.Dtos; using Nop.Core.Domain.Common; using Nop.Core.Domain.Customers; using Nop.Core.Domain.Orders; using Nop.Core.Domain.Shipping; namespace Mango.Nop.Core.Interfaces; public interface IMgOrderDto : IEntityInt, ISoftDeletedEntity where TOrderItemDto : IMgOrderItemDto where TProductDto : IMgProductDto { public Guid OrderGuid { get; set; } public int StoreId { get; set; } public int CustomerId { get; set; } public int OrderStatusId { get; set; } public OrderStatus OrderStatus { get; set; } public int ShippingStatusId { get; set; } public ShippingStatus ShippingStatus { get; set; } public decimal OrderDiscount { get; set; } public decimal OrderTotal { get; set; } public DateTime CreatedOnUtc { get; set; } public DateTime? PaidDateUtc { get; set; } public string ShippingMethod { get; set; } public string CustomOrderNumber { get; set; } public string CustomValuesXml { get; set; } public Customer Customer { get; } //TODO: CustomerDto!!! - J. public List OrderItemDtos { get; } public List OrderNotes { get; } void InitializeOrderItemDtos(List orderItemDtos); void CopyEntityValuesToDto(Order entity, List orderItemDtos); }