Interface TmaCommercePriceService
- All Superinterfaces:
de.hybris.platform.commerceservices.price.CommercePriceService,de.hybris.platform.subscriptionservices.price.SubscriptionCommercePriceService
- All Known Implementing Classes:
DefaultTmaCommercePriceService
public interface TmaCommercePriceService
extends de.hybris.platform.subscriptionservices.price.SubscriptionCommercePriceService
Price service for retrieving applicable prices considering a
TmaPriceContext. Dependency to
SubscriptionCommercePriceService has been marked as deprecated in 1903.- Since:
- 6.7
-
Method Summary
Modifier and TypeMethodDescriptionfilterPricesbyPriceContext(TmaPriceContext priceContext) Retrieves all instances ofPriceRowModels andSubscriptionPricePlanModels for the and provided.getBestApplicablePrice(TmaPriceContext priceContext) Retrieves the bestPriceRowModelapplicable for the given context, be it either the standalone price of the offering or a price override.getBestApplicablePrice(AbstractOrderEntryModel orderEntryModel) Retrieves the bestPriceRowModelapplicable for the given , considering the context in which the offering has been bought (either standalone or as part of a bundle).getMinimumPrice(TmaPriceContext priceContext) Deprecated.since 2007.getMinimumPrice(AbstractOrderEntryModel orderEntryModel) Deprecated.since 2007.getMinimumPriceValue(TmaPriceContext priceContext) Retrieves the value of the minimum price which may be applicable for the given context, be it either the standalone price of the offering or a price override.Methods inherited from interface de.hybris.platform.commerceservices.price.CommercePriceService
getFromPriceForProduct, getWebPriceForProductMethods inherited from interface de.hybris.platform.subscriptionservices.price.SubscriptionCommercePriceService
getFirstRecurringPriceFromPlan, getLastRecurringPriceFromPlan, getOneTimeChargeEntryPlan, getSubscriptionPricePlanForEntry, getSubscriptionPricePlanForProduct
-
Method Details
-
getMinimumPrice
Deprecated.since 2007. Replaced with getBestApplicablePrice(de.hybris.platform.b2ctelcoservices.pricing.context.TmaPriceContext)Retrieves the minimumPriceRowModelwhich may be applicable for the given context, be it either the standalone price of the offering or a price override.- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
- minimum
PriceRowModelapplicable for the given context
-
getBestApplicablePrice
Retrieves the bestPriceRowModelapplicable for the given context, be it either the standalone price of the offering or a price override.- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
- best
PriceRowModelapplicable for the given context
-
getMinimumPriceValue
Retrieves the value of the minimum price which may be applicable for the given context, be it either the standalone price of the offering or a price override. The priorities for retrieving the value are the following:- if the price has recurring charges, return the first recurring charge
- if the price has a value, return the value
- if the price has one time charges, return the first one time charge
- Parameters:
priceContext- price context to retrieve the price value from- Returns:
- price value considering the priorities mentioned above
-
getMinimumPrice
Deprecated.since 2007. Replaced with getBestApplicablePrice(de.hybris.platform.core.model.order.AbstractOrderEntryModel)Retrieves the minimumPriceRowModelwhich may be applicable for the given , considering the context in which the offering has been bought (either standalone or as part of a bundle).- Parameters:
orderEntryModel- the order entry for which the price will be computed- Returns:
- minimum
PriceRowModelapplicable for the given order entry
-
getBestApplicablePrice
Retrieves the bestPriceRowModelapplicable for the given , considering the context in which the offering has been bought (either standalone or as part of a bundle).- Parameters:
orderEntryModel- the order entry for which the price will be computed- Returns:
- best
PriceRowModelapplicable for the given order entry
-
filterPricesbyPriceContext
Retrieves all instances ofPriceRowModels andSubscriptionPricePlanModels for the and provided.- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
PriceRowModels retrieved from the configuration provided by the
-