-
Notifications
You must be signed in to change notification settings - Fork 41
WIP Transition states in the booking process
Table 3 : Transition states of the booking process
Phase | # | State | Description |
---|---|---|---|
Planning | 1 | Availability check | In the planning phase, a MP can check the real-time availability of assets from a TO. In this way, a MP can offer their Users an overview of which assets and options are currently available following the User's request (for a specific mode, a specific location or other User conditions). A time-to-live can optionally be added to the response to show the User how long the information will be valid for. Just before presenting the results to the user add provideIds = true to get booking ids. |
Booking | 2 | Pending | Once the User has narrowed down their selection, the MP can send a booking request to the TO for a specific asset (or asset type) selection, using the ids provided in the previous step. This creates a booking with the state PENDING and temporarily 'freezes' an asset while the User is finalizing the selection (i.e., while the User is having to choose multiple options for multiple legs of a journey). A time-to-live in the availability confirmation response is mandatory. |
3 | Released | If a User decides to go for other options than the one(s) narrowed down, the PENDING state can be cancelled by the MP. The Booking State is changed to RELEASED. This frees up the asset for other Users. | |
4 | Expired | If the expiry time for the PENDING state is reached (as defined in the time-to-live in the availability confirmation), because the User has not (yet) made a selection, the booking state changes to EXPIRED and the corresponding asset(s) are no longer 'frozen' for the specific request and the asset is released for other Users. | |
5 & 6 | Confirmed & Rejected | If a User confirms the selection of a given option, the asset (or asset type) is requested from the MP to the TO and the Booking State changes to either CONFIRMED (in case the “authentication” and payment conditions are met) or to REJECTED (in case the “authentication” and/or “payment” conditions haven’t been met). | |
Trip Execution | 7 | Started | Once the confirmed asset is in use, the Booking State is changed to STARTED. |
8 | Paused | If a User wants to pause a ride (fe. park a bike) the Booking Stage can be changed to PAUSED. | |
9 | Finished | Once the asset is returned, the leg is considered completed and the booking state is changed to FINISHED. | |
Exception states | C | Cancelled | If the asset confirmation is cancelled by the MP (which could also happen upon request from the User), the Booking State changes to CANCELLED, and the corresponding terms and conditions for cancellations between TOs and MPs apply. If the asset confirmation is cancelled by the TO (in case of a broken-down vehicle, late return etc.), the booking state changes to CANCELLED, and the corresponding terms and conditions for cancellations between TOs and MPs apply. |
CC | Conditional-Confirmed (Optional) | Optional booking state for parties acting as a “broker” between TOs and MPs. This state supports a postponed commitment by the broker (which would act as a TO) and originated by its sub-TOs. The CONDITIONAL-CONFIRMED state can be set by the TO to inform that a reservation it’s not yet completely confirmed. Whenever the subcontractor confirms, the booking state will change to CONFIRMED. The CONDITIONAL-CONFIRMED stated is also limited by a time-to-postponed-commitment, if the time has expired, the booking state will become EXPIRED. |
In the planning phase, a MP can check the real-time availability of assets from a TO. In this way, a MP can offer their Users an overview of which assets and options are currently available following the User's request (for a specific mode, a specific location or other User conditions). A time-to-live can optionally be added to the response to show the User how long the information will be valid for. Just before presenting the results to the user add
provideIds = true
to get booking ids.
Once the User has narrowed down their selection, the MP can send a booking request to the TO for a specific asset (or asset type) selection, using the ids provided in the previous step. This creates a booking with the state PENDING and temporarily 'freezes' an asset while the User is finalizing the selection (i.e., while the User is having to choose multiple options for multiple legs of a journey). A time-to-live in the availability confirmation response is mandatory.
If a User decides to go for other options than the one(s) narrowed down, the PENDING state can be cancelled by the MP. The Booking State is changed to RELEASED. This frees up the asset for other Users.
If the expiry time for the PENDING state is reached (as defined in the time-to-live in the availability confirmation), because the User has not (yet) made a selection, the booking state changes to EXPIRED and the corresponding asset(s) are no longer 'frozen' for the specific request and the asset is released for other Users.
If a User confirms the selection of a given option, the asset (or asset type) is requested from the MP to the TO and the Booking State changes to either CONFIRMED (in case the “authentication” and payment conditions are met) or to REJECTED (in case the “authentication” and/or “payment” conditions haven’t been met).
Once the confirmed asset is in use, the Booking State is changed to STARTED.
If a User wants to pause a ride (fe. park a bike) the Booking Stage can be changed to PAUSED.
Once the asset is returned, the leg is considered completed and the booking state is changed to FINISHED.
If the asset confirmation is cancelled by the MP (which could also happen upon request from the User), the Booking State changes to CANCELLED, and the corresponding terms and conditions for cancellations between TOs and MPs apply. If the asset confirmation is cancelled by the TO (in case of a broken-down vehicle, late return etc.), the booking state changes to CANCELLED, and the corresponding terms and conditions for cancellations between TOs and MPs apply.
Optional booking state for parties acting as a “broker” between TOs and MPs. This state supports a postponed commitment by the broker (which would act as a TO) and originated by its sub-TOs. The CONDITIONAL-CONFIRMED state can be set by the TO to inform that a reservation it’s not yet completely confirmed. Whenever the subcontractor confirms, the booking state will change to CONFIRMED. The CONDITIONAL-CONFIRMED stated is also limited by a time-to-postponed-commitment, if the time has expired, the booking state will become EXPIRED.
Introduction
- Roadmap
- Semantic versioning
- Use cases
- Changes per version
- Contribution
- Participants
Workflow
- Operator information
- Planning phase
- Booking phase
- Trip execution phase - start
- Trip execution phase - on route
- Trip execution phase - end
- Support
- Payment
Points of attention
- Modalities
- Specifying locations
- GDPR
Eco system
- Relations
Introduction
Scope of the TOMP-API
Versioning and releases
Process Flows
- Authentication
- Operator Information
- Privacy and Registration
- Planning Module
- Booking Module
- Trip Execution Module
- Payment Module
- Support Module
Meta-Information
Reference implementations
To-dos and risks
Technical Specifications
A1 List of terms and definitions
A2 Passenger characteristics dictionary
A3 APIs available on the transportation ecosystem
A4 Overview of the User stories
A5 Authors, Architects, collaborators and stakeholders involved
A6 Adoption and Implementation of the TOMP-API