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

namespace XYY.Service.Standard.ChannelApi.ChinaPost
{
    public class ReportInput
    {
        public string logisticsOrderNo { get; set; }
        public string trackingNo { get; set; }
    }
    public class ReportResult
    {
        public string code { get; set; }
        public string msg { get; set; }
        public string data { get; set; }
    }
    public class DataUploadResult
    {
        public string code { get; set; }
        public string msg { get; set; }
        public DataUploadResultData data { get; set; }

    }
    public class DataUploadResultData
    {
        public string trackingNo { get; set; }
        public string logisticsOrderNo { get; set; }
    }
    public class DataUploadInput
    {
        public string logisticsOrderNo { get; set; }
        public string bizProductNo { get; set; } 
        public int weight { get; set; }
        public string batteryFlag { get; set; }
        public string pickupNotes { get; set; }
        public string transferOrderNo { get; set; }
        public string taxNo { get; set; }
        public string insuranceFlag { get; set; }
        public int insuranceAmount { get; set; } = 0;
        public string senderTaxNo { get; set; }
        public int? prepaymentOfVat { get; set; } = 2;
        public List<ItemsInput> items { get; set; }
        public ReceiverInput receiver { get; set; }
    }
    public class ReceiverInput {
        public string receiverName { get; set; }
        public string receiverPostCode { get; set; }
        public string receiverPhone { get; set; }
        public string receiverMobile { get; set; }
        public string receiverNation { get; set; }
        public string receiverProvince { get; set; }
        public string receiverCity { get; set; }
        public string receiverAddress { get; set; }
        public string receiverEmail { get; set; }

    }
    public class ItemsInput {
        public string cargoNo { get; set; }
        public string cargoName { get; set; }
        public string cargoNameEn { get; set; }
        public string cargoOriginName { get; set; } = "CN";
        public int cargoQuantity { get; set; }
        public decimal cargoValue { get; set; }
        public string cargoCurrency { get; set; }
        public int cargoWeight { get; set; }
        public string unit { get; set; } = "件";
        public string cargoSeria { get; set; }

    }
    public class DrawPdfLabelInput {
        public DrawPdfLabelInput() {
            logisticsOrderNoList = new List<OrderNo>();
        }
        public string printType { get; set; } = "1";//打印类型（默认热敏 1） 0：普通 A4 1：热敏
        public string printFormat { get; set; } = "pdf";
        public string labelFormat { get; set; } = "label_100x100";
        public List<OrderNo> logisticsOrderNoList { get; set; }
    }
    public class OrderNo {
        public string logisticsOrderNo { get; set; }
    }
}
