CardUpdateData.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. #region Apache License Version 2.0
  2. /*----------------------------------------------------------------
  3. Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  9. either express or implied. See the License for the specific language governing permissions
  10. and limitations under the License.
  11. Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
  12. ----------------------------------------------------------------*/
  13. #endregion Apache License Version 2.0
  14. /*----------------------------------------------------------------
  15. Copyright (C) 2019 Senparc
  16. 文件名:CardUpdateData.cs
  17. 文件功能描述:卡券更新需要的数据
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. 修改标识:Senparc - 20160808
  22. 修改描述:修改Card_MemberCardUpdateData
  23. ----------------------------------------------------------------*/
  24. using Senparc.CO2NET.Helpers.Serializers;
  25. using Senparc.Weixin.Helpers;
  26. namespace Senparc.Weixin.MP.AdvancedAPIs.Card
  27. {
  28. /// <summary>
  29. /// 会员卡数据
  30. /// </summary>
  31. public class Card_MemberCardUpdateData : BaseUpdateInfo
  32. {
  33. /// <summary>
  34. /// 是否支持积分。要求设置为true后不能设置为false。
  35. /// </summary>
  36. public bool supply_bonus { get; set;}
  37. /// <summary>
  38. /// 积分清零规则
  39. /// 非必填
  40. /// </summary>
  41. public string bonus_cleared { get; set; }
  42. /// <summary>
  43. /// 积分规则
  44. /// 非必填
  45. /// </summary>
  46. public string bonus_rules { get; set; }
  47. /// <summary>
  48. /// 储值说明
  49. /// 非必填
  50. /// </summary>
  51. public string balance_rules { get; set; }
  52. /// <summary>
  53. /// 特权说明
  54. /// 非必填
  55. /// </summary>
  56. public string prerogative { get; set; }
  57. /// <summary>
  58. /// 设置为true时用户领取会员卡后系统自动将其激活,无需调用激活接口。
  59. /// 非必填
  60. /// </summary>
  61. [JsonSetting.IgnoreValueAttribute(false)]
  62. public bool auto_activate { get; set; }
  63. /// <summary>
  64. /// 设置为true时会员卡支持一键激活,不允许同时传入activate_url字段,否则设置wx_activate失效。
  65. /// 非必填
  66. /// </summary>
  67. [JsonSetting.IgnoreValueAttribute(false)]
  68. public bool wx_activate { get; set; }
  69. /// <summary>
  70. /// 激活会员卡的url,与“bind_old_card_url”字段二选一必填。
  71. /// </summary>
  72. public string activate_url { get; set; }
  73. /// <summary>
  74. /// 设置跳转外链查看积分详情。仅适用于积分无法通过激活接口同步的情况下使用该字段。
  75. /// 非必填
  76. /// </summary>
  77. public string bonus_url { get; set; }
  78. /// <summary>
  79. /// 积分信息类目对应的小程序 user_name,格式为原始id+@app 小程序原始id可以在小程序的设置页面底部查看到
  80. /// </summary>
  81. public string bonus_app_brand_user_name { get; set; }
  82. /// <summary>
  83. /// 积分入口小程序的页面路径
  84. /// </summary>
  85. public string bonus_app_brand_pass { get; set; }
  86. /// <summary>
  87. /// 初始设置积分 int型数据
  88. /// 非必填,null时显示查看
  89. /// </summary>
  90. //[JsonSetting.IgnoreValueAttribute("0")]
  91. //public string init_increase_bonus { get; set; }
  92. /// <summary>
  93. /// 设置跳转外链查看余额详情。仅适用于余额无法通过激活接口同步的情况下使用该字段。
  94. /// 非必填
  95. /// </summary>
  96. public string balance_url { get; set; }
  97. /// <summary>
  98. /// 余额信息类目对应的小程序 user_name,格式为原始id+@app 小程序原始id可以在小程序的设置页面底部查看到
  99. /// </summary>
  100. public string balance_app_brand_user_name { get; set; }
  101. /// <summary>
  102. /// 余额入口小程序的页面路径
  103. /// </summary>
  104. public string balance_app_brand_pass { get; set; }
  105. /// <summary>
  106. /// 自定义会员信息类目,会员卡激活后显示。
  107. /// 非必填
  108. /// </summary>
  109. public CustomField custom_field1 { get; set; }
  110. /// <summary>
  111. /// 自定义会员信息类目,会员卡激活后显示。
  112. /// 非必填
  113. /// </summary>
  114. public CustomField custom_field2 { get; set; }
  115. /// <summary>
  116. /// 自定义会员信息类目,会员卡激活后显示。
  117. /// 非必填
  118. /// </summary>
  119. public CustomField custom_field3 { get; set; }
  120. /// <summary>
  121. /// 自定义会员信息类目,会员卡激活后显示
  122. /// 非必填
  123. /// </summary>
  124. public CustomCell custom_cell1 { get; set; }
  125. /// <summary>
  126. /// 卡背景图,非必填
  127. /// </summary>
  128. public string background_pic_url { get; set; }
  129. /// <summary>
  130. /// 积分规则结构体
  131. /// </summary>
  132. public BonusRule bonus_rule { get; set; }
  133. /// <summary>
  134. /// 折扣
  135. /// </summary>
  136. [JsonSetting.IgnoreValueAttribute(0)]
  137. public int discount { get; set; }
  138. }
  139. /// <summary>
  140. /// 门票数据
  141. /// </summary>
  142. public class Card_ScenicTicketUpdateData : BaseUpdateInfo
  143. {
  144. /// <summary>
  145. /// 导览图url
  146. /// 非必填
  147. /// </summary>
  148. public string guide_url { get; set; }
  149. }
  150. /// <summary>
  151. /// 电影票数据
  152. /// </summary>
  153. public class Card_MovieTicketUpdateData : BaseUpdateInfo
  154. {
  155. /// <summary>
  156. /// 电影票详请
  157. /// 非必填
  158. /// </summary>
  159. public string detail { get; set; }
  160. }
  161. /// <summary>
  162. /// 飞机票数据
  163. /// </summary>
  164. public class Card_BoardingPassUpdateData : BaseUpdateInfo
  165. {
  166. /// <summary>
  167. /// 起飞时间,上限为17 个汉字
  168. /// 非必填
  169. /// </summary>
  170. public string departure_time { get; set; }
  171. /// <summary>
  172. /// 降落时间,上限为17 个汉字
  173. /// 非必填
  174. /// </summary>
  175. public string landing_time { get; set; }
  176. /// <summary>
  177. /// 登机口。如发生登机口变更,建议商家实时调用该接口变更
  178. /// </summary>
  179. public string gate { get; set; }
  180. /// <summary>
  181. /// 登机时间,只显示“时分”不显示日期,按时间戳格式填写。如发生登机时间变更,建议商家实时调用该接口变更
  182. /// </summary>
  183. public string boarding_time { get; set; }
  184. }
  185. }