118 lines
5.2 KiB
C#
118 lines
5.2 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AllBase.Model.Param.WXParam
|
||
{
|
||
|
||
public class WaybillHelper
|
||
{
|
||
//中国移动:134、135、136、137、138、139、147、150、151、152、157、158、159、172、178、182、183、184、187、188、195、197、198。
|
||
//中国联通:130、131、132、145、155、156、166、175、176、185、186、196。其中145号段主要用于上网卡。
|
||
//中国电信:133、149、153、173、177、180、181、189、190、191、193、199。
|
||
//中国广电:192。作为第四大运营商,其号段于2022年开始放号。
|
||
public static List<int> MobileHead { get; set; } = new List<int>()
|
||
{
|
||
134, 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 172, 178, 182, 183, 184, 187, 188, 195, 197, 198,
|
||
130, 131, 132, 155, 156, 166, 175, 176, 185, 186, 196,
|
||
133, 149, 153, 173, 177, 180, 181, 189, 190, 191, 193, 199,
|
||
};
|
||
|
||
public static List<string> LastName { get; set; } = new List<string>()
|
||
{
|
||
"赵", "钱", "孙", "李", "周", "吴", "郑", "王", "冯", "陈", "沈", "杨", "朱", "许", "何", "张",
|
||
};
|
||
}
|
||
|
||
// 预在线寄件读取快递信息
|
||
public class WXPreCreateOrderWaybillOnlineParam
|
||
{
|
||
public List<string> deliveryIds { get; set; } = new List<string>()
|
||
{
|
||
"JTSD", "YUNDA", "YTO", "ZTO", "JD", "SF", "DBKD", "STO", "CNSD",
|
||
};
|
||
public WXPreCreateOrderWaybillOnlineReqParam req { get; set; } = new WXPreCreateOrderWaybillOnlineReqParam();
|
||
}
|
||
|
||
// 选中快递寄件信息后申请在线寄件
|
||
public class WXCreateOrderWaybillOnlineParam
|
||
{
|
||
public int? payMethod { get; set; } = 2; // 2,
|
||
|
||
public List<WaybillOnlineRequestContentParam> requestContent { get; set; } = new List<WaybillOnlineRequestContentParam>();
|
||
}
|
||
|
||
public class WaybillOnlineRequestContentParam
|
||
{
|
||
public string deliveryId { get; set; } // = "YTO";
|
||
public string ewaybillOrderId { get; set; } // = "4525894132274036739";
|
||
public List<ecOrderParam> ecOrderList { get; set; } = new List<ecOrderParam>();
|
||
public waybillOnlineSenderParam sender { get; set; } = new waybillOnlineSenderParam();
|
||
public wayBillOnlineDeliveryInfo deliveryInfo { get; set; } = new wayBillOnlineDeliveryInfo();
|
||
public wayBillOnlineExtInfo extInfo { get; set; }
|
||
public string uuid { get; set; } // "ac843315-48c8-4186-b573-1880f497c002"
|
||
public List<object> orderVasList { get; set; } = new List<object>();
|
||
public int? source { get; set; } = 3;
|
||
}
|
||
|
||
|
||
public class WXPreCreateOrderWaybillOnlineReqParam
|
||
{
|
||
public List<preWaybillOnlineRequestContentParam> requestContent { get; set; } = new List<preWaybillOnlineRequestContentParam>();
|
||
}
|
||
|
||
public class preWaybillOnlineRequestContentParam
|
||
{
|
||
public string deliveryId { get; set; } = "";
|
||
public int? orderType { get; set; } = 1;
|
||
public List<ecOrderParam> ecOrderList { get; set; } = new List<ecOrderParam>();
|
||
public waybillOnlineSenderParam sender { get; set; } = new waybillOnlineSenderParam();
|
||
public wayBillOnlineDeliveryInfo deliveryInfo { get; set; } = new wayBillOnlineDeliveryInfo();
|
||
public wayBillOnlineExtInfo extInfo { get; set; } = new wayBillOnlineExtInfo();
|
||
public string uuid { get; set; } // "ac843315-48c8-4186-b573-1880f497c002"
|
||
public List<object> orderVasList { get; set; } = new List<object>();
|
||
public int? source { get; set; } = 3;
|
||
}
|
||
|
||
public class wayBillOnlineExtInfo
|
||
{
|
||
public int? packageWeightG { get; set; } = 1000;
|
||
}
|
||
|
||
public class wayBillOnlineDeliveryInfo
|
||
{
|
||
public int? appointmentType { get; set; } = 1; // 1,
|
||
public string datetime { get; set; } = DateTime.Now.AddDays(1).ToString("yyyyMMdd"); // "20260521"
|
||
|
||
}
|
||
|
||
public class waybillOnlineSenderParam
|
||
{
|
||
public string name { get; set; } = ""; // "陈图书",
|
||
public string mobile { get; set; } = ""; // "13023098035",
|
||
public string province { get; set; } = ""; // "安徽省",
|
||
public string city { get; set; } = ""; // "合肥市",
|
||
public string county { get; set; } = "";// "肥西县",
|
||
public string street { get; set; } = ""; // "",
|
||
public string address { get; set; } = ""; // "上派镇中盟电子产业园8栋一单元(东电梯3楼快递指定存放点)",
|
||
public string lat { get; set; } = "";// "",
|
||
public string lng { get; set; } = ""; // ""
|
||
}
|
||
|
||
public class ecOrderParam
|
||
{
|
||
public string ecOrderId { get; set; } // "3736506990289905920",
|
||
public List<orderGoodsParam> goodsList { get; set; } = new List<orderGoodsParam>();
|
||
}
|
||
|
||
public class orderGoodsParam
|
||
{
|
||
public int? goodCount { get; set; } // 1,
|
||
public string goodName { get; set; } // "【抢限量印签】信任养育:你的孩子本来就很好 白瑞家庭教育作品,千万父母追随,20余年经验沉淀",
|
||
public string productId { get; set; } // "10000852376968",
|
||
public string skuId { get; set; } // "15057811153"
|
||
}
|
||
}
|