Skip to content

Implement BillingService.GetLatestInvoice #11692

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

Closed
Tracked by #9036
easyCZ opened this issue Jul 27, 2022 · 1 comment · Fixed by #12302 or #12377
Closed
Tracked by #9036

Implement BillingService.GetLatestInvoice #11692

easyCZ opened this issue Jul 27, 2022 · 1 comment · Fixed by #12302 or #12377
Assignees

Comments

@easyCZ
Copy link
Member

easyCZ commented Jul 27, 2022

Currently, when showing spending notifications to users we use the UsageService.ListUsage RPC and we sum up all the records. This is suboptimal, but more importantly it is the wrong data. Instead, we need to be looking at the current value of an Invoice (unpaid).

To that end, we want to add a new RPC to the BillingService. The RPC should be able to do the following:

  • Given a UserID, or TeamID, it find details about the latest invoice and retrieves the current value of that invoce (along with more info if needed)
@easyCZ
Copy link
Member Author

easyCZ commented Jul 27, 2022

@AlexTugarev AlexTugarev self-assigned this Aug 3, 2022
@jldec jldec moved this to Next Milestone in 🍎 WebApp Team Aug 18, 2022
@geropl geropl moved this from Next Milestone to In Progress in 🍎 WebApp Team Aug 22, 2022
Repository owner moved this from In Progress to Done in 🍎 WebApp Team Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants