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

Revert "feat(invoice): Avoid generating 0 amount charge fees (#3032)" #3059

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

vincent-pochet
Copy link
Collaborator

This reverts commit 36315a9.

@vincent-pochet vincent-pochet merged commit 2cdf33b into main Jan 16, 2025
6 checks passed
@vincent-pochet vincent-pochet deleted the rollback-zero-amount branch January 16, 2025 14:41
vincent-pochet added a commit that referenced this pull request Jan 17, 2025
## Context

This PR is related to the rollback of the zero amount removal (See
#3059)

It appears that some customers are relying on the fees on some invoice
webhooks to retrieve the billing period info.

## Description

This PR makes sure that the billing period info are always sent in
webhooks / exposed in the API when, to ensure that users can rely on it
even if no fees have been created
vincent-pochet added a commit that referenced this pull request Jan 27, 2025
#3059) (#3068)

## Description

This PR follow #3020 the goal is
to stop generating empty fees (0 units, amount and events without
adjustments or true up fees).

The reason behind this change is scalability as for now, depending on
the plan setups, it appears that 98% of generated fees does not have an
amount...

**NOTE:** a new feature will improve the edit fees feature since this PR
will prevent creation of adjustment fees from the UI if no event have
been received for a specific billable metric on a period.
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.

4 participants