41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
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<TOrderItemDto, TProductDto> : IEntityInt, ISoftDeletedEntity where TOrderItemDto : IMgOrderItemDto<TProductDto> 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<TOrderItemDto> OrderItemDtos { get; }
|
|
public List<OrderNote> OrderNotes { get; }
|
|
|
|
void InitializeOrderItemDtos(List<TOrderItemDto> orderItemDtos);
|
|
void CopyEntityValuesToDto(Order entity, List<TOrderItemDto> orderItemDtos);
|
|
} |