namespace BBWYB.Server.Model.Dto
{
    public class AssociationPurchaseOrderResponse
    {
        public AssociationPurchaseOrderResponse()
        {
            AssocationOrderCostDetailList = new List<AssocationOrderCostDetailResponse>();
        }

        public AssociationPurchaseOrderResponse(List<AssocationOrderCostDetailResponse> assocationOrderCostDetailList)
        {
            AssocationOrderCostDetailList = assocationOrderCostDetailList;
        }

        /// <summary>
        /// 采购单号
        /// </summary>
        public string PurchaseOrderId { get; set; }

        public Enums.Platform PurchasePlatform { get; set; }

        /// <summary>
        /// 买家账号Id (如果采购平台为不支持的平台,此Id可填空)
        /// </summary>
        public string PurchaseAccountId { get; set; }

        /// <summary>
        /// 买家账号
        /// </summary>
        public string PurchaseAccountName { get; set; }


        /// <summary>
        /// 商家Id
        /// </summary>
        public string PurchaserId { get; set; }

        /// <summary>
        /// 商家名称
        /// </summary>
        public string PurchaserName { get; set; }

        /// <summary>
        /// 采购金额
        /// </summary>
        public decimal PurchaseAmount { get; set; }

        /// <summary>
        /// 采购运费
        /// </summary>
        public decimal PurchaseFreight { get; set; }

        /// <summary>
        /// 是否有效(以此判定是否为历史采购单)
        /// </summary>
        public bool IsEnabled { get; set; }

        public Enums.PurchaseMethod PurchaseMethod { get; set; }

        /// <summary>
        /// 订单成本明细列表
        /// </summary>
        public IList<AssocationOrderCostDetailResponse> AssocationOrderCostDetailList { get; set; }
    }
}