From a0580dbc12804c7df8a7e0e6b87e4771d6323a1a Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 1 Jul 2022 20:14:24 +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=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E4=BA=A4=E6=98=93=E7=BB=84=E4=BB=B6=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=9A=84=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 --- .../Models/Shop/Order/ShopOrderAddRequest.cs | 9 ++++++++- .../ModelSamples/Shop/Order/ShopOrderAddRequest.json | 10 ++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) 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 + } }