Api/Netina.Domain/Dtos/LargDtos/OrderLDto.cs

34 lines
1.3 KiB
C#

namespace Netina.Domain.Dtos.LargDtos;
public class OrderLDto : BaseDto<OrderLDto,Order>
{
public string FactorCode { get; set; } = string.Empty;
public long TotalPrice { get; set; }
public long DeliveryPrice { get; set; }
public long TaxesPrice { get; set; }
public long ServicePrice { get; set; }
public long PackingPrice { get; set; }
public long TotalProductsPrice { get; set; }
public double DiscountCodePrice { get; set; }
public double ProductDiscountPrice { get; set; }
public long DiscountPrice { get; set; }
public bool IsPayed { get; set; }
public OrderStatus OrderStatus { get; set; }
public DateTime DoneAt { get; set; }
public DateTime OrderAt { get; set; }
public int PreparingMinute { get; set; }
public string DiscountCode { get; set; } = string.Empty;
public long TotalPriceWithoutDiscount => TotalPrice + DiscountPrice;
public Guid CustomerId { get; set; }
public string CustomerFullName { get; set; } = string.Empty;
public string CustomerPhoneNumber { get; set; } = string.Empty;
public List<OrderProductSDto> OrderProducts { get; set; } = new();
public List<PaymentSDto> Payments { get; set; } = new();
public OrderDeliverySDto OrderDelivery { get; set; } = new();
}