mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 14:04:32 +08:00
feat(wxapi): 随官方更新微信小店电子面单取号接口模型
This commit is contained in:
parent
d2948a7e43
commit
97cc657825
@ -118,6 +118,92 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonExtensionData]
|
[System.Text.Json.Serialization.JsonExtensionData]
|
||||||
public IDictionary<string, object>? ExtensionData { get; set; }
|
public IDictionary<string, object>? ExtensionData { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class DeliveryInfo
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class SubPackage
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置重量(单位:克)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("weight_g")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("weight_g")]
|
||||||
|
public int? Weight { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置长度(单位:厘米)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("space_x")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("space_x")]
|
||||||
|
public int? Length { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置宽度(单位:厘米)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("space_y")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("space_y")]
|
||||||
|
public int? Width { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置高度(单位:厘米)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("space_z")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("space_z")]
|
||||||
|
public int? Height { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置包裹编号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("package_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("package_no")]
|
||||||
|
public string? PackageNumber { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置发货方式。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("delivery_type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_type")]
|
||||||
|
public int? DeliveryType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置预约上门开始时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("collected_time_begin")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("collected_time_begin")]
|
||||||
|
public long? CollectedBeginTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置预约上门结束时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("collected_time_end")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("collected_time_end")]
|
||||||
|
public long? CollectedEndTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置子母件包裹数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("package_quantity")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("package_quantity")]
|
||||||
|
public int? PackageQuantity { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置子件列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("subpackage_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("subpackage_list")]
|
||||||
|
public IList<Types.SubPackage>? SubPackageList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置商家额外信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("merchant_ext_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("merchant_ext_info")]
|
||||||
|
public string? MerchantExtraInfo { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -217,5 +303,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("ext_info")]
|
[Newtonsoft.Json.JsonProperty("ext_info")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
|
||||||
public Types.EWaybillExtra? EWaybillExtra { get; set; }
|
public Types.EWaybillExtra? EWaybillExtra { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置发货信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("delivery_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_info")]
|
||||||
|
public Types.DeliveryInfo? DeliveryInfo { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,79 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ChannelsECLogisticsEWaybillOrderCreateResponse : WechatApiResponse
|
public class ChannelsECLogisticsEWaybillOrderCreateResponse : WechatApiResponse
|
||||||
{
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class SubWaybill
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置快递单号类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("waybill_type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("waybill_type")]
|
||||||
|
public int? WaybillType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置快递单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||||
|
public string? WaybillId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置创建时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||||
|
public long CreateTimestamp { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class RiskInfo
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Order
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置订单 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("ec_order_id")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalStringReadOnlyConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("ec_order_id")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
|
||||||
|
public string OrderId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置代发的订单密文。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("ewaybill_order_code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_code")]
|
||||||
|
public string? EWaybillOrderCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置代发的订单所属店铺 AppId。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("ewaybill_order_appid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")]
|
||||||
|
public string? EWaybillOrderAppId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置风险信息内容。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("risk_msg")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("risk_msg")]
|
||||||
|
public string? RiskMessage { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置疑似存在风险的订单目录。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("risk_ec_order_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("risk_ec_order_info")]
|
||||||
|
public Types.Order[]? OrderList { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置电子面单 ID。
|
/// 获取或设置电子面单 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -32,5 +105,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("print_info")]
|
[Newtonsoft.Json.JsonProperty("print_info")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("print_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("print_info")]
|
||||||
public string? PrintInfo { get; set; }
|
public string? PrintInfo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置子单列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("waybill_id_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("waybill_id_list")]
|
||||||
|
public Types.SubWaybill[]? SubWaybillList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置疑似风险信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("order_risk_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("order_risk_info")]
|
||||||
|
public Types.RiskInfo? RiskInfo { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,17 @@
|
|||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
"ewaybill_order_id": "111",
|
"ewaybill_order_id": "111",
|
||||||
"waybill_id": "1212xzcxz",
|
"waybill_id": "1212xzcxz",
|
||||||
"delivery_error_msg": "xxxx"
|
"delivery_error_msg": "xxxx",
|
||||||
|
"waybill_id_list": [
|
||||||
|
{
|
||||||
|
"waybill_id": "xxxxxx",
|
||||||
|
"waybill_type": 1,
|
||||||
|
"create_time": 1732515904
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"waybill_id": "xxxxxx",
|
||||||
|
"waybill_type": 2,
|
||||||
|
"create_time": 1732515904
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user