From b58acee087de539eaaa0845c6f376a14af987e37 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 1 Jun 2021 19:22:13 +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=E9=80=80=E6=AC=BE=E6=8E=A5=E5=8F=A3=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreateRefundDomesticRefundRequest.cs | 27 +++++++++++++++++++ ...DomesticRefundByOutRefundNumberResponse.cs | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/CreateRefundDomesticRefundRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/CreateRefundDomesticRefundRequest.cs index 7e9bdde6..47b9db1e 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/CreateRefundDomesticRefundRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/CreateRefundDomesticRefundRequest.cs @@ -12,6 +12,26 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models { public class Amount { + public static class Types + { + public class From + { + /// + /// 获取或设置出资金额 (单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置出资账户。 + /// + [Newtonsoft.Json.JsonProperty("account")] + [System.Text.Json.Serialization.JsonPropertyName("account")] + public string Account { get; set; } = string.Empty; + } + } + /// /// 获取或设置原订单金额(单位:分)。 /// @@ -32,6 +52,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models [Newtonsoft.Json.JsonProperty("currency")] [System.Text.Json.Serialization.JsonPropertyName("currency")] public string Currency { get; set; } = "CNY"; + + /// + /// 获取或设置退款出资账户及金额列表。 + /// + [Newtonsoft.Json.JsonProperty("from")] + [System.Text.Json.Serialization.JsonPropertyName("from")] + public IList? FromList { get; set; } } public class GoodsDetail diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/GetRefundDomesticRefundByOutRefundNumberResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/GetRefundDomesticRefundByOutRefundNumberResponse.cs index c1dc443b..96fc67e0 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/GetRefundDomesticRefundByOutRefundNumberResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/Refund/GetRefundDomesticRefundByOutRefundNumberResponse.cs @@ -12,6 +12,26 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models { public class Amount { + public static class Types + { + public class From + { + /// + /// 获取或设置出资金额 (单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置出资账户。 + /// + [Newtonsoft.Json.JsonProperty("account")] + [System.Text.Json.Serialization.JsonPropertyName("account")] + public string Account { get; set; } = default!; + } + } + /// /// 获取或设置原订单金额(单位:分)。 /// @@ -67,6 +87,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models [Newtonsoft.Json.JsonProperty("discount_refund")] [System.Text.Json.Serialization.JsonPropertyName("discount_refund")] public int DiscountRefund { get; set; } + + /// + /// 获取或设置退款出资账户及金额列表。 + /// + [Newtonsoft.Json.JsonProperty("from")] + [System.Text.Json.Serialization.JsonPropertyName("from")] + public Types.From[]? FromList { get; set; } } public class Promotion