namespace MDL.Models
{
    public class OrderImportResult
    {
        /// <summary>
        /// 状态，成功为"ok"，失败为"error"
        /// </summary>
        public string Status { get; set; }
        
        /// <summary>
        /// 响应时间戳（UTC）
        /// </summary>
        public DateTime Timestamp { get; set; }
        
        /// <summary>
        /// 成功导入的订单数量
        /// </summary>
        public int SuccessCount { get; set; }
        
        /// <summary>
        /// 失败的订单数量
        /// </summary>
        public int FailedCount { get; set; }
        
        /// <summary>
        /// 总订单数量
        /// </summary>
        public int TotalCount { get; set; }
        
        /// <summary>
        /// 详细结果列表
        /// </summary>
        public List<OrderImportResultItem> Results { get; set; }
    }

    public class OrderImportResultItem
    {
        /// <summary>
        /// 提单号
        /// </summary>
        public string? BillOfLadingNumber { get; set; }
        
        /// <summary>
        /// 大包号
        /// </summary>
        public string? MasterPackageNumber { get; set; }
        
        /// <summary>
        /// 中性面单单号
        /// </summary>
        public string? NeutralWaybillNumber { get; set; }
        
        /// <summary>
        /// 尾程跟踪单号
        /// </summary>
        public string? FinalMileTrackingNumber { get; set; }
        
        /// <summary>
        /// 状态，成功为"ok"，失败为"error"
        /// </summary>
        public string Status { get; set; }
        
        /// <summary>
        /// 响应消息
        /// </summary>
        public string Message { get; set; }
        
        /// <summary>
        /// 标签是否成功替换
        /// </summary>
        public bool? LabelReplaced { get; set; }
        
        /// <summary>
        /// 标签内容
        /// </summary>
        public string? Label { get; set; }
    }
}
