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