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 PackageMeasureParam
    {
        /// <summary>
        /// 
        /// </summary>
        public long length { get; set; } = 1;
        /// <summary>
        /// 
        /// </summary>
        public long width { get; set; } = 1;
        /// <summary>
        /// 
        /// </summary>
        public long weight { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long height { get; set; } = 1;
    }

    public class PackageSourceHandoverParam
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
    }

    public class PickupParam
    {
        /// <summary>
        /// 
        /// </summary>
        public string zipcode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mobilePhone { get; set; }
        /// <summary>
        /// 杭州市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string countryCode { get; set; }
        /// <summary>
        /// 蒋村街道
        /// </summary>
        public string street { get; set; }
        /// <summary>
        /// 西湖区
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 蒋村街道888号
        /// </summary>
        public string detailAddress { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string telephone { get; set; }
        /// <summary>
        /// 浙江省
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string addressId { get; set; }
    }

    public class Option
    {
        /// <summary>
        /// 
        /// </summary>
        public bool updatePickupInfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool updatePackageMeasure { get; set; }
    }

    public class PackageConfimRequest
    {
        /// <summary>
        /// 
        /// </summary>
        public PackageMeasureParam packageMeasureParam { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public PackageSourceHandoverParam sourceHandoverParam { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string orderCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string locale { get; set; } = "zh_CN";
        /// <summary>
        /// 
        /// </summary>
        public PickupParam pickupParam { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Option option { get; set; }
    }
    #endregion

    #region 响应结果
    public class PackageConfimData
    {
        /// <summary>
        /// 
        /// </summary>
        public bool updateTrackingNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string newPrintData { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string updateUserSortCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string newTrackingNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string newUserSortCode { get; set; }
    }

    public class PackageConfimResult
    {
        /// <summary>
        /// 
        /// </summary>
        public PackageConfimData 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
}
