feat(wxapi): 随官方更新小程序交易保障查询投诉单详情接口模型

This commit is contained in:
Fu Diwei
2025-04-21 20:48:31 +08:00
parent bd6dee3468
commit 2e5ffa7560
2 changed files with 69 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{ {
/// <summary> /// <summary>
/// <para>表示 [GET] /wxaapi/minishop/complaintOrderDetail 接口的响应。</para> /// <para>表示 [GET] /wxaapi/minishop/complaintOrderDetail 接口的响应。</para>
@@ -52,11 +52,25 @@
public int Type { get; set; } public int Type { get; set; }
/// <summary> /// <summary>
/// 获取或设置订单状态。 /// 获取或设置申诉状态。
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("status")] [Newtonsoft.Json.JsonProperty("appealState")]
[System.Text.Json.Serialization.JsonPropertyName("status")] [System.Text.Json.Serialization.JsonPropertyName("appealState")]
public int Status { get; set; } public int AppealState { get; set; }
/// <summary>
/// 获取或设置用户昵称。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickName")]
[System.Text.Json.Serialization.JsonPropertyName("nickName")]
public string Nickname { get; set; } = default!;
/// <summary>
/// 获取或设置用户头像 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("headImgUrl")]
[System.Text.Json.Serialization.JsonPropertyName("headImgUrl")]
public string HeadImageUrl { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置用户手机号码。 /// 获取或设置用户手机号码。
@@ -73,6 +87,13 @@
[System.Text.Json.Serialization.JsonPropertyName("customerMaterial")] [System.Text.Json.Serialization.JsonPropertyName("customerMaterial")]
public Types.CustomerMaterial? CustomerMaterial { get; set; } = default!; public Types.CustomerMaterial? CustomerMaterial { get; set; } = default!;
/// <summary>
/// 获取或设置商户订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("outTradeNo")]
[System.Text.Json.Serialization.JsonPropertyName("outTradeNo")]
public string OutTradeNumber { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置订单号。 /// 获取或设置订单号。
/// </summary> /// </summary>
@@ -81,11 +102,11 @@
public string OrderId { get; set; } = default!; public string OrderId { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置商户订单号 /// 获取或设置订单状态
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("outTradeNo")] [Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("outTradeNo")] [System.Text.Json.Serialization.JsonPropertyName("status")]
public string OutTradeNumber { get; set; } = default!; public int Status { get; set; }
/// <summary> /// <summary>
/// 获取或设置商品名称。 /// 获取或设置商品名称。
@@ -102,11 +123,11 @@
public long PayTimestamp { get; set; } public long PayTimestamp { get; set; }
/// <summary> /// <summary>
/// 获取或设置交易金额(单位:分) /// 获取或设置交易金额字符串
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("totalCost")] [Newtonsoft.Json.JsonProperty("totalCostStr")]
[System.Text.Json.Serialization.JsonPropertyName("totalCost")] [System.Text.Json.Serialization.JsonPropertyName("totalCostStr")]
public int TotalCost { get; set; } public string TotalCostString { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置投诉发起时间戳。 /// 获取或设置投诉发起时间戳。
@@ -132,6 +153,13 @@
[System.Text.Json.Serialization.JsonPropertyName("itemType")] [System.Text.Json.Serialization.JsonPropertyName("itemType")]
public int ItemType { get; set; } public int ItemType { get; set; }
/// <summary>
/// 获取或设置投诉节点申诉状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("appealItemType")]
[System.Text.Json.Serialization.JsonPropertyName("appealItemType")]
public int? AppealItemType { get; set; }
/// <summary> /// <summary>
/// 获取或设置时间戳。 /// 获取或设置时间戳。
/// </summary> /// </summary>
@@ -139,6 +167,13 @@
[System.Text.Json.Serialization.JsonPropertyName("time")] [System.Text.Json.Serialization.JsonPropertyName("time")]
public long Timestamp { get; set; } public long Timestamp { get; set; }
/// <summary>
/// 获取或设置用户昵称。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickName")]
[System.Text.Json.Serialization.JsonPropertyName("nickName")]
public string Nickname { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置手机号码。 /// 获取或设置手机号码。
/// </summary> /// </summary>
@@ -160,6 +195,13 @@
[Newtonsoft.Json.JsonProperty("mediaIdList")] [Newtonsoft.Json.JsonProperty("mediaIdList")]
[System.Text.Json.Serialization.JsonPropertyName("mediaIdList")] [System.Text.Json.Serialization.JsonPropertyName("mediaIdList")]
public string[]? MediaIdList { get; set; } public string[]? MediaIdList { get; set; }
/// <summary>
/// 获取或设置判责结果。
/// </summary>
[Newtonsoft.Json.JsonProperty("blameResult")]
[System.Text.Json.Serialization.JsonPropertyName("blameResult")]
public int BlameResult { get; set; }
} }
public class ReturnBill public class ReturnBill
@@ -171,6 +213,13 @@
[System.Text.Json.Serialization.JsonPropertyName("returnId")] [System.Text.Json.Serialization.JsonPropertyName("returnId")]
public string ReturnId { get; set; } = default!; public string ReturnId { get; set; } = default!;
/// <summary>
/// 获取或设置快递公司。
/// </summary>
[Newtonsoft.Json.JsonProperty("deliveryName")]
[System.Text.Json.Serialization.JsonPropertyName("deliveryName")]
public string DeliveryName { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置运单号。 /// 获取或设置运单号。
/// </summary> /// </summary>

View File

@@ -1,4 +1,4 @@
{ {
"errcode": 0, "errcode": 0,
"errmsg": "ok", "errmsg": "ok",
"complaintOrder": { "complaintOrder": {
@@ -16,8 +16,11 @@
"outTradeNo": "sdfsfd", "outTradeNo": "sdfsfd",
"productName": "sdf", "productName": "sdf",
"payTime": 123123, "payTime": 123123,
"totalCost": 1213, "totalCostStr": "¥0.01",
"expireTime": 1231231 "expireTime": 1231231,
"headImgUrl": "http://xxx.xxx/xxx",
"nickName": "xxxxxx",
"appealState": 403
}, },
"item": [ "item": [
{ {