#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 文件名:BaseCardDetails.cs 文件功能描述:卡券详情 创建标识:Senparc - 20150211 修改标识:Senparc - 20150303 修改描述:整理接口 修改标识:Senparc - 20150323 修改描述:添加新卡券类型:会议门票 ----------------------------------------------------------------*/ namespace Senparc.Weixin.MP.AdvancedAPIs.Card { /// /// 卡券详情 /// public class BaseCardDetails { /// /// 通用券 /// public Card_GeneralCouponResult general_coupon { get; set; } /// /// 团购券 /// public Card_GrouponResult groupon { get; set; } /// /// 礼品券 /// public Card_GiftResult gift { get; set; } /// /// 代金券 /// public Card_CashResult cash { get; set; } /// /// 折扣券 /// public Card_DisCountResult discount { get; set; } /// /// 会员卡 /// public Card_MemberCardResult member_card { get; set; } /// /// 门票 /// public Card_ScenicTicketResult scenic_ticket { get; set; } /// /// 电影票 /// public Card_MovieTicketResult movie_ticket { get; set; } /// /// 飞机票 /// public Card_BoardingPassResult boarding_pass { get; set; } /// /// 红包 /// public Card_LuckyMoneyResult lucky_money { get; set; } /// /// 会议门票 /// public Card_MeetingTicketResult meeting_ticket { get; set; } } /// /// 通用券数据 /// public class Card_GeneralCouponResult : BaseCardInfoResult { /// /// 描述文本 /// public string default_detail { get; set; } } /// /// 团购券数据 /// public class Card_GrouponResult : BaseCardInfoResult { /// /// 团购券专用,团购详情 /// public string deal_detail { get; set; } } /// /// 礼品券数据 /// public class Card_GiftResult : BaseCardInfoResult { /// /// 礼品券专用,表示礼品名字 /// public string gift { get; set; } } /// /// 代金券数据 /// public class Card_CashResult : BaseCardInfoResult { /// /// 代金券专用,表示起用金额(单位为分) /// public decimal least_cost { get; set; } /// /// 代金券专用,表示减免金额(单位为分) /// public decimal reduce_cost { get; set; } } /// /// 折扣券数据 /// public class Card_DisCountResult : BaseCardInfoResult { /// ///折扣券专用,表示打折额度(百分比)。填30 就是七折。 /// public float discount { get; set; } } /// /// 会员卡数据 /// public class Card_MemberCardResult : BaseCardInfoResult { /// /// 是否支持积分,填写true 或false,如填写true,积分相关字段均为必填。填写false,积分字段无需填写。储值字段处理方式相同。 /// public bool supply_bonus { get; set; } /// /// 是否支持储值,填写true 或false。 /// public bool supply_balance { get; set; } /// /// 积分清零规则 /// public string bonus_cleared { get; set; } /// /// 积分规则 /// public string bonus_rules { get; set; } /// /// 储值说明 /// public string balance_rules { get; set; } /// /// 特权说明 /// public string prerogative { get; set; } /// /// 绑定旧卡的url,与“activate_url”字段二选一必填。 /// public string bind_old_card_url { get; set; } /// /// 激活会员卡的url,与“bind_old_card_url”字段二选一必填。 /// public string activate_url { get; set; } //以下增加 /// /// 会员卡背景图像,必须是上传媒体地址 /// public string background_pic_url { get; set; } /// ///是否开通一键开卡 /// public bool wx_activate { get; set; } /// /// 是否开通自动激活 /// public bool auto_activate { get; set; } /// ///自定义会员信息类目,会员卡激活后显示 /// public CustomField custom_field1 { get; set; } /// /// 自定义会员信息类目,会员卡激活后显示 /// public CustomField custom_field2 { get; set; } /// /// 自定义会员信息类目,会员卡激活后显示 /// public CustomField custom_field3 { get; set; } /// /// 自定义会员信息类目,会员卡激活后显示 /// public CustomCell custom_cell1 { get; set; } /// /// 积分规则结构体 /// public BonusRule bonus_rule { get; set; } /// /// 折扣 /// public int discount { get; set; } } /// /// 门票数据 /// public class Card_ScenicTicketResult : BaseCardInfoResult { /// /// 票类型,例如平日全票,套票等 /// public string ticket_class { get; set; } /// /// 导览图url /// public string guide_url { get; set; } } /// /// 电影票数据 /// public class Card_MovieTicketResult : BaseCardInfoResult { /// /// 电影票详请 /// public string detail { get; set; } } /// /// 飞机票数据 /// public class Card_BoardingPassResult : BaseCardInfoResult { /// /// 起点,上限为18 个汉字 /// public string from { get; set; } /// /// 终点,上限为18 个汉字 /// public string to { get; set; } /// /// 航班 /// public string flight { get; set; } /// /// 起飞时间,上限为17 个汉字 /// public string departure_time { get; set; } /// /// 降落时间,上限为17 个汉字 /// public string landing_time { get; set; } /// /// 在线值机的链接 /// public string check_in_url { get; set; } /// /// 登机口。如发生登机口变更,建议商家实时调用该接口变更 /// public string gate { get; set; } /// /// 登机时间,只显示“时分”不显示日期,按时间戳格式填写。如发生登机时间变更,建议商家实时调用该接口变更 /// public string boarding_time { get; set; } /// /// 机型,上限为8 个汉字 /// public string air_model { get; set; } } /// /// 红包数据 /// public class Card_LuckyMoneyResult : BaseCardInfoResult { } public class Card_MeetingTicketResult : BaseCardInfoResult { /// /// 会议详情 /// public string meeting_detail { get; set; } /// /// 会场导览图 /// public string map_url { get; set; } } public class BaseCardInfoResult { /// /// 基本的卡券数据 /// public BaseInfoResult base_info { get; set; } } #region 基本的卡券数据,所有卡券通用(BaseInfoResult) /// /// 基本的卡券数据,所有卡券通用。 /// public class BaseInfoResult : Card_BaseInfoBase { /// /// 卡券Id /// public string id { get; set; } public string status { get; set; } } #endregion }