Class CentralOrderItemsRequestPopulator
java.lang.Object
com.sap.sapcentralorderservices.populators.CentralOrderItemsRequestPopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<AbstractOrderEntryModel,OrderItems>
public class CentralOrderItemsRequestPopulator
extends Object
implements de.hybris.platform.converters.Populator<AbstractOrderEntryModel,OrderItems>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAspectDataToRequest(OrderItems orderItems) protected voidaddPricesToOrderItemsRequest(OrderItems orderItems, List<Map<String, Object>> rows, AbstractOrderEntryModel entryModel) protected voidaddProductDetailsToRequest(AbstractOrderEntryModel entryModel, OrderItems orderItems) protected voidaddQuantityToOrderItemsRequest(OrderItems orderItems, AbstractOrderEntryModel entryModel) de.hybris.platform.servicelayer.config.ConfigurationServiceprotected doublegetEffectiveAmountForEntry(PriceTotals priceTotals, List<Map<String, Object>> rows) protected doublegetFinalAmountForEntry(AbstractOrderEntryModel entryModel, PriceTotals priceTotals, List<Map<String, Object>> rows) protected doublegetOriginalAmountForEntry(AbstractOrderEntryModel entryModel, List<Map<String, Object>> rows) protected doublegetTaxTotalAmount(AbstractOrderEntryModel entryModel, PriceTotals priceTotals, List<Map<String, Object>> rows) voidpopulate(AbstractOrderEntryModel entryModel, OrderItems orderItems) protected voidpopulateSubscriptionProductDetails(String subscriptionCode, OrderItems orderItems, ExternalSystemReferenceProduct externalSystemReferenceProduct) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetSapSalesConditionsContributor(RawItemContributor<OrderModel> sapSalesConditionsContributor)
-
Constructor Details
-
CentralOrderItemsRequestPopulator
public CentralOrderItemsRequestPopulator()
-
-
Method Details
-
populate
public void populate(AbstractOrderEntryModel entryModel, OrderItems orderItems) throws de.hybris.platform.servicelayer.dto.converter.ConversionException - Specified by:
populatein interfacede.hybris.platform.converters.Populator<AbstractOrderEntryModel,OrderItems> - Throws:
de.hybris.platform.servicelayer.dto.converter.ConversionException
-
addProductDetailsToRequest
protected void addProductDetailsToRequest(AbstractOrderEntryModel entryModel, OrderItems orderItems) -
addAspectDataToRequest
-
populateSubscriptionProductDetails
protected void populateSubscriptionProductDetails(String subscriptionCode, OrderItems orderItems, ExternalSystemReferenceProduct externalSystemReferenceProduct) -
addQuantityToOrderItemsRequest
protected void addQuantityToOrderItemsRequest(OrderItems orderItems, AbstractOrderEntryModel entryModel) -
addPricesToOrderItemsRequest
protected void addPricesToOrderItemsRequest(OrderItems orderItems, List<Map<String, Object>> rows, AbstractOrderEntryModel entryModel) -
getOriginalAmountForEntry
protected double getOriginalAmountForEntry(AbstractOrderEntryModel entryModel, List<Map<String, Object>> rows) -
getEffectiveAmountForEntry
-
getTaxTotalAmount
protected double getTaxTotalAmount(AbstractOrderEntryModel entryModel, PriceTotals priceTotals, List<Map<String, Object>> rows) -
getFinalAmountForEntry
protected double getFinalAmountForEntry(AbstractOrderEntryModel entryModel, PriceTotals priceTotals, List<Map<String, Object>> rows) -
getSapSalesConditionsContributor
-
setSapSalesConditionsContributor
public void setSapSalesConditionsContributor(RawItemContributor<OrderModel> sapSalesConditionsContributor) -
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService() -
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
-