Interface PriceFactory
-
- All Known Subinterfaces:
ExtendedPriceFactory
- All Known Implementing Classes:
AbstractPriceFactory
,CatalogAwareEurope1PriceFactory
,CustomPriceFactoryTest.TinyPriceFactory
,DummyPriceFactory
,DummyPriceFactoryImpl
,Europe1PriceFactory
,ExtendedCatalogAwareEurope1PriceFactory
,GeneratedEurope1PriceFactory
,PriceFactorySwitcher
,SappricingManager
,TestPriceFactory
@Deprecated public interface PriceFactory
Deprecated.PriceFactory methods are deprecated to use when the Hybris Platform is configured to use the service-layer based (the 'pdt.calculation.mode' is set to the 'sl' value) cart calculation (prices, tax & discounts) processing strategy. In this case please use dedicated replacements for methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ProductPriceInformations
getAllPriceInformations(SessionContext ctx, Product product, java.util.Date date, boolean net)
Deprecated.Please use {@link de.hybris.platform.product.PriceService.getAllPriceInformation(PriceCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.PriceValue
getBasePrice(AbstractOrderEntry entry)
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindPriceStrategy.findBasePrice(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.java.util.List
getDiscountValues(AbstractOrder order)
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy.findDiscountValues(AbstractOrderModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.java.util.List
getDiscountValues(AbstractOrderEntry entry)
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy.findDiscountValues(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.java.util.List
getProductDiscountInformations(SessionContext ctx, Product product, java.util.Date date, boolean net)
Deprecated.Please use {@link de.hybris.platform.order.DiscountService.getDiscountInformation(BaseCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.java.util.List
getProductPriceInformations(SessionContext ctx, Product product, java.util.Date date, boolean net)
Deprecated.Please use {@link de.hybris.platform.product.PriceService.getPriceInformations(PriceCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.java.util.List
getProductTaxInformations(SessionContext ctx, Product product, java.util.Date date)
Deprecated.Please use {@link de.hybris.platform.order.TaxService.getTaxInformation(BaseCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.java.util.Collection
getTaxValues(AbstractOrderEntry entry)
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindTaxValuesStrategy.findTaxValues(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.boolean
isNetUser(User user)
Deprecated.Please use {@link de.hybris.platform.servicelayer.user.UserNetCheckingStrategy.isNetUser(UserModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.
-
-
-
Method Detail
-
getAllPriceInformations
@Deprecated ProductPriceInformations getAllPriceInformations(SessionContext ctx, Product product, java.util.Date date, boolean net) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.product.PriceService.getAllPriceInformation(PriceCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to calculates a product price quote containing all applicable prices, discounts and taxes for the given product and net/gross state.This default implementation just calls
getProductPriceInformations(SessionContext, Product, Date, boolean)
,getProductTaxInformations(SessionContext, Product, Date)
andgetProductDiscountInformations(SessionContext, Product, Date, boolean)
and wraps the results inside aProductPriceInformations
object.Override to define the prices, taxes and discounts for all occasions when no order or order entry is available, e.g. for product lists. Please take care also to override
getProductPriceInformations(SessionContext, Product, Date, boolean)
,getProductTaxInformations(SessionContext, Product, Date)
andgetProductDiscountInformations(SessionContext, Product, Date, boolean)
since these methods are called byProduct
directly.- Throws:
JaloPriceFactoryException
- if a calculation error occured
-
getProductPriceInformations
@Deprecated java.util.List getProductPriceInformations(SessionContext ctx, Product product, java.util.Date date, boolean net) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.product.PriceService.getPriceInformations(PriceCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to show all prices available for the given product- Parameters:
product
- the productnet
- the net/gross state of the requested prices- Returns:
- a list of
PriceInformation
objects - Throws:
JaloPriceFactoryException
- if price calculation error occured
-
getProductTaxInformations
@Deprecated java.util.List getProductTaxInformations(SessionContext ctx, Product product, java.util.Date date) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.order.TaxService.getTaxInformation(BaseCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to show all taxes which apply to the given product- Parameters:
product
- the product- Returns:
- a list of
TaxInformation
objects - Throws:
JaloPriceFactoryException
- if price calculation error occured
-
getProductDiscountInformations
@Deprecated java.util.List getProductDiscountInformations(SessionContext ctx, Product product, java.util.Date date, boolean net) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.order.DiscountService.getDiscountInformation(BaseCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to show all discounts which may apply to the given product- Parameters:
product
- the product- Returns:
- a list of
DiscountInformation
objects - Throws:
JaloPriceFactoryException
- if price calculation error occured
-
isNetUser
@Deprecated boolean isNetUser(User user)
Deprecated.Please use {@link de.hybris.platform.servicelayer.user.UserNetCheckingStrategy.isNetUser(UserModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to define whether a user should be treated as net or gross customer.- Returns:
- true, if the given user is treated as a net customer
-
getTaxValues
@Deprecated java.util.Collection getTaxValues(AbstractOrderEntry entry) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindTaxValuesStrategy.findTaxValues(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to definetax values
for an order entry.- Returns:
- the Collection of TaxValues assigned to the given AbstractOrderEntry
- Throws:
JaloPriceFactoryException
-
getBasePrice
@Deprecated PriceValue getBasePrice(AbstractOrderEntry entry) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindPriceStrategy.findBasePrice(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to define thebase price
of an order entry- Returns:
- a price with the order's currency iso code, 0.0 as value and the order's net status
- Throws:
JaloPriceFactoryException
-
getDiscountValues
@Deprecated java.util.List getDiscountValues(AbstractOrderEntry entry) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy.findDiscountValues(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to definediscount values
for an order entry.- Returns:
- the Collection of DiscountValues assigned to the given AbstractOrderEntry
- Throws:
JaloPriceFactoryException
-
getDiscountValues
@Deprecated java.util.List getDiscountValues(AbstractOrder order) throws JaloPriceFactoryException
Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy.findDiscountValues(AbstractOrderModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.Implement this to define(global) discount values
for an order.These discount values are applied to the whole order, not just to one entry like
getDiscountValues(AbstractOrderEntry)
- Returns:
- the Collection of DiscountValues applicable to the given AbstractOrder
- Throws:
JaloPriceFactoryException
-
-