Interface CurrentArticlePriceService
- All Known Implementing Classes:
CurrentArticlePriceServiceImpl
public interface CurrentArticlePriceService
used to get the current article price
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentArticlePrice
(Entity article, Entity priceCategory, Entity currency, org.joda.time.LocalDate date) getCurrentArticlePriceEntity
(Entity article, Entity priceCategory, Entity currency, org.joda.time.LocalDate date) returns a optional of a valid price for a articlegetCurrentArticlePriceForOrder
(Entity order, Entity article) returns the current valid price for the indicated article and the given order
-
Method Details
-
getCurrentArticlePriceForOrder
returns the current valid price for the indicated article and the given order -
getCurrentArticlePrice
BigDecimal getCurrentArticlePrice(Entity article, Entity priceCategory, Entity currency, org.joda.time.LocalDate date) -
getCurrentArticlePriceEntity
Optional<Entity> getCurrentArticlePriceEntity(Entity article, Entity priceCategory, Entity currency, org.joda.time.LocalDate date) returns a optional of a valid price for a article- Parameters:
article
- the article to get the price frompriceCategory
- the price category the price needs to havecurrency
- the currency the price needs to havedate
- the date on which the price should be valid- Returns:
- an optional containing a Article_price, if one exists for the given values
-