When the end-user validates a ticket operation, the ticket sales Application sends the corresponding Order to StreetSmart.
Advantage
Prevent the ticket sales application to have an automatic task that will detect the end of the ticket if end-user does not stop it before its end.
Disadvantage
The ticket sales application has to send two store requests for each ticket operation (one for the ticket, one for the order)
Tickets, orders amounts, and durations
On a new ticket:
•ticket: exact amount and duration
•order: exact sales amount
On ticket extension:
•ticket: extension duration and amount
•order: extension sales amount
On ticket stop:
•ticket: exact total ticket duration and refund amount
•order: non consuming parking time refund amount