using System; using System.Collections.Generic; using System.Text; using YouZanSDKStandard.Api.Response; namespace YouZanSDKStandard.Api.Request { public class YouZanLogisticsConfirmRequest : IRequest { public string GetApiName() { return "youzan.logistics.online.confirm"; } public string GetApiVersion() { return "3.0.0"; } public IDictionary GetParameters() { Dictionary dic = new Dictionary(); dic.Add("tid", tid); dic.Add("out_stype", out_stype); dic.Add("out_sid", out_sid); dic.Add("admin_id", admin_id); dic.Add("is_no_express", is_no_express); dic.Add("source", source); dic.Add("oids", oids); return dic; } /// ///有赞订单号,E开头+年月日时分秒+随机数,长度24位字母和数字组合 /// public string tid { get; set; } /// /// 物流id,当is_no_express=0或者不传时候,该字段必传。物流公司在有赞入驻后,有赞生成的唯一物流公司id,使用【youzan.logistics.express.get】接口获取 /// public string out_stype { get; set; } /// /// 物流单号,当is_no_express=0或者不传时候,该字段必传。即物流公司的快递单号,请填写准确,真实的快递单号 /// public string out_sid { get; set; } /// /// 操作人id,用于标识操作人,如果商家对发货操作有传值,可以使用该值作为操作记录。 /// public string admin_id { get; set; } /// /// 是否需要物流发货,0或者空:物流发货,1:无需物流。默认为空 /// public int is_no_express { get; set; } /// /// 发货请求来源(外部开发者无需传值,无需关注该字段) /// public string source { get; set; } /// ///订单明细id,即子订单号,19位随机数字组合,用于判断判断子订单是否发货,退款场景等。对应父级字段tid。一笔订单多种商品对应多个子订单号,按照订单中商品种类生成,不根据商品数量生成(例:一笔订单有3种商品数量6个分别是:香蕉1个,苹果2个,橙子3个,会生成3个子订单号),用于判断判断子订单是否发货,退款场景等。请使用订单api【youzan.trades.sold.get】【youzan.trade.get.4.0.0】获取该字段。 如果要传入多个值请用逗号隔开 /// public string oids { get; set; } public string ResponseJsonPrefix(string strRet) { return strRet; } public void Validate() { } } }