|
|
using Newtonsoft.Json;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
|
|
|
namespace POSV.QiMai
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
/// 订单明细
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
public class QiMaiOrderItem
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 规格Id(商品Id)
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "id")]
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品名称
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "name")]
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 图片
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "image")]
|
|
|
public string Image { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 价格
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "price")]
|
|
|
public decimal Price { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 优惠金额
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "minus")]
|
|
|
public decimal Minus { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 成本价格
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "cost_price")]
|
|
|
public decimal CostPrice { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品数量
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "num")]
|
|
|
public int Num { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否发货 1是 0 否
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "is_send")]
|
|
|
public int IsSend { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 发货时间(unix时间戳)
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "sent_at")]
|
|
|
public string SentAt { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否赠品 1是 0否
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "is_give")]
|
|
|
public int IsGive { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 推广员佣金
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "income_rate")]
|
|
|
public decimal IncomeRate { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品标识(商品编码)
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "trade_mark")]
|
|
|
public string TradeMark { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 推广员佣金
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "income_rate2")]
|
|
|
public decimal IncomeRate2 { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品规格信息
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "spec")]
|
|
|
public object Spec { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品属性
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "property")]
|
|
|
public string Property { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品规格信息
|
|
|
/// </summary>
|
|
|
[JsonProperty(PropertyName = "order_attach_goods")]
|
|
|
public object OrderAttachGoods { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品信息
|
|
|
/// </summary>
|
|
|
[JsonIgnore]
|
|
|
public string FoodName { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品规格信息
|
|
|
/// </summary>
|
|
|
[JsonIgnore]
|
|
|
public string SpecName { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 商品做法信息
|
|
|
/// </summary>
|
|
|
[JsonIgnore]
|
|
|
public string PropertyName { get; set; }
|
|
|
}
|
|
|
}
|