Skip to content

feat(invoice-preview): add minimum commitment fees#5535

Open
endenis wants to merge 1 commit into
mainfrom
feat/add-minimum-commitment-to-invoice-preview
Open

feat(invoice-preview): add minimum commitment fees#5535
endenis wants to merge 1 commit into
mainfrom
feat/add-minimum-commitment-to-invoice-preview

Conversation

@endenis
Copy link
Copy Markdown
Contributor

@endenis endenis commented May 19, 2026

Closes BIL-15

Context

Invoice previews were not including minimum commitment true-up fees.

The existing commitment fee code could not be reused without significant changes.

Description

  • Adds Fees::Commitments::Minimum::CalculatePreviewFeeService to compute the commitment fee
  • Current period's fees are passed as parameters and historical fees are queried by date range
  • Pay-in-advance plans reconcile the previous completed period, matching real invoicing behavior

@endenis endenis self-assigned this May 19, 2026
@endenis endenis added API Related to the public API Invoice Related to Invoices Fee labels May 19, 2026
@endenis endenis marked this pull request as ready for review May 19, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Related to the public API Fee Invoice Related to Invoices

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant