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) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaRetrieveTaxRateStrategyprotected voidPopulates theTmaAbstractOrderPriceModel.getCatalogCode()withTmaProductOfferingPriceModel.getId()value.protected voidpopulateName(TmaProductOfferingPriceModel source, TmaAbstractOrderPriceModel target) 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
-
Constructor Details
-
DefaultTmaAbstractOrderEntryPopBuilder
public DefaultTmaAbstractOrderEntryPopBuilder(de.hybris.platform.servicelayer.model.ModelService modelService, TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy)
-
-
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
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getTmaRetrieveTaxRateStrategy
-