Pricing Logic Implementation

Get Started. It's Free
or sign up with your email address
Pricing Logic Implementation by Mind Map: Pricing Logic Implementation

1. Enable Reasoning on all Recommendations

1.1. Create some sort of console to repeat the steps for calculator with "snapshotted" inputs for the recommendation.

1.2. Enable tracing for all automated steps/decisions for a given recommendation, including rouding (Observer)

2. Make it reasonable to implement and test changes that are required.

2.1. Make the Calculator Pure

2.1.1. Refine the inputs for the process Extract interface for different inputs depending on who needs them Make sure PricingRecommendationArguments implement those interfaces. Break up PricingRecommendationArguments class or remove it entirely. ProductPrice -> IProductPrice CompetitorPrices Elasticity Product Hierarquy Create composition (Director) instead of passing PricingRecommendationArguments all around.

2.1.2. Remove unecessary container injections

2.1.3. Create a "facade" for just the calculation Refactor: Pricing rules should be called "Strategies", and they should be composable. Compose strategies from PriceGroup Make sure "Fallback" strategies such as the Weighted Model are composable Get rid of IoC container

2.1.4. Reduce dependencies Remove unused code: Elasticity Remove noise: Recommendation Trail

2.1.5. Stateless Ensure inputs/outputs are not mixed in the calculator Make it possible to dry-run it with a set of inputs (acceptance testing)

2.1.6. Expose it as a service / endpoint? Create webApi controllers for enabling calculation on-demand via parameters Create REST contract for calculation

2.2. Take all "automation" logic away from "recommendation"