import { request } from "../../../utils/index.js";
//#region src/components/Sales/Checkout/serve.ts
/**
* @title: 下单前置校验接口
* @param {any} data
*/
const checkBeforeBookingApi = (data) => {
	return request.getRequest().post("/h5/eventbookingv2/order/check-config", data);
};
/**
* @title: 创建订单
* @param {any} data
*/
const createBookingApi = (data) => {
	return request.getRequest().post("/h5/eventbookingv2/order", data);
};
/**
* @title: 免费支付
* @param {string} orderId
*/
const freePayApi = (orderId) => {
	return request.getRequest().post(`/h5/pay/order/free-pay/${orderId}`, {});
};
//#endregion
export { checkBeforeBookingApi, createBookingApi, freePayApi };
