Class RequestHelperImpl

java.lang.Object
com.sap.retail.sapppspricing.impl.RequestHelperImpl
All Implemented Interfaces:
RequestHelper

public class RequestHelperImpl extends Object implements RequestHelper
  • Constructor Details

    • RequestHelperImpl

      public RequestHelperImpl()
  • Method Details

    • createCalculateRequestSkeleton

      public PriceCalculate createCalculateRequestSkeleton(String businessUnitId, GregorianCalendar priceDate)
      Description copied from interface: RequestHelper
      Create skeleton for a price calculation request. Useful for local clients
      Specified by:
      createCalculateRequestSkeleton in interface RequestHelper
      Parameters:
      businessUnitId - Business unit ID for which calculation shall take place
      priceDate - Date for which price calculation shall take place
      Returns:
      request skeleton
    • createSaleLineItem

      public LineItemDomainSpecific createSaleLineItem(int sequenceNumber, String itemIdentifier, String uomCode, BigDecimal quantity)
      Description copied from interface: RequestHelper
      Create sale line item skeleton to be added to a price calculation request. Useful for local clients
      Specified by:
      createSaleLineItem in interface RequestHelper
      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
    • isDistributed

      public boolean isDistributed(RetailPriceModifierDomainSpecific priceModifier)
      Description copied from interface: RequestHelper
      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
      Specified by:
      isDistributed in interface RequestHelper
      Returns:
      true if this is a distributed price modifier
    • getObjectFactory

      public ObjectFactory getObjectFactory()
      Get the object factory
      Returns:
      Object Factory
    • setObjectFactory

      public void setObjectFactory(ObjectFactory objectFactory)
      Set the object factory
      Parameters:
      objectFactory - Object Factory to set
    • getLineItemContent

      public SaleBase getLineItemContent(LineItemDomainSpecific lineItem)
      Description copied from interface: RequestHelper
      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)
      Specified by:
      getLineItemContent in interface RequestHelper
      Parameters:
      lineItem - Line item to extract the information from
      Returns:
      SaleBase