CardManageResultJson.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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. 文件名:CardManageResultJson.cs
  17. 文件功能描述:管理卡券返回结果
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. 修改标识:Senparc - 20171127
  22. 修改描述:v14.8.7 完善CardGetResultJson字段
  23. 修改标识:Senparc - 20190121
  24. 修改描述:v16.6.9 修复:GetCardInfoResultJson 返回结果参数
  25. ----------------------------------------------------------------*/
  26. using System.Collections.Generic;
  27. using Senparc.Weixin.Entities;
  28. namespace Senparc.Weixin.MP.AdvancedAPIs.Card
  29. {
  30. /// <summary>
  31. /// 删除卡券返回结果
  32. /// </summary>
  33. public class CardDeleteResultJson : WxJsonResult
  34. {
  35. }
  36. /// <summary>
  37. /// 查询code返回结果,check_consume=false 的结果。
  38. /// </summary>
  39. public class CardGetResultJson : WxJsonResult
  40. {
  41. /// <summary>
  42. /// 用户openid
  43. /// </summary>
  44. public string openid { get; set; }
  45. //can_consume
  46. public bool can_consume { get; set; }
  47. public UserCardStatus user_card_status { get; set; }
  48. public Get_Card card { get; set; }
  49. }
  50. public class Get_Card
  51. {
  52. /// <summary>
  53. /// 卡券ID
  54. /// </summary>
  55. public string card_id { get; set; }
  56. /// <summary>
  57. /// 起始使用时间
  58. /// </summary>
  59. public string begin_time { get; set; }
  60. /// <summary>
  61. /// 结束时间
  62. /// </summary>
  63. public string end_time { get; set; }
  64. }
  65. /// <summary>
  66. /// 批量查询卡列表返回结果
  67. /// </summary>
  68. public class CardBatchGetResultJson : WxJsonResult
  69. {
  70. public List<string> card_id_list { get; set; }
  71. public int total_num { get; set; }
  72. }
  73. /// <summary>
  74. /// 查询卡券详情返回结果
  75. /// </summary>
  76. public class CardDetailGetResultJson : WxJsonResult
  77. {
  78. public CardDetail card { get; set; }
  79. }
  80. public class CardDetail : BaseCardDetails
  81. {
  82. /// <summary>
  83. /// 卡券类型
  84. /// </summary>
  85. public string card_type { get; set; }
  86. }
  87. /// <summary>
  88. /// 会员卡交易返回结果
  89. /// </summary>
  90. public class MemberCardDealResultJson : WxJsonResult
  91. {
  92. /// <summary>
  93. /// 当前用户积分总额
  94. /// </summary>
  95. public decimal result_bonus { get; set; }
  96. /// <summary>
  97. /// 当前用户预存总金额
  98. /// </summary>
  99. public decimal result_balance { get; set; }
  100. /// <summary>
  101. /// 用户openid
  102. /// </summary>
  103. public string openid { get; set; }
  104. }
  105. /// <summary>
  106. /// 获取用户已领取卡券返回结果
  107. /// </summary>
  108. public class GetCardListResultJson : WxJsonResult
  109. {
  110. /// <summary>
  111. /// 卡券列表
  112. /// </summary>
  113. public List<CardListItem> card_list { get; set; }
  114. }
  115. public class CardListItem
  116. {
  117. public string code { get; set; }
  118. public string card_id { get; set; }
  119. }
  120. /// <summary>
  121. /// 更新会员信息返回结果
  122. /// </summary>
  123. public class UpdateUserResultJson : WxJsonResult
  124. {
  125. /// <summary>
  126. /// 当前用户积分总额。
  127. /// </summary>
  128. public int result_bonus { get; set; }
  129. /// <summary>
  130. /// 当前用户预存总金额。
  131. /// </summary>
  132. public int result_balance { get; set; }
  133. /// <summary>
  134. /// 用户openid。
  135. /// </summary>
  136. public string openid { get; set; }
  137. }
  138. /// <summary>
  139. /// 图文消息群发卡券返回结果
  140. /// </summary>
  141. public class GetHtmlResultJson : WxJsonResult
  142. {
  143. /// <summary>
  144. /// 返回一段html代码,可以直接嵌入到图文消息的正文里。即可以把这段代码嵌入到上传图文消息素材接口中的content字段里。
  145. /// </summary>
  146. public string content { get; set; }
  147. }
  148. /// <summary>
  149. /// 拉取卡券返回结果
  150. /// </summary>
  151. public class GetCardBizuinInfoResultJson : WxJsonResult
  152. {
  153. public List<GetCardBizuinInfo_List> list { get; set; }
  154. }
  155. public class GetCardBizuinInfo_List
  156. {
  157. /// <summary>
  158. /// 日期信息
  159. /// </summary>
  160. public string ref_date { get; set; }
  161. /// <summary>
  162. /// 浏览次数
  163. /// </summary>
  164. public int view_cnt { get; set; }
  165. /// <summary>
  166. /// 浏览人数
  167. /// </summary>
  168. public int view_user { get; set; }
  169. /// <summary>
  170. /// 领取次数
  171. /// </summary>
  172. public int receive_cnt { get; set; }
  173. /// <summary>
  174. /// 领取人数
  175. /// </summary>
  176. public int receive_user { get; set; }
  177. /// <summary>
  178. /// 使用次数
  179. /// </summary>
  180. public int verify_cnt { get; set; }
  181. /// <summary>
  182. /// 使用人数
  183. /// </summary>
  184. public int verify_user { get; set; }
  185. /// <summary>
  186. /// 转赠次数
  187. /// </summary>
  188. public int given_cnt { get; set; }
  189. /// <summary>
  190. /// 转赠人数
  191. /// </summary>
  192. public int given_user { get; set; }
  193. /// <summary>
  194. /// 过期次数
  195. /// </summary>
  196. public int expire_cnt { get; set; }
  197. /// <summary>
  198. /// 过期人数
  199. /// </summary>
  200. public int expire_user { get; set; }
  201. }
  202. public class GetCardInfoResultJson : WxJsonResult
  203. {
  204. public List<GetCardInfoItem> list { get; set; }
  205. }
  206. public class GetCardInfoItem
  207. {
  208. /// <summary>
  209. /// 日期信息
  210. /// </summary>
  211. public string ref_date { get; set; }
  212. /// <summary>
  213. /// 卡券ID
  214. /// </summary>
  215. public string card_id { get; set; }
  216. /// <summary>
  217. /// cardtype:0:折扣券,1:代金券,2:礼品券,3:优惠券,4:团购券(暂不支持拉取特殊票券类型数据,电影票、飞机票、会议门票、景区门票)
  218. /// </summary>
  219. public int card_type { get; set; }
  220. /// <summary>
  221. /// 浏览次数
  222. /// </summary>
  223. public int view_cnt { get; set; }
  224. /// <summary>
  225. /// 浏览人数
  226. /// </summary>
  227. public int view_user { get; set; }
  228. /// <summary>
  229. /// 领取次数
  230. /// </summary>
  231. public int receive_cnt { get; set; }
  232. /// <summary>
  233. /// 领取人数
  234. /// </summary>
  235. public int receive_user { get; set; }
  236. /// <summary>
  237. /// 使用次数
  238. /// </summary>
  239. public int verify_cnt { get; set; }
  240. /// <summary>
  241. /// 使用人数
  242. /// </summary>
  243. public int verify_user { get; set; }
  244. /// <summary>
  245. /// 转赠次数
  246. /// </summary>
  247. public int given_cnt { get; set; }
  248. /// <summary>
  249. /// 转赠人数
  250. /// </summary>
  251. public int given_user { get; set; }
  252. /// <summary>
  253. /// 过期次数
  254. /// </summary>
  255. public int expire_cnt { get; set; }
  256. /// <summary>
  257. /// 过期人数
  258. /// </summary>
  259. public int expire_user { get; set; }
  260. }
  261. public class GetCardMemberCardInfoResultJson : WxJsonResult
  262. {
  263. public List<GetCardMemberCardInfoItem> GetCardMemberCardInfo { get; set; }
  264. }
  265. public class GetCardMemberCardInfoItem
  266. {
  267. /// <summary>
  268. /// 日期信息
  269. /// </summary>
  270. public string ref_date { get; set; }
  271. /// <summary>
  272. /// 浏览次数
  273. /// </summary>
  274. public int view_cnt { get; set; }
  275. /// <summary>
  276. /// 浏览人数
  277. /// </summary>
  278. public int view_user { get; set; }
  279. /// <summary>
  280. /// 领取次数
  281. /// </summary>
  282. public int receive_cnt { get; set; }
  283. /// <summary>
  284. /// 领取人数
  285. /// </summary>
  286. public int receive_user { get; set; }
  287. /// <summary>
  288. /// 激活人数
  289. /// </summary>
  290. public int active_user { get; set; }
  291. /// <summary>
  292. /// 使用次数
  293. /// </summary>
  294. public int verify_cnt { get; set; }
  295. /// <summary>
  296. /// 使用人数
  297. /// </summary>
  298. public int verify_user { get; set; }
  299. /// <summary>
  300. /// 有效会员总人数
  301. /// </summary>
  302. public int total_user { get; set; }
  303. /// <summary>
  304. /// 历史领取会员卡总人数
  305. /// </summary>
  306. public int total_receive_user { get; set; }
  307. }
  308. /// <summary>
  309. /// 拉取单张会员卡数据返回值
  310. /// </summary>
  311. public class GetCardMemberCardDetailResultJson : WxJsonResult
  312. {
  313. /// <summary>
  314. /// 单张会员卡数据
  315. /// </summary>
  316. public List<GetCardMemberCardInfoItem> GetCardMemberCardDetail { get; set; }
  317. }
  318. /// <summary>
  319. /// 单张会员卡数据
  320. /// </summary>
  321. public class GetCardMemberCardDetailItem
  322. {
  323. /// <summary>
  324. /// 日期信息
  325. /// </summary>
  326. public string ref_date { get; set; }
  327. /// <summary>
  328. /// 子商户类型
  329. /// </summary>
  330. public int merchanttype { get; set; }
  331. /// <summary>
  332. /// 卡券id
  333. /// </summary>
  334. public string cardid { get; set; }
  335. /// <summary>
  336. /// 子商户ID
  337. /// </summary>
  338. public int submerchantid { get; set; }
  339. /// <summary>
  340. /// 浏览次数
  341. /// </summary>
  342. public int view_cnt { get; set; }
  343. /// <summary>
  344. /// 浏览人数
  345. /// </summary>
  346. public int view_user { get; set; }
  347. /// <summary>
  348. /// 领取次数
  349. /// </summary>
  350. public int receive_cnt { get; set; }
  351. /// <summary>
  352. /// 领取人数
  353. /// </summary>
  354. public int receive_user { get; set; }
  355. /// <summary>
  356. /// 使用次数
  357. /// </summary>
  358. public int verify_cnt { get; set; }
  359. /// <summary>
  360. /// 使用人数
  361. /// </summary>
  362. public int verify_user { get; set; }
  363. /// <summary>
  364. /// 激活次数
  365. /// </summary>
  366. public int active_cnt { get; set; }
  367. /// <summary>
  368. /// 激活人数
  369. /// </summary>
  370. public int active_user { get; set; }
  371. /// <summary>
  372. /// 有效会员总人数
  373. /// </summary>
  374. public int total_user { get; set; }
  375. /// <summary>
  376. /// 历史领取会员卡总人数
  377. /// </summary>
  378. public int total_receive_user { get; set; }
  379. /// <summary>
  380. /// 新用户数
  381. /// </summary>
  382. public int new_user { get; set; }
  383. /// <summary>
  384. /// 应收金额(仅限使用快速买单的会员卡)
  385. /// </summary>
  386. public double payOriginalFee { get; set; }
  387. /// <summary>
  388. /// 实收金额(仅限使用快速买单的会员卡)
  389. /// </summary>
  390. public double fee { get; set; }
  391. }
  392. }