Package com.sap.retail.sapppspricing
Interface RequestHelper
- All Known Implementing Classes:
RequestHelperImpl
public interface RequestHelper
-
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.booleanisDistributed(RetailPriceModifierDomainSpecific priceModifier) Checks whether the givenRetailPriceModifierDomainSpecificis specific to the line item it is attached to or whether is broken down from the whole shopping basket
-
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 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
-
createCalculateRequestSkeleton
Create skeleton for a price calculation request. Useful for local clients- Parameters:
businessUnitId- Business unit ID for which calculation shall take placepriceDate- Date for which price calculation shall take place- Returns:
- request skeleton
-
getLineItemContent
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
Checks whether the givenRetailPriceModifierDomainSpecificis 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
-