const baseURL = import.meta.env.VITE_API_BASE_URL;

let price = {
  getDefaultPriceList: `${baseURL}/Price/GetDefaultPriceList?priceType=`,
  updateDefaultPriceList: `${baseURL}/Price/UpdateDefaultPriceList`,
  exportDefaultPriceList: `${baseURL}/Price/ExportDefaultPriceList`,
  checkFee: `${baseURL}/Price/CheckFee`,
};

let wallet = {
  search: `${baseURL}/Wallet/Search`,
  createOrUpdate: `${baseURL}/Wallet/CreateOrUpdate`,
  getById: `${baseURL}/Wallet/GetById?id=`,
  getMyWallet: `${baseURL}/Wallet/GetMyWallet`,
  balanceAdjustment: `${baseURL}/Wallet/BalanceAdjustment/`,
  transfer: `${baseURL}/Wallet/Transfer`,
  getTransactions: `${baseURL}/Wallet/GetTransactions`,
  delete: `${baseURL}/Wallet/Delete?id=`,
  getSuggestions: `${baseURL}/Wallet/GetSuggestions`,
};
let cashier = {
  search: `${baseURL}/Cashier/Search`,
  collect: `${baseURL}/Cashier/Collect`,
};

let transaction = {
  searchWalletTransactions: `${baseURL}/Transaction/SearchWalletTransactions`,
  getById: `${baseURL}/Transaction/`,
  getStatistics: `${baseURL}/Transaction/Statistics/`,
  getBalanceHistory: `${baseURL}/Transaction/BalanceHistory/`,
};

export { price, wallet, cashier, transaction };
