using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.OtherWaiMai
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
///
/// 订单商品
///
public class BaiduOrderProduct
{
///
/// 百度商品ID 百度套餐ID
///
[JsonProperty(PropertyName = "baidu_product_id")]
public string Baidu_product_id { get; set; }
///
/// 第三方菜品ID
///
[JsonProperty(PropertyName = "other_dish_id")]
public string Other_dish_id { get; set; }
///
/// 第三方套餐ID
///
[JsonProperty(PropertyName = "product_id")]
public string Product_id { get; set; }
///
/// 商品UPC
///
[JsonProperty(PropertyName = "upc")]
public string Upc { get; set; }
///
/// 菜品类型,1.单品 2 套餐 3 配料
///
[JsonProperty(PropertyName = "product_type")]
public int Product_type { get; set; }
///
/// 商品名称 套餐名称
///
[JsonProperty(PropertyName = "product_name")]
public string Product_name { get; set; }
///
/// 商品份数 套餐份数
///
[JsonProperty(PropertyName = "product_amount")]
public string Product_amount { get; set; }
///
/// 价格
///
[JsonProperty(PropertyName = "product_price")]
public int Product_price { get; set; }
public decimal ProductPrice { get; set; }
///
/// 商品规格
///
[JsonProperty(PropertyName = "product_attr")]
public List Product_attr { get; set; }
[JsonIgnore]
public string Spec { get; set; }
[JsonIgnore]
public string SpecId { get; set; }
///
/// 商品属性
///
[JsonProperty(PropertyName = "product_features")]
public List Product_features { get; set; }
[JsonIgnore]
public string Features { get; set; }
///
/// 商品总价,单位:分
///
[JsonProperty(PropertyName = "product_fee")]
public int Product_fee { get; set; }
public decimal ProductFee { get; set; }
///
/// 餐盒总价,单位:分
///
[JsonProperty(PropertyName = "package_fee")]
public int Package_fee { get; set; }
public decimal PackageFee { get; set; }
///
/// 餐盒单价,单位:分
///
[JsonProperty(PropertyName = "package_price")]
public int Package_price { get; set; }
public decimal PackagePrice { get; set; }
///
/// 餐盒数量
///
[JsonProperty(PropertyName = "package_amount")]
public int Package_amount { get; set; }
///
/// 总价,单位:分
///
[JsonProperty(PropertyName = "total_fee")]
public int Total_fee { get; set; }
public decimal TotalFee { get; set; }
///
/// 商品唯一串
///
[JsonProperty(PropertyName = "product_custom_index")]
public string Product_custom_index { get; set; }
///
/// 是否固定价格,1.是,2.否
///
[JsonProperty(PropertyName = "is_fixed_price")]
public int Is_fixed_price { get; set; }
///
/// 套餐内组合
///
[JsonProperty(PropertyName = "group")]
public List ComboGroups { get; set; }
}
}