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

Calculate Rental Termination Cost #11

Open
chariondm opened this issue Mar 14, 2024 · 0 comments
Open

Calculate Rental Termination Cost #11

chariondm opened this issue Mar 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chariondm
Copy link
Owner

chariondm commented Mar 14, 2024

As a delivery driver,
I want to know the total cost of my rental agreement upon termination,
So that I can make the necessary payment.

Acceptance Criteria:

  • The system must calculate the total cost of the rental based on the rental plan and any additional fees incurred.
    • If the motorcycle is returned early, apply a penalty fee on the unused days.
      • For a 7-day plan, a 20% penalty is applied to the cost of unused days.
      • For a 15-day plan, a 40% penalty is applied to the cost of unused days.
      • For a 30-day plan, a 60% penalty is applied to the cost of unused days.
    • If the motorcycle is returned late, additional fees must be applied.
      • Additional days beyond the expected end date incur a charge of R$50,00 per extra day.

Note:

  • Eu como entregador quero informar a data que irei devolver a moto e consultar o valor total da locação.
    • Quando a data informada for inferior a data prevista do término, será cobrado o valor das diárias e uma multa adicional
      • Para plano de 7 dias o valor da multa é de 20% sobre o valor das diárias não efetivadas.
      • Para plano de 15 dias o valor da multa é de 40% sobre o valor das diárias não efetivadas.
      • Para plano de 30 dias o valor da multa é de 60% sobre o valor das diárias não efetivadas.
    • Quando a data informada for superior a data prevista do término, será cobrado um valor adicional de R$50,00 por diária adicional.
@chariondm chariondm added the enhancement New feature or request label Mar 14, 2024
@chariondm chariondm changed the title Motorcycle Return and Total Rental Cost Inquiry Calculate Rental Termination Cost Mar 22, 2024
chariondm added a commit that referenced this issue Mar 22, 2024
Include a comprehensive Design Document for the new Rental Module in the Moto Delivery Manager system. This document outlines the module's objectives, system components, operation flow, architectural considerations, implementation details, and concludes with a summary of the module's impact on the system. The DesignDoc aligns with the latest system specifications and introduces asynchronous processing with AWS SQS, Restful API usage, and a clear depiction of the rental lifecycle management.

refs.: #10, #11 and #22
chariondm added a commit that referenced this issue Mar 22, 2024
Include a comprehensive Design Document for the new Rental Module in the Moto Delivery Manager system. This document outlines the module's objectives, system components, operation flow, architectural considerations, implementation details, and concludes with a summary of the module's impact on the system. The DesignDoc aligns with the latest system specifications and introduces asynchronous processing with AWS SQS, Restful API usage, and a clear depiction of the rental lifecycle management.

refs.: #10, #11 and #22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant