Skip to content

Feat(fixed_charges): Extract chargeable validation service #4109

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

Merged
merged 4 commits into from
Aug 7, 2025

Conversation

ancorcruz
Copy link
Contributor

Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/allow-add-ons-to-be-added-to-subscription-invoices

👉 https://getlago.canny.io/feature-requests/p/define-quantities-for-plan-charges

Context

What is the current situation?

Option 1: User has to create a one off invoice alongside the
subscription, it will create 2 different invoices.

Option 2: User can add a recurring billable metric and use event to
have this fee invoice on subscription renewal, but it won’t appear on
the first billing subscription.

What problem are we trying to solve?

At subscription creation or afterward, there is no clear way to invoice
a fixed fee that is not tied to events, aside from the subscription fee
itself. This fee could be either a one-time charge or a recurring one.

Description

Add Plans::ChargeablesValidationService to validate billable metrics
and add ons for charges and fixed charges on plans creation params.

 ## Roadmap Task

 👉 https://getlago.canny.io/feature-requests/p/allow-add-ons-to-be-added-to-subscription-invoices

 👉 https://getlago.canny.io/feature-requests/p/define-quantities-for-plan-charges

  ## Context

 What is the current situation?

 **Option 1:** User has to create a one off invoice alongside the
 subscription, it will create 2 different invoices.

 **Option 2:** User can add a recurring billable metric and use event to
 have this fee invoice on subscription renewal, but it won’t appear on
 the first billing subscription.

 What problem are we trying to solve?

 At subscription creation or afterward, there is no clear way to invoice
 a fixed fee that is not tied to events, aside from the subscription fee
 itself. This fee could be either a one-time charge or a recurring one.

  ## Description

  Add `Plans::ChargeablesValidationService` to validate billable metrics
  and add ons for charges and fixed charges on plans creation params.
@ancorcruz ancorcruz self-assigned this Aug 7, 2025
@ancorcruz ancorcruz merged commit 84ade9f into main Aug 7, 2025
14 checks passed
@ancorcruz ancorcruz deleted the feat/fixed-charges-4/validate-fixed-charges-params branch August 7, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants