liskcenterutrecht / lisk.bike

Techonology demonstrator project for the Lisk SDK based on the CommonBike bikesharing platform
https://lisk.bike
14 stars 3 forks source link

End rental #19

Closed Gimly-Caspar closed 4 years ago

Gimly-Caspar commented 5 years ago

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

bartwr commented 4 years ago

Returning a bike & end rental is implemented. For an overview of the working functionality, see https://github.com/liskcenterutrecht/lisk.bike/issues/18#issuecomment-552495823