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(minimum-commitment): Add minimum commitment #164

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

ivannovosad
Copy link
Contributor

@ivannovosad ivannovosad commented Mar 13, 2024

Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/set-minimum-spend-for-subscriptions

Context

As a user, I want to define the minimum spend that applies to the customer's plan. Consider the following monthly plan:

  • Subscription fee = $50 per month (in arrears);
  • Usage-based charge = $10 per unit per month (in arrears); and
  • Monthly minimum spend = $100.

If at the end of the month, the customer has consumed 3 units, their total invoice will be: $50 + 3 * $10 = $80 + $20 (true-up fee) = $100.

Description

This PR adds minimum commitment to plan and plan overrides.

@ivannovosad ivannovosad merged commit d8a44ac into main Mar 19, 2024
1 check passed
@ivannovosad ivannovosad deleted the feat-minimum-commitment branch March 19, 2024 07: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