using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; namespace POSV.Dianping { /* 执行券码核销,返回验券结果和金额信息。 券类型说明: 代金券:抵扣金额,例如 50抵100 套餐券:抵扣菜品,包含套餐券、单品券、量贩券,例如甜品券 霸王餐券:抵扣菜品(点评APP中的霸王餐券),商家实收=0 抵扣金额说明: 套餐券:券对应的菜的实际价格 代金券:代金券面额;特殊情况:若券购买价格 <= 订单金额 < 代金券面额,则抵扣金额 = 订单金额 注意:券抵扣金额 < 券购买的价格,无法核销 */ [Serializable] [JsonObject(MemberSerialization.OptIn)] public class TuangouOrderConsumeRequest { /// /// 商家侧订单号 /// [JsonProperty(PropertyName = "vendorOrderId")] public string VendorOrderId { get; set; } /// /// 商家侧订单号 /// [JsonProperty(PropertyName = "totalAmount")] public decimal TotalAmount { get; set; } /// /// 菜品/商品 /// [JsonProperty(PropertyName = "orderSkus")] public List OrderSkus { get; set; } /// /// 需要验证的券码 /// [JsonProperty(PropertyName = "couponCode")] public string CouponCode { get; set; } /// /// 商家的门店ID /// [JsonProperty(PropertyName = "vendorShopId")] public string VendorShopId { get; set; } /// /// 商家ERP账号ID /// [JsonProperty(PropertyName = "eId")] public string EId { get; set; } /// /// 商家ERP账号名称 /// [JsonProperty(PropertyName = "eName")] public string EName { get; set; } } [Serializable] [JsonObject(MemberSerialization.OptIn)] public class OrderSku { /// /// 厂商商品skuId /// [JsonProperty(PropertyName = "vendorSkuId")] public string VendorSkuId { get; set; } /// /// 厂商商品skuName /// [JsonProperty(PropertyName = "vendorSkuName")] public string VendorSkuName { get; set; } /// /// 商品单位(如个,瓶等) /// [JsonProperty(PropertyName = "unit")] public string Unit { get; set; } /// /// 商品单价 /// [JsonProperty(PropertyName = "unitPrice")] public decimal UnitPrice { get; set; } /// /// 商品数量 /// [JsonProperty(PropertyName = "count")] public int Count { get; set; } } }