Booking stage
In the booking stage, the user can select a date and time to schedule an appointment in one of Onlive's services. In this stage, the availability of schedules and dates for the reservation is added to the context in the availability
field of type array
. Each element of this array has the following structure:
FieldName | Type | Required | Description | Default |
---|---|---|---|---|
owners | array | X | List of identifiers for the calendars of agents available for booking | |
assets | array | X | List of identifiers for the calendars of resources available for booking | |
startTime | timestamp | X | Start date and time of availability | |
deltaTimes | object | X | Times when an appointment can start, where the key is the time interval until the start time and the value is a tuple of two arrays: the agents and the resources to be used in the appointment. |
In this stage, the booking
object is added to the context with the following fields:
FieldName | Type | Required | Description | Default |
---|---|---|---|---|
agentId | string | X | Identifier of the agent's calendar who will attend the appointment | |
assets | array | List of identifiers for the resources to be used in the appointment | ||
templateId | string | X | Identifier of the appointment template to be used | |
selectedDateTime | string | X | Selected date and time for the appointment in UTC format "YYYY-MM-DDTHH:mm:ssZ" |