ServiceResponseDto
idnumberrequired
ID услуги
Example:
1businessIdnumberrequired
ID бизнеса
Example:
1namestringrequired
Название услуги
Example:
Стрижка мужскаяdescriptionobjectnullablerequired
Описание услуги
Example:
Классическая мужская стрижкаdurationnumberrequired
Длительность услуги в минутах
Example:
30pricenumberrequired
Цена услуги
Example:
1500statusstringrequired
Статус услуги
Possible values: [active, inactive]
Example:
activebufferTimeBeforenumberrequired
Буферное время перед услугой (минуты)
Example:
5bufferTimeAfternumberrequired
Буферное время после услуги (минуты)
Example:
5isOnlinebooleanrequired
Доступна ли услуга для онлайн-записи
Example:
truecategoryobjectnullablerequired
Категория услуги
Example:
СтрижкаcreatedAtstring<date-time>required
Дата создания
Example:
2024-01-01T00:00:00.000ZupdatedAtstring<date-time>required
Дата обновления
Example:
2024-01-01T00:00:00.000ZServiceResponseDto
{
"id": 1,
"businessId": 1,
"name": "Стрижка мужская",
"description": "Классическая мужская стрижка",
"duration": 30,
"price": 1500,
"status": "active",
"bufferTimeBefore": 5,
"bufferTimeAfter": 5,
"isOnline": true,
"category": "Стрижка",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}