package cn.freemud.service.business;

import com.freemud.application.sdk.api.ordercenter.request.PaySuccessReq;
import com.freemud.sdk.api.assortment.order.request.order.CancelOrderRequest;
import com.freemud.sdk.api.assortment.order.request.order.ConfirmOrderRequest;
import com.freemud.sdk.api.assortment.order.request.order.CreateOrderRequest;
import com.freemud.sdk.api.assortment.order.response.order.BaseOrderResponse;
import com.freemud.sdk.api.assortment.order.response.order.CreateOrderResponse;
import com.freemud.sdk.api.assortment.order.response.order.PayAccessResponse;

/**
 * @ClassName: OrderBusinessService
 * @Description:
 * @Author: freemud
 * @Date: 2021/6/9 下午4:12
 */
public interface OrderBusinessService {
    PayAccessResponse payAccess(ConfirmOrderRequest confirmOrderRequest);

//    Integer getPaySuccessTimeout(ConfirmOrderRequest confirmOrderRequest, PaySuccessReq request);


    CreateOrderResponse createOrderFlow(CreateOrderRequest createOrderRequest);

    BaseOrderResponse orderCancel(CancelOrderRequest cancelOrderRequest);

}
