feat(appointment): enhance booking window functionality with day/week/month options and update defaults
This commit is contained in:
@@ -170,7 +170,7 @@ Which days of a month are bookable — used by the public calendar to grey out u
|
||||
"disabled_dates": ["2026-06-01", "2026-06-17", "2026-06-26"],
|
||||
"enabled_dates": ["2026-06-15", "2026-06-16", "2026-06-18"],
|
||||
"online_booking_enabled": true,
|
||||
"booking_window": { "value": 1, "unit": "month" }
|
||||
"booking_window": { "value": 3, "unit": "month" }
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -180,7 +180,7 @@ Which days of a month are bookable — used by the public calendar to grey out u
|
||||
| `disabled_dates` | string[] | `Y-m-d` days with no bookable slot (holiday / closed override / non-working / past / out-of-window) |
|
||||
| `enabled_dates` | string[] | `Y-m-d` days with at least one slot |
|
||||
| `online_booking_enabled` | boolean | Doctor's online-booking flag |
|
||||
| `booking_window` | object | `{ value, unit }` — `unit` is `week` or `month` |
|
||||
| `booking_window` | object | `{ value, unit }` — `unit` is `day`, `week` or `month` (default `3 month`) |
|
||||
|
||||
### Errors
|
||||
| Code | HTTP | Description |
|
||||
|
||||
Reference in New Issue
Block a user