The ticket sales Application does not send an Order to StreetSmart after each ticket operation validated by the end-user. It waits until the end of the ticket (ticket expiry or ticket stopped by the end-user) to send an Order that represents the amount of the global ticket, from its initial start to its final end.
Advantage
Prevent the ticket sale application from having to send an Order for each ticket operation.
Disadvantage
The ticket sale application must have an automatic task that will detect the end of the ticket if the end-user does not stop it before its end.
Tickets, orders amounts, and durations
On a new ticket:
•ticket: amount = 0 and duration = exact duration
•order: N/A
On ticket extension:
•ticket: amount = 0 and duration = extension duration
•order: N/A
On ticket stop:
•ticket: exact total ticket duration and total ticket amount
•order: exact total ticket amount