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(ProgressiveBilling) - Add historical_usage_amount_cents to LifetimeUsage #2457

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

nudded
Copy link
Contributor

@nudded nudded commented Aug 22, 2024

Context

There's always a risk of customers not paying invoices generated at the end of a billing period. It would be beneficial to bill customers at given thresholds (units vs. amount) rather than waiting until the end of the period. This approach would allow for removing customer access if invoices are not paid and prevent having a highest amount of unpaid invoices.

Description

Add a historical_usage_amount_cents column to LifetimeUsage, this column can be filled in with usage coming from an external system.

We take the historical usage into account when checking if thresholds have been passed.

@nudded nudded merged commit e7597a4 into main Aug 22, 2024
6 checks passed
@nudded nudded deleted the feat-prog-billing-add-historical-usage-support branch August 22, 2024 08:57
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.

2 participants