Closed teresantns closed 2 years ago
This includes coding the endpoint view on views.py, and including the corresponding path on urls.py
These requirements will translate into features in the code.
[x] Referral must be in the database
[x] If referral is accepted, referrer receives points
User cannot have an account already to accept (covered by create referral endpoint #3 - referral isn't created)
User has 30 days to accept the referral - moved this into #8
Creating the endpoint where a costumer can accept or decline a referral
This includes coding the endpoint view on views.py, and including the corresponding path on urls.py
Some requirements that must be met:
These requirements will translate into features in the code.
[x] Referral must be in the database
[x] If referral is accepted, referrer receives points
User cannot have an account already to accept (covered by create referral endpoint #3 - referral isn't created)
User has 30 days to accept the referral - moved this into #8