Interface PriceFactory
- All Known Subinterfaces:
ExtendedPriceFactory
- All Known Implementing Classes:
AbstractPriceFactory,CatalogAwareEurope1PriceFactory,CustomPriceFactoryTest.TinyPriceFactory,DummyPriceFactory,DummyPriceFactoryImpl,Europe1PriceFactory,ExtendedCatalogAwareEurope1PriceFactory,GeneratedEurope1PriceFactory,PriceFactorySwitcher,TestPriceFactory
-
Method Summary
Modifier and TypeMethodDescriptiongetAllPriceInformations(SessionContext ctx, Product product, 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.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.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.Deprecated.Please use {@link de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy.findDiscountValues(AbstractOrderEntryModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.getProductDiscountInformations(SessionContext ctx, Product product, 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.getProductPriceInformations(SessionContext ctx, Product product, 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.getProductTaxInformations(SessionContext ctx, Product product, Date date) Deprecated.Please use {@link de.hybris.platform.order.TaxService.getTaxInformation(BaseCriteria)} when the 'pdt.calculation.mode' is set to the 'sl' value.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.booleanDeprecated.Please use {@link de.hybris.platform.servicelayer.user.UserNetCheckingStrategy.isNetUser(UserModel)} when the 'pdt.calculation.mode' is set to the 'sl' value.
-
Method Details
-
getAllPriceInformations
@Deprecated(since="ages", forRemoval=false) ProductPriceInformations getAllPriceInformations(SessionContext ctx, Product product, 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 aProductPriceInformationsobject.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 byProductdirectly.- Throws:
JaloPriceFactoryException- if a calculation error occured
-
getProductPriceInformations
@Deprecated(since="ages", forRemoval=false) List getProductPriceInformations(SessionContext ctx, Product product, 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
PriceInformationobjects - Throws:
JaloPriceFactoryException- if price calculation error occured
-
getProductTaxInformations
@Deprecated(since="ages", forRemoval=false) List getProductTaxInformations(SessionContext ctx, Product product, 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
TaxInformationobjects - Throws:
JaloPriceFactoryException- if price calculation error occured
-
getProductDiscountInformations
@Deprecated(since="ages", forRemoval=false) List getProductDiscountInformations(SessionContext ctx, Product product, 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
DiscountInformationobjects - Throws:
JaloPriceFactoryException- if price calculation error occured
-
isNetUser
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(since="ages", forRemoval=false) 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 valuesfor an order entry.- Returns:
- the Collection of TaxValues assigned to the given AbstractOrderEntry
- Throws:
JaloPriceFactoryException
-
getBasePrice
@Deprecated(since="ages", forRemoval=false) 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 priceof 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(since="ages", forRemoval=false) 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 valuesfor an order entry.- Returns:
- the Collection of DiscountValues assigned to the given AbstractOrderEntry
- Throws:
JaloPriceFactoryException
-
getDiscountValues
@Deprecated(since="ages", forRemoval=false) 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 valuesfor 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
-