Basically, the developer will have to add listeners to one (or more) events available on the Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine.Events.PriceEvents class and add custom logic inside the handlers.
In order to get an instance of the PriceEvents class, the following code must be executed:
var
8 event types were introduced:
- Pre & Post Base Price Application
- Pre & Post Trade Agreement Application
- Pre & Post Price Adjusment Application
- Pre & Post Price Rounding
All these events work on a line-by-line basis.