if user wishes to end rental, user application checks that rental status of bike is started, sends request to VLS to close the lock and looks for status update that lock is closed.
Rental costs are calculated – (rental end - rental start) rental costs
– substracted from deposit, and remaining deposit is returned from BikeID to UserID:
Rental payment: reimburse deposit - rental costs; (rental end - rental start) rental costs
if user wishes to end rental, user application checks that rental status of bike is started, sends request to VLS to close the lock and looks for status update that lock is closed.
Rental costs are calculated – (rental end - rental start) rental costs – substracted from deposit, and remaining deposit is returned from BikeID to UserID: Rental payment: reimburse deposit - rental costs; (rental end - rental start) rental costs
Rental status of BikeID is updated