ReservationRequest
Bases: BaseModel
Base model for validating reservation web form input. Works as is, or subclass to add extra form fields for additional user validation.
Attributes:
| Name | Type | Description |
|---|---|---|
email |
str
|
The user's email, required for inviting them to the reservation event and sending a reminder email. |
date |
date
|
The date of the reservation. |
start_time |
AmPmTime
|
The start time, can be input as a string "HH:MM AM/PM", converted to a time object. |
end_time |
AmPmTime
|
The end time, can be input as a string "HH:MM AM/PM", converted to a time object. |
end_next_day |
bool
|
Whether to interpret end_time as on the day after date, for overnight reservations. Defaults to False. |
shareable |
bool
|
Whether the user is willing to share a shareable resource with others who are willing to share during their reservation slot. Defaults to False. |
reminder |
bool
|
Whether the user wants an email reminder before the reservation begins. Defaults to True. |