Class DefaultInboundQuoteHelper
java.lang.Object
de.hybris.platform.sap.c4c.quote.inbound.impl.DefaultInboundQuoteHelper
- All Implemented Interfaces:
InboundQuoteHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyQuoteDiscountAndTax(String quoteId, Double discountedPrice, Double taxValue, String userUid) Apply discount and add tax in quote current versionconvertEntryNumber(String code) Method converts entry number format from C4C to HybriscreateQuoteEntryProduct(String code, String productId) Get catalog from quote and productIdcreateQuoteSnapshot(String code, String state) Get quote for codede.hybris.platform.commerceservices.order.CommerceQuoteServicede.hybris.platform.servicelayer.event.EventServiceGet GUID from quote's current versionprotected Stringde.hybris.platform.servicelayer.model.ModelServicegetNameForQuote(String code) Set the name of new quoteSet the previous estimated total of quotede.hybris.platform.product.ProductServicede.hybris.platform.order.QuoteServicede.hybris.platform.commerceservices.order.strategies.QuoteUserTypeIdentificationStrategyde.hybris.platform.servicelayer.user.UserServicevoidsetCommerceQuoteService(de.hybris.platform.commerceservices.order.CommerceQuoteService commerceQuoteService) voidsetEventService(de.hybris.platform.servicelayer.event.EventService eventService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetProductService(de.hybris.platform.product.ProductService productService) voidsetQuoteService(de.hybris.platform.order.QuoteService quoteService) voidsetQuoteUserTypeIdentificationStrategy(de.hybris.platform.commerceservices.order.strategies.QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Field Details
-
C4C_TO_HYBRIS_CODE_CONVERTER
public static final int C4C_TO_HYBRIS_CODE_CONVERTER- See Also:
-
-
Constructor Details
-
DefaultInboundQuoteHelper
public DefaultInboundQuoteHelper()
-
-
Method Details
-
createQuoteSnapshot
Description copied from interface:InboundQuoteHelperGet quote for code- Specified by:
createQuoteSnapshotin interfaceInboundQuoteHelper- Returns:
- quote
-
getNameForQuote
Description copied from interface:InboundQuoteHelperSet the name of new quote- Specified by:
getNameForQuotein interfaceInboundQuoteHelper- Returns:
- string
-
getLocalizedTypeName
-
getPreviousEstimatedTotal
Description copied from interface:InboundQuoteHelperSet the previous estimated total of quote- Specified by:
getPreviousEstimatedTotalin interfaceInboundQuoteHelper- Returns:
- string
-
getGuid
Description copied from interface:InboundQuoteHelperGet GUID from quote's current version- Specified by:
getGuidin interfaceInboundQuoteHelper
-
applyQuoteDiscountAndTax
public Double applyQuoteDiscountAndTax(String quoteId, Double discountedPrice, Double taxValue, String userUid) Description copied from interface:InboundQuoteHelperApply discount and add tax in quote current version- Specified by:
applyQuoteDiscountAndTaxin interfaceInboundQuoteHelper
-
createQuoteEntryProduct
Description copied from interface:InboundQuoteHelperGet catalog from quote and productId- Specified by:
createQuoteEntryProductin interfaceInboundQuoteHelper- Returns:
- string
-
convertEntryNumber
Method converts entry number format from C4C to Hybris- Specified by:
convertEntryNumberin interfaceInboundQuoteHelper- Parameters:
code- contains the numeric String- Returns:
- String with conversion done
-
getCommerceQuoteService
public de.hybris.platform.commerceservices.order.CommerceQuoteService getCommerceQuoteService() -
setCommerceQuoteService
public void setCommerceQuoteService(de.hybris.platform.commerceservices.order.CommerceQuoteService commerceQuoteService) -
getProductService
public de.hybris.platform.product.ProductService getProductService()- Returns:
- the productService
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) - Parameters:
productService- the productService to set
-
getQuoteService
public de.hybris.platform.order.QuoteService getQuoteService() -
setQuoteService
public void setQuoteService(de.hybris.platform.order.QuoteService quoteService) -
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService() -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
getQuoteUserTypeIdentificationStrategy
public de.hybris.platform.commerceservices.order.strategies.QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy() -
setQuoteUserTypeIdentificationStrategy
public void setQuoteUserTypeIdentificationStrategy(de.hybris.platform.commerceservices.order.strategies.QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy) -
getEventService
public de.hybris.platform.servicelayer.event.EventService getEventService() -
setEventService
public void setEventService(de.hybris.platform.servicelayer.event.EventService eventService) -
getUserService
public de.hybris.platform.servicelayer.user.UserService getUserService() -
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
-