|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using POSV.OtherWaiMai;
|
|
|
|
|
|
|
|
|
|
namespace POSV.Card
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 饿了么订单响应
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
public class EleMeOrderResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "id")]
|
|
|
|
|
public string OrderId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 顾客送餐地址
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "address")]
|
|
|
|
|
public string Address { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 下单时间(格式:yyyy-MM-dd HH:mm:ss)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "createdAt")]
|
|
|
|
|
public string CreatedAt { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单生效时间,即支付时间(格式:yyyy-MM-dd HH:mm:ss)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "activeAt")]
|
|
|
|
|
public string ActiveAt { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 配送费
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "deliverFee")]
|
|
|
|
|
public decimal DeliverFee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预计送达时间(格式:yyyy-MM-dd HH:mm:ss)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "deliverTime")]
|
|
|
|
|
public string DeliverTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "description")]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发票抬头
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "invoice")]
|
|
|
|
|
public string Invoice { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否预订单(0否1是)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "book")]
|
|
|
|
|
public bool IsBook { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否在线支付(0否1是)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "onlinePaid")]
|
|
|
|
|
public bool IsOnlinePaid { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 顾客联系电话
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "phoneList")]
|
|
|
|
|
public Object PhoneList { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 店铺Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "shopId")]
|
|
|
|
|
public string ShopId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 店铺名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "shopName")]
|
|
|
|
|
public string ShopName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 店铺当日订单流水号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "daySn")]
|
|
|
|
|
public int DaySn { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单状态(参照订单状态说明)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "status")]
|
|
|
|
|
public string Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 退单状态(参照退单状态说明)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "refundStatus")]
|
|
|
|
|
public string RefundStatus { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "userId")]
|
|
|
|
|
public string UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单总价/用户实付(单位:元)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "totalPrice")]
|
|
|
|
|
public decimal TotalPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 原始价格/优惠前的价格,即菜价加上配送费和打包费(单位:元)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "originalPrice")]
|
|
|
|
|
public decimal OriginalPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单收货人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "consignee")]
|
|
|
|
|
public string Consignee { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单收货地址经纬度(例:"121.83317,31.514559")
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "deliveryGeo")]
|
|
|
|
|
public string DeliveryGeo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 顾客送餐详情地址
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "deliveryPoiAddress")]
|
|
|
|
|
public string DeliveryPoiAddress { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否需要发票(0否1是)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "invoiced")]
|
|
|
|
|
public bool Invoiced { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 店铺实收
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "income")]
|
|
|
|
|
public decimal Income { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 饿了么服务费率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "serviceRate")]
|
|
|
|
|
public decimal ServiceRate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 饿了么服务费
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "serviceFee")]
|
|
|
|
|
public decimal ServiceFee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单中红包金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "hongbao")]
|
|
|
|
|
public decimal Hongbao { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 餐盒费
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "packageFee")]
|
|
|
|
|
public decimal PackageFee { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单活动总额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "activityTotal")]
|
|
|
|
|
public decimal ActivityTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 店铺承担活动费用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "shopPart")]
|
|
|
|
|
public decimal ShopPart { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 饿了么承担活动费用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "elemePart")]
|
|
|
|
|
public decimal ElemePart { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 降级标识(0否1是)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "downgraded")]
|
|
|
|
|
public bool Downgraded { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单详细类目的列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "groups")]
|
|
|
|
|
public List<EleMeGroups> Groups { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|