var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/eftposPay/serve.ts
var serve_exports = {};
__export(serve_exports, {
  addDevice: () => addDevice,
  addTransaction: () => addTransaction,
  deleteDevice: () => deleteDevice,
  deviceDefault: () => deviceDefault,
  editDevice: () => editDevice,
  editTransaction: () => editTransaction,
  getDeviceList: () => getDeviceList,
  getEftposList: () => getEftposList,
  getTransaction: () => getTransaction,
  linklyPayQuery: () => linklyPayQuery,
  linklyRefundQuery: () => linklyRefundQuery,
  payButton: () => payButton,
  payData: () => payData,
  refundData: () => refundData,
  updateEftpos: () => updateEftpos,
  verifyData: () => verifyData
});
module.exports = __toCommonJS(serve_exports);
var import_utils = require("../../utils");
var getDeviceList = async (params, config) => import_utils.request.getRequest().get("/shop/pay/card-reader", params, config);
var getEftposList = async (params, config) => import_utils.request.getRequest().get("/shop/pay/manufacturers", params, config);
var updateEftpos = async (params, config) => import_utils.request.getRequest().post("/shop/metadata", params, config);
var deviceDefault = async (params, config) => import_utils.request.getRequest().get(`/shop/pay/card-reader/${params.id}`, {}, config);
var deleteDevice = async (params, config) => import_utils.request.getRequest().remove(`/shop/pay/card-reader/${params.id}`, {}, config);
var addDevice = async (params, config) => import_utils.request.getRequest().post("/shop/pay/card-reader", params, config);
var editDevice = async (params, config) => import_utils.request.getRequest().put(`/shop/pay/card-reader/${params.id}`, {}, config);
var verifyData = async (params, config) => import_utils.request.getRequest().post("/shop/pay/card-reader/verify", params, config);
var getTransaction = async (params, config) => import_utils.request.getRequest().get("/shop/pay/card-reader/transaction/list", params, config);
var payButton = async (params, config) => import_utils.request.getRequest().post("/shop/pay/card-reader/button", params, config);
var payData = async (params, config) => import_utils.request.getRequest().post("/shop/pay/card-reader/pay", params, config);
var refundData = async (params, config) => import_utils.request.getRequest().post("/shop/pay/card-reader/refund", params, config);
var addTransaction = async (params, config) => import_utils.request.getRequest().post("/shop/pay/card-reader/transaction", params, config);
var editTransaction = async (params, config) => import_utils.request.getRequest().put(`/shop/pay/card-reader/transaction/${params.id}`, params, config);
var linklyPayQuery = async (params, config) => import_utils.request.getRequest().get("/shop/shop/linkly/pay/query", params, config);
var linklyRefundQuery = async (params, config) => import_utils.request.getRequest().get("/shop/linkly/refund/query", params, config);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  addDevice,
  addTransaction,
  deleteDevice,
  deviceDefault,
  editDevice,
  editTransaction,
  getDeviceList,
  getEftposList,
  getTransaction,
  linklyPayQuery,
  linklyRefundQuery,
  payButton,
  payData,
  refundData,
  updateEftpos,
  verifyData
});
