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(group-by): handle group for in pay in advance charges #1620

Merged
merged 2 commits into from
Jan 23, 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 refactors the filtering arguments in the aggregation services:

  • Move the group argument as a sub value of a new filters one
  • Add grouped_by and grouped_by_value argument in the filters
  • Adapt logic for pay in advance charges

@vincent-pochet vincent-pochet added Billable Metric Related to the billable metrics Event Related to Events Charge labels Jan 19, 2024
@vincent-pochet vincent-pochet self-assigned this Jan 19, 2024
@vincent-pochet vincent-pochet changed the title Feat group by aggregators feat(group-by): handle group for in pay in advance charges Jan 19, 2024
@vincent-pochet vincent-pochet force-pushed the feat-group-by-aggregators branch from 793e385 to accb13c Compare January 23, 2024 10:07
@vincent-pochet vincent-pochet merged commit 0213b24 into main Jan 23, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the feat-group-by-aggregators branch January 23, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Billable Metric Related to the billable metrics Charge Event Related to Events
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants