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

namespace XYY.Service.Standard.ChannelApi.DeLiXun
{
    public class OrderInvoiceParamItem
    {
        /// <summary>
        /// 申报总价值，必填
        /// </summary>
        public string invoice_amount { get; set; }
        /// <summary>
        /// 件数，必填
        /// </summary>
        public string invoice_pcs { get; set; }
        /// <summary>
        /// 英文品名，必填
        /// </summary>
        public string invoice_title { get; set; }
        /// <summary>
        /// 单件重
        /// </summary>
        public string invoice_weight { get; set; }
        /// <summary>
        /// 中文品名
        /// </summary>
        public string sku { get; set; }
        /// <summary>
        /// 配货信息
        /// </summary>
        public string sku_code { get; set; }
        /// <summary>
        /// 海关编码
        /// </summary>
        public string hs_code { get; set; }
        /// <summary>
        /// 销售地址
        /// </summary>
        public string transaction_url { get; set; }
        /// <summary>
        /// 申报单位
        /// </summary>
        public string invoiceunit_code { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string invoice_imgurl { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string invoice_brand { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string invoice_rule { get; set; }
        /// <summary>
        /// 申报币种
        /// </summary>
        public string invoice_currency { get; set; }
        /// <summary>
        /// 税则号
        /// </summary>
        public string invoice_taxno { get; set; }
        /// <summary>
        /// 原产国
        /// </summary>
        public string origin_country { get; set; }
        /// <summary>
        /// 材质
        /// </summary>
        public string invoice_material { get; set; }
        /// <summary>
        /// 用途
        /// </summary>
        public string invoice_purpose { get; set; }
    }

    public class OrderVolumeParamItem
    {
        /// <summary>
        /// 高，单位 CM
        /// </summary>
        public string volume_height { get; set; } = "1";
        /// <summary>
        /// 长，单位 CM
        /// </summary>
        public string volume_length { get; set; } = "1";
        /// <summary>
        /// 宽，单位 CM
        /// </summary>
        public string volume_width { get; set; } = "1";
        /// <summary>
        /// 实重
        /// </summary>
        public string volume_weight { get; set; } 
    }

    public class DataUploadRequest
    {
        /// <summary>
        /// 
        /// </summary>
        public string buyerid { get; set; } = "";
        /// <summary>
        /// 件数，小包默认 1，快递需真实填写
        /// </summary>
        public string order_piece { get; set; } = "1";
        /// <summary>
        /// 手机号,选填。为方便派送最好填写
        /// </summary>
        public string consignee_mobile { get; set; }
        /// <summary>
        /// 退回标志，默认 N 表示不退回，Y 标表示退回。中邮可以忽略该性
        /// </summary>
        public string order_returnsign { get; set; } = "N";
        /// <summary>
        /// 
        /// </summary>
        public string trade_type { get; set; }
        /// <summary>
        /// DDU 或 DDP
        /// </summary>
        public string duty_type { get; set; }
        /// <summary>
        /// 电池类型代码，联货代提供
        /// </summary>
        public string battery_type { get; set; }
        /// <summary>
        /// 收件人,必填
        /// </summary>
        public string consignee_name { get; set; }
        /// <summary>
        /// 收件公司名,如有最好填写
        /// </summary>
        public string consignee_companyname { get; set; }
        /// <summary>
        /// 收件地址街道，必填
        /// </summary>
        public string consignee_address { get; set; }
        /// <summary>
        /// 收件电话，必填
        /// </summary>
        public string consignee_telephone { get; set; }
        /// <summary>
        /// 收件国家二字代码，必填
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 州/省
        /// </summary>
        public string consignee_state { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string consignee_city { get; set; }
        /// <summary>
        /// 收件区，选填
        /// </summary>
        public string consignee_suburb { get; set; }
        /// <summary>
        /// 邮编，有邮编的国家必填
        /// </summary>
        public string consignee_postcode { get; set; }
        /// <summary>
        /// 收件护照号，选填
        /// </summary>
        public string consignee_passportno { get; set; }
        /// <summary>
        /// 邮箱，选填
        /// </summary>
        public string consignee_email { get; set; }
        /// <summary>
        /// 收件人税号
        /// </summary>
        public string consignee_taxno { get; set; }
        /// <summary>
        /// 街道号
        /// </summary>
        public string consignee_streetno { get; set; }
        /// <summary>
        /// 门牌号
        /// </summary>
        public string consignee_doorno { get; set; }
        /// <summary>
        /// 税号类型，邮政产品可选值：IOSS,NO-IOSS,OTHER；DHL 可选值SDT、VAT、FTZ、DAN、EOR、CNP、EIN 等(类型说明参照文档底部“DHL 发件人税号型”)
        /// </summary>
        public string shipper_taxnotype { get; set; }
        /// <summary>
        /// 发件人税号
        /// </summary>
        public string shipper_taxno { get; set; }
        /// <summary>
        /// 发件人税号国家,用国家二字码
        /// </summary>
        public string shipper_taxnocountry { get; set; }
        /// <summary>
        /// 客户 ID，必填
        /// </summary>
        public string customer_id { get; set; }
        /// <summary>
        /// 登录人 ID，必填
        /// </summary>
        public string customer_userid { get; set; }
        /// <summary>
        /// 原单号，必填
        /// </summary>
        public string order_customerinvoicecode { get; set; }
        /// <summary>
        /// 运输方式 ID，德立迅提供，必填
        /// </summary>
        public string product_id { get; set; }
        /// <summary>
        /// 总重，选填，如果 sku 上有单重可不填该项
        /// </summary>
        public string weight { get; set; }
        /// <summary>
        /// 图片地址，多图片地址用分号隔开
        /// </summary>
        public string product_imagepath { get; set; }
        /// <summary>
        /// 产品销售地址
        /// </summary>
        public string order_transactionurl { get; set; }
        /// <summary>
        /// 选填；用于 DHL/FEDEX 运费；或用于白关申报（订单实际金额，特殊渠道使用）；或其他用途
        /// </summary>
        public string order_cargoamount { get; set; }
        /// <summary>
        /// 保险金额
        /// </summary>
        public string order_insurance { get; set; }
        /// <summary>
        /// 包裹类型，P 代表包裹，D 代表文件，B 代表 PAK 袋
        /// </summary>
        public string cargo_type { get; set; }
        /// <summary>
        /// 自定义信息
        /// </summary>
        public string order_customnote { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<OrderInvoiceParamItem> orderInvoiceParam { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<OrderVolumeParamItem> orderVolumeParam { get; set; }
    }

}
