getlago / lago-go-client

Lago Go Client
MIT License
21 stars 20 forks source link

feat(minimum-commitment): Add minimum commitment #164

Closed ivannovosad closed 5 months ago

ivannovosad commented 6 months ago

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:

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.