import { axiosClient } from '@/api/axiosClient'
import type { SchedulePriceChangeRequest, SchedulePriceChangeResponse } from '../types'

export async function schedulePriceChange(
  id: number,
  payload: SchedulePriceChangeRequest,
): Promise<SchedulePriceChangeResponse> {
  const response = await axiosClient.put<SchedulePriceChangeResponse>(
    `/api/v1/admin/chargeable-chars/${id}/price`,
    payload,
  )
  return response.data
}
