using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace POSV.Dianping
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class CouponStatusQueryResponse
{
///
/// 状态,10可用 20不可用
///
[JsonProperty(PropertyName = "status")]
public int Status { get; set; }
///
/// 券码有效期 2019-12-21 17:42:31
///
[JsonProperty(PropertyName = "couponEndTime")]
public string CouponEndTime { get; set; }
///
/// 商家实收金额(不考虑平台服务费)
///
[JsonProperty(PropertyName = "realAmount")]
public decimal RealAmount { get; set; }
///
/// 项目类型,1:代金券 2:套餐券 4:霸王餐
///
[JsonProperty(PropertyName = "dealType")]
public int DealType { get; set; }
///
/// 项目ID,美团点评的商品ID
///
[JsonProperty(PropertyName = "dealId")]
public int DealId { get; set; }
///
/// 商品名称/项目名称
///
[JsonProperty(PropertyName = "dealTitle")]
public string DealTitle { get; set; }
///
/// 售卖价格
///
[JsonProperty(PropertyName = "dealPrice")]
public decimal DealPrice { get; set; }
///
/// 市场价格/面额
///
[JsonProperty(PropertyName = "dealValue")]
public decimal DealValue { get; set; }
///
/// 配置的商品映射,商品在商家侧的ID
///
[JsonProperty(PropertyName = "dealSkuMappingDetail")]
public DealSkuMappingDetail DealSkuMappingDetail { get; set; }
///
/// 配置的促销映射,代金券在商家侧的优惠代号(多个以英文逗号分隔)
///
[JsonProperty(PropertyName = "dealPromotionMappingDetail")]
public string DealPromotionMappingDetail { get; set; }
}
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class DealSkuMappingDetail
{
///
/// 商品数量(配置的vendorSku中可选择的数量)
///
[JsonProperty(PropertyName = "count")]
public int Count { get; set; }
///
/// 商品数量(配置的vendorSku中可选择的数量)
///
[JsonProperty(PropertyName = "vendorSkus")]
public List VendorSkus { get; set; }
}
}