diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/ECAftersale/ShopECAftersaleGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/ECAftersale/ShopECAftersaleGetResponse.cs
index e1145a5a..3a6656cd 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/ECAftersale/ShopECAftersaleGetResponse.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/ECAftersale/ShopECAftersaleGetResponse.cs
@@ -13,19 +13,33 @@
{
public class Product
{
+ ///
+ /// 获取或设置商品 ID。
+ ///
+ [Newtonsoft.Json.JsonProperty("product_id")]
+ [System.Text.Json.Serialization.JsonPropertyName("product_id")]
+ public long ProductId { get; set; }
+
///
/// 获取或设置商家自定义商品 ID。
///
[Newtonsoft.Json.JsonProperty("out_product_id")]
[System.Text.Json.Serialization.JsonPropertyName("out_product_id")]
- public string? OutProductId { get; set; }
+ public string OutProductId { get; set; } = default!;
+
+ ///
+ /// 获取或设置 SKU ID。
+ ///
+ [Newtonsoft.Json.JsonProperty("sku_id")]
+ [System.Text.Json.Serialization.JsonPropertyName("sku_id")]
+ public long SKUId { get; set; }
///
/// 获取或设置商家自定义 SKU ID。
///
[Newtonsoft.Json.JsonProperty("out_sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("out_sku_id")]
- public string? OutSKUId { get; set; }
+ public string OutSKUId { get; set; } = default!;
///
/// 获取或设置参与售后的商品数量。
@@ -66,6 +80,40 @@
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long ReturnTimestamp { get; set; }
}
+
+ public class Media
+ {
+ ///
+ /// 获取或设置类型。
+ ///
+ [Newtonsoft.Json.JsonProperty("type")]
+ [System.Text.Json.Serialization.JsonPropertyName("type")]
+ public int Type { get; set; }
+
+ ///
+ /// 获取或设置 URL。
+ ///
+ [Newtonsoft.Json.JsonProperty("url")]
+ [System.Text.Json.Serialization.JsonPropertyName("url")]
+ public string Url { get; set; } = default!;
+
+ ///
+ /// 获取或设置缩略图 URL。
+ ///
+ [Newtonsoft.Json.JsonProperty("thumb_url")]
+ [System.Text.Json.Serialization.JsonPropertyName("thumb_url")]
+ public string? ThumbnailUrl { get; set; }
+ }
+
+ public class Refund
+ {
+ ///
+ /// 获取或设置退款单号。
+ ///
+ [Newtonsoft.Json.JsonProperty("refund_id")]
+ [System.Text.Json.Serialization.JsonPropertyName("refund_id")]
+ public string RefundId { get; set; } = default!;
+ }
}
///
@@ -110,6 +158,13 @@
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
+ ///
+ /// 获取或设置用户 OpenId。
+ ///
+ [Newtonsoft.Json.JsonProperty("openid")]
+ [System.Text.Json.Serialization.JsonPropertyName("openid")]
+ public string OpenId { get; set; } = default!;
+
///
/// 获取或设置退款金额(单位:分)。
///
@@ -131,6 +186,13 @@
[System.Text.Json.Serialization.JsonPropertyName("refund_reason")]
public string RefundReason { get; set; } = default!;
+ ///
+ /// 获取或设置退货单号。
+ ///
+ [Newtonsoft.Json.JsonProperty("return_id")]
+ [System.Text.Json.Serialization.JsonPropertyName("return_id")]
+ public string? ReturnId { get; set; }
+
///
/// 获取或设置创建时间。
///
@@ -160,6 +222,20 @@
[Newtonsoft.Json.JsonProperty("return_info")]
[System.Text.Json.Serialization.JsonPropertyName("return_info")]
public Types.Return? Return { get; set; }
+
+ ///
+ /// 获取或设置退款信息。
+ ///
+ [Newtonsoft.Json.JsonProperty("refund_pay_detail")]
+ [System.Text.Json.Serialization.JsonPropertyName("refund_pay_detail")]
+ public Types.Refund? Refund { get; set; }
+
+ ///
+ /// 获取或设置附件列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("media_list")]
+ [System.Text.Json.Serialization.JsonPropertyName("media_list")]
+ public Types.Media[]? MediaList { get; set; }
}
}
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/ECAftersale/ShopECAftersaleGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/ECAftersale/ShopECAftersaleGetResponse.json
index a27960f1..34d31777 100644
--- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/ECAftersale/ShopECAftersaleGetResponse.json
+++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/ECAftersale/ShopECAftersaleGetResponse.json
@@ -1,28 +1,38 @@
-{
- "errcode": 0,
- "errmsg": "ok",
- "after_sales_order": {
- "out_aftersale_id": "aso_123124341",
- "aftersale_id": 123,
- "out_order_id": "order_312312",
- "order_id": 456,
- "product_info": {
- "out_product_id": "123",
- "out_sku_id": "12345",
- "product_cnt": 1
- },
- "type": 1,
- "return_info": {
- "order_return_time": "1628480465",
- "delivery_id": "sf",
- "waybill_id": "sf12314789",
- "delivery_name": "顺丰"
- },
- "orderamt": 100,
- "refund_reason_type": 1,
- "refund_reason": "买错码数",
- "status": 1,
- "create_time": "1628480465",
- "update_time": "1628480465"
- }
-}
\ No newline at end of file
+{
+ "errcode": 0,
+ "errmsg": "ok",
+ "after_sales_order": {
+ "out_aftersale_id": "",
+ "aftersale_id": 4000000001596225,
+ "out_order_id": "220425-16372977194524",
+ "order_id": 3302853640130003968,
+ "product_info": {
+ "out_product_id": "410",
+ "product_id": 0,
+ "out_sku_id": "730",
+ "sku_id": 0,
+ "product_cnt": 1
+ },
+ "type": 1,
+ "return_info": {
+ "order_return_time": 0,
+ "waybill_id": ""
+ },
+ "orderamt": 2,
+ "refund_reason_type": 3,
+ "refund_reason": "不想要了",
+ "media_list": [{
+ "type": 1,
+ "url": "****",
+ "thumb_url": "****"
+ }],
+ "status": 2,
+ "create_time": "1650876295006",
+ "update_time": "1650876295006",
+ "openid": "oOYv50JOfwNY56q8hTNSLSFvYUDg",
+ "refund_pay_detail": {
+ "refund_id": ""
+ },
+ "return_id": ""
+ }
+}