Implementation of required user stories #172
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All the required user stories and requirements were solved through this pull request:
As a User I want to be able to book a reservation for one or more tennis court at a given date schedule
As a User I want to be able to see what time slots are free
As a User I want to be able to cancel a reservation
As a User I want to be able to reschedule a reservation
As a Tennis Court Admin, I want to be able to Create/Update/Delete/Find by id/Find by name/List all the guests
As a Tennis Court Admin, I want to be able to create schedule slots for a given tennis court
As a Tennis Court Admin, I want to charge a reservation deposit of $10 to the user, charged per court, which is refunded upon completion of their match, so that Users don’t abuse my schedule
As a Tennis Court Admin, I want to refund the reservation deposit if the user has cancelled or rescheduled their reservation more than 24 hours in advance
As a Tennis Court Admin, I want to keep 25% of the reservation fee if the User cancels or reschedules between 12:00 and 23:59 hours in advance, 50% between 2:00 and 11:59 in advance, and 75% between 0:01 and 2:00 in advance
As a Tennis Court Admin, I want to keep 100% of the reservation deposit if the User does not show up for their reservation
As a Tennis Court Admin, I want to be able to see a history of my past reservations so that I can use the information to improve the management of my establishment
Technical requirements
Implement all the missing Restful swagger statements and the API paths to the controllers
Check why rescheduleReservation in the class ReservationService.java is not working correctly and fix it
Testing percentage
percentage: 88%
total tests: 93
all flows are covered
Added generated swagger.yaml to root of the project; Passed successfully all checks from swagger online editor.