浏览代码

WeChatPayProfitSharingNotify 拆分出 WeChatPayPartnerProfitSharingNotify

Roc 5 年之前
父节点
当前提交
addbc96b11

+ 65 - 0
src/Essensoft.AspNetCore.Payment.WeChatPay/Notify/WeChatPayPartnerProfitSharingNotify.cs

@@ -0,0 +1,65 @@
+#if NETCOREAPP3_1
+
+using System.Text.Json.Serialization;
+using Essensoft.AspNetCore.Payment.WeChatPay.Domain;
+
+namespace Essensoft.AspNetCore.Payment.WeChatPay.Notify
+{
+    /// <summary>
+    /// 分账动账通知 (服务商)
+    /// https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_9&index=9
+    /// </summary>
+    public class WeChatPayPartnerProfitSharingNotify : WeChatPayV3Notify
+    {
+        /// <summary>
+        /// 服务商商户号
+        /// 服务商模式分账发起商户
+        /// </summary>
+        [JsonPropertyName("sp_mchid")]
+        public string SpMchId { get; set; }
+
+        /// <summary>
+        /// 子商户号
+        /// 服务商模式分账出资商户
+        /// </summary>
+        [JsonPropertyName("sub_mchid")]
+        public string SubMchid { get; set; }
+
+        /// <summary>
+        /// 微信订单号
+        /// 微信支付订单号
+        /// </summary>
+        [JsonPropertyName("transaction_id")]
+        public string TransactionId { get; set; }
+
+        /// <summary>
+        /// 微信分账/回退单号
+        /// 微信分账/回退单号
+        /// </summary>
+        [JsonPropertyName("order_id")]
+        public string OrderId { get; set; }
+
+        /// <summary>
+        /// 商户分账/回退单号
+        /// 分账方系统内部的分账/回退单号
+        /// </summary>
+        [JsonPropertyName("out_order_no")]
+        public string OutOrderNo { get; set; }
+
+        /// <summary>
+        /// 分账接收方
+        /// 分账接收方对象
+        /// </summary>
+        [JsonPropertyName("receiver")]
+        public Receiver Receiver { get; set; }
+
+        /// <summary>
+        /// 成功时间
+        /// 成功时间,Rfc3339标准
+        /// </summary>
+        [JsonPropertyName("success_time")]
+        public string SuccessTime { get; set; }
+    }
+}
+
+#endif

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

@@ -6,26 +6,11 @@ using Essensoft.AspNetCore.Payment.WeChatPay.Domain;
 namespace Essensoft.AspNetCore.Payment.WeChatPay.Notify
 namespace Essensoft.AspNetCore.Payment.WeChatPay.Notify
 {
 {
     /// <summary>
     /// <summary>
-    /// 分账动账通知 (普通商户 / 服务商)
-    /// https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_9&index=9
+    /// 分账动账通知 (普通商户)
     /// https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=27_9&index=9
     /// https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=27_9&index=9
     /// </summary>
     /// </summary>
     public class WeChatPayProfitSharingNotify : WeChatPayV3Notify
     public class WeChatPayProfitSharingNotify : WeChatPayV3Notify
     {
     {
-        /// <summary>
-        /// 服务商商户号
-        /// 服务商模式分账发起商户
-        /// </summary>
-        [JsonPropertyName("sp_mchid")]
-        public string SpMchId { get; set; }
-
-        /// <summary>
-        /// 子商户号
-        /// 服务商模式分账出资商户
-        /// </summary>
-        [JsonPropertyName("sub_mchid")]
-        public string SubMchid { get; set; }
-
         /// <summary>
         /// <summary>
         /// 直连商户号
         /// 直连商户号
         /// 直连模式分账发起和出资商户
         /// 直连模式分账发起和出资商户