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(tresholds): Add models #2368

Merged
merged 2 commits into from
Aug 5, 2024
Merged

feat(tresholds): Add models #2368

merged 2 commits into from
Aug 5, 2024

Conversation

ivannovosad
Copy link
Contributor

Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/progressive-billing

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

This PR adds migration and model for progressive billing tresholds.

@ivannovosad ivannovosad force-pushed the feat-tresholds-model branch from 897b639 to 4b68a29 Compare August 5, 2024 11:00
@ivannovosad ivannovosad force-pushed the feat-tresholds-model branch 2 times, most recently from a9773ac to 597252b Compare August 5, 2024 12:15
@ivannovosad ivannovosad requested a review from nudded August 5, 2024 13:08
@ivannovosad ivannovosad merged commit 2e3068e into main Aug 5, 2024
6 checks passed
@ivannovosad ivannovosad deleted the feat-tresholds-model branch August 5, 2024 13:24
abdussamadbello pushed a commit to abdussamadbello/lago-api that referenced this pull request Aug 8, 2024
## Roadmap Task

👉  https://getlago.canny.io/feature-requests/p/progressive-billing

## 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

This PR adds migration and model for progressive billing tresholds.
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