package com.bonus.core.order.custom;

import cn.hutool.core.collection.CollUtil;
import com.bonus.core.common.custom.business.CustomBusiness;
import com.bonus.core.order.common.model.OrderInfo;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

@Service
public class OrderCustomAndroidBusiness implements CustomBusiness {
   public String name() {
      return "订单（设备）";
   }

   public List<CustomBusiness.Version> versions() {
      return CollUtil.newArrayList(new CustomBusiness.Version[]{CustomBusiness.Version.of("3.7.0", "初版"), CustomBusiness.Version.of("3.11.2", "叫号添加日期入参"), CustomBusiness.Version.of("3.11.4", "添加试算埋点"), CustomBusiness.Version.of("3.11.5", "叫号码改造")});
   }

//   public boolean willPlaceParamCheck(OrderPayAndroidTotalDTO androidTotalDTO) {
//      return true;
//   }
//
//   public void didPlaceParamCheck(OrderPayAndroidTotalDTO androidTotalDTO) {
//   }
//
//   public void didCreatePay(OrderPayAndroidTotalDTO androidTotalDTO, UnifyPayDTO unifyPayDTO) {
//   }
//
//   public void didPackageOrderInfo(OrderPayAndroidTotalDTO androidTotalDTO, DeviceInfoVO deviceInfoVO, UnifyPayDTO unifyPayDTO, List<OrderInfo> orderInfoList, List<OrderDetail> orderDetailList, List<OrderDelivery> orderDeliveryList) {
//   }
//
//   public OrderPayAndroidVO didPayResultHandler(UnifyPayDTO payDTO, UnifyPayVO payVO, List<OrderInfo> orderInfoList, List<OrderDetail> orderDetailList, OrderPayAndroidVO orderPayAndroidVO) {
//      return orderPayAndroidVO;
//   }
//
//   public OrderPayAndroidVO didTrialResultHandler(OrderSavePO orderSavePO, OrderPayAndroidVO orderPayAndroidVO) {
//      return orderPayAndroidVO;
//   }
//
//   public OrderPayAndroidVO willOrderPay(OrderSavePO orderSavePO) {
//      return null;
//   }
//
//   public String willCreateOrderMealCode(Long canteenId, Long stallId, LocalDate orderDate, Integer mealtimeType) {
//      return null;
//   }
//
//   public String didCreateOrderMealCode(Long canteenId, Long stallId, LocalDate orderDate, Integer mealtimeType, String mealCode) {
//      return mealCode;
//   }
//
//   public OrderAndroidSignInVO willSignIn(OrderInfo orderInfo, OrderSignInAndroidDTO param) {
//      return null;
//   }
//
//   public OrderAndroidSignInVO didSignIn(OrderInfo orderInfo, OrderSignInAndroidDTO param, OrderAndroidSignInVO result) {
//      return result;
//   }
//
//   public boolean willUpdateOrderDishesStateV2(OrderInfo orderInfo, OrderDishesUpdateDTO dishesUpdateDTO) {
//      return true;
//   }

   public void didUpdateOrderDishesStateV2(OrderInfo orderInfo, Integer dishesStateBeforeUpdated) {
   }
//
//   public OrderTakeAndroidVO willCustTakeMeal(OrderTakeAndroidDTO takeAndroidDTO) {
//      return null;
//   }
//
//   public OrderTakeAndroidVO didCustTakeMeal(OrderTakeAndroidDTO takeAndroidDTO, OrderTakeAndroidVO takeAndroidVO) {
//      return takeAndroidVO;
//   }
//
//   public void didQueryOrderCallPage(OrderCallQueryDTO queryDTO, PageVO<OrderCallListVO> pageVO) {
//   }
//
//   public void didQueryOrderPage(OrderListAndroidQueryDTO queryDTO, PageVO<OrderListAndroidVO> pageVO) {
//   }
//
//   public void didSaveOrderPhotoV2(List<OrderPhoto> orderPhotoList) {
//   }
//
//   public OrderPayAndroidVO willQueryPayResult(String macOrderId) {
//      return null;
//   }
//
//   public OrderPayAndroidVO didQueryPayResult(String macOrderId, OrderPayAndroidVO orderPayAndroidVO) {
//      return orderPayAndroidVO;
//   }
}
