Interface RequestHelper

All Known Implementing Classes:
RequestHelperImpl

public interface RequestHelper
  • Method Details

    • createSaleLineItem

      LineItemDomainSpecific createSaleLineItem(int sequenceNumber, String itemIdentifier, String uomCode, BigDecimal quantity)
      Create sale line item skeleton to be added to a price calculation request. Useful for local clients
      Parameters:
      sequenceNumber - Sequence number of the line item
      itemIdentifier - Item ID of the line item
      uomCode - Unit of measure code of the line item
      quantity - Quantity of the line item
      Returns:
      line item skeleton. Can be enhanced by additional information, e.g. an externally set base price
    • createCalculateRequestSkeleton

      PriceCalculate createCalculateRequestSkeleton(String businessUnitId, GregorianCalendar priceDate)
      Create skeleton for a price calculation request. Useful for local clients
      Parameters:
      businessUnitId - Business unit ID for which calculation shall take place
      priceDate - Date for which price calculation shall take place
      Returns:
      request skeleton
    • getLineItemContent

      SaleBase getLineItemContent(LineItemDomainSpecific lineItem)
      Retrieve item content in case this is a real line item of the basket (i.e. e.g. no header discount, no coupon, no loyalty reward)
      Parameters:
      lineItem - Line item to extract the information from
      Returns:
      SaleBase
    • isDistributed

      boolean isDistributed(RetailPriceModifierDomainSpecific priceModifier)
      Checks whether the given RetailPriceModifierDomainSpecific is specific to the line item it is attached to or whether is broken down from the whole shopping basket
      Parameters:
      priceModifier -
      Returns:
      true if this is a distributed price modifier