Class TmaAbstractOrderOneTimeChargePriceBuilder
java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.orderentry.DefaultTmaAbstractOrderEntryPriceBuilder
de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.orderentry.impl.TmaAbstractOrderOneTimeChargePriceBuilder
- All Implemented Interfaces:
TmaAbstractOrderEntryPriceBuilder
public class TmaAbstractOrderOneTimeChargePriceBuilder
extends DefaultTmaAbstractOrderEntryPriceBuilder
Builder that creates a list of
TmaAbstractOrderPriceModel
from the list of one time charges set on the price- Since:
- 1907
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaAbstractOrderOneTimeChargePriceModelcreateAbstractOrderOneTimeChargePrice(Double price, BillingTimeModel billingTime, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) protected List<TmaAbstractOrderPriceModel>createPrices(PriceRowModel price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) Creates a list ofTmaAbstractOrderPriceModelbased on the param.protected List<TmaAbstractOrderPriceModel>createPrices(SubscriptionPricePlanModel price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) protected List<TmaAbstractOrderPriceModel>createPricesForPriceRow(PriceRowModel price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) Deprecated.since 2007.protected TmaBillingTimeServiceprotected de.hybris.platform.servicelayer.config.ConfigurationServiceDeprecated.since 2007voidsetBillingTimeService(TmaBillingTimeService billingTimeService) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Deprecated.since 2007protected booleanshouldCreatePrices(PriceRowModel price) Verify is the list of prices for order entry should be createdMethods inherited from class de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.orderentry.DefaultTmaAbstractOrderEntryPriceBuilder
buildPrices, getKeyGenerator, getModelService, getSubscriptionTermService, getTmaRetrieveTaxRateStrategy, populateBillingTime, populatePriceValues, retrieveDefaultBillingTime, setKeyGenerator, setModelService, setSubscriptionTermService, setTmaRetrieveTaxRateStrategy
-
Constructor Details
-
TmaAbstractOrderOneTimeChargePriceBuilder
public TmaAbstractOrderOneTimeChargePriceBuilder()
-
-
Method Details
-
shouldCreatePrices
Description copied from class:DefaultTmaAbstractOrderEntryPriceBuilderVerify is the list of prices for order entry should be created- Specified by:
shouldCreatePricesin classDefaultTmaAbstractOrderEntryPriceBuilder- Parameters:
price- the priceCharge based on which the order entry priceCharge should be created- Returns:
- Returns true if the condition that verifies if prices should be created is fulfilled, otherwise false
-
createPrices
protected List<TmaAbstractOrderPriceModel> createPrices(PriceRowModel price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) Description copied from class:DefaultTmaAbstractOrderEntryPriceBuilderCreates a list ofTmaAbstractOrderPriceModelbased on the param.- Specified by:
createPricesin classDefaultTmaAbstractOrderEntryPriceBuilder- Parameters:
price- the priceCharge used to create and populate the prices listentry- the entry for which the priceCharge is computedtaxes- the taxes that should be applied on the order entry priceCharge- Returns:
- the created and populated priceCharge list
-
createPrices
protected List<TmaAbstractOrderPriceModel> createPrices(SubscriptionPricePlanModel price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) -
createPricesForPriceRow
@Deprecated(since="2007") protected List<TmaAbstractOrderPriceModel> createPricesForPriceRow(PriceRowModel price, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) Deprecated.since 2007. Use insteadTmaAbstractOrderPriceValueBuilder -
createAbstractOrderOneTimeChargePrice
protected TmaAbstractOrderOneTimeChargePriceModel createAbstractOrderOneTimeChargePrice(Double price, BillingTimeModel billingTime, AbstractOrderEntryModel entry, List<de.hybris.platform.util.TaxValue> taxes) -
getBillingTimeService
-
setBillingTimeService
-
getConfigurationService
@Deprecated(since="2007") protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Deprecated.since 2007 -
setConfigurationService
@Deprecated(since="2007") public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Deprecated.since 2007
-