using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Store.VirtualLogistics.Models; public class BuyRequest { /// /// 接入账号:本站注册账号 /// [JsonProperty("username")] public string Username { get; set; } /// /// 当前时间戳:1574769204 /// [JsonProperty("sid")] public string Sid { get; set; } /// /// [JsonProperty("sign")] public string Sign { get; set; } /// /// 快递ID /// [JsonProperty("kuaidi_id")] public string KuaidiId { get; set; } /// /// 商品ID /// [JsonProperty("goods_id")] public string GoodsId { get; set; } /// /// 仓库ID /// [JsonProperty("cang_id")] public string CangId { get; set; } /// /// 平台,1淘宝 2拼多多 3京东 4抖音 5快手 6视频号 7阿里 8小红书 9淘工厂 /// [JsonProperty("platform")] public int Platform { get; set; } /// /// 是否授权下单,1是0否 /// [JsonProperty("auth")] public int Auth { get; set; } /// /// 发货人 /// [JsonProperty("send_name")] public string SendName { get; set; } /// /// 发货人手机 /// [JsonProperty("send_mobile")] public string SendMobile { get; set; } /// /// 发货人省份 /// [JsonProperty("send_province")] public string SendProvince { get; set; } /// /// 发货人城市 /// [JsonProperty("send_city")] public string SendCity { get; set; } /// /// 发货人区/县/镇 /// [JsonProperty("send_district")] public string SendDistrict { get; set; } /// /// 发货人详细地址 /// [JsonProperty("send_address")] public string SendAddress { get; set; } /// /// 收货地址列表,每次可传1000条;圆通实时包,每次最多100个 /// [JsonProperty("rec_list")] public List RecList { get; set; } = new List(); } public class RecItem { /// /// 唯一订单号,生成一个不重复的字符串,字符串长度为16~40 /// [JsonProperty("order_sn")] public string OrderSn { get; set; } /// /// 收货人 /// [JsonProperty("rec_name")] public string RecName { get; set; } /// /// 收货人手机 /// [JsonProperty("rec_mobile")] public string RecMobile { get; set; } /// /// 收货人省份 /// [JsonProperty("rec_province")] public string RecProvince { get; set; } /// /// 收货人城市 /// [JsonProperty("rec_city")] public string RecCity { get; set; } /// /// 收货人区/县/镇 /// [JsonProperty("rec_district")] public string RecDistrict { get; set; } /// /// 收货人详细地址 /// [JsonProperty("rec_address")] public string RecAddress { get; set; } /// /// 授权下单必填,淘宝或拼多多等第三方平台订单号 /// [JsonProperty("shop_order")] public string ShopOrder { get; set; } /// /// 无货源必填,补发单号 /// [JsonProperty("other_kuaidi_sn")] public string OtherKuaidiSn { get; set; } /// /// 店铺名称 /// [JsonProperty("shop_name")] public string ShopName { get; set; } /// /// 淘宝授权发货必填 /// [JsonProperty("oaid")] public string Oaid { get; set; } /// /// 收货详细地址密文,拼多多、抖音授权发货必填 /// [JsonProperty("rec_address_encrypt")] public string RecAddressEncrypt { get; set; } /// /// 收货人姓名密文,拼多多、抖音授权发货必填 /// [JsonProperty("rec_name_encrypt")] public string RecNameEncrypt { get; set; } /// /// 收货人手机密文,拼多多、抖音授权发货必填 /// [JsonProperty("rec_phone_encrypt")] public string RecPhoneEncrypt { get; set; } /// /// 收货人手机号密文,京东授权发货必填 /// [JsonProperty("desen_mobile")] public string DesenMobile { get; set; } /// /// 收货人手机号密文,京东授权发货必填 /// [JsonProperty("desen_telephone")] public string DesenTelephone { get; set; } /// /// 订单店铺ID,快手授权发货必填 /// [JsonProperty("seller_open_id")] public string SellerOpenId { get; set; } /// /// 订单店铺昵称,快手授权发货必填 /// [JsonProperty("seller_nick")] public string SellerNick { get; set; } /// /// 授权发货必填 /// [JsonProperty("encrypt_datas")] public EncryptDatas EncryptDatas { get; set; } /// /// 编码,供应商代发时必填 /// [JsonProperty("ewaybill_order_code")] public string EwaybillOrderCode { get; set; } /// /// 扩展参数,视频号供应商代发时必填 /// [JsonProperty("extend_params")] public ExtendParams ExtendParams { get; set; } } public class EncryptDatas { /// /// 供应商订单ID,视频号供应商代发时必填 /// [JsonProperty("ds_order_id")] public string DsOrderId { get; set; } /// /// 视频号必填,自研时传店铺 appId,供应商传相应该的值 /// [JsonProperty("from_shop_code")] public string FromShopCode { get; set; } /// /// 订单商品sku_id,视频号必填 /// [JsonProperty("sku_id")] public string SkuId { get; set; } /// /// 订单商品id,视频号必填 /// [JsonProperty("product_id")] public string ProductId { get; set; } /// /// 订单商品数量,视频号必填 /// [JsonProperty("sku_cnt")] public int SkuCnt { get; set; } } public class ExtendParams { /// /// 供应商订单ID,视频号供应商代发时必填 /// [JsonProperty("token")] public string Token { get; set; } /// /// 供应商编码,取决上家快递使用供应商,视频号供应商代发时必填 /// [JsonProperty("api")] public string Api { get; set; } /// /// 供应商订单ID,视频号供应商代发时必填 /// [JsonProperty("ds_order_id")] public string DsOrderId { get; set; } } public class BuyResultItem { /// /// 原传入的唯一订单号 /// public string OrderSn { get; set; } /// /// 快递单号 /// public string KuaidiSn { get; set; } /// /// 快递状态:2待揽件 3已揽件,4出单失败 /// public string Status { get; set; } public string OtherKuaidiSn { get; set; } }