Class GetPriceTask

java.lang.Object
ch.tocco.nice2.optional.webshop.api.tasks.GetPriceTask
All Implemented Interfaces:
PersistTask<GetPriceParams,BigDecimal>

public class GetPriceTask extends Object implements PersistTask<GetPriceParams,BigDecimal>
Task to get the price of an article. An optional GetPriceParams object is used as parameter - article = article entity - priceCategory = Optional Price_category entity. If it is not given (e.g params.get().getPriceCategory().isPresent() == false) the default priceCategory is used - priceReturnType = PriceReturnType which defines whether the NETTO, BRUTTO or VAT amount should be returned Return value: - Nullable BigDecimal representing the price