From 2e5ffa756025d5dd7664c352db22ecb1e7734620 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 21 Apr 2025 20:48:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E4=BF=9D=E9=9A=9C=E6=9F=A5=E8=AF=A2=E6=8A=95=E8=AF=89=E5=8D=95?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ApiMiniShopComplaintOrderDetailResponse.cs | 75 +++++++++++++++---- ...iMiniShopComplaintOrderDetailResponse.json | 11 ++- 2 files changed, 69 insertions(+), 17 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.cs index b653fd26..12a19c10 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [GET] /wxaapi/minishop/complaintOrderDetail 接口的响应。 @@ -52,11 +52,25 @@ public int Type { get; set; } /// - /// 获取或设置订单状态。 + /// 获取或设置申诉状态。 /// - [Newtonsoft.Json.JsonProperty("status")] - [System.Text.Json.Serialization.JsonPropertyName("status")] - public int Status { get; set; } + [Newtonsoft.Json.JsonProperty("appealState")] + [System.Text.Json.Serialization.JsonPropertyName("appealState")] + public int AppealState { get; set; } + + /// + /// 获取或设置用户昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickName")] + [System.Text.Json.Serialization.JsonPropertyName("nickName")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置用户头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("headImgUrl")] + [System.Text.Json.Serialization.JsonPropertyName("headImgUrl")] + public string HeadImageUrl { get; set; } = default!; /// /// 获取或设置用户手机号码。 @@ -73,6 +87,13 @@ [System.Text.Json.Serialization.JsonPropertyName("customerMaterial")] public Types.CustomerMaterial? CustomerMaterial { get; set; } = default!; + /// + /// 获取或设置商户订单号。 + /// + [Newtonsoft.Json.JsonProperty("outTradeNo")] + [System.Text.Json.Serialization.JsonPropertyName("outTradeNo")] + public string OutTradeNumber { get; set; } = default!; + /// /// 获取或设置订单号。 /// @@ -81,11 +102,11 @@ public string OrderId { get; set; } = default!; /// - /// 获取或设置商户订单号。 + /// 获取或设置订单状态。 /// - [Newtonsoft.Json.JsonProperty("outTradeNo")] - [System.Text.Json.Serialization.JsonPropertyName("outTradeNo")] - public string OutTradeNumber { get; set; } = default!; + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } /// /// 获取或设置商品名称。 @@ -102,11 +123,11 @@ public long PayTimestamp { get; set; } /// - /// 获取或设置交易金额(单位:分)。 + /// 获取或设置交易金额字符串。 /// - [Newtonsoft.Json.JsonProperty("totalCost")] - [System.Text.Json.Serialization.JsonPropertyName("totalCost")] - public int TotalCost { get; set; } + [Newtonsoft.Json.JsonProperty("totalCostStr")] + [System.Text.Json.Serialization.JsonPropertyName("totalCostStr")] + public string TotalCostString { get; set; } = default!; /// /// 获取或设置投诉发起时间戳。 @@ -132,6 +153,13 @@ [System.Text.Json.Serialization.JsonPropertyName("itemType")] public int ItemType { get; set; } + /// + /// 获取或设置投诉节点申诉状态。 + /// + [Newtonsoft.Json.JsonProperty("appealItemType")] + [System.Text.Json.Serialization.JsonPropertyName("appealItemType")] + public int? AppealItemType { get; set; } + /// /// 获取或设置时间戳。 /// @@ -139,6 +167,13 @@ [System.Text.Json.Serialization.JsonPropertyName("time")] public long Timestamp { get; set; } + /// + /// 获取或设置用户昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickName")] + [System.Text.Json.Serialization.JsonPropertyName("nickName")] + public string Nickname { get; set; } = default!; + /// /// 获取或设置手机号码。 /// @@ -160,6 +195,13 @@ [Newtonsoft.Json.JsonProperty("mediaIdList")] [System.Text.Json.Serialization.JsonPropertyName("mediaIdList")] public string[]? MediaIdList { get; set; } + + /// + /// 获取或设置判责结果。 + /// + [Newtonsoft.Json.JsonProperty("blameResult")] + [System.Text.Json.Serialization.JsonPropertyName("blameResult")] + public int BlameResult { get; set; } } public class ReturnBill @@ -171,6 +213,13 @@ [System.Text.Json.Serialization.JsonPropertyName("returnId")] public string ReturnId { get; set; } = default!; + /// + /// 获取或设置快递公司。 + /// + [Newtonsoft.Json.JsonProperty("deliveryName")] + [System.Text.Json.Serialization.JsonPropertyName("deliveryName")] + public string DeliveryName { get; set; } = default!; + /// /// 获取或设置运单号。 /// diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.json index 46a7200b..2a3d3fc2 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/MiniShop/WxaApiMiniShopComplaintOrderDetailResponse.json @@ -1,4 +1,4 @@ -{ +{ "errcode": 0, "errmsg": "ok", "complaintOrder": { @@ -10,14 +10,17 @@ "status": 1, "customerMaterial": { "content": "", - "mediaIdList": ["fsadfasdfsaf"] + "mediaIdList": [ "fsadfasdfsaf" ] }, "orderId": "2342", "outTradeNo": "sdfsfd", "productName": "sdf", "payTime": 123123, - "totalCost": 1213, - "expireTime": 1231231 + "totalCostStr": "¥0.01", + "expireTime": 1231231, + "headImgUrl": "http://xxx.xxx/xxx", + "nickName": "xxxxxx", + "appealState": 403 }, "item": [ {