#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
{
///
/// 删除卡券返回结果
///
public class CardDeleteResultJson : WxJsonResult
{
}
///
/// 查询code返回结果,check_consume=false 的结果。
///
public class CardGetResultJson : WxJsonResult
{
///
/// 用户openid
///
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
{
///
/// 卡券ID
///
public string card_id { get; set; }
///
/// 起始使用时间
///
public string begin_time { get; set; }
///
/// 结束时间
///
public string end_time { get; set; }
}
///
/// 批量查询卡列表返回结果
///
public class CardBatchGetResultJson : WxJsonResult
{
public List card_id_list { get; set; }
public int total_num { get; set; }
}
///
/// 查询卡券详情返回结果
///
public class CardDetailGetResultJson : WxJsonResult
{
public CardDetail card { get; set; }
}
public class CardDetail : BaseCardDetails
{
///
/// 卡券类型
///
public string card_type { get; set; }
}
///
/// 会员卡交易返回结果
///
public class MemberCardDealResultJson : WxJsonResult
{
///
/// 当前用户积分总额
///
public decimal result_bonus { get; set; }
///
/// 当前用户预存总金额
///
public decimal result_balance { get; set; }
///
/// 用户openid
///
public string openid { get; set; }
}
///
/// 获取用户已领取卡券返回结果
///
public class GetCardListResultJson : WxJsonResult
{
///
/// 卡券列表
///
public List card_list { get; set; }
}
public class CardListItem
{
public string code { get; set; }
public string card_id { get; set; }
}
///
/// 更新会员信息返回结果
///
public class UpdateUserResultJson : WxJsonResult
{
///
/// 当前用户积分总额。
///
public int result_bonus { get; set; }
///
/// 当前用户预存总金额。
///
public int result_balance { get; set; }
///
/// 用户openid。
///
public string openid { get; set; }
}
///
/// 图文消息群发卡券返回结果
///
public class GetHtmlResultJson : WxJsonResult
{
///
/// 返回一段html代码,可以直接嵌入到图文消息的正文里。即可以把这段代码嵌入到上传图文消息素材接口中的content字段里。
///
public string content { get; set; }
}
///
/// 拉取卡券返回结果
///
public class GetCardBizuinInfoResultJson : WxJsonResult
{
public List list { get; set; }
}
public class GetCardBizuinInfo_List
{
///
/// 日期信息
///
public string ref_date { get; set; }
///
/// 浏览次数
///
public int view_cnt { get; set; }
///
/// 浏览人数
///
public int view_user { get; set; }
///
/// 领取次数
///
public int receive_cnt { get; set; }
///
/// 领取人数
///
public int receive_user { get; set; }
///
/// 使用次数
///
public int verify_cnt { get; set; }
///
/// 使用人数
///
public int verify_user { get; set; }
///
/// 转赠次数
///
public int given_cnt { get; set; }
///
/// 转赠人数
///
public int given_user { get; set; }
///
/// 过期次数
///
public int expire_cnt { get; set; }
///
/// 过期人数
///
public int expire_user { get; set; }
}
public class GetCardInfoResultJson : WxJsonResult
{
public List list { get; set; }
}
public class GetCardInfoItem
{
///
/// 日期信息
///
public string ref_date { get; set; }
///
/// 卡券ID
///
public string card_id { get; set; }
///
/// cardtype:0:折扣券,1:代金券,2:礼品券,3:优惠券,4:团购券(暂不支持拉取特殊票券类型数据,电影票、飞机票、会议门票、景区门票)
///
public int card_type { get; set; }
///
/// 浏览次数
///
public int view_cnt { get; set; }
///
/// 浏览人数
///
public int view_user { get; set; }
///
/// 领取次数
///
public int receive_cnt { get; set; }
///
/// 领取人数
///
public int receive_user { get; set; }
///
/// 使用次数
///
public int verify_cnt { get; set; }
///
/// 使用人数
///
public int verify_user { get; set; }
///
/// 转赠次数
///
public int given_cnt { get; set; }
///
/// 转赠人数
///
public int given_user { get; set; }
///
/// 过期次数
///
public int expire_cnt { get; set; }
///
/// 过期人数
///
public int expire_user { get; set; }
}
public class GetCardMemberCardInfoResultJson : WxJsonResult
{
public List GetCardMemberCardInfo { get; set; }
}
public class GetCardMemberCardInfoItem
{
///
/// 日期信息
///
public string ref_date { get; set; }
///
/// 浏览次数
///
public int view_cnt { get; set; }
///
/// 浏览人数
///
public int view_user { get; set; }
///
/// 领取次数
///
public int receive_cnt { get; set; }
///
/// 领取人数
///
public int receive_user { get; set; }
///
/// 激活人数
///
public int active_user { get; set; }
///
/// 使用次数
///
public int verify_cnt { get; set; }
///
/// 使用人数
///
public int verify_user { get; set; }
///
/// 有效会员总人数
///
public int total_user { get; set; }
///
/// 历史领取会员卡总人数
///
public int total_receive_user { get; set; }
}
///
/// 拉取单张会员卡数据返回值
///
public class GetCardMemberCardDetailResultJson : WxJsonResult
{
///
/// 单张会员卡数据
///
public List GetCardMemberCardDetail { get; set; }
}
///
/// 单张会员卡数据
///
public class GetCardMemberCardDetailItem
{
///
/// 日期信息
///
public string ref_date { get; set; }
///
/// 子商户类型
///
public int merchanttype { get; set; }
///
/// 卡券id
///
public string cardid { get; set; }
///
/// 子商户ID
///
public int submerchantid { get; set; }
///
/// 浏览次数
///
public int view_cnt { get; set; }
///
/// 浏览人数
///
public int view_user { get; set; }
///
/// 领取次数
///
public int receive_cnt { get; set; }
///
/// 领取人数
///
public int receive_user { get; set; }
///
/// 使用次数
///
public int verify_cnt { get; set; }
///
/// 使用人数
///
public int verify_user { get; set; }
///
/// 激活次数
///
public int active_cnt { get; set; }
///
/// 激活人数
///
public int active_user { get; set; }
///
/// 有效会员总人数
///
public int total_user { get; set; }
///
/// 历史领取会员卡总人数
///
public int total_receive_user { get; set; }
///
/// 新用户数
///
public int new_user { get; set; }
///
/// 应收金额(仅限使用快速买单的会员卡)
///
public double payOriginalFee { get; set; }
///
/// 实收金额(仅限使用快速买单的会员卡)
///
public double fee { get; set; }
}
}