From 65c0afeb948173ea681f24439a8149b8dfa98dab Mon Sep 17 00:00:00 2001 From: James Date: Wed, 4 Dec 2024 15:14:19 +0100 Subject: [PATCH] Fix README.md --- README.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2e0c26f..3a44b9d 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ ## Database schema ## Tickets +⚠️ Tests, factories & seeders are mandatory/required + ### Bugfix - Error on login On first login after registering, this error is thrown: @@ -80,14 +82,10 @@ ### Bugfix - Error on login Call to a member function transactions() on null ``` -You need to write a test to ensure that this error does not occur again. - ### Feature - Notification when balance is low When a user balance is low (< 10€), he should be notified by email. -You must write a test for this feature. - ### Feature - Recurring transfers As a user, I want to be able to create recurring transfers. @@ -108,12 +106,21 @@ ### Feature - Recurring transfers This feature must be available in the API and the front-end. -You must write tests for this features. +### BONUS - Feature - Taking out a loan -Don't forget to write seeders & factories. +As a user I can ask to take out a loan. -### BONUS - Feature - Sync wallet balance +**The credit is granted automatically if the following conditions are met:** -You need to write an action that reconstitutes the balance of a portfolio from its transaction history. +0-200 € : +- If, over a 3-month period, the average account balance was above €100. -You must write tests for this action. +200-500 € : +- If, over a 3-month period, the average account balance was over €300; +- and the user has made at least 5 transfers over the same period. + +500-1000 € : +- If over a 3-month period, the average account balance was above €500; +- and the user has made at least 1 transfer representing at least 50% of this average balance over the last six months. + +Once the credit has been taken out, a recurring transfer (spread over 3 months) which the user cannot delete must be created, with a periodicity of 30 days.