Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rent a car #5

Open
haroldcohen opened this issue Sep 29, 2023 · 0 comments
Open

Rent a car #5

haroldcohen opened this issue Sep 29, 2023 · 0 comments
Assignees

Comments

@haroldcohen
Copy link
Contributor

haroldcohen commented Sep 29, 2023

As a customer,
I want to rent a car,
In order to travel for leisure.

Description

As a customer, I can rent a car, choosing :

  • A car model
  • A pick up date and time
  • A drop off date and time

Business Rules

Conditions:

  • A car is available if it there is no overlapping rental (Drop off date time is superior to any of the car's rental pick up date time and the pick up date time is inferior to any of the car's rental drop off date time).
  • If no car is available, an error UnavailableCarError should be thrown.
  • The total price of the rental is the number of days multiplied by the daily rate of the car model.

System's state:

  • Unless an error occurs, a car rental should be created.

Out of scope

  • Currencies
  • VAT or any other tax related topic
  • Pick up location
  • Pricing from catalog
  • B2B Pricing
  • Rental options and accessories
  • Insurance and waivers
  • License registration and associated checks
  • Authentication and credential checks
  • Two hours vacancy between car rentals rule

Acceptance criteria

@haroldcohen haroldcohen self-assigned this Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant