Class DefaultInboundQuoteHelper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double applyQuoteDiscountAndTax​(java.lang.String quoteId, java.lang.Double discountedPrice, java.lang.Double taxValue, java.lang.String userUid)
      Apply discount and add tax in quote current version
      java.lang.String convertEntryNumber​(java.lang.String code)
      Method converts entry number format from C4C to Hybris
      java.lang.String createQuoteEntryProduct​(java.lang.String code, java.lang.String productId)
      Get catalog from quote and productId
      QuoteModel createQuoteSnapshot​(java.lang.String code, java.lang.String state)
      Get quote for code
      de.hybris.platform.commerceservices.order.CommerceQuoteService getCommerceQuoteService()  
      de.hybris.platform.servicelayer.event.EventService getEventService()  
      java.lang.String getGuid​(java.lang.String code)
      Get GUID from quote's current version
      protected java.lang.String getLocalizedTypeName()  
      de.hybris.platform.servicelayer.model.ModelService getModelService()  
      java.lang.String getNameForQuote​(java.lang.String code)
      Set the name of new quote
      java.lang.String getPreviousEstimatedTotal​(java.lang.String code)
      Set the previous estimated total of quote
      de.hybris.platform.product.ProductService getProductService()  
      de.hybris.platform.order.QuoteService getQuoteService()  
      de.hybris.platform.commerceservices.order.strategies.QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy()  
      de.hybris.platform.servicelayer.user.UserService getUserService()  
      void setCommerceQuoteService​(de.hybris.platform.commerceservices.order.CommerceQuoteService commerceQuoteService)  
      void setEventService​(de.hybris.platform.servicelayer.event.EventService eventService)  
      void setModelService​(de.hybris.platform.servicelayer.model.ModelService modelService)  
      void setProductService​(de.hybris.platform.product.ProductService productService)  
      void setQuoteService​(de.hybris.platform.order.QuoteService quoteService)  
      void setQuoteUserTypeIdentificationStrategy​(de.hybris.platform.commerceservices.order.strategies.QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)  
      void setUserService​(de.hybris.platform.servicelayer.user.UserService userService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • C4C_TO_HYBRIS_CODE_CONVERTER

        public static final int C4C_TO_HYBRIS_CODE_CONVERTER
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultInboundQuoteHelper

        public DefaultInboundQuoteHelper()
    • Method Detail

      • getLocalizedTypeName

        protected java.lang.String getLocalizedTypeName()
      • getGuid

        public java.lang.String getGuid​(java.lang.String code)
        Description copied from interface: InboundQuoteHelper
        Get GUID from quote's current version
        Specified by:
        getGuid in interface InboundQuoteHelper
      • applyQuoteDiscountAndTax

        public java.lang.Double applyQuoteDiscountAndTax​(java.lang.String quoteId,
                                                         java.lang.Double discountedPrice,
                                                         java.lang.Double taxValue,
                                                         java.lang.String userUid)
        Description copied from interface: InboundQuoteHelper
        Apply discount and add tax in quote current version
        Specified by:
        applyQuoteDiscountAndTax in interface InboundQuoteHelper
      • createQuoteEntryProduct

        public java.lang.String createQuoteEntryProduct​(java.lang.String code,
                                                        java.lang.String productId)
        Description copied from interface: InboundQuoteHelper
        Get catalog from quote and productId
        Specified by:
        createQuoteEntryProduct in interface InboundQuoteHelper
        Returns:
        string
      • convertEntryNumber

        public java.lang.String convertEntryNumber​(java.lang.String code)
        Method converts entry number format from C4C to Hybris
        Specified by:
        convertEntryNumber in interface InboundQuoteHelper
        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)