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

namespace XYY.Service.Standard.ChannelApi.IMG
{
    public class CreateOrderResponseData
    {
        /// <summary>
        /// 
        /// </summary>
        public string TailSingleNo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string WaybillNum { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string LabelUrlPdf { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string zone { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Chargeweight { get; set; }
    }

    public class CreateOrderResponseBase<T>
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public T data { get; set; }
    }
    public class CreateOrderResponse : CreateOrderResponseBase<CreateOrderResponseData>
    {
        public bool success { get { return base.code == 0; } }
    }



    public class RefundStatusMessage
    {
        /// <summary>
        /// 
        /// </summary>
        public List<string> success { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> error { get; set; }
    }

    public class Error
    {
        /// <summary>
        /// 
        /// </summary>
        public string picNumber { get; set; }
        /// <summary>
        /// XXX 原因失败
        /// </summary>
        public string message { get; set; }
    }

    public class RefundStatusDetail
    {
        /// <summary>
        /// 
        /// </summary>
        public List<Error> error { get; set; }
    }

    public class Refund
    {
        /// <summary>
        /// 
        /// </summary>
        public string refundStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public RefundStatusMessage refundStatusMessage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public RefundStatusDetail refundStatusDetail { get; set; }
    }

    public class ConfirmOrderReponse
    {
        /// <summary>
        /// 
        /// </summary>
        public Refund refund { get; set; }
    }

}
