28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using Netina.Common.Models.Mapper;
|
|
using Netina.Domain.Entities.Discounts;
|
|
using Netina.Domain.Enums;
|
|
|
|
namespace Netina.Domain.Dtos.SmallDtos;
|
|
|
|
public class DiscountSDto : BaseDto<DiscountSDto,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 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 bool IsForFirstPurchase { get; set; }
|
|
} |