123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426 |
- #region Apache License Version 2.0
- /*----------------------------------------------------------------
- Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software distributed under the
- License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- either express or implied. See the License for the specific language governing permissions
- and limitations under the License.
- Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
- ----------------------------------------------------------------*/
- #endregion Apache License Version 2.0
- /*----------------------------------------------------------------
- Copyright (C) 2019 Senparc
-
- 文件名:CardManageResultJson.cs
- 文件功能描述:管理卡券返回结果
-
-
- 创建标识:Senparc - 20150211
-
- 修改标识:Senparc - 20150303
- 修改描述:整理接口
- 修改标识:Senparc - 20171127
- 修改描述:v14.8.7 完善CardGetResultJson字段
- 修改标识:Senparc - 20190121
- 修改描述:v16.6.9 修复:GetCardInfoResultJson 返回结果参数
- ----------------------------------------------------------------*/
- using System.Collections.Generic;
- using Senparc.Weixin.Entities;
- namespace Senparc.Weixin.MP.AdvancedAPIs.Card
- {
- /// <summary>
- /// 删除卡券返回结果
- /// </summary>
- public class CardDeleteResultJson : WxJsonResult
- {
- }
- /// <summary>
- /// 查询code返回结果,check_consume=false 的结果。
- /// </summary>
- public class CardGetResultJson : WxJsonResult
- {
- /// <summary>
- /// 用户openid
- /// </summary>
- public string openid { get; set; }
- //can_consume
- public bool can_consume { get; set; }
- public UserCardStatus user_card_status { get; set; }
- public Get_Card card { get; set; }
- }
- public class Get_Card
- {
- /// <summary>
- /// 卡券ID
- /// </summary>
- public string card_id { get; set; }
- /// <summary>
- /// 起始使用时间
- /// </summary>
- public string begin_time { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- public string end_time { get; set; }
- }
- /// <summary>
- /// 批量查询卡列表返回结果
- /// </summary>
- public class CardBatchGetResultJson : WxJsonResult
- {
- public List<string> card_id_list { get; set; }
- public int total_num { get; set; }
- }
- /// <summary>
- /// 查询卡券详情返回结果
- /// </summary>
- public class CardDetailGetResultJson : WxJsonResult
- {
- public CardDetail card { get; set; }
- }
- public class CardDetail : BaseCardDetails
- {
- /// <summary>
- /// 卡券类型
- /// </summary>
- public string card_type { get; set; }
- }
- /// <summary>
- /// 会员卡交易返回结果
- /// </summary>
- public class MemberCardDealResultJson : WxJsonResult
- {
- /// <summary>
- /// 当前用户积分总额
- /// </summary>
- public decimal result_bonus { get; set; }
- /// <summary>
- /// 当前用户预存总金额
- /// </summary>
- public decimal result_balance { get; set; }
- /// <summary>
- /// 用户openid
- /// </summary>
- public string openid { get; set; }
- }
- /// <summary>
- /// 获取用户已领取卡券返回结果
- /// </summary>
- public class GetCardListResultJson : WxJsonResult
- {
- /// <summary>
- /// 卡券列表
- /// </summary>
- public List<CardListItem> card_list { get; set; }
- }
- public class CardListItem
- {
- public string code { get; set; }
- public string card_id { get; set; }
- }
- /// <summary>
- /// 更新会员信息返回结果
- /// </summary>
- public class UpdateUserResultJson : WxJsonResult
- {
- /// <summary>
- /// 当前用户积分总额。
- /// </summary>
- public int result_bonus { get; set; }
- /// <summary>
- /// 当前用户预存总金额。
- /// </summary>
- public int result_balance { get; set; }
- /// <summary>
- /// 用户openid。
- /// </summary>
- public string openid { get; set; }
- }
- /// <summary>
- /// 图文消息群发卡券返回结果
- /// </summary>
- public class GetHtmlResultJson : WxJsonResult
- {
- /// <summary>
- /// 返回一段html代码,可以直接嵌入到图文消息的正文里。即可以把这段代码嵌入到上传图文消息素材接口中的content字段里。
- /// </summary>
- public string content { get; set; }
- }
- /// <summary>
- /// 拉取卡券返回结果
- /// </summary>
- public class GetCardBizuinInfoResultJson : WxJsonResult
- {
- public List<GetCardBizuinInfo_List> list { get; set; }
- }
- public class GetCardBizuinInfo_List
- {
- /// <summary>
- /// 日期信息
- /// </summary>
- public string ref_date { get; set; }
- /// <summary>
- /// 浏览次数
- /// </summary>
- public int view_cnt { get; set; }
- /// <summary>
- /// 浏览人数
- /// </summary>
- public int view_user { get; set; }
- /// <summary>
- /// 领取次数
- /// </summary>
- public int receive_cnt { get; set; }
- /// <summary>
- /// 领取人数
- /// </summary>
- public int receive_user { get; set; }
- /// <summary>
- /// 使用次数
- /// </summary>
- public int verify_cnt { get; set; }
- /// <summary>
- /// 使用人数
- /// </summary>
- public int verify_user { get; set; }
- /// <summary>
- /// 转赠次数
- /// </summary>
- public int given_cnt { get; set; }
- /// <summary>
- /// 转赠人数
- /// </summary>
- public int given_user { get; set; }
- /// <summary>
- /// 过期次数
- /// </summary>
- public int expire_cnt { get; set; }
- /// <summary>
- /// 过期人数
- /// </summary>
- public int expire_user { get; set; }
- }
- public class GetCardInfoResultJson : WxJsonResult
- {
- public List<GetCardInfoItem> list { get; set; }
- }
- public class GetCardInfoItem
- {
- /// <summary>
- /// 日期信息
- /// </summary>
- public string ref_date { get; set; }
- /// <summary>
- /// 卡券ID
- /// </summary>
- public string card_id { get; set; }
- /// <summary>
- /// cardtype:0:折扣券,1:代金券,2:礼品券,3:优惠券,4:团购券(暂不支持拉取特殊票券类型数据,电影票、飞机票、会议门票、景区门票)
- /// </summary>
- public int card_type { get; set; }
- /// <summary>
- /// 浏览次数
- /// </summary>
- public int view_cnt { get; set; }
- /// <summary>
- /// 浏览人数
- /// </summary>
- public int view_user { get; set; }
- /// <summary>
- /// 领取次数
- /// </summary>
- public int receive_cnt { get; set; }
- /// <summary>
- /// 领取人数
- /// </summary>
- public int receive_user { get; set; }
- /// <summary>
- /// 使用次数
- /// </summary>
- public int verify_cnt { get; set; }
- /// <summary>
- /// 使用人数
- /// </summary>
- public int verify_user { get; set; }
- /// <summary>
- /// 转赠次数
- /// </summary>
- public int given_cnt { get; set; }
- /// <summary>
- /// 转赠人数
- /// </summary>
- public int given_user { get; set; }
- /// <summary>
- /// 过期次数
- /// </summary>
- public int expire_cnt { get; set; }
- /// <summary>
- /// 过期人数
- /// </summary>
- public int expire_user { get; set; }
- }
- public class GetCardMemberCardInfoResultJson : WxJsonResult
- {
- public List<GetCardMemberCardInfoItem> GetCardMemberCardInfo { get; set; }
- }
- public class GetCardMemberCardInfoItem
- {
- /// <summary>
- /// 日期信息
- /// </summary>
- public string ref_date { get; set; }
- /// <summary>
- /// 浏览次数
- /// </summary>
- public int view_cnt { get; set; }
- /// <summary>
- /// 浏览人数
- /// </summary>
- public int view_user { get; set; }
- /// <summary>
- /// 领取次数
- /// </summary>
- public int receive_cnt { get; set; }
- /// <summary>
- /// 领取人数
- /// </summary>
- public int receive_user { get; set; }
- /// <summary>
- /// 激活人数
- /// </summary>
- public int active_user { get; set; }
- /// <summary>
- /// 使用次数
- /// </summary>
- public int verify_cnt { get; set; }
- /// <summary>
- /// 使用人数
- /// </summary>
- public int verify_user { get; set; }
- /// <summary>
- /// 有效会员总人数
- /// </summary>
- public int total_user { get; set; }
- /// <summary>
- /// 历史领取会员卡总人数
- /// </summary>
- public int total_receive_user { get; set; }
- }
- /// <summary>
- /// 拉取单张会员卡数据返回值
- /// </summary>
- public class GetCardMemberCardDetailResultJson : WxJsonResult
- {
- /// <summary>
- /// 单张会员卡数据
- /// </summary>
- public List<GetCardMemberCardInfoItem> GetCardMemberCardDetail { get; set; }
- }
- /// <summary>
- /// 单张会员卡数据
- /// </summary>
- public class GetCardMemberCardDetailItem
- {
- /// <summary>
- /// 日期信息
- /// </summary>
- public string ref_date { get; set; }
- /// <summary>
- /// 子商户类型
- /// </summary>
- public int merchanttype { get; set; }
- /// <summary>
- /// 卡券id
- /// </summary>
- public string cardid { get; set; }
- /// <summary>
- /// 子商户ID
- /// </summary>
- public int submerchantid { get; set; }
- /// <summary>
- /// 浏览次数
- /// </summary>
- public int view_cnt { get; set; }
- /// <summary>
- /// 浏览人数
- /// </summary>
- public int view_user { get; set; }
- /// <summary>
- /// 领取次数
- /// </summary>
- public int receive_cnt { get; set; }
- /// <summary>
- /// 领取人数
- /// </summary>
- public int receive_user { get; set; }
- /// <summary>
- /// 使用次数
- /// </summary>
- public int verify_cnt { get; set; }
- /// <summary>
- /// 使用人数
- /// </summary>
- public int verify_user { get; set; }
- /// <summary>
- /// 激活次数
- /// </summary>
- public int active_cnt { get; set; }
- /// <summary>
- /// 激活人数
- /// </summary>
- public int active_user { get; set; }
- /// <summary>
- /// 有效会员总人数
- /// </summary>
- public int total_user { get; set; }
- /// <summary>
- /// 历史领取会员卡总人数
- /// </summary>
- public int total_receive_user { get; set; }
- /// <summary>
- /// 新用户数
- /// </summary>
- public int new_user { get; set; }
- /// <summary>
- /// 应收金额(仅限使用快速买单的会员卡)
- /// </summary>
- public double payOriginalFee { get; set; }
- /// <summary>
- /// 实收金额(仅限使用快速买单的会员卡)
- /// </summary>
- public double fee { get; set; }
- }
- }
|