package com.yc.ship.module.trade.service.ota;



import com.yc.ship.module.ota.api.dto.DistributorRespDTO;
import com.yc.ship.module.trade.api.dto.TradeOrderCreateReqDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 去哪儿
 */
public interface QuNaErService {
    /**
     * 去哪儿-请求
     * @param tenementId
     * @param path
     * @param request
     * @param jsonStr
     * @return
     */
    String doRequest(Long tenementId, String path, HttpServletRequest request, String jsonStr);
    /**
     * 带事务的创建订单
     * @param otaOrderNo
     * @param order
     * @param isPay
     * @return
     */
    Map<String,Object> savePayOrder(String otaOrderNo, TradeOrderCreateReqDTO order, boolean isPay, DistributorRespDTO distributorRespDTO);

	/** 核销通知
     * @param map
     * @return
     */
    boolean consumeNotice(DistributorRespDTO distributorRespDTO, Map<String, Object> map);
   
}
