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.SubscriptionCommercePriceServicePrice service for retrieving applicable prices considering aTmaPriceContext. Dependency toSubscriptionCommercePriceServicehas been marked as deprecated in 1903.- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Set<PriceRowModel>filterPricesbyPriceContext(TmaPriceContext priceContext)Retrieves all instances ofPriceRowModels andSubscriptionPricePlanModels for the {@param priceContextData} and {@param productModel} provided.PriceRowModelgetBestApplicablePrice(TmaPriceContext priceContext)Retrieves the bestPriceRowModelapplicable for the given context, be it either the standalone price of the offering or a price override.PriceRowModelgetBestApplicablePrice(AbstractOrderEntryModel orderEntryModel)Retrieves the bestPriceRowModelapplicable for the given {@param orderEntryModel}, considering the context in which the offering has been bought (either standalone or as part of a bundle).PriceRowModelgetMinimumPrice(TmaPriceContext priceContext)Deprecated.since 2007.PriceRowModelgetMinimumPrice(AbstractOrderEntryModel orderEntryModel)Deprecated.since 2007.java.lang.DoublegetMinimumPriceValue(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.PriceRowModelgetStandAlonePriceForSpo(ProductModel productOfferingModel, TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.since 1903.
-
-
-
Method Detail
-
getMinimumPrice
@Deprecated(since="2007") PriceRowModel getMinimumPrice(TmaPriceContext priceContext)
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
PriceRowModel getBestApplicablePrice(TmaPriceContext priceContext)
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
java.lang.Double 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. 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") PriceRowModel getMinimumPrice(AbstractOrderEntryModel orderEntryModel)
Deprecated.since 2007. Replaced with getBestApplicablePrice(de.hybris.platform.core.model.order.AbstractOrderEntryModel)Retrieves the minimumPriceRowModelwhich may be applicable for the given {@param orderEntryModel}, 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
PriceRowModel getBestApplicablePrice(AbstractOrderEntryModel orderEntryModel)
Retrieves the bestPriceRowModelapplicable for the given {@param orderEntryModel}, 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
-
getStandAlonePriceForSpo
@Deprecated(since="1903", forRemoval=true) PriceRowModel getStandAlonePriceForSpo(ProductModel productOfferingModel, TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.since 1903. Use insteadgetMinimumPrice(TmaPriceContext)Retrieves the applicable price of a simple {@param productOfferingModel} considering the configuration provided in the {@param priceContext} given or null if no such price is found.- Parameters:
productOfferingModel- product offering for which to retrieve the pricepriceContext- price context for which the configuration needs to be valid- Returns:
- price of the provided {@param productOffering} and {@param priceContext}
-
filterPricesbyPriceContext
java.util.Set<PriceRowModel> filterPricesbyPriceContext(TmaPriceContext priceContext)
Retrieves all instances ofPriceRowModels andSubscriptionPricePlanModels for the {@param priceContextData} and {@param productModel} provided.- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
PriceRowModels retrieved from the configuration provided by the {@param priceContextData}
-
-