Open rootelement opened 3 years ago
Working on https://github.com/topcoder-platform/challenge-api/tree/feature/v5-ba
The flow will be like this:
Assumptions:
billingAccountId
is read-onlymarkup
can be different than what's in the Project info but we default to the one from the project info. (Values from 0 to 100 as it's a percentage)
For this issue, we'll implement billing account on the challenge object and then calculate the markup. This challenge depends on the projects api implementing the sfdc billing account markup property.
1. Implement Challenge API
Allow the challenge api to have a
billing
object:projectId
the billing account ID that comes back should match.GET /challenge
andGET /challenges/:uuid
should only return thebilling
object for Admin or m2m2. legacy-challenge-processor
There is currently a hack where it pulls the billing account id and writes it to the payload, change this to use the
billing.billingAccountId
TBD - project update notification
We might need to listen to project update notifications and update the BA/markup. Will confirm.