Class PricingServiceImpl

    • Constructor Detail

      • PricingServiceImpl

        public PricingServiceImpl()
    • Method Detail

      • setProductConfigurationService

        public void setProductConfigurationService​(ProductConfigurationService productConfigurationService)
        Parameters:
        productConfigurationService - the productConfigurationService to set
      • getPriceSummary

        public PriceSummaryModel getPriceSummary​(java.lang.String configId)
        Description copied from interface: PricingService
        Retrieves if present current total price, base price and selected options price
        Specified by:
        getPriceSummary in interface PricingService
        Parameters:
        configId - runtime id of the configuration
        Returns:
        map of current total price, base price and selected options price
      • loadConfigModel

        protected ConfigModel loadConfigModel​(java.lang.String configId)
      • fillValuePrices

        @Deprecated(since="1808",
                    forRemoval=true)
        public void fillValuePrices​(java.util.List<PriceValueUpdateModel> updateModels,
                                    java.lang.String kbId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 18.08
        Description copied from interface: PricingService
        Fills absolute value prices or delta prices into the price value update models that represent a characteristic dependent on setting in backoffice
        Specified by:
        fillValuePrices in interface PricingService
        Parameters:
        updateModels - each list entry represents a characteristic for which absolute value prices or delta prices are filled
        kbId - KnowledgeBase id belonging to the runtime configuration for which absolute value prices or delta price are calculated
      • fillValuePrices

        public void fillValuePrices​(java.util.List<PriceValueUpdateModel> updateModels,
                                    ConfigModel configModel)
        Description copied from interface: PricingService
        Fills absolute value prices or delta prices into the price value update models that represent a characteristic dependent on setting in backoffice
        Specified by:
        fillValuePrices in interface PricingService
        Parameters:
        updateModels - each list entry represents a characteristic for which absolute value prices or delta prices are filled
        configModel - Configuration for which absolute value prices or delta price are calculated
      • setProviderFactory

        public void setProviderFactory​(ProviderFactory providerFactory)
        Parameters:
        providerFactory - the providerFactory to set
      • isActive

        public boolean isActive()
        Description copied from interface: PricingService
        Indicates whether the underlying pricing provider is active
        Specified by:
        isActive in interface PricingService
        Returns:
        true if the underlying pricing provider is active
      • fillOverviewPrices

        public void fillOverviewPrices​(ConfigModel configModel)
        Description copied from interface: PricingService
        Enriches ConfigModel with value prices and price summary
        Specified by:
        fillOverviewPrices in interface PricingService
        Parameters:
        configModel - configuration for which prices are filled
      • setPricingConfigurationParameter

        public void setPricingConfigurationParameter​(PricingConfigurationParameter pricingConfigurationParameter)
        Parameters:
        pricingConfigurationParameter -