Class RequestHelperImpl
java.lang.Object
com.sap.retail.sapppspricing.impl.RequestHelperImpl
- All Implemented Interfaces:
RequestHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCalculateRequestSkeleton(String businessUnitId, GregorianCalendar priceDate) Create skeleton for a price calculation request.createSaleLineItem(int sequenceNumber, String itemIdentifier, String uomCode, BigDecimal quantity) Create sale line item skeleton to be added to a price calculation request.getLineItemContent(LineItemDomainSpecific lineItem) Retrieve item content in case this is a real line item of the basket (i.e.Get the object factorybooleanisDistributed(RetailPriceModifierDomainSpecific priceModifier) Checks whether the givenRetailPriceModifierDomainSpecificis specific to the line item it is attached to or whether is broken down from the whole shopping basketvoidsetObjectFactory(ObjectFactory objectFactory) Set the object factory
-
Constructor Details
-
RequestHelperImpl
public RequestHelperImpl()
-
-
Method Details
-
createCalculateRequestSkeleton
public PriceCalculate createCalculateRequestSkeleton(String businessUnitId, GregorianCalendar priceDate) Description copied from interface:RequestHelperCreate skeleton for a price calculation request. Useful for local clients- Specified by:
createCalculateRequestSkeletonin interfaceRequestHelper- Parameters:
businessUnitId- Business unit ID for which calculation shall take placepriceDate- 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:RequestHelperCreate sale line item skeleton to be added to a price calculation request. Useful for local clients- Specified by:
createSaleLineItemin interfaceRequestHelper- Parameters:
sequenceNumber- Sequence number of the line itemitemIdentifier- Item ID of the line itemuomCode- Unit of measure code of the line itemquantity- Quantity of the line item- Returns:
- line item skeleton. Can be enhanced by additional information, e.g. an externally set base price
-
isDistributed
Description copied from interface:RequestHelperChecks whether the givenRetailPriceModifierDomainSpecificis specific to the line item it is attached to or whether is broken down from the whole shopping basket- Specified by:
isDistributedin interfaceRequestHelper- Returns:
- true if this is a distributed price modifier
-
getObjectFactory
Get the object factory- Returns:
- Object Factory
-
setObjectFactory
Set the object factory- Parameters:
objectFactory- Object Factory to set
-
getLineItemContent
Description copied from interface:RequestHelperRetrieve 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:
getLineItemContentin interfaceRequestHelper- Parameters:
lineItem- Line item to extract the information from- Returns:
SaleBase
-