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 invocing reason on the progressive billing invoice template #2472

Merged
merged 4 commits into from
Aug 26, 2024

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 updates the logic to render a usage threshold description on the progressive invoice PDF. It does so by creating a relation between the invoice and the usage threshold

@vincent-pochet vincent-pochet changed the title Feat progressive billing invoice relations feat(ProgressiveBilling): Add invocing reason on the progressive billing invoice template Aug 23, 2024
@vincent-pochet vincent-pochet force-pushed the feat-progressive-billing-invoice-relations branch from 64af03d to a6c6967 Compare August 23, 2024 15:14
app/services/invoices/progressive_billing_service.rb Outdated Show resolved Hide resolved
config/locales/de/invoice.yml Outdated Show resolved Hide resolved
config/locales/en/invoice.yml Outdated Show resolved Hide resolved
config/locales/es/invoice.yml Outdated Show resolved Hide resolved
config/locales/fr/invoice.yml Outdated Show resolved Hide resolved
config/locales/it/invoice.yml Outdated Show resolved Hide resolved
config/locales/nb/invoice.yml Outdated Show resolved Hide resolved
config/locales/sv/invoice.yml Outdated Show resolved Hide resolved
@vincent-pochet vincent-pochet force-pushed the feat-progressive-billing-invoice-relations branch from e6de956 to cf12ea0 Compare August 26, 2024 09:46
@vincent-pochet vincent-pochet force-pushed the feat-progressive-billing-invoice-relations branch from cf12ea0 to 44f84d0 Compare August 26, 2024 09:48
@vincent-pochet vincent-pochet merged commit b81aaad into main Aug 26, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the feat-progressive-billing-invoice-relations branch August 26, 2024 10:03
lovrocolic pushed a commit that referenced this pull request Aug 26, 2024
…ing invoice template (#2472)

## 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 updates the logic to render a usage threshold description on the
progressive invoice PDF. It does so by creating a relation between the
invoice and the usage threshold
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