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: Implement volume pricing charge model logic #404

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

vincent-pochet
Copy link
Collaborator

Context

We want to introduce a new charge model to charge users based on a consumed volume.

The existing graduated pricing does not fit this need because it creates tier, and each tier has its own price.
The volume price works differently, it creates tiers, but the whole number of units is multiplied by the current tier. Then, the number of units consumed determine the total price for each unit.

Description

This PR adds the core charge model logic.

Related Task

This PR follows #394

@vincent-pochet vincent-pochet merged commit 2d34cc8 into main Aug 25, 2022
@vincent-pochet vincent-pochet deleted the feature/volume-logic branch August 25, 2022 07:47
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants