rshah98626 / PoolCar

Pool it up!
0 stars 0 forks source link

Pricing #50

Open rshah98626 opened 4 years ago

rshah98626 commented 4 years ago

Create some sort of endpoint/group of functions which determine the price of a ride.

Architectural Design: A potential solution could be to have a couple pricing models (as objects) which change based upon distance traveled during a ride. Then, once a ride is created, we link the closest matching model to a ride.

@Raajesh12 Good design?

rshah98626 commented 4 years ago

The PricingModel object can have price, range of distances that it covers, and the name of the model.