Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Extend system_pricing_plans.json #252
Extend system_pricing_plans.json #252
Changes from 9 commits
f41436e
a7552c2
87853b8
8541633
62538f5
649cd2c
52aa49b
3ccda05
50a194c
672e320
ebea2c4
8404726
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that the
pricing_plan_id
is at the vehicle type level (instead of the vehicle type at the pricing level) to allow for easier dynamic pricing based on location, but based on my comment from September 15th (about the same plan having different pricing based on the vehicle type), this would be confusing.For example, if vehicle ABC is eligible for plan 123 with a certain
per_min_princing
and vehicle XYZ is also eligible for plan 123 but with anotherper_min_princing
. Both ABC and XYZ vehicles would be linked to the same pricing_plan_id=123, but there would actually be 2 objects withplan_id
=123 insystem_pricing_plans
including differentper_min_princing
based on the vehicle type and no way to know which vehicle is linked to which of theplan_id
=123 objects in this case (without data manipulation).I'm curious to know if we are the only ones with this particular case?
(FYI the "vehicle_type_id" is still in the
system_pricing_plans.json
example)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would effectively be two different pricing plans, and therefore would have two separate plan IDs, for example plan ID 123-ABC and plan ID 123-XYZ, the public name for these can be the same, but in the back end they are different. As a general rule of thumb, even if the public plan name is the same (ex: one-way), if the prices are different, they should be treated as separate plans with separate plan IDs.
Thanks for catching the example error! I'll make sure to fix that!