Using the DerivedProductPriceExtensionPoint
The sn_csm_pricing.DerivedProductPriceExtensionPoint provides an interface with specific methods that call certain business logic for using valid source products in source and target product pairs in derived pricing.
The extension point has three methods:
canHandleRequest(pricingEngineContext): Determines whether the pricing engine can handle this extension point request.getAccountLevelDerivedPricedProductsEncodedQuery(pricingEngineContext): Custom query for account-level sold product lookup.getQualifiedSourceTargetPairs(pricingEngineContext, sourceTargetPairs): Filter source-target pairs in derived pricing. This method receives an array of pair objects after rule matrix evaluation. Each pair contains:sourceLineDetail- The PricingEngineContextLineDetail of the source linetargetLineDetail- The PricingEngineContextLineDetail of the target (derived) lineisPair- Boolean, true by default
To exclude a pair from calculation of the derived (target) product, set
pair.isPair = falseand return the modified array. IfisPair = true, the source line price is included in the price calculation of the derived (target) product.
To access the extension point, navigate to and select the sn_csm_pricing.DerivedProductPriceExtensionPoint.