From dbdcc817da0eb6c44aac8b25e6f13140632cf5e3 Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Wed, 22 Jun 2022 17:56:07 -0300 Subject: [PATCH 1/2] feat: should be able to see the balance --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c74ac566e..621260bab 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ In this challenge you should build an API for an application that stores and man 2. An investment should not be or become negative. 2. __View__ of an investment with its initial amount and expected balance. 1. Expected balance should be the sum of the invested amount and the [gains][]. + 2. If a Investment was already withdrawn then the expected balance must be calculed until the withdrawal date instead of today. 3. __Withdrawal__ of a investment. 1. The withdraw will always be the sum of the initial amount and its gains, partial withdrawn is not supported. 2. Withdrawals can happen in the past or today, but can't happen before the investment creation or the future. - 3. [Taxes][taxes] need to be applied to the withdrawals before showing the - final value. + 3. [Taxes][taxes] need to be applied to the withdrawals before showing the final value. 4. __List__ of a person's investments 1. This list should have pagination. From 2adb10ad8455520b9206fb1186691e047f800069 Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Thu, 23 Jun 2022 13:36:23 -0300 Subject: [PATCH 2/2] Update README.md Co-authored-by: Julia Possamai --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 621260bab..ea8115e67 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ In this challenge you should build an API for an application that stores and man 2. An investment should not be or become negative. 2. __View__ of an investment with its initial amount and expected balance. 1. Expected balance should be the sum of the invested amount and the [gains][]. - 2. If a Investment was already withdrawn then the expected balance must be calculed until the withdrawal date instead of today. + 2. If an investment was already withdrawn then the balance must reflect the gains of that investment 3. __Withdrawal__ of a investment. 1. The withdraw will always be the sum of the initial amount and its gains, partial withdrawn is not supported.