Browse Source

同步 Notify

Roc 6 years ago
parent
commit
37d0346205

+ 1 - 1
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayFundAuthOrderAppFreezeNotify.cs

@@ -6,7 +6,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
 {
     /// <summary>
     /// 线上资金授权冻结
-    /// 更新时间:2019-09-17
+    /// 更新时间:2019-12-05
     /// https://docs.open.alipay.com/20180417160701241302/vo4kv7/
     /// 参考其他通知额外补充了 公共参数
     /// </summary>

+ 1 - 1
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradePagePayNotify.cs

@@ -6,7 +6,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
 {
     /// <summary>
     /// 电脑网站支付结果异步通知
-    /// 更新时间:2019-10-09
+    /// 更新时间:2019-11-08
     /// https://docs.open.alipay.com/270/105902/
     /// </summary>
     public class AlipayTradePagePayNotify : AlipayNotify

+ 1 - 1
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradePagePayReturn.cs

@@ -6,7 +6,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
 {
     /// <summary>
     /// 电脑网站支付页面回跳参数
-    /// 更新时间:2019-10-10
+    /// 更新时间:2019-11-08
     /// https://docs.open.alipay.com/203/107090/
     /// 暂缺根据官方文档(https://opensupport.alipay.com/support/knowledge/20070/201602425007?ant_source=zsearch)
     /// 参考:手机网站支付同步通知参数说明

+ 49 - 55
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradePayNotify.cs

@@ -12,24 +12,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
     /// </summary>
     public class AlipayTradePayNotify : AlipayNotify
     {
-        /// <summary>
-        /// 通知时间
-        /// </summary>
-        [JsonPropertyName("notify_time")]
-        public string NotifyTime { get; set; }
-
-        /// <summary>
-        /// 通知类型
-        /// </summary>
-        [JsonPropertyName("notify_type")]
-        public string NotifyType { get; set; }
-
-        /// <summary>
-        /// 通知校验ID
-        /// </summary>
-        [JsonPropertyName("notify_id")]
-        public string NotifyId { get; set; }
-
         /// <summary>
         /// 支付宝分配给开发者的应用Id
         /// </summary>
@@ -42,18 +24,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
         [JsonPropertyName("auth_app_id")]
         public string AuthAppId { get; set; }
 
-        /// <summary>
-        /// 签名类型
-        /// </summary>
-        [JsonPropertyName("sign_type")]
-        public string SignType { get; set; }
-
-        /// <summary>
-        /// 签名
-        /// </summary>
-        [JsonPropertyName("sign")]
-        public string Sign { get; set; }
-
         /// <summary>
         /// 支付宝交易号
         /// </summary>
@@ -72,12 +42,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
         [JsonPropertyName("out_biz_no")]
         public string OutBizNo { get; set; }
 
-        /// <summary>
-        /// 买家支付宝用户号
-        /// </summary>
-        [JsonPropertyName("buyer_id")]
-        public string BuyerId { get; set; }
-
         /// <summary>
         /// 买家支付宝账号
         /// </summary>
@@ -97,47 +61,53 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
         public string SellerEmail { get; set; }
 
         /// <summary>
-        /// 交易状态
-        /// </summary>
-        [JsonPropertyName("trade_status")]
-        public string TradeStatus { get; set; }
-
-        /// <summary>
-        /// 订单金额
+        /// 交易金额
         /// </summary>
         [JsonPropertyName("total_amount")]
         public string TotalAmount { get; set; }
 
         /// <summary>
-        /// 实收金额
+        /// 买家的支付宝用户 Uid
         /// </summary>
-        [JsonPropertyName("receipt_amount")]
-        public string ReceiptAmount { get; set; }
+        [JsonPropertyName("buyer_id")]
+        public string BuyerId { get; set; }
 
         /// <summary>
-        /// 开票金额
+        /// 交易状态
         /// </summary>
-        [JsonPropertyName("invoice_amount")]
-        public string InvoiceAmount { get; set; }
+        [JsonPropertyName("trade_status")]
+        public string TradeStatus { get; set; }
 
         /// <summary>
-        /// 付款金额
+        /// 实收金额
         /// </summary>
-        [JsonPropertyName("buyer_pay_amount")]
-        public string BuyerPayAmount { get; set; }
+        [JsonPropertyName("receipt_amount")]
+        public string ReceiptAmount { get; set; }
 
         /// <summary>
-        /// 集分宝金额
+        /// 集分宝付款金额
         /// </summary>
         [JsonPropertyName("point_amount")]
         public string PointAmount { get; set; }
 
         /// <summary>
-        /// 总退款金额
+        /// 可给用户开具发票的金额
+        /// </summary>
+        [JsonPropertyName("invoice_amount")]
+        public string InvoiceAmount { get; set; }
+
+        /// <summary>
+        /// 退款金额
         /// </summary>
         [JsonPropertyName("refund_fee")]
         public string RefundFee { get; set; }
 
+        /// <summary>
+        /// 用户支付金额
+        /// </summary>
+        [JsonPropertyName("buyer_pay_amount")]
+        public string BuyerPayAmount { get; set; }
+
         /// <summary>
         /// 订单标题
         /// </summary>
@@ -145,7 +115,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
         public string Subject { get; set; }
 
         /// <summary>
-        /// 商品描述
+        /// 订单描述
         /// </summary>
         [JsonPropertyName("body")]
         public string Body { get; set; }
@@ -197,6 +167,30 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
         /// </summary>
         [JsonPropertyName("auth_trade_pay_mode")]
         public string AuthTradePayMode { get; set; }
+
+        /// <summary>
+        /// 通知校验ID
+        /// </summary>
+        [JsonPropertyName("notify_id")]
+        public string NotifyId { get; set; }
+
+        /// <summary>
+        /// 通知时间
+        /// </summary>
+        [JsonPropertyName("notify_time")]
+        public string NotifyTime { get; set; }
+
+        /// <summary>
+        /// 签名类型
+        /// </summary>
+        [JsonPropertyName("sign_type")]
+        public string SignType { get; set; }
+
+        /// <summary>
+        /// 签名
+        /// </summary>
+        [JsonPropertyName("sign")]
+        public string Sign { get; set; }
     }
 }
 

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradePrecreateNotify.cs

@@ -6,13 +6,11 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
 {
     /// <summary>
     /// 当面付异步通知-仅用于扫码支付
-    /// 更新时间:2019-08-07
+    /// 更新时间:2019-11-19
     /// https://docs.open.alipay.com/194/103296/
     /// </summary>
     public class AlipayTradePrecreateNotify : AlipayNotify
     {
-        // 公共参数
-
         /// <summary>
         /// 通知时间
         /// </summary>

+ 1 - 1
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradeWapPayNotify.cs

@@ -6,7 +6,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
 {
     /// <summary>
     /// 手机网站支付结果异步通知
-    /// 更新时间:2018-01-19
+    /// 更新时间:2019-10-29
     /// https://docs.open.alipay.com/203/105286/
     /// </summary>
     public class AlipayTradeWapPayNotify : AlipayNotify

+ 1 - 1
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradeWapPayReturn.cs

@@ -6,7 +6,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Notify
 {
     /// <summary>
     /// 手机网站支付页面回跳参数
-    /// 更新时间:2019-10-10
+    /// 更新时间:2019-11-08
     /// https://docs.open.alipay.com/203/107090/
     /// </summary>
     public class AlipayTradeWapPayReturn : AlipayNotify