import type { PeriodPrice, PeriodPricePayload } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddPeriodPriceInput = { houseId: string payload: PeriodPricePayload } const addPeriodPrice = (http: HttpClient) => ({ query: ( input: AddPeriodPriceInput, ): Promise> => { return http.post( `v3/admin/houses/${input.houseId}/period_prices`, input.payload, ) }, }) export default addPeriodPrice