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