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

namespace XYY.Service.Standard.ChannelApi.CaiNiao
{
    #region 入参
    public class HandoverParam
    {
        /// <summary>
        /// 中国
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string zipCode { get; set; }
        /// <summary>
        /// 杭州市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string telephone { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string portCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string addressId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mobilePhone { get; set; }
        /// <summary>
        /// 蒋村街道
        /// </summary>
        public string street { get; set; }
        /// <summary>
        /// 西湖区
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// 张三
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 文一西路680号
        /// </summary>
        public string detailAddress { get; set; }
        /// <summary>
        /// 浙江省
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string email { get; set; }
    }

    public class OrderCodeList
    {
        /// <summary>
        /// 
        /// </summary>
        public string orderCode { get; set; }
    }

    public class BigbagRequst
    {
        /// <summary>
        /// 
        /// </summary>
        public bool needUnbind { get; set; } = true;
        /// <summary>
        /// 
        /// </summary>
        public HandoverParam handoverParam { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> orderCodeList { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double weight { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string locale { get; set; } = "zh_cn";
        /// <summary>
        /// 
        /// </summary>
        public string weightUnit { get; set; } = "g";
    }

    #endregion
    #region 响应
    public class BigbagData
    {
        /// <summary>
        /// 
        /// </summary>
        public string bigBagCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bigBagTrackingNumber { get; set; }
    }

    public class BigbagResult
    {
        /// <summary>
        /// 
        /// </summary>
        public BigbagData data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string errorCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string needRetry { get; set; }
        /// <summary>
        /// 系统异常
        /// </summary>
        public string errorMsg { get; set; }
    }

    #endregion
}
