Rebooking
Throughout the lifespan of a reservation there can occur modifications to the linked departure.
Depending on the modifications, they may require updating the reservation to ensure consistency with the scheduled departures and available seats.
We refer to this process of updating reservations as rebooking. Rebooking is performed automatically when departures are modified. No actions are required by the clients during this process.
Any changes to reservations will be published to the kafka topic seating-reservations-v1-<env>[-<organisation id>]
and can be consumed by interested parties.
Additionally, any affected customers are notified about any changes to their reservations due to rebooking through SMS and/or e-mail.
What can cause rebooking?
Currently, a departure can be modified through several means:
- Updating timetable data and associated material(vehicles) through NeTEx formatted files. Including:
- Replacement (rail-replacement buses) - One or more departures are cancelled and replaced by others, usually with different stop places.
- Material change - One or more elements (e.g. train carriages) are removed, added or changed leading to a change in available seats.
- Overriding material on a specific departure.
- One or more elements (e.g. train carriages) are removed, added or changed leading to a change in available seats.
- Adding closures that requires relocation to one or a set of departures. A closure is one of the following:
- Element closure - one or more elements are closed for future reservations.
- Seat closure - one or more seats are closed for future reservations.
If any of these modifications are made, rebooking is automatically triggered on affected reservations.
What happens in the rebooking process?
When rebooking is triggered for a reservation, a new version the reservation is created with status DRAFT
.
One or more of the following will be updated to reflect the changes in scheduled departures and available seats:
- departure - the linked departure may be changed if the originally requested departure is replaced by another.
- stop places - the origin and/or destination of the reservation may be changed to reflect changes in stop places
- reservation lines - the reservation lines may be updated with new seats or compartments if the previous seats or compartments are no longer available.
- In some cases no new seats or compartments that fit the required seating properties of the reservation line are available. In which case the reservation lines are changed to
FailedRebookingReservationLines
to indicate that they no longer occupy any seats or compartments.
- In some cases no new seats or compartments that fit the required seating properties of the reservation line are available. In which case the reservation lines are changed to
Additionally, a rebooking status may be set to reflect the outcome of the rebooking process.
Rebooking status | When? |
---|---|
null | no changes are made to the stop places and reservation lines, but the departure may be updated |
REBOOKED_DRAFT | before rebooking the reservation still had status DRAFT , but changes has been made to the departure, stop places and/or reservation lines |
MANUAL | either no replacing stop places or seats/compartments were found, and affected reservation lines were changed to FailedRebookingReservationLines |
SUGGESTED | before rebooking the reservation had status CONFIRMED , but changes has been made to the stop places and/or seats/compartments |
ACCEPTED | a SUGGESTED reservation has been accepted. Usually a manual step performed through Entur Plass UI |
Rebooked reservations with rebooking status MANUAL
or SUGGESTED
cannot be updated to reservation status CONFIRMED
until any FailedRebookingReservationLines
has been updated with seats/compartments and the reservation subsequently is updated to status ACCEPTED
.
What happens after the rebooking process?
The rebooking process is considered finished either:
- when a rebooked reservation receives rebooking status
null
orREBOOKED_DRAFT
- when a successfully rebooked reservation that received status
SUGGESTED
has been manually updated with statusACCEPTED
and reservation statusCONFIRMED
- or when a failed rebooked reservation that received status
MANUAL
has been manually fixed with new seats and subsequently is updated to rebooking statusACCEPTED
and reservation statusCONFIRMED
.
Any changes made to the reservation throughout the process will be published to the kafka topic seating-reservations-v1-<env>[-<organisation id>]
and can be consumed by interested parties. No actions are required by the clients during this process.
In case a failed rebooked reservation is impossible to fix with new stop places and/or seats/compartments the reservation will currently remain with rebooking status MANUAL
and reservation status DRAFT
.
Notifications
When a CONFIRMED
reservation is rebooked to new stop places and/or new seat/compartments, and the changes are subsequently ACCEPTED
and CONFIRMED
, a notification is sent to the affected customer. The customer is only notified if they have registered contact information. The notification is sent through SMS and/or e-mail. Additionally an order-note with the notification text is added to the affected order.