import { _asyncToGenerator } from "../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../../../../utils/index.js";
//#region src/components/pay/toC/PaymentMethods/components/MiniProgramWaitingPaymentModal/serve.ts
const getStashData = function() {
	var _ref = _asyncToGenerator(function* (token) {
		try {
			const { data } = yield request.getRequest().get(`/h5/core/stash/${token}`, {});
			return data;
		} catch (err) {}
	});
	return function getStashData(_x) {
		return _ref.apply(this, arguments);
	};
}();
const getPaymentResult = function() {
	var _ref2 = _asyncToGenerator(function* (params) {
		try {
			const { orderId, paymentNumber } = params;
			if (!orderId || !paymentNumber) return null;
			const { data } = yield request.getRequest().get("/h5/pay/order/payment/result", {
				order_id: orderId,
				pay_number: paymentNumber
			});
			return data;
		} catch (err) {}
	});
	return function getPaymentResult(_x2) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
export { getPaymentResult, getStashData };
