Перейти до основного вмісту

ServiceResponseDto

idnumberrequired

ID услуги

Example: 1
businessIdnumberrequired

ID бизнеса

Example: 1
namestringrequired

Название услуги

Example: Стрижка мужская
descriptionobjectnullablerequired

Описание услуги

Example: Классическая мужская стрижка
durationnumberrequired

Длительность услуги в минутах

Example: 30
pricenumberrequired

Цена услуги

Example: 1500
statusstringrequired

Статус услуги

Possible values: [active, inactive]

Example: active
bufferTimeBeforenumberrequired

Буферное время перед услугой (минуты)

Example: 5
bufferTimeAfternumberrequired

Буферное время после услуги (минуты)

Example: 5
isOnlinebooleanrequired

Доступна ли услуга для онлайн-записи

Example: true
categoryobjectnullablerequired

Категория услуги

Example: Стрижка
createdAtstring<date-time>required

Дата создания

Example: 2024-01-01T00:00:00.000Z
updatedAtstring<date-time>required

Дата обновления

Example: 2024-01-01T00:00:00.000Z
ServiceResponseDto
{
"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"
}