maas-alliance / apis

Example APIs designed to support the MaaS ecosystem.
Apache License 2.0
4 stars 4 forks source link

Review booking state #29

Open strodlflu opened 5 years ago

strodlflu commented 5 years ago

Not all states seems to be clear.

[ NEW, BOOKED, CANCELLED, PAID, UPDATE_REQUESTED, UPDATED, STARTED, FINISHED ]

The difference between new and booked is not clear.

Paid should not be a state of the booking as it a different workflows. The state of the booking is not clear from the state PAID.

What is the motivation of UPDATE_REQUESTED, UPDATED?

A simplification is: "OPEN" "PENDING" "COMPLETED"

We think about having an fourth state: "ERROR" when something went wrong with external TSP that is not forseen in workflow.