public class MeituanPeisongFunctions extends AbstractFunctionRule
LOGGER| 构造器和说明 |
|---|
MeituanPeisongFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ReceiveInfoModel |
cancelOrder(OrderCancelModel model)
取消订单
|
static ReceiveInfoModel |
checkShop(CheckShopModel model)
配送能力校验 根据合作方提供的模拟发单参数,确定美团是否可配送。
|
static ReceiveInfoModel |
createByCoordinates(OrderByCoordinatesModel model)
根据合作方的送件地址,自动选择合适的中间仓库作为线下货物的交接地点,并完成末端配送。
|
static ReceiveInfoModel |
createByShop(OrderByShopModel model)
合作方根据已录入的门店信息 将订单发送给美团配送平台。
|
static ReceiveRiderLocationModel |
getRiderLocation(QueryOrderModel model)
获取骑手位置
|
static OrderExceptionNotifyModel |
parseExceptionNotify(javax.servlet.http.HttpServletRequest req)
解析订单状态回调 每次订单状态发生变化时,会对合作方提供的回调url进行回调。
|
protected static <T extends AbstractMeituanNotifyModel> |
parseNotify(Class<T> clazz,
javax.servlet.http.HttpServletRequest req) |
static OrderStateNotifyModel |
parseOrderStateNotify(javax.servlet.http.HttpServletRequest req)
订单异常回调 每次配送员上报订单异常(如商家未营业、顾客留错电话等等)时,会对合作方提供的异常回调url进行回调。
|
static ShopRangeChangeNotifyModel |
parseShopRangeChangeNotify(javax.servlet.http.HttpServletRequest req)
配送范围变更回调 每次美团运营新增、修改配送范围时,会对合作方提供的配送范围变更回调url进行回调。
|
static ReceiveQueryInfoModel |
queryOrder(QueryOrderModel model)
查询订单
|
static ReceiveInfoModel |
riderEvaluate(RiderEvaluateModel model)
评价骑手
|
public static ReceiveInfoModel createByShop(OrderByShopModel model) throws IOException, NoSuchAlgorithmException, MutilsErrorException
model - 预下单实体IOExceptionMutilsErrorExceptionNoSuchAlgorithmExceptionExceptionpublic static ReceiveInfoModel createByCoordinates(OrderByCoordinatesModel model) throws IOException, NoSuchAlgorithmException, MutilsErrorException
model - 预下单实体IOExceptionMutilsErrorExceptionNoSuchAlgorithmExceptionExceptionpublic static ReceiveQueryInfoModel queryOrder(QueryOrderModel model) throws NoSuchAlgorithmException, MutilsErrorException, IOException
model - 订单查询modelNoSuchAlgorithmExceptionMutilsErrorExceptionIOExceptionpublic static ReceiveRiderLocationModel getRiderLocation(QueryOrderModel model) throws NoSuchAlgorithmException, MutilsErrorException, IOException
model - 订单查询modelNoSuchAlgorithmExceptionMutilsErrorExceptionIOExceptionpublic static ReceiveInfoModel cancelOrder(OrderCancelModel model) throws NoSuchAlgorithmException, MutilsErrorException, IOException
model - 订单查询modelNoSuchAlgorithmExceptionMutilsErrorExceptionIOExceptionpublic static ReceiveInfoModel riderEvaluate(RiderEvaluateModel model) throws NoSuchAlgorithmException, MutilsErrorException, IOException
model - 骑手评价modelNoSuchAlgorithmExceptionMutilsErrorExceptionIOExceptionpublic static ReceiveInfoModel checkShop(CheckShopModel model) throws NoSuchAlgorithmException, MutilsErrorException, IOException
model - 校验门店modelNoSuchAlgorithmExceptionMutilsErrorExceptionIOExceptionpublic static OrderExceptionNotifyModel parseExceptionNotify(javax.servlet.http.HttpServletRequest req) throws UnsupportedEncodingException
req - UnsupportedEncodingExceptionpublic static OrderStateNotifyModel parseOrderStateNotify(javax.servlet.http.HttpServletRequest req) throws UnsupportedEncodingException
req - UnsupportedEncodingExceptionpublic static ShopRangeChangeNotifyModel parseShopRangeChangeNotify(javax.servlet.http.HttpServletRequest req) throws UnsupportedEncodingException
req - UnsupportedEncodingExceptionprotected static <T extends AbstractMeituanNotifyModel> T parseNotify(Class<T> clazz, javax.servlet.http.HttpServletRequest req) throws UnsupportedEncodingException
Copyright © 2019. All rights reserved.