You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
4.0 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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