|
@@ -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
|