import { _asyncToGenerator } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { _objectWithoutProperties } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import { request } from "../../../../../utils/index.js";
//#region src/components/pay/toC/PaymentMethods/WalletPass/serve.ts
const _excluded = ["order_id"];
/**
* 查询支付识别码列表
*/
const getMachineCodeList = function() {
	var _ref = _asyncToGenerator(function* (params) {
		const { data } = yield request.getRequest().post(`/h5/machinecode/order/deduction`, params);
		return data;
	});
	return function getMachineCodeList(_x) {
		return _ref.apply(this, arguments);
	};
}();
(function() {
	var _ref2 = _asyncToGenerator(function* (order_id) {
		const { data } = yield request.getRequest().get(`/h5/machinecode/order/deduction/recommend`, { order_id });
		return data;
	});
	return function getRecommendMachineCodeList(_x2) {
		return _ref2.apply(this, arguments);
	};
})();
/**
* 搜索支付识别码
*/
const searchMachineCodeList = function() {
	var _ref3 = _asyncToGenerator(function* (params) {
		const { data } = yield request.getRequest().post(`/h5/machinecode/order/deduction/search`, params);
		return data;
	});
	return function searchMachineCodeList(_x3) {
		return _ref3.apply(this, arguments);
	};
}();
/**
* walletpass支付
*/
const walletPassPay = function() {
	var _ref4 = _asyncToGenerator(function* (params) {
		const { order_id } = params, others = _objectWithoutProperties(params, _excluded);
		const { data } = yield request.getRequest().post(`/h5/pay/order/wallet-pass-pay/${order_id}`, others);
		return data;
	});
	return function walletPassPay(_x4) {
		return _ref4.apply(this, arguments);
	};
}();
/**
* 搜索wallet code
*/
const searchWalletCode = function() {
	var _ref5 = _asyncToGenerator(function* (params) {
		const { data } = yield request.getRequest().post(`/h5/wallet/detail/search`, params);
		return data;
	});
	return function searchWalletCode(_x5) {
		return _ref5.apply(this, arguments);
	};
}();
(function() {
	var _ref6 = _asyncToGenerator(function* (params) {
		const { data } = yield request.getRequest().post(`/h5/wallet/detail/pin/validate`, params);
		return data;
	});
	return function verifyPinCode(_x6) {
		return _ref6.apply(this, arguments);
	};
})();
(function() {
	var _ref7 = _asyncToGenerator(function* (params) {
		const { data } = yield request.getRequest().get(`/h5/wallet/detail/pin`, params);
		return data;
	});
	return function getPin(_x7) {
		return _ref7.apply(this, arguments);
	};
})();
//#endregion
export { getMachineCodeList, searchMachineCodeList, searchWalletCode, walletPassPay };
