using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Aop.Api.Domain { /// /// DiscountInfo Data Structure. /// [Serializable] public class DiscountInfo : AopObject { /// /// 全场代金的使用门槛 /// [XmlElement("apply_condition")] public string ApplyCondition { get; set; } /// /// 买M送N的描述 /// [XmlElement("buy_send_desc")] public string BuySendDesc { get; set; } /// /// 折扣率 仅当券类型为折扣券时有效 有效折扣率取值范围0.11-0.99 仅允许保留小数点后两位 /// [XmlElement("discount")] public string Discount { get; set; } /// /// 优惠说明信息 /// [XmlArray("discount_notes")] [XmlArrayItem("voucher_desc_detail_model")] public List DiscountNotes { get; set; } /// /// 最近店铺离当前用户的距离 /// [XmlElement("distance")] public string Distance { get; set; } /// /// 优惠券停止发放的时间,和发放的优惠券的有效期不同 /// [XmlElement("end_time")] public string EndTime { get; set; } /// /// 优惠券的logo图片地址 /// [XmlElement("image_url")] public string ImageUrl { get; set; } /// /// 优惠id,调用发券接口时,需要提供“优惠id” /// [XmlElement("item_id")] public string ItemId { get; set; } /// /// 优惠券的名称 /// [XmlElement("item_name")] public string ItemName { get; set; } /// /// 商品的一些标签 /// [XmlElement("label")] public string Label { get; set; } /// /// 减至券的原价 /// [XmlElement("original_price")] public string OriginalPrice { get; set; } /// /// 满减券的券面额,当每满减券(vol_type=mei_man_jian)时有效 每满thresholdPrice元减perPrice元,封顶topPrice元 /// [XmlElement("per_price")] public string PerPrice { get; set; } /// /// 发券商户ID /// [XmlElement("pid")] public string Pid { get; set; } /// /// 当券类型是全场及单品代金券的时候,这个字段代表券面额; 当券类型是减至券的时候,这个字段代表减至到的金额 /// [XmlElement("price")] public string Price { get; set; } /// /// 券推荐语 /// [XmlElement("reason")] public string Reason { get; set; } /// /// 买A送B中,B的描述 /// [XmlElement("send_item_name")] public string SendItemName { get; set; } /// /// 离用户经纬度最近的优惠券适用门店id /// [XmlElement("shop_id")] public string ShopId { get; set; } /// /// 优惠券的主店铺名 /// [XmlElement("shop_name")] public string ShopName { get; set; } /// /// 优惠券的已领数 /// [XmlElement("sold")] public string Sold { get; set; } /// /// 优惠券发放的开始时间,和发放的优惠券的有效期不同 /// [XmlElement("start_time")] public string StartTime { get; set; } /// /// 满减券门槛,当每满减券时有效(vol_type=mei_man_jian) 每满thresholdPrice元减perPrice元,封顶topPrice元 /// [XmlElement("threshold_price")] public string ThresholdPrice { get; set; } /// /// 封顶金额,当每满减券(vol_type=mei_man_jian)时有效。每满减用的字段:每满thresholdPrice元减perPrice元,封顶topPrice元 /// [XmlElement("top_price")] public string TopPrice { get; set; } /// /// 优惠券类型 discount:折扣券; cash:代金券; exchange:兑换券; limit_reduce_cash:减至券 /// [XmlElement("type")] public string Type { get; set; } /// /// 券相对有效期,券自领取或者购买起多长时间内有效,取值范围 7-360,单位天 /// [XmlElement("validity_period")] public string ValidityPeriod { get; set; } /// /// 核销绝对有效期开始时间。自该时间点起,券可被核销。 注意:券的开始发放时段开始时间(gmt_start)不能晚于该时间。 /// [XmlElement("validity_period_range_from")] public string ValidityPeriodRangeFrom { get; set; } /// /// 核销绝对有效期结束时间。自该时间点起,券无法继续被核销。 /// [XmlElement("validity_period_range_to")] public string ValidityPeriodRangeTo { get; set; } /// /// 有效期类型。支持相对有效期及绝对有效期两种方式, RELATIVE:相对有效期 FIXED:绝对有效期 相对有效期指领取或者自购买之日起XX天有效,绝对有效期指某一端固定时间内有效。 /// [XmlElement("validity_period_type")] public string ValidityPeriodType { get; set; } /// /// 优惠券二级类型, all_discount:全场折扣; single_discount:单品折扣; all_cash:全场代金; single_cash:单品代金 mei_man_jian:每满减券 /// [XmlElement("vol_type")] public string VolType { get; set; } } }