Class BundleFindDiscountValuesHook
java.lang.Object
de.hybris.platform.configurablebundleservices.bundle.impl.BundleFindDiscountValuesHook
- All Implemented Interfaces:
FindDiscountValuesHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DiscountValuecreateDiscountValue(double discountPrice, double basePrice, String id, CurrencyModel currency) Creates a DiscountValue with an absolute reduction based on the givenbasePriceand the givendiscountPriceFind applicableDiscountValues for the target order entry.booleanIndicates whether a custom base price can be found for the givenAbstractOrderEntryModel.voidsetBundleRuleService(BundleRuleService bundleRuleService) voidsetBundleTemplateService(BundleTemplateService bundleTemplateService)
-
Constructor Details
-
BundleFindDiscountValuesHook
public BundleFindDiscountValuesHook()
-
-
Method Details
-
findDiscountValues
Description copied from interface:FindDiscountValuesHookFind applicableDiscountValues for the target order entry.- Specified by:
findDiscountValuesin interfaceFindDiscountValuesHook- Returns:
- List of
DiscountValues
-
isApplicable
Description copied from interface:FindDiscountValuesHookIndicates whether a custom base price can be found for the givenAbstractOrderEntryModel.- Specified by:
isApplicablein interfaceFindDiscountValuesHook- Parameters:
entry-AbstractOrderEntryModel- Returns:
- whether hook is applicable
-
createDiscountValue
protected DiscountValue createDiscountValue(double discountPrice, double basePrice, String id, CurrencyModel currency) Creates a DiscountValue with an absolute reduction based on the givenbasePriceand the givendiscountPrice- Returns:
DiscountValue
-
setBundleTemplateService
-
getBundleTemplateService
-
setBundleRuleService
-
getBundleRuleService
-