33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using Netina.Common.Models.Mapper;
|
|
using Netina.Domain.Entities.Discounts;
|
|
using Netina.Domain.Enums;
|
|
|
|
namespace Netina.Domain.Dtos.LargDtos;
|
|
|
|
public class DiscountLDto : BaseDto<DiscountLDto,Discount>
|
|
{
|
|
public string Code { get; set; } = string.Empty;
|
|
public string Description { get; set; } = string.Empty;
|
|
public int DiscountPercent { get; set; }
|
|
public long DiscountAmount { get; set; }
|
|
public bool HasCode { get; set; }
|
|
public DiscountAmountType AmountType { get; set; }
|
|
public DiscountType Type { get; set; }
|
|
public int Count { get; set; }
|
|
public DateTime StartDate { get; set; }
|
|
public DateTime ExpireDate { get; set; }
|
|
public bool Immortal { get; set; }
|
|
public long PriceFloor { get; set; }
|
|
public bool HasPriceFloor { get; set; }
|
|
public long PriceCeiling { get; set; }
|
|
public bool HasPriceCeiling { get; set; }
|
|
public bool IsInfinity { get; set; }
|
|
public long UseCount { get; set; }
|
|
public bool IsSpecialOffer { get; set; }
|
|
public bool IsForInvitation { get; set; }
|
|
public Guid ProductId { get; set; }
|
|
public string ProductName { get; set; } = string.Empty;
|
|
public Guid CategoryId { get; set; }
|
|
public string CategoryName { get; set; } = string.Empty;
|
|
public bool IsForFirstPurchase { get; set; }
|
|
} |