Skip to content
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

feat(mgmt): add credit purchase endpoints #360

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

jvallesm
Copy link
Collaborator

@jvallesm jvallesm commented Jun 11, 2024

Because

  • Instill Cloud must allow for credit purchase & purchase history.

This commit

  • Exposes the data required in the purchase page via 2 endpoints:
    • Get remaining credit returns detailed information about remaining credit.
    • List purchases returns a paginated list of credit purchases.

CleanShot 2024-06-11 at 13 31 25

@jvallesm jvallesm self-assigned this Jun 11, 2024
Copy link

linear bot commented Jun 11, 2024

INS-4210 Purchase credit

@jvallesm jvallesm marked this pull request as ready for review June 11, 2024 11:52
donch1989
donch1989 previously approved these changes Jun 12, 2024
@jvallesm jvallesm force-pushed the jvalles/ins-4210-purchase-credit branch from e1216cd to 5eeed6b Compare June 14, 2024 06:12
@jvallesm jvallesm force-pushed the jvalles/ins-4210-purchase-credit branch from 6d5712d to b2958b2 Compare June 18, 2024 09:04
@jvallesm
Copy link
Collaborator Author

Removed credit purchase list from the PR as it will be handled by the frontend in the beginning. I'll add a separate PR with the endpoint that can be opened when we tackle the switch from backend to frontend.

@jvallesm jvallesm merged commit 0700745 into main Jun 18, 2024
@jvallesm jvallesm deleted the jvalles/ins-4210-purchase-credit branch June 18, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 👋 Done
Development

Successfully merging this pull request may close these issues.

4 participants