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): Improvements on PDF and APIs #2469

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Aug 23, 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

This PR:

  • Improves the PDF templates to render the previously billed progressive billing amount
  • Exposes the progressive_billing_credit_amount_cents in REST and GraphQL APIs as well as in invoice related webhooks.
  • Ensures that the Clock::RefreshLifetimeUsagesJob job is performed only in premium mode

@vincent-pochet vincent-pochet force-pushed the feat-progressive-billing-premium branch from ef3796d to 61a4126 Compare August 23, 2024 08:55
@vincent-pochet vincent-pochet force-pushed the feat-progressive-billing-premium branch from 61a4126 to 62c2f8b Compare August 23, 2024 09:20
@nudded nudded changed the title feat(ProgressiceBilling): Improvements on PDF and APIs feat(ProgressiveBilling): Improvements on PDF and APIs Aug 23, 2024
@vincent-pochet vincent-pochet merged commit 9f374d3 into main Aug 23, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the feat-progressive-billing-premium branch August 23, 2024 12:52
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