Browse Source

Payer 修改为 PayerInfo

Roc 5 years ago
parent
commit
c5bbb87b0c

+ 1 - 1
samples/WebApplicationSample/Controllers/WeChatPayV3Controller.cs

@@ -121,7 +121,7 @@ namespace WebApplicationSample.Controllers
                 Description = viewModel.Description,
                 NotifyUrl = viewModel.NotifyUrl,
                 OutTradeNo = viewModel.OutTradeNo,
-                Payer = new Payer { OpenId = viewModel.OpenId }
+                Payer = new PayerInfo { OpenId = viewModel.OpenId }
             };
 
             var request = new WeChatPayTransactionsJsApiRequest();

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/Domain/Payer.cs → src/Essensoft.AspNetCore.Payment.WeChatPay/Domain/PayerInfo.cs

@@ -5,7 +5,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.Domain
     /// <summary>
     /// 支付者信息
     /// </summary>
-    public class Payer : WeChatPayObject
+    public class PayerInfo : WeChatPayObject
     {
         /// <summary>
         /// 用户标识

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/Domain/WeChatPayPartnerTransactionsJsApiModel.cs

@@ -108,7 +108,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.Domain
         /// 支付者
         /// </summary>
         [JsonPropertyName("payer")]
-        public Payer Payer { get; set; }
+        public PayerInfo Payer { get; set; }
 
         /// <summary>
         /// 优惠功能

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/Domain/WeChatPayTransactionsJsApiModel.cs

@@ -85,7 +85,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.Domain
         /// 支付者
         /// </summary>
         [JsonPropertyName("payer")]
-        public Payer Payer { get; set; }
+        public PayerInfo Payer { get; set; }
 
         /// <summary>
         /// 优惠功能

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/Notify/WeChatPayTransactionsNotify.cs

@@ -112,7 +112,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.Notify
         /// 示例值:见请求示例
         /// </summary>
         [JsonPropertyName("combine_payer_info")]
-        public Payer CombinePayerInfo { get; set; }
+        public PayerInfo CombinePayerInfo { get; set; }
 
         /// <summary>
         /// 订单金额

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/Response/WeChatPayTransactionsIdResponse.cs

@@ -110,7 +110,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.Response
         /// 示例值:见请求示例
         /// </summary>
         [JsonPropertyName("combine_payer_info")]
-        public Payer CombinePayerInfo { get; set; }
+        public PayerInfo CombinePayerInfo { get; set; }
 
         /// <summary>
         /// 订单金额

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/Response/WeChatPayTransactionsOutTradeNoResponse.cs

@@ -110,7 +110,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.Response
         /// 示例值:见请求示例
         /// </summary>
         [JsonPropertyName("combine_payer_info")]
-        public Payer CombinePayerInfo { get; set; }
+        public PayerInfo CombinePayerInfo { get; set; }
 
         /// <summary>
         /// 订单金额