mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增小程序微信物流服务查询组件相关接口
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/follow_waybill 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
public class CgibinExpressDeliveryOpenMessageFollowWaybillRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageFollowWaybillRequest, CgibinExpressDeliveryOpenMessageFollowWaybillResponse>
|
||||
{
|
||||
public static class Types
|
||||
|
@@ -1,8 +1,11 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/follow_waybill 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
public class CgibinExpressDeliveryOpenMessageFollowWaybillResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/get_delivery_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageGetDeliveryListRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageGetDeliveryListRequest, CgibinExpressDeliveryOpenMessageGetDeliveryListResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/get_delivery_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageGetDeliveryListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Delivery
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_name")]
|
||||
public string DeliveryName { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_list")]
|
||||
public Types.Delivery[] DeliveryList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司总数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("count")]
|
||||
public int Total { get; set; }
|
||||
}
|
||||
}
|
@@ -1,8 +1,11 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/query_follow_trace 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
public class CgibinExpressDeliveryOpenMessageQueryFollowTraceRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageQueryFollowTraceRequest, CgibinExpressDeliveryOpenMessageQueryFollowTraceResponse>
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -1,8 +1,11 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/query_follow_trace 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
public class CgibinExpressDeliveryOpenMessageQueryFollowTraceResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/query_trace 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageQueryTraceRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageQueryTraceRequest, CgibinExpressDeliveryOpenMessageQueryTraceResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string? OpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信订单查询 Token。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_token")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_token")]
|
||||
public string WaybillToken { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,116 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/query_trace 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageQueryTraceResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Waybill
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
}
|
||||
|
||||
public class Shop
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Goods
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Detail
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_name")]
|
||||
public string GoodsName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_img_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_img_url")]
|
||||
public string GoodsImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品详情描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_desc")]
|
||||
public string? GoodsDescription { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品详情列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detail_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detail_list")]
|
||||
public Types.Detail[] DetailList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_info")]
|
||||
public Types.Goods? Goods { get; set; }
|
||||
}
|
||||
|
||||
public class Delivery
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_name")]
|
||||
public string DeliveryName { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运单信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_info")]
|
||||
public Types.Waybill Waybill { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_info")]
|
||||
public Types.Shop? Shop { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_info")]
|
||||
public Types.Delivery? Delivery { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,106 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/trace_waybill 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageTraceWaybillRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageTraceWaybillRequest, CgibinExpressDeliveryOpenMessageTraceWaybillResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Goods
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Detail
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_name")]
|
||||
public string GoodsName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_img_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_img_url")]
|
||||
public string GoodsImageUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品详情描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_desc")]
|
||||
public string? GoodsDescription { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品详情列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detail_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detail_list")]
|
||||
public IList<Types.Detail> DetailList { get; set; } = new List<Types.Detail>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置寄件人电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sender_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sender_phone")]
|
||||
public string? SenderPhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_phone")]
|
||||
public string? ReceiverPhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_info")]
|
||||
public Types.Goods? Goods { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string? DeliveryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信交易单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("trans_id")]
|
||||
public string? TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置落地页商品卡片跳转路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_detail_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_detail_path")]
|
||||
public string? OrderDetailPagePath { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/trace_waybill 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageTraceWaybillResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信订单查询 Token。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_token")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_token")]
|
||||
public string WaybillToken { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -1,10 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/update_follow_waybill_goods 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
public class CgibinExpressDeliveryOpenMessageUpdateFollowWaybillGoodsRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageUpdateFollowWaybillGoodsRequest, CgibinExpressDeliveryOpenMessageUpdateFollowWaybillGoodsResponse>
|
||||
{
|
||||
public static class Types
|
||||
|
@@ -1,8 +1,11 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/update_follow_waybill_goods 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
public class CgibinExpressDeliveryOpenMessageUpdateFollowWaybillGoodsResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
|
@@ -0,0 +1,51 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/update_waybill_goods 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageUpdateWaybillGoodsRequest : WechatApiRequest, IInferable<CgibinExpressDeliveryOpenMessageUpdateWaybillGoodsRequest, CgibinExpressDeliveryOpenMessageUpdateWaybillGoodsResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Goods
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Detail : CgibinExpressDeliveryOpenMessageTraceWaybillRequest.Types.Goods.Types.Detail
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品详情列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detail_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detail_list")]
|
||||
public IList<Types.Detail> DetailList { get; set; } = new List<Types.Detail>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string? OpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信订单查询 Token。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_token")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_token")]
|
||||
public string WaybillToken { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_info")]
|
||||
public Types.Goods? Goods { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/delivery/open_msg/update_waybill_goods 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressDeliveryOpenMessageUpdateWaybillGoodsResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user