|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace POSV.OtherWaiMai
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
public class BaiduOrderInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "order_id")]
|
|
|
|
|
public string Order_id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否立即送餐,1 是 2 否
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "send_immediately")]
|
|
|
|
|
public int Send_immediately { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单当日流水号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "order_index")]
|
|
|
|
|
public string Order_index { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "status")]
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 送达时间类型 1定时达 2限时达(错峰配送)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "expect_time_mode")]
|
|
|
|
|
public int Expect_time_mode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 期望送达时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "send_time")]
|
|
|
|
|
public string Send_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取餐时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "pickup_time")]
|
|
|
|
|
public string Pickup_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 到店时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "atshop_time")]
|
|
|
|
|
public string Atshop_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 送餐时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "delivery_time")]
|
|
|
|
|
public string Delivery_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 骑士手机号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "delivery_phone")]
|
|
|
|
|
public string Delivery_phone { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 完成时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "finished_time")]
|
|
|
|
|
public string Finished_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 确认时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "confirm_time")]
|
|
|
|
|
public string Confirm_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "cancel_time")]
|
|
|
|
|
public string Cancel_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 配送费,单位:分
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "send_fee")]
|
|
|
|
|
public int Send_fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 餐盒费,单位:分
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "package_fee")]
|
|
|
|
|
public int Package_fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优惠总金额,单位:分
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "discount_fee")]
|
|
|
|
|
public int Discount_fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 商户应收金额(百度物流),单位:分(自配送为用户实付)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "shop_fee")]
|
|
|
|
|
public int Shop_fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单总金额,单位:分
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "total_fee")]
|
|
|
|
|
public int Total_fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户实付金额,单位:分
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "user_fee")]
|
|
|
|
|
public int User_fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 付款类型 1 下线 2 在线
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "pay_type")]
|
|
|
|
|
public int Pay_type { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否需要发票 1 是 2 否
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "need_invoice")]
|
|
|
|
|
public int Need_invoice { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发票抬头
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "invoice_title")]
|
|
|
|
|
public string Invoice_title { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "remark")]
|
|
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 物流类型 1 百度 2 自配送
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "delivery_party")]
|
|
|
|
|
public int Delivery_party { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "create_time")]
|
|
|
|
|
public string Create_time { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 餐具数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "meal_num")]
|
|
|
|
|
public string Meal_num { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消订单责任承担方
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "responsible_party")]
|
|
|
|
|
public string Responsible_party { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 佣金,单位:分
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "commission")]
|
|
|
|
|
public int Commission { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|