import {get, post, download} from '../http'

const transaction = {
  getTransactionFilters: () => get('transaction/getTransactionFilters'),
  getTransactionPages: (params) => post('transaction/getTransactionPages', params),
  getTransactionDetail: (params) => get('transaction/getTransactionDetail', params),
  downloadInvoice: (chargingPk) => download('transaction/downloadInvoice', {transactionPk: chargingPk}),
  getMeasurandOptions: () => get('transaction/getMeasurands'),
  endTransaction: (params) => get('transaction/endTransaction', params)
}

export default transaction;