feat(wxapi): 随官方更新微信小店订单相关接口模型

This commit is contained in:
Fu Diwei
2026-02-05 17:53:57 +08:00
parent 3ca53d803b
commit 7582f26454
24 changed files with 61 additions and 50 deletions

View File

@@ -368,7 +368,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
}
#endregion
#region ECAftersale/GuaranteeOrder
#region ECAftersale/Guarantee
/// <summary>
/// <para>异步调用 [POST] /channels/ec/aftersale/searchguaranteeorder 接口。</para>
/// <para>
@@ -5228,9 +5228,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderPresentGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
#endregion
#region ECOrder/PresentOrder
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/presentorder/create 接口。</para>
/// <para>
@@ -5324,6 +5322,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderPresentOrderReceiverSetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/receiverorderlist/get 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/miniandstore/cooperation_gift/api_get_receiver_order_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderReceiverOrderListGetResponse> ExecuteChannelsECOrderReceiverOrderListGetAsync(this WechatApiClient client, Models.ChannelsECOrderReceiverOrderListGetRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "order", "presentlist", "get")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderReceiverOrderListGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
#endregion
#region ECOrder/PreshipmentChangeSKU
@@ -5396,31 +5417,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderPreshipmentChangeSKUGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
#endregion
#region ECOrder/ReceiverOrder
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/receiverorderlist/get 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/miniandstore/cooperation_gift/api_get_receiver_order_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderReceiverOrderListGetResponse> ExecuteChannelsECOrderReceiverOrderListGetAsync(this WechatApiClient client, Models.ChannelsECOrderReceiverOrderListGetRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "order", "presentlist", "get")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderReceiverOrderListGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
#endregion
#endregion
#region ECProduct

View File

@@ -42,7 +42,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public int FreightInsurance { get; set; }
}
public class SKUDeliver
public class SKUDeliverInfo
{
/// <summary>
/// 获取或设置商品发货类型。
@@ -339,6 +339,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("cash_coupon_discounted_price")]
public int? CashCouponDiscountedPrice { get; set; }
/// <summary>
/// 获取或设置限时抢购优惠金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("limited_discount_discounted_price")]
[System.Text.Json.Serialization.JsonPropertyName("limited_discount_discounted_price")]
public int? LimitedDiscountDiscountedPrice { get; set; }
/// <summary>
/// 获取或设置活动商家补贴金额(单位:分)。
/// </summary>
@@ -428,7 +435,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_deliver_info")]
[System.Text.Json.Serialization.JsonPropertyName("sku_deliver_info")]
public Types.SKUDeliver? SKUDeliver { get; set; }
public Types.SKUDeliverInfo? SKUDeliverInfo { get; set; }
/// <summary>
/// 获取或设置额外的服务信息。
@@ -669,6 +676,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("bulkbuy_discounted_price")]
public int? BulkBuyDiscountedPrice { get; set; }
/// <summary>
/// 获取或设置订单内限时抢购优惠金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("limited_discount_discounted_price")]
[System.Text.Json.Serialization.JsonPropertyName("limited_discount_discounted_price")]
public int? LimitedDiscountDiscountedPrice { get; set; }
/// <summary>
/// 获取或设置订单内国补优惠金额(单位:分)。
/// </summary>
@@ -836,7 +850,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public Types.TelNumberExtendedInfo? TelNumberExtendedInfo { get; set; }
}
public class QualityInspection
public class QualityInspectInfo
{
/// <summary>
/// 获取或设置质检状态。
@@ -934,7 +948,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("quality_inspect_info")]
[System.Text.Json.Serialization.JsonPropertyName("quality_inspect_info")]
public Types.QualityInspection? QualityInspection { get; set; }
public Types.QualityInspectInfo? QualityInspectInfo { get; set; }
/// <summary>
/// 获取或设置虚拟商品充值账户信息。

View File

@@ -7,21 +7,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public static class Types
{
public class TimeRange
public class TimeRange : ChannelsECOrderListGetRequest.Types.TimeRange
{
/// <summary>
/// 获取或设置开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long StartTimestamp { get; set; }
/// <summary>
/// 获取或设置结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long EndTimestamp { get; set; }
}
public class Pagination
@@ -49,6 +36,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
public Types.TimeRange? CreateTimeRange { get; set; }
/// <summary>
/// 获取或设置更新时间范围信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("update_time_range")]
[System.Text.Json.Serialization.JsonPropertyName("update_time_range")]
public Types.TimeRange? UpdateTimeRange { get; set; }
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>

View File

@@ -11,7 +11,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public static class Types
{
public class TimeRange : ChannelsECOrderDropshipListRequest.Types.TimeRange
public class TimeRange : ChannelsECOrderListGetRequest.Types.TimeRange
{
}
}
@@ -23,6 +23,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
public Types.TimeRange? CreateTimeRange { get; set; }
/// <summary>
/// 获取或设置更新时间范围信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("update_time_range")]
[System.Text.Json.Serialization.JsonPropertyName("update_time_range")]
public Types.TimeRange? UpdateTimeRange { get; set; }
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>

View File

@@ -22,8 +22,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置收礼者 OpenId。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_id")]
[System.Text.Json.Serialization.JsonPropertyName("open_id")]
[Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string OpenId { get; set; } = string.Empty;
/// <summary>

View File

@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
}
public class SKUDeliver : ChannelsECProductGetResponse.Types.Product.Types.SKUDeliver
public class SKUDeliver : ChannelsECProductGetResponse.Types.Product.Types.SKUDeliverInfo
{
}