diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderAddRequest.cs index 78d8e458..9eff8aa7 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderAddRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models @@ -270,5 +270,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("aftersale_duration")] [System.Text.Json.Serialization.JsonPropertyName("aftersale_duration")] public int? AftersaleDuration { get; set; } + + /// + /// 获取或设置跟踪 ID。 + /// + [Newtonsoft.Json.JsonProperty("trace_id")] + [System.Text.Json.Serialization.JsonPropertyName("trace_id")] + public string? TraceId { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderAddRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderAddRequest.json index 8721bd4f..4f33d4cd 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderAddRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderAddRequest.json @@ -1,4 +1,4 @@ -{ +{ "create_time": "2020-03-25 13:05:25", "out_order_id": "xxxxx", "openid": "oTVP50O53a7jgmawAmxKukNlq3XI", @@ -40,6 +40,10 @@ "city": "城市,选填", "town": "乡镇,选填" }, + "fund_type": 1, + "expire_time": 1642076428, + "trace_id": "1_lkbvxXM-MpYZMC5hoIa8c1rqdFyUjMLoKNYsaKBFRoE", + "aftersale_duration": 7, "default_receiving_address": { "city": "广州市", "country": "中国", @@ -48,7 +52,5 @@ "receiver_name": "我爱我家", "tel_number": "18712345678", "town": "温柔乡" - }, - "fund_type": 1, - "expire_time": 1642076428 + } }