A ticket stop corresponds to a decrease of the actual duration of an ongoing ticket. From a StreetSmart point of view, it is a modification of an existing resource by adding of a ticket stop operation structure data.
To send a ticket stop to StreetSmart, the ticket sales Application has to use: PATCH /parkingTickets request containing a ParkingTicketStopProduct (cf. Ref.01 for mandatory and optional request attributes |
This ticket extension product can be built from the ParkingOffers that are provided by StreetSmart.
Offers are retrieved from StreetSmart using GET /parkingRights or GET /parkingOffers responses.
Amount of the stop ticket operation: it depends on the strategy chosen on the ticket initial creation: •ticket amount evaluated on every operation: then the stop operation amount can be negative since it is a refund of non-consumed parking time. •ticket amount evaluated at the end of the ticket: then the stop operation amount is positive or null since it corresponds to the real cost of the consumed parking time. |