import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../utils/index.js";
//#region src/components/eftposPay/serve.ts
const getDeviceList = function() {
	var _ref = _asyncToGenerator(function* (params, config) {
		return request.getRequest().get("/shop/pay/card-reader", params, config);
	});
	return function getDeviceList(_x, _x2) {
		return _ref.apply(this, arguments);
	};
}();
(function() {
	var _ref2 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().get("/shop/pay/manufacturers", params, config);
	});
	return function getEftposList(_x3, _x4) {
		return _ref2.apply(this, arguments);
	};
})();
(function() {
	var _ref3 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/metadata", params, config);
	});
	return function updateEftpos(_x5, _x6) {
		return _ref3.apply(this, arguments);
	};
})();
(function() {
	var _ref4 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().get(`/shop/pay/card-reader/${params.id}`, {}, config);
	});
	return function deviceDefault(_x7, _x8) {
		return _ref4.apply(this, arguments);
	};
})();
(function() {
	var _ref5 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().remove(`/shop/pay/card-reader/${params.id}`, {}, config);
	});
	return function deleteDevice(_x9, _x10) {
		return _ref5.apply(this, arguments);
	};
})();
(function() {
	var _ref6 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/pay/card-reader", params, config);
	});
	return function addDevice(_x11, _x12) {
		return _ref6.apply(this, arguments);
	};
})();
(function() {
	var _ref7 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().put(`/shop/pay/card-reader/${params.id}`, {}, config);
	});
	return function editDevice(_x13, _x14) {
		return _ref7.apply(this, arguments);
	};
})();
const verifyData = function() {
	var _ref8 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/pay/card-reader/verify", params, config);
	});
	return function verifyData(_x15, _x16) {
		return _ref8.apply(this, arguments);
	};
}();
const getTransaction = function() {
	var _ref9 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().get("/shop/pay/card-reader/transaction/list", params, config);
	});
	return function getTransaction(_x17, _x18) {
		return _ref9.apply(this, arguments);
	};
}();
const payButton = function() {
	var _ref10 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/pay/card-reader/button", params, config);
	});
	return function payButton(_x19, _x20) {
		return _ref10.apply(this, arguments);
	};
}();
const payData = function() {
	var _ref11 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/pay/card-reader/pay", params, config);
	});
	return function payData(_x21, _x22) {
		return _ref11.apply(this, arguments);
	};
}();
const refundData = function() {
	var _ref12 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/pay/card-reader/refund", params, config);
	});
	return function refundData(_x23, _x24) {
		return _ref12.apply(this, arguments);
	};
}();
const addTransaction = function() {
	var _ref13 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().post("/shop/pay/card-reader/transaction", params, config);
	});
	return function addTransaction(_x25, _x26) {
		return _ref13.apply(this, arguments);
	};
}();
const editTransaction = function() {
	var _ref14 = _asyncToGenerator(function* (id, params, config) {
		return request.getRequest().put(`/shop/pay/card-reader/transaction/${id}`, params, config);
	});
	return function editTransaction(_x27, _x28, _x29) {
		return _ref14.apply(this, arguments);
	};
}();
const linklyPayQuery = function() {
	var _ref15 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().get("/shop/linkly/pay/query", params, config);
	});
	return function linklyPayQuery(_x30, _x31) {
		return _ref15.apply(this, arguments);
	};
}();
const linklyRefundQuery = function() {
	var _ref16 = _asyncToGenerator(function* (params, config) {
		return request.getRequest().get("/shop/linkly/refund/query", params, config);
	});
	return function linklyRefundQuery(_x32, _x33) {
		return _ref16.apply(this, arguments);
	};
}();
//#endregion
export { addTransaction, editTransaction, getDeviceList, getTransaction, linklyPayQuery, linklyRefundQuery, payButton, payData, refundData, verifyData };
