using System;
using System.Collections.Generic;
using System.Text;

namespace MS.Entities.Promotion
{
    public class CouponList
    {
        public int totalPage { get; set; }
        public int pageSize { get; set; }
        public int total { get; set; }
        public int currentPage { get; set; }

        public List<Coupon> rows { get; set; }
    }

    public class Coupon
    {
        public CouponTypeDescription coupon { get; set; }
        public int couponId { get; set; }
        public int userId { get; set; }
        public int status { get; set; }
        public string applyDate { get; set; }
        public string uid { get; set; }
        public int siteId { get; set; }
        public int id { get; set; }
        public string created { get; set; }
        public string modified { get; set; }
        public int version { get; set; }
    }

    public class CouponTypeDescription
    {
        public string name { get; set; }
        public string type { get; set; }
        public int status { get; set; }
        public decimal amount { get; set; }
        public decimal saleAmount { get; set; }
        public bool needApply { get; set; }
        public string applyStart { get; set; }
        public string applyEnd { get; set; }
        public string useStart { get; set; }
        public string useEnd { get; set; }
        public int applyLimit { get; set; }
        public int issueLimit { get; set; }
        public string summary { get; set; }
        public string description { get; set; }
        public string applyProducts { get; set; }
        public string applyProductCategories { get; set; }
        public string uid { get; set; }
        public int siteId { get; set; }
        public int id { get; set; }
        public string created { get; set; }
        public string modified { get; set; }
        public int version { get; set; }
    }
}
