The project's database.
The token of the trip.
The trip as updated in the database.
As a side-effect, if the trip was confirmed, it increases the priority of the oldest entry in the waitlist.
TripTokenNotFoundError Thrown in case the token wasn't found in the database.
DatabaseUpdateError Thrown in case something went wrong while cancelling the trip.
Cancels a trip via token.