using System;
using System.Xml.Serialization;

namespace Aop.Api.Domain
{
    /// <summary>
    /// KoubeiCateringOrderPushSignModel Data Structure.
    /// </summary>
    [Serializable]
    public class KoubeiCateringOrderPushSignModel : AopObject
    {
        /// <summary>
        /// 口碑推单批次号，口碑推单时传入；
        /// </summary>
        [XmlElement("batch_no")]
        public string BatchNo { get; set; }

        /// <summary>
        /// 扩展信息
        /// </summary>
        [XmlElement("ext_infos")]
        public string ExtInfos { get; set; }

        /// <summary>
        /// 口碑主订单号
        /// </summary>
        [XmlElement("order_id")]
        public string OrderId { get; set; }

        /// <summary>
        /// POS订单号；在接单的情况下，必须返回
        /// </summary>
        [XmlElement("out_biz_no")]
        public string OutBizNo { get; set; }

        /// <summary>
        /// 推单处理结果，可枚举：  (1) 已拒单：REJECT  (2) 已接单：RECEIPT
        /// </summary>
        [XmlElement("receipt_code")]
        public string ReceiptCode { get; set; }

        /// <summary>
        /// 接单时间
        /// </summary>
        [XmlElement("receipt_time")]
        public string ReceiptTime { get; set; }

        /// <summary>
        /// 拒单原因编码： (1) 桌号不存在，请联系服务员：TABLE_NOT_EXIST (2) 店铺太忙，无法接待：BUSY (3) 重复订单：DUPLICATE_ORDER (4) 店铺已打烊：SHOP_CLOSE (5) 菜品售完：SELL_OUT (6) 其他原因：OTHER_REASON (7) LOW_VERSION 收银系统版本过低 (8) SHOP_NOT_CONNECTED 没有门店绑定关系 (9) MERCHANT_NOT_AUTHORIZED 商户没有授权 (10) POS_UNCONNECTED POS关机或未联网 (11) DISH_REASON 菜品原因 (12) ACCEPT_REFUND 协商退款
        /// </summary>
        [XmlElement("reject_reason_code")]
        public string RejectReasonCode { get; set; }

        /// <summary>
        /// 拒单的原因描述
        /// </summary>
        [XmlElement("reject_reason_desc")]
        public string RejectReasonDesc { get; set; }
    }
}
