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

namespace XYY.Service.Standard.ChannelApi.PPX
{
    public class Response<T>
    {
        public bool success { get; set; }
        public T data { get; set; }
    }

    public class CreateOrderResponseData
    {
        public string order_sn { get; set; }
        public string reference_no { get; set; }
        public string tracking_number { get; set; }
        public string label { get; set; }
    }

    public class CreateOrderResponse:Response<CreateOrderResponseData>
    { }

    public class GetLabelResponseData
    {
        public string label_url { get; set; }
    }

    public class GetLabelResponse : Response<GetLabelResponseData>
    { }

    public class GetTrackingNumberResponse : Response<GetTrackingNumberResponseData>
    { }


    public class PackageSimpleInfo
    {
        public string package_number { get; set; }
        public string tracking_number { get; set; }
    }

    public class GetTrackingNumberResponseData
    {
        public string tracking_number { get; set; }
        public decimal amount { get; set; }
        public List<PackageSimpleInfo> packages { get; set; }
    }
}
