update rezerv
This commit is contained in:
@@ -45,3 +45,20 @@ export function deleteBusinessService(id: string) {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
export type ClassPriceItem = {
|
||||
classId: string;
|
||||
price: number;
|
||||
durationMinutes?: number | null;
|
||||
isActive?: boolean;
|
||||
};
|
||||
|
||||
export function setBusinessServiceClassPrices(
|
||||
id: string,
|
||||
prices: ClassPriceItem[],
|
||||
) {
|
||||
return api<BusinessService>(`/business-services/${id}/class-prices`, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ prices }),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user