Skip to content

Tweak the check here to match Phoenix requirements for billing accounts #736

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmgasper
Copy link
Collaborator

@jmgasper jmgasper commented Nov 8, 2024

Here’s what I did:

  1. If you do not pass in a project ID when creating a challenge, but you do pass in the Phoenix timeline template ID (517e76b0-8824-4e72-9b48-a1ebde1793a8), the system will do no checking of any billing accounts. This is the current flow for you
  2. After this change, if you do pass in a project ID, the budget check will happen, regardless of the timeline template ID. The goal here is that all you need to do is add the project ID and make no other changes.

If you pass in a project ID and prizes that exceed the budget, you’ll get an error like this:

{
    "code": 13,
    "message": "Budget Error: Requested amount $256000000 exceeds available budget for Billing Account #80001072. Please contact the Topcoder Project Manager for further assistance."
}

@jmgasper jmgasper requested a review from testflyjets November 8, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant