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: Add validation logic for the volume charge model #394

Merged
merged 2 commits into from
Aug 22, 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 pull request is the first step of the volume pricing charge model.
It adds the logic to validate a charge with a volume charge model.

@vincent-pochet vincent-pochet added the Plan Related to Plans label Aug 19, 2022
@vincent-pochet vincent-pochet self-assigned this Aug 19, 2022
@vincent-pochet vincent-pochet changed the title feat: Add validation logic for volume charge model feat: Add validation logic for the volume charge model Aug 19, 2022
@vincent-pochet vincent-pochet force-pushed the feature/volume-charge-model-definition branch from 89bf101 to 2b8cd1d Compare August 22, 2022 13:24
@vincent-pochet vincent-pochet merged commit 32a57c2 into main Aug 22, 2022
@vincent-pochet vincent-pochet deleted the feature/volume-charge-model-definition branch August 22, 2022 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Plan Related to Plans
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants