WeChatPayCombineTransactionsNotify.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #if NETCOREAPP3_1
  2. using System.Collections.Generic;
  3. using System.Text.Json.Serialization;
  4. using Essensoft.AspNetCore.Payment.WeChatPay.Domain;
  5. namespace Essensoft.AspNetCore.Payment.WeChatPay.Notify
  6. {
  7. /// <summary>
  8. /// 合单支付-支付通知API (电商平台、服务商、直连商户)
  9. /// 最新更新时间:2019.09.10
  10. /// https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/combine/chapter3_7.shtml
  11. /// </summary>
  12. public class WeChatPayCombineTransactionsNotify : WeChatPayV3Notify
  13. {
  14. /// 合单商户appid
  15. /// 合单发起方的appid。
  16. /// 示例值:wxd678efh567hg6787
  17. /// </summary>
  18. [JsonPropertyName("combine_appid")]
  19. public string CombineAppId { get; set; }
  20. /// <summary>
  21. /// 合单商户号
  22. /// 合单发起方商户号。
  23. /// 示例值:1900000109
  24. /// </summary>
  25. [JsonPropertyName("combine_mchid")]
  26. public string CombineMchId { get; set; }
  27. /// <summary>
  28. /// 合单商户订单号
  29. /// 合单支付总订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一 。
  30. /// 示例值:P20150806125346
  31. /// </summary>
  32. [JsonPropertyName("combine_out_trade_no")]
  33. public string CombineOutTradeNo { get; set; }
  34. /// <summary>
  35. /// 场景信息
  36. /// 支付场景描述
  37. /// </summary>
  38. [JsonPropertyName("scene_info")]
  39. public CombineSceneInfoResponse SceneInfo { get; set; }
  40. /// <summary>
  41. /// 子单信息
  42. /// 最多支持子单条数:50
  43. /// </summary>
  44. [JsonPropertyName("sub_orders")]
  45. public List<CombineSubOrderInfoResponse> SubOrders { get; set; }
  46. /// <summary>
  47. /// 支付者
  48. /// 支付者信息
  49. /// </summary>
  50. [JsonPropertyName("combine_payer_info")]
  51. public PayerInfo CombinePayerInfo { get; set; }
  52. }
  53. }
  54. #endif