using Newtonsoft.Json; using System.Collections.Generic; namespace Common.Request.internationalshipment { public class ShipmentReq { /// /// 收件人信息 /// public InterManInfo recMan { get; set; } /// /// 寄件人信息 /// public InterManInfo sendMan { get; set; } /// /// 快递公司的编码,一律用小写字母,见参数字典) /// public string kuaidicom { get; set; } /// /// 产品类型: 默认标准快递,请参考参数字典) /// public string expType { get; set; } /// /// 物品总重量 /// public double weight { get; set; } /// /// 包裹数 /// public int count { get; set; } /// /// 备注 /// public string remark { get; set; } /// /// 货物描述 /// public string cargo { get; set; } /// /// 月结或支付账号,详见字典表 /// public string partnerId { get; set; } /// /// 月结账号密钥,详见字典表 /// public string partnerKey { get; set; } /// /// 账号参数,详见字典表 /// public string code { get; set; } /// /// 月结账号用户名,详见字典表 /// public string partnerName { get; set; } /// /// 月结账号用户密码,详见字典表 /// public string partnerSecret { get; set; } /// /// 贸易条款 {get; set;}CFR,DAP等,国际贸易规范用于,默认DAP /// public string tradeTerm { get; set; } /// /// 申报价值,包裹类必填,货币单位根据currency确定,人民币单位是元 /// public double customsValue { get; set; } /// /// 包裹信息集合 /// public List packageInfos { get; set; } /// /// 出口信息集合,一般包裹类要求必填,文件类不用填,用于清关报备 /// public List exportInfos { get; set; } /// /// 货币单位,CNY-人民币 {get; set;}USD-美元 {get; set;}默认CNY /// public string currency { get; set; } /// /// 关税支付方式,默认收件人支付 /// public Payment dutiesPaymentType { get; set; } /// /// 运费支付方式(默认寄件人支付)SHIPPER:寄方付 CONSIGNEE:到付 MONTHLY:月结 THIRDPARTY:第三方支付 /// public Payment freightPaymentType { get; set; } /// /// 下单时间(格式:yyyy-MM-dd HH:mm:ss,不传或者格式不正确默认当前时间) /// public string shipTime { get; set; } /// /// 打包方式:默认用户自行打包 /// public string packagingType { get; set; } /// /// 商业发票信息 /// public InvoiceInfo invoiceInfo { get; set; } /// /// 是否需要发票 /// public bool needInvoice { get; set; } /// /// 清关信息 /// public CustomsClearance customsClearance { get; set; } /// /// 时区,默认东八区时间 'GMT+8'预留 /// public string timezone { get; set; } /// /// SI表示千克和厘米组合;SU表示磅和英寸组合 /// public string unitOfMeasurement { get; set; } /// /// 路线ID(极兔国际必填) /// public string routeId { get; set; } /// /// 是否需要通知 /// public bool needNotification { get; set; } /// /// 通知郵箱 /// public string notifyEmail { get; set; } /// /// 送达确认签名 (0-不需要签名 1-需提供签名 2-要求成年人签名) /// public int needDeliveryConfirmation { get; set; } /// /// 是否周六交貨 /// public bool needSaturdayDelivery { get; set; } /// /// 是否包含电池 /// public bool butterFlag { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); } } }