Class AbstractOrderPositionPriceDirective

java.lang.Object
ch.tocco.nice2.optional.webshop.impl.customdata.AbstractOrderPositionPriceDirective
All Implemented Interfaces:
Nice2TemplateDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel
Direct Known Subclasses:
GetOrderPositionArticlePriceDirective, GetOrderPositionTotalDirective

public abstract class AbstractOrderPositionPriceDirective extends Object implements Nice2TemplateDirective
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, IOException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException
    • getAmount

      protected abstract Optional<BigDecimal> getAmount(Entity orderPosition, GetPriceParams.PriceReturnType priceReturnType)