SenparcWeixinSettingItem.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*----------------------------------------------------------------
  2. Copyright (C) 2019 Senparc
  3. 文件名:SenparcWeixinSettingItem.cs
  4. 文件功能描述:Senparc.Weixin SDK 中单个公众号配置信息
  5. 创建标识:Senparc - 20180707
  6. 修改标识:Senparc - 20170802
  7. 修改描述:v15.2.0 SenparcWeixinSetting 添加 TenPayV3_WxOpenTenpayNotify 属性,用于设置小程序支付回调地址
  8. ----------------------------------------------------------------*/
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Threading.Tasks;
  14. namespace Senparc.Weixin.Entities
  15. {
  16. /// <summary>
  17. /// Senparc.Weixin SDK 中单个公众号配置信息
  18. /// </summary>
  19. public class SenparcWeixinSettingItem : ISenparcWeixinSettingForMP, ISenparcWeixinSettingForWxOpen, ISenparcWeixinSettingForWork, ISenparcWeixinSettingForOldTenpay,
  20. ISenparcWeixinSettingForTenpayV3, ISenparcWeixinSettingForOpen, ISenparcWeixinSettingForExtension
  21. {
  22. /// <summary>
  23. /// 唯一标识
  24. /// </summary>
  25. public virtual string ItemKey { get; set; }
  26. #region 公众号
  27. /// <summary>
  28. /// 公众号Token
  29. /// </summary>
  30. public virtual string Token { get; set; }
  31. /// <summary>
  32. /// 公众号消息加密Key
  33. /// </summary>
  34. public virtual string EncodingAESKey { get; set; }
  35. /// <summary>
  36. /// 公众号AppId
  37. /// </summary>
  38. public virtual string WeixinAppId { get; set; }
  39. /// <summary>
  40. /// 公众号AppSecret
  41. /// </summary>
  42. public virtual string WeixinAppSecret { get; set; }
  43. #endregion
  44. #region 小程序
  45. /// <summary>
  46. /// 小程序AppId
  47. /// </summary>
  48. public virtual string WxOpenAppId { get; set; }
  49. /// <summary>
  50. /// 小程序AppSecret
  51. /// </summary>
  52. public virtual string WxOpenAppSecret { get; set; }
  53. /// <summary>
  54. /// 小程序 Token
  55. /// </summary>
  56. public virtual string WxOpenToken { get; set; }
  57. /// <summary>
  58. /// 小程序EncodingAESKey
  59. /// </summary>
  60. public virtual string WxOpenEncodingAESKey { get; set; }
  61. #endregion
  62. #region 企业微信
  63. /// <summary>
  64. /// 企业微信CorpId
  65. /// </summary>
  66. public virtual string WeixinCorpId { get; set; }
  67. /// <summary>
  68. /// 企业微信CorpSecret
  69. /// </summary>
  70. public virtual string WeixinCorpSecret { get; set; }
  71. #endregion
  72. #region 微信支付
  73. #region 微信支付V2(旧版)
  74. /// <summary>
  75. /// WeixinPay_PartnerId(微信支付V2)
  76. /// </summary>
  77. public virtual string WeixinPay_PartnerId { get; set; }
  78. /// <summary>
  79. /// WeixinPay_Key(微信支付V2)
  80. /// </summary>
  81. public virtual string WeixinPay_Key { get; set; }
  82. /// <summary>
  83. /// WeixinPay_AppId(微信支付V2)
  84. /// </summary>
  85. public virtual string WeixinPay_AppId { get; set; }
  86. /// <summary>
  87. /// WeixinPay_AppKey(微信支付V2)
  88. /// </summary>
  89. public virtual string WeixinPay_AppKey { get; set; }
  90. /// <summary>
  91. /// WeixinPay_TenpayNotify(微信支付V2)
  92. /// </summary>
  93. public virtual string WeixinPay_TenpayNotify { get; set; }
  94. #endregion
  95. #region 微信支付V3(新版)
  96. /// <summary>
  97. /// MchId(商户ID)
  98. /// </summary>
  99. public virtual string TenPayV3_MchId { get; set; }
  100. /// <summary>
  101. /// 子商户 MchId,没有可留空
  102. /// </summary>
  103. public string TenPayV3_SubMchId { get; set; }
  104. /// <summary>
  105. /// MchKey
  106. /// </summary>
  107. public virtual string TenPayV3_Key { get; set; }
  108. /// <summary>
  109. /// 微信支付AppId
  110. /// </summary>
  111. public virtual string TenPayV3_AppId { get; set; }
  112. /// <summary>
  113. /// 微信支付AppKey
  114. /// </summary>
  115. public virtual string TenPayV3_AppSecret { get; set; }
  116. /// <summary>
  117. /// 微信支付TenpayNotify
  118. /// </summary>
  119. public virtual string TenPayV3_TenpayNotify { get; set; }
  120. /// <summary>
  121. /// 小程序微信支付WxOpenTenpayNotify
  122. /// </summary>
  123. public virtual string TenPayV3_WxOpenTenpayNotify { get; set; }
  124. /// <summary>
  125. /// 特约商户微信支付 子商户ID
  126. /// </summary>
  127. public virtual string TenPayV3_Sub_MchId { get; set; }
  128. /// <summary>
  129. /// 特约商户微信支付 子商户AppID
  130. /// </summary>
  131. public virtual string TenPayV3_Sub_AppId { get; set; }
  132. #endregion
  133. #endregion
  134. #region 开放平台
  135. /// <summary>
  136. /// Component_Appid
  137. /// </summary>
  138. public virtual string Component_Appid { get; set; }
  139. /// <summary>
  140. /// Component_Secret
  141. /// </summary>
  142. public virtual string Component_Secret { get; set; }
  143. /// <summary>
  144. /// 全局统一的 Component_Token(非必须)
  145. /// </summary>
  146. public virtual string Component_Token { get; set; }
  147. /// <summary>
  148. /// 全局统一的 Component_EncodingAESKey(非必须)
  149. /// </summary>
  150. public virtual string Component_EncodingAESKey { get; set; }
  151. #endregion
  152. #region 扩展
  153. public virtual string AgentUrl { get; set; }
  154. public virtual string AgentToken { get; set; }
  155. public virtual string SenparcWechatAgentKey { get; set; }
  156. #endregion
  157. }
  158. }