Add reservation related fields (reservation_available, reservation_compulsory, reservation_delay) in next departures service output
for each departure found by TDG service, add following fields in output :
- reservation_available (bool) : tells if it's possible to book
- reservation_compulsory (bool) : tells if it's mandatory to book
- reservation_delay (int) : tells in case a reservation is possible, the remaining minutes before the reservation end time
How to test :
- add a condition access with mandatory reservation (with 15 minute delay):
- add the previous condition access to a given service
- ensure service is activated for a given date
- test TDG service for the given date and the given service and ensure reservation flags are valid
- you can also ensure journey planner service provides same values for reservation flags
Edited by Yann Salaun