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

Implement Credits::ProgressiveBillingService and add it to Invoices::CalculateFeesService #2443

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

nudded
Copy link
Contributor

@nudded nudded commented Aug 20, 2024

Context

AI companies want their users to pay before the end of a period if usage skyrockets. The problem being that self-serve companies can overuse their API without paying, triggering lots of costs on their side.

Description

Adds a service for calculating how much to deduct from the subscription invoice based on previously billed progressive invoices.

@nudded nudded force-pushed the feat-prog-billing-credit-invoiced branch from 9323e0a to 94556c2 Compare August 20, 2024 14:13
@nudded nudded merged commit 0b9395b into main Aug 20, 2024
6 checks passed
@nudded nudded deleted the feat-prog-billing-credit-invoiced branch August 20, 2024 15:09
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