using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XYY.Service.Standard.ChannelApi.XinZhiHui
{//如果好用，请收藏地址，帮忙分享。
    public class LabelParcelsItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string item_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string carrier_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tracking_number { get; set; }
        /// <summary>
        /// 标签文档的 url 地址
        /// </summary>
        public string label_url { get; set; }
    }

    public class LabelShipment
    {
        /// <summary>
        /// 
        /// </summary>
        public string shipment_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string carrier_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tracking_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<LabelParcelsItem> parcels { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string single_pdf { get; set; }
    }

    public class LabelData
    {
        /// <summary>
        /// 
        /// </summary>
        public LabelShipment shipment { get; set; }
    }

    public class LabelRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 请求成功的完成
        /// </summary>
        public string info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public LabelData data { get; set; }
    }
}
