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

[UBP] Model free plan and other subscriptions #12741

Closed
svenefftinge opened this issue Sep 7, 2022 · 2 comments
Closed

[UBP] Model free plan and other subscriptions #12741

svenefftinge opened this issue Sep 7, 2022 · 2 comments
Assignees

Comments

@svenefftinge
Copy link
Member

svenefftinge commented Sep 7, 2022

The current free plan is 50h per month. We need to make sure that new users get a monthly credit entry for that.

Design Proposal

We will enhance the CostCenter type to contain information about a billingStrategy. There will initially be two strategies: stripe, other.

All cost centers with a stripe strategy are managed by stripe. So we will treat them as we do now (i.e. update the credits in every usage reconciliation and wait for Stripe to come up with an invoice finalization.

The other cost centers will be managed by a control loop, that inserts a credit into usage that is min(balance, usageLimit). This happens monthly.

@svenefftinge
Copy link
Member Author

I'm adding a nextBillingTime field as well that the control loop can use to find cost centers that need to be billed.

@svenefftinge
Copy link
Member Author

fixed by #13016

Repository owner moved this from In Progress to Done in 🍎 WebApp Team Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant