Browse Source

[WeChatPay.V3] 新增分账通知注释

Roc 4 years ago
parent
commit
9002146b06

+ 5 - 10
src/Essensoft.AspNetCore.Payment.WeChatPay/V3/Domain/Receiver.cs

@@ -11,7 +11,8 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Domain
         /// 分账接收方类型
         /// </summary>
         /// <remarks>
-        /// MERCHANT_ID:商户ID
+        /// MERCHANT_ID:商户号(mch_id或者sub_mch_id)
+        /// <para>示例值: MERCHANT_ID</para>
         /// </remarks>
         [JsonPropertyName("type")]
         public int Type { get; set; }
@@ -21,6 +22,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Domain
         /// </summary>
         /// <remarks>
         /// 申请本功能商户号
+        /// <para>示例值: 1900000100</para>
         /// </remarks>
         [JsonPropertyName("account")]
         public string Account { get; set; }
@@ -30,6 +32,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Domain
         /// </summary>
         /// <remarks>
         /// 分账动账金额,单位为分,只能为整数
+        /// <para>示例值: 888</para>
         /// </remarks>
         [JsonPropertyName("amount")]
         public int Amount { get; set; }
@@ -39,17 +42,9 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Domain
         /// </summary>
         /// <remarks>
         /// 分账/回退描述
+        /// <para>示例值: 运费/交易分账/及时奖励</para>
         /// </remarks>
         [JsonPropertyName("description")]
         public string Description { get; set; }
-
-        /// <summary>
-        /// 成功时间
-        /// </summary>
-        /// <remarks>
-        /// 成功时间,Rfc3339标准
-        /// </remarks>
-        [JsonPropertyName("success_time")]
-        public string SuccessTime { get; set; }
     }
 }

+ 7 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/V3/Notify/WeChatPayPartnerProfitSharingNotify.cs

@@ -5,7 +5,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
 {
     /// <summary>
     /// 服务商分账 - 分账动账通知
-    /// <para><a href="https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_9">服务商分账 - 分账动账通知</a></para>
+    /// <para>示例值: <a href="https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_9">服务商分账 - 分账动账通知</a></para>
     /// </summary>
     public class WeChatPayPartnerProfitSharingNotify : WeChatPayNotify
     {
@@ -14,6 +14,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 服务商模式分账发起商户
+        /// <para>示例值: 1900000100</para>
         /// </remarks>
         [JsonPropertyName("sp_mchid")]
         public string SpMchId { get; set; }
@@ -23,6 +24,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 服务商模式分账出资商户
+        /// <para>示例值: 1900000100</para>
         /// </remarks>
         [JsonPropertyName("sub_mchid")]
         public string SubMchid { get; set; }
@@ -32,6 +34,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 微信支付订单号
+        /// <para>示例值: 4200000000000000000000000000</para>
         /// </remarks>
         [JsonPropertyName("transaction_id")]
         public string TransactionId { get; set; }
@@ -41,6 +44,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 微信分账/回退单号
+        /// <para>示例值: 1217752501201407033233368018</para>
         /// </remarks>
         [JsonPropertyName("order_id")]
         public string OrderId { get; set; }
@@ -50,6 +54,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 分账方系统内部的分账/回退单号
+        /// <para>示例值: P20150806125346</para>
         /// </remarks>
         [JsonPropertyName("out_order_no")]
         public string OutOrderNo { get; set; }
@@ -68,6 +73,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 成功时间,Rfc3339标准
+        /// <para>示例值: 2018-06-08T10:34:56+08:00</para>
         /// </remarks>
         [JsonPropertyName("success_time")]
         public string SuccessTime { get; set; }

+ 5 - 0
src/Essensoft.AspNetCore.Payment.WeChatPay/V3/Notify/WeChatPayProfitSharingNotify.cs

@@ -14,6 +14,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 直连模式分账发起和出资商户
+        /// <para>示例值: 1900000100</para>
         /// </remarks>
         [JsonPropertyName("mchid")]
         public string MchId { get; set; }
@@ -23,6 +24,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 微信支付订单号
+        /// <para>示例值: 4200000000000000000000000000</para>
         /// </remarks>
         [JsonPropertyName("transaction_id")]
         public string TransactionId { get; set; }
@@ -32,6 +34,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 微信分账/回退单号
+        /// <para>示例值: 1217752501201407033233368018</para>
         /// </remarks>
         [JsonPropertyName("order_id")]
         public string OrderId { get; set; }
@@ -41,6 +44,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 分账方系统内部的分账/回退单号
+        /// <para>示例值: P20150806125346</para>
         /// </remarks>
         [JsonPropertyName("out_order_no")]
         public string OutOrderNo { get; set; }
@@ -59,6 +63,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Notify
         /// </summary>
         /// <remarks>
         /// 成功时间,Rfc3339标准
+        /// <para>示例值: 2018-06-08T10:34:56+08:00</para>
         /// </remarks>
         [JsonPropertyName("success_time")]
         public string SuccessTime { get; set; }