using Lada.Framework.DTO;
using Ladaer.BackEnd.Infrastructures.DTO.Items.Medias;

namespace Ladaer.BackEnd.Infrastructures.DTO.Models.Orders.Detail
{
    public class OrderDetailModel : BaseModel<int>
    {
        public OrderDetailModel()
        {
            General = new OrderDetailGeneralModel
            {
                Code = string.Empty,
                StatusContent = string.Empty,
                RouteName = string.Empty,
                CustomerName = string.Empty,
                CustomerUserName = string.Empty,
                PicUserName = string.Empty
            };
            Addresses = new List<OrderDetailAddressModel>();
            Packages = new List<OrderDetailPackageModel>();
            Tracks = new List<OrderDetailTrackModel>();
            Finance = new OrderDetailFinModel();
            MediaItems = new List<MediaItem>();
        }
        public OrderDetailGeneralModel General { get; set; }
        public required OrderDetailFinModel Finance { get; set; }

        public List<OrderDetailAddressModel> Addresses { get; set; }
        public List<OrderDetailPackageModel> Packages { get; set; }

        public List<OrderDetailTrackModel> Tracks { get; set; }

        public required List<MediaItem> MediaItems { get; set; }

        public bool Editable { get; set; } = false;
    }
}
