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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(min-spending): Add scenario specs #1787

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

ivannovosad
Copy link
Contributor

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 scenario specs.

@ivannovosad ivannovosad marked this pull request as draft March 14, 2024 10:23
@ivannovosad ivannovosad force-pushed the min-spend-scenario-specs branch 4 times, most recently from 7cc837b to bc1e9ef Compare March 15, 2024 14:28
@ivannovosad ivannovosad marked this pull request as ready for review March 18, 2024 13:02
@ivannovosad ivannovosad merged commit 3d49185 into main Mar 18, 2024
7 checks passed
@ivannovosad ivannovosad deleted the min-spend-scenario-specs branch March 18, 2024 13:07
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.

None yet

2 participants