Class DefaultTmaAbstractOrderEntryPopBuilder<T extends TmaProductOfferingPriceModel>
java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.orderentry.DefaultTmaAbstractOrderEntryPopBuilder<T>
- All Implemented Interfaces:
TmaAbstractOrderEntryPopPriceBuilder<T>
- Direct Known Subclasses:
TmaAbstractOrderAllowanceAlterationPriceBuilder,TmaAbstractOrderCompositePriceBuilder,TmaAbstractOrderCompositePriceBuilder,TmaAbstractOrderDiscountAlterationComponentPriceBuilder,TmaAbstractOrderOneTimeChargeComponentPriceBuilder,TmaAbstractOrderOneTimeChargeComponentPriceBuilder,TmaAbstractOrderRecurringChargeComponentPriceBuilder,TmaAbstractOrderRecurringChargeComponentPriceBuilder,TmaAbstractOrderUsageChargeComponentPriceBuilder,TmaAbstractOrderUsageChargeComponentPriceBuilder
public abstract class DefaultTmaAbstractOrderEntryPopBuilder<T extends TmaProductOfferingPriceModel>
extends Object
implements TmaAbstractOrderEntryPopPriceBuilder<T>
Abstract builder used for creation of a
TmaAbstractOrderPriceModel to be set on the order entry- Since:
- 2007
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaAbstractOrderEntryPopBuilder(de.hybris.platform.servicelayer.model.ModelService modelService, TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy, TmaAbstractOrderDiscountAlterationPriceBuilder tmaAbstractOrderDiscountAlterationPriceBuilder, TmaDiscountService tmaDiscountService, de.hybris.platform.europe1.channel.strategies.RetrieveChannelStrategy retrieveChannelStrategy) DefaultTmaAbstractOrderEntryPopBuilder(de.hybris.platform.servicelayer.model.ModelService modelService, TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy, TmaAbstractOrderDiscountAlterationPriceBuilder tmaAbstractOrderDiscountAlterationPriceBuilder, TmaDiscountService tmaDiscountService, de.hybris.platform.europe1.channel.strategies.RetrieveChannelStrategy retrieveChannelStrategy, TmaDiscountRowDao tmaDiscountRowDao) -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaPriceContextprotected Set<TmaAbstractOrderDiscountAlterationPriceModel>getGlobalAlterationsFromPOPDiscounts(AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes, Set<TmaProdOfferPriceAlterationModel> appliedDiscounts) protected de.hybris.platform.servicelayer.model.ModelServiceprotected de.hybris.platform.europe1.channel.strategies.RetrieveChannelStrategyprotected TmaDiscountRowDaoprotected TmaDiscountServiceprotected TmaRetrieveTaxRateStrategyprotected voidPopulates theTmaAbstractOrderPriceModel.getCatalogCode()withTmaProductOfferingPriceModel.getId()value.protected voidpopulateGlobalAlterations(TmaProductOfferingPriceModel source, TmaAbstractOrderPriceModel target, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) protected voidpopulateName(TmaProductOfferingPriceModel source, TmaAbstractOrderPriceModel target) protected voidpopulatePriceAlterations(TmaProductOfferingPriceContext source, TmaAbstractOrderPriceModel target, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) protected voidpopulatePriceValues(Double price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes, TmaAbstractOrderComponentPriceModel priceComponent) Populates the price values for the order entry price charge.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.orderentry.TmaAbstractOrderEntryPopPriceBuilder
buildPrice, buildPrice
-
Constructor Details
-
DefaultTmaAbstractOrderEntryPopBuilder
public DefaultTmaAbstractOrderEntryPopBuilder(de.hybris.platform.servicelayer.model.ModelService modelService, TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy, TmaAbstractOrderDiscountAlterationPriceBuilder tmaAbstractOrderDiscountAlterationPriceBuilder, TmaDiscountService tmaDiscountService, de.hybris.platform.europe1.channel.strategies.RetrieveChannelStrategy retrieveChannelStrategy) -
DefaultTmaAbstractOrderEntryPopBuilder
public DefaultTmaAbstractOrderEntryPopBuilder(de.hybris.platform.servicelayer.model.ModelService modelService, TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy, TmaAbstractOrderDiscountAlterationPriceBuilder tmaAbstractOrderDiscountAlterationPriceBuilder, TmaDiscountService tmaDiscountService, de.hybris.platform.europe1.channel.strategies.RetrieveChannelStrategy retrieveChannelStrategy, TmaDiscountRowDao tmaDiscountRowDao)
-
-
Method Details
-
populatePriceValues
protected void populatePriceValues(Double price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes, TmaAbstractOrderComponentPriceModel priceComponent) Populates the price values for the order entry price charge. If the price is net then the taxes are added to the duty free amount value, otherwise the taxes are subtracted from the duty free amount value- Parameters:
price- the price value to be set on the chargeentry- the entry for which the price charge is populatedtaxes- the taxes to be appliedpriceComponent- the component for which the price is populated
-
populateCatalogCode
protected void populateCatalogCode(TmaProductOfferingPriceModel source, TmaAbstractOrderPriceModel target) Populates theTmaAbstractOrderPriceModel.getCatalogCode()withTmaProductOfferingPriceModel.getId()value.- Parameters:
source- the product offering price based on which the catalog code will be populatedtarget- the cart price for which the catalog code will be populated
-
populateName
-
populateGlobalAlterations
protected void populateGlobalAlterations(TmaProductOfferingPriceModel source, TmaAbstractOrderPriceModel target, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) -
populatePriceAlterations
protected void populatePriceAlterations(TmaProductOfferingPriceContext source, TmaAbstractOrderPriceModel target, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) -
createPriceContextForDiscountRows
-
getGlobalAlterationsFromPOPDiscounts
protected Set<TmaAbstractOrderDiscountAlterationPriceModel> getGlobalAlterationsFromPOPDiscounts(AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes, Set<TmaProdOfferPriceAlterationModel> appliedDiscounts) -
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getTmaRetrieveTaxRateStrategy
-
getTmaAbstractOrderGlobalDiscountAlterationPriceBuilder
protected TmaAbstractOrderDiscountAlterationPriceBuilder getTmaAbstractOrderGlobalDiscountAlterationPriceBuilder() -
getTmaDiscountService
-
getRetrieveChannelStrategy
protected de.hybris.platform.europe1.channel.strategies.RetrieveChannelStrategy getRetrieveChannelStrategy() -
getTmaDiscountRowDao
-