using Lada.Framework.Infrastructures.Helpers;
using static Lada.Framework.Data.Enums.OrderFinEnum;

namespace Ladaer.BackEnd.Infrastructures.DTO.Models.Orders.Detail
{
    public class OrderDetailFinModel
    {
        public int Id { get; set; }
        public decimal CollectAmount { get; set; }
        public bool CodIncludeFee { get; set; } = true;
        public PayFeeType PayFeeType { get; set; }
        public string PayFeeTypeStr => PayFeeType.GetDescription();
        public decimal Fee { get; set; }
        public decimal Discount { get; set; }
        public decimal CodFee { get; set; }
        public decimal TotalFee { get; set; }
        public decimal SourceFee { get; set; }
        public decimal DestFee { get; set; }

        /// <summary>
        /// Tiền đối soát dựa trên PayFeeType
        /// </summary>
        public decimal ReconciliationAmount { get; set; }


        /// <summary>
        /// Phụ phí lấy hàng
        /// </summary>
        public decimal PickupSubFee { get; set; }

        /// <summary>
        /// Phụ phí giao hàng
        /// </summary>
        public decimal DeliverySubFee { get; set; }
    }
}
