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

namespace MS.Entities.Promotion
{
    public class PromotionResponseData
    {
        public List<CouponResponseData> coupons;
        public DiscountResponseData discounts;
    }

    public class CouponResponseData
    {
        public string couponUid { get; set; }
        public string originalCouponUid { get; set; }
        //Coupon Name
        public string name { get; set; }
        //Coupon Amount
        public decimal amount { get; set; }
        public string accountId { get; set; }
        public bool isConsumed { get; set; }
        public List<ProductPromotion> productCoupons { get; set; }
    }

    public class DiscountResponseData
    {
        public double amountAfterDiscount;
        public double discountAmount;
        //LineItem Total Discount
        public List<ProductPromotion> productDiscounts;
        public List<DiscountType> discountTypeList;
    }

    public class DiscountType
    {
        public string uid;
        public string name;
        public string discountCaculationAlgorithm;
        public List<string> productBarCodes;
        public List<string> productCategories;
        public double saleAmount;
        public double discountAmount;
        //Line Item Sub discount for each discountType
        public List<ProductPromotion> productSubDiscounts;
    }
    public class ProductPromotion
    {
        public Guid LineItemId { get; set; }
        public string BarCode { get; set; }
        //Discount amount
        public decimal Amount { get; set; }
    }
}
