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

misc(ProgressiveBilling): Add missing specs for lifetime usage #2538

Merged

Conversation

vincent-pochet
Copy link
Collaborator

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

This PR adds specs for the subscription#mark_as_active! making sure that the lifetime usage object (including the historical usage) is transferred from a previous subscription to a newly activated one

@vincent-pochet vincent-pochet changed the title feat(ProgressiveBilling): Add missing specs for lifetime usage misc(ProgressiveBilling): Add missing specs for lifetime usage Sep 5, 2024
@vincent-pochet vincent-pochet merged commit 676fe58 into main Sep 5, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the feat-progressive-billing-transfer-historical-usage branch September 5, 2024 13:37
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