import type { Voucher, VoucherPayload } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddVoucherInput = { payload: VoucherPayload } const addVoucher = (http: HttpClient) => ({ query: ( input: AddVoucherInput, ): Promise> => { return http.post(`v3/admin/vouchers`, input.payload) }, }) export default addVoucher