package com.freemud.application.sdk.api.ordercenter.constant;

/**
 * @author sunjiajie
 */
public class InterfaceAddressConstant {
    //创建订单
    public static final String CREATE_ORDER = "order/v2/create";
    //创建父子订单
    public static final String CREATE_FATHER_ORDER = "order/v2/createRelatedOrders";
    //根据订单CODE查询订单详细信息
    public static final String GET_ORDER_INFO = "order/v2/queryByCode";
    //修改订单信息
    public static final String EDIT_ORDER = "order/v2/updateOrder";
    //支付成功
    public static final String PAY_SUCCESS = "order/v2/paySuccess";
    //父子订单支付成功
    public static final String FATHER_ORDER_PAY_SUCCESS = "/order/v2/relatedOrdersPaySuccess";
    //删除订单
    public static final String DELETE_ORDER = "order/v2/delete";
    //取消整个订单
    public static final String CANCEL_ORDER = "order/v2/cancel";
    //创建售后单
    public static final String CREATE_AFTER_SALES_ORDER = "afterSales/v2/create";
    //获取取餐排队号-根据订单查询当前排队位置 /order/v2/queryQueueSize获取门店排队人数
    public static final String QUERY_QUEUE_INDEX = "order/v2/queryQueueIndex";
    //获取当前门店接单数-获取门店排队人数
    public static final String QUERY_QUEUE_SIZE = "order/v2/queryQueueSize";
    //根据用户综合条件查询
    public static final String QUERY_ORDER_FOR_USER = "order/v2/queryOrderForUser";
    //根据订单编号查询订单状态跟踪信息
    public static final String QUERY_TRACK_INFO = "order/v2/queryTrackInfo";


    //saas门店pos拉取订单
    public static final String PULL_ORDERS = "order/v2/pullOrders";
    //接单
    public static final String ACCEPT_ORDER = "order/v2/accept";
    /**
     * 拒单 同取消订单接口
     */
    //制作完成
    public static final String MAKE_FINISH = "order/v2/prepareComplete";
    //制作完成发货
//    public static final String MAKE_FINISH_SEND = "order/v2/directDeliveryPrepare";
    //接单直接发货
    public static final String SEND_ORDER = "order/v2/directDelivery";
    //无配送完成
    public static final String DELIVERY_COMPLETE_ORDER = "order/v2/completeDelivery";
    //已配送完成
    public static final String PREPARE_COMPLETE_ORDER = "order/v2/prepareCompleteDelivery";
    //售后单审核-同意并退款完成
    public static final String REFUND_COMPLETE = "afterSales/v2/adultApproveWithRefundComplete";
    //售后单审核-同意并退货完成
    public static final String REFUND_RETURN = "/afterSales/v2/adultApproveWithGoodsReturned";
    //售后单审核-退款完成
    public static final String ADULT_REFUND_COMPLETE = "/afterSales/v2/adultRefundComplete";
    //售后单审核-拒绝申请
    public static final String REFUND_REJECT = "afterSales/v2/adultReject";


    //根据综合条件查询订单
    public static final String QUERY_ORDER_BY_CONDITIONS = "order/v2/queryOrderByConditions";
    //下载
    public static final String QUERY_ORDER_BY_SCROLL = "/order/v2/queryOrderByScroll";
    //下载
    public static final String QUERY_ORDER_ITEM_STATISTICS = "/order/v2/queryOrderItemSales";

    //修改订单配送信息
    public static final String UPDATE_DELIVERY_INFO = "order/v2/updateDeliveryInfo";

    //统计门店订单数据
    public static final String STORE_ORDER_STATISTIC = "order/v2/queryStatisticStoreOrder";

    //根据综合条件查询订单
    public static final String QUERY_ORDER_BY_DISCOUNT = "order/v2/queryOrderByDiscount";
    /**
     * 查询售后单
     */
    public static final String QUERY_AFTER_SALES_ORDER = "afterSales/v2/queryByConditionBackstage";

    /**
     * 批量查询订单状态
     */
    public static final String QUERY_ORDERS_STATE = "order/v2/queryOrderStates";
    /**
     * 开放平台POS拉单
     */
    public static final String BATCH_QUERY = "order/v2/batchQuery";
    /**
     * 通用订单状态修改
     */
    public static final String UPDATE_ORDER_STATE = "order/v2/updateOrderState";
    /**
     * 批量 查询订单明细
     */
    public static final String BATCH_ORDER_BY_CODES = "order/v2/batchQueryByCodes";
    /**
     * POS拉售后单
     */
    public static final String BATCH_QUERY_AFTER_SALES = "afterSales/v2/batchQuery";
    /**
     * 根据订单号查询售后单
     */
    public static final String QUERY_AFTER_SALES_BY_ORDERCODE = "afterSales/v2/queryByOrder";
    /**
     * 查询关联订单
     */
    public static final String QUERY_RELATED_ORDER_BY_CODE = "order/v2/queryRelatedOrderByCode";
    /**
     *
     修改订单编号
     */
    public static final String UPDATE_THIRD_ORDER_CODE = "order/v2/updateThirdOrderCode";
    /**
     * 更新订单异常信息
     */
    public static final String UPDATE_ABNORMAL_STATE="order/v2/updateAbnormalState";

    /**
     * 订单完成接口(围餐)
     */
    public static final String GROUP_AFFIRM = "group/v2/affirm";

    /**
     * 创建订单(围餐)
     */
    public static final String GROUP_CREATE = "group/v2/create";

    /**
     * 更新订单(围餐)
     */
    public static final String GROUP_UPDATEORDER = "group/v2/updateOrder";

    /**
     * 清空订单商品
     */
    public static final String GROUP_CLEARITEMS = "group/v2/clearItems";
    /**
     * 订单关闭（围餐未支付订单清台）
     */
    public static final String GROUP_CLOSE = "/group/v2/close";
    /**
     * 订单确认（从订单未支付或下单状态变成订单完成）会员使用
     */
    public static final String ORDER_AFFIRM = "order/v2/affirm";

    /**
     * 根据批次号查询余下数据，每次查询后scrollid 有效时间重新刷新为120秒
     */
    public static final String QUERY_ORDER_AFTER_SALE_DOWN = "order/v2/queryAfterSalesOrderByScrollId";
    /**
     *根据综合条件查询售后单(单次查询默认返回500条（建议pageSize不要大于1000），返回的scrollId 有效时间为120秒)
     */
    public static final String QUERY_AFT_SALE_ORDER_LIST = "order/v2/queryAfterSalesOrderConditions";
    /**
     * 根据订单号查询订单详情
     */
    public static final String QUERY_ORDER_BY_CODE = "order/v2/queryOrderByCode";

    /**
     * 根据用户ID 查询30分钟内未支付并且有券的 订单
     */
    public static final String QUERY_ORDER_WITH_COUPON="order/v2/queryOrderWithCoupon";
    /**
     * 订单管理
     */
    public static final String STATUS_OPERATE="order/statusOperate";

    /**
     *修改下游POS商订单数据
     */
    public static final String UPDATE_DOWNSTREAM_THIRD_ORDER_CODE = "order/v2/updateDownstreamOrderCode";

    /**
     * 根据订单下游POS数据查询订单
     */
    public static final String GET_ORDER_INFO_DOWNSTREAM = "order/v2/queryOrderByDownstream";
}
