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

feat(grouped-by) Refact AdjustedFees for grouped by #1630

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

Some customers have requested a way to group usage fees on an invoice using an event property. The same charge model properties should be applied to each group. The logic will only apply to standard charge model.

Description

This PR changes adds a new grouped_by json field to the AdjustedFee model and moves the creation of fees from an adjusted fee into a proper service to ease the next steps of the feature and make it easier to tests and maintain.

@vincent-pochet vincent-pochet force-pushed the feat-group-by-adjusted-fees branch from 46689c1 to 2f86015 Compare January 25, 2024 09:33
@vincent-pochet vincent-pochet merged commit 44cbf96 into main Jan 25, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the feat-group-by-adjusted-fees branch January 25, 2024 09:49
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