package com.hai.order.service;

import com.hai.entity.HighChildOrder;
import com.hai.entity.HighDiscountUserRel;
import com.hai.entity.HighOrder;
import com.hai.model.ResponseData;
import com.hai.order.model.CreateOrderCheckReturnData;
import com.hai.order.model.CreateOrderChildModel;

import java.util.List;

/**
 * 创建订单-业务校验
 * @className: CreateOrderCheckService
 * @author: HuRui
 * @date: 2022/8/25
 **/
public interface OrderCreateHandleService {

    /**
     * 卡券校验处理
     * @param discountUserRel  优惠券
     * @param createOrderChild       子订单参数
     * @return
     */
    List<HighChildOrder> couponHandle(HighDiscountUserRel discountUserRel, CreateOrderChildModel createOrderChild) throws Exception;

    /**
     * 积分充值校验
     * @param createOrderChild
     * @return
     */
    HighChildOrder integralRecharge(CreateOrderChildModel createOrderChild);

    /**
     * 加油校验
     * @param discountUserRel  优惠券
     * @param createOrderChild       子订单参数
     * @return
     */
    HighChildOrder oilHandle(HighOrder order,HighDiscountUserRel discountUserRel, CreateOrderChildModel createOrderChild);

    /**
     * 优惠券包校验
     * @param createOrderChild
     * @return
     */
    ResponseData couponPackage(CreateOrderChildModel createOrderChild);

    /**
     * 汇联通充值校验
     * @param createOrderChild
     * @return
     */
    ResponseData hltUnionCardRecharge(CreateOrderChildModel createOrderChild);

}
