From f20bae018ece0d59bf7b9c8e14815da597751b57 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 24 Sep 2025 16:43:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(tenpayv3):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B9=B3=E5=8F=B0=E6=94=B6=E4=BB=98=E9=80=9A?= =?UTF-8?q?=E5=95=86=E5=AE=B6=E5=85=85=E5=80=BC=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...lyPlatformSolutionEcommerceRechargeRequest.cs | 16 ++++++++++++++++ ...ransferRechargeByOutRechargeNumberResponse.cs | 7 +++++++ ...PlatformSolutionEcommerceRechargeRequest.json | 4 +++- ...nsferRechargeByOutRechargeNumberResponse.json | 3 ++- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.cs index 23287a8e..66f1d3f5 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.cs @@ -1,3 +1,5 @@ +using System.Collections.Generic; + namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models { /// @@ -53,5 +55,19 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models [Newtonsoft.Json.JsonProperty("notify_url")] [System.Text.Json.Serialization.JsonPropertyName("notify_url")] public string? NotifyUrl { get; set; } + + /// + /// 获取或设置可用充值渠道列表。 + /// + [Newtonsoft.Json.JsonProperty("available_recharge_channels")] + [System.Text.Json.Serialization.JsonPropertyName("available_recharge_channels")] + public IList? AvailableRechargeChannelList { get; set; } + + /// + /// 获取或设置充值备注。 + /// + [Newtonsoft.Json.JsonProperty("remark")] + [System.Text.Json.Serialization.JsonPropertyName("remark")] + public string? Remark { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.cs index 49c00edb..c94bc401 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.cs @@ -107,5 +107,12 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models [System.Text.Json.Serialization.JsonPropertyName("close_time")] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] public DateTimeOffset? CloseTime { get; set; } + + /// + /// 获取或设置可用充值渠道列表。 + /// + [Newtonsoft.Json.JsonProperty("available_recharge_channels")] + [System.Text.Json.Serialization.JsonPropertyName("available_recharge_channels")] + public string[]? AvailableRechargeChannelList { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.json index 93aaeece..a2ab6b2c 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/ApplyPlatformSolutionEcommerceRechargeRequest.json @@ -7,5 +7,7 @@ "amount": 500000, "currency": "CNY" }, - "notify_url": "https://www.weixin.qq.com/wxpay/pay.php" + "notify_url": "https://www.weixin.qq.com/wxpay/pay.php", + "available_recharge_channels": [ "BANK_TRANSFER" ], + "remark": "充值备注" } diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.json index 81de300b..b262b3ae 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/EcommerceRecharge/GetPlatformSolutionEcommerceBankTransferRechargeByOutRechargeNumberResponse.json @@ -19,5 +19,6 @@ "recharge_scene": "ECOMMERCE_BANK_TRANSFER", "recharge_state": "SUCCESS", "recharge_state_desc": "超过时间限制,系统自动关闭充值单", - "success_time": "2015-05-20T13:29:35+08:00" + "success_time": "2015-05-20T13:29:35+08:00", + "available_recharge_channels": [ "BANK_TRANSFER" ] }