public abstract class AbstractQuotationService extends java.lang.Object implements QuotationService
| Constructor and Description |
|---|
AbstractQuotationService() |
| Modifier and Type | Method and Description |
|---|---|
protected QuotationRequestData |
buildQuotationRequest(java.lang.String providerName,
java.lang.String itemId,
InsuranceQuoteModel quote)
Method used to build the QuotationRequestData based on request parameters.
|
QuotationRequestData |
createQuotationRequestData(java.lang.String providerName,
java.lang.String itemId,
InsuranceQuoteModel quote)
Creates the Quotation Request Data object based on the supplied information
|
protected CartService |
getCartService() |
protected ProductConfigurationHandlerFactory |
getConfigurationHandlerFactory() |
protected java.util.Map<java.lang.String,java.lang.String> |
getConfigurationsForProduct(ProductModel product) |
protected ConfiguratorSettingsService |
getConfiguratorSettingsService() |
java.lang.Double |
getPrice(QuotationResponseData responseData,
java.lang.String itemId,
boolean isPaynow)
Determines the price for a given response, item and whether or not that item has a 'pay now' flag set
|
protected ProductConfigurableChecker |
getProductConfigurableChecker() |
protected ProductService |
getProductService() |
protected QuotationItemResponseData |
getQuotationItem(QuotationResponseData responseData,
java.lang.String itemId)
Helper method to extract the QuotationItemResponseData from QuotationResponseData for given itemId
|
SessionService |
getSessionService() |
protected SubscriptionCommercePriceService |
getSubscriptionCommercePriceService() |
protected abstract java.util.Map<java.lang.String,java.lang.String> |
populateCommonProperties(InsuranceQuoteModel quote) |
protected java.util.Map<java.lang.String,java.lang.String> |
populateItemProperties(ProductModel product)
Helper method used to populate all the coverage corresponding to the given product.
|
void |
setCartService(CartService cartService) |
void |
setConfigurationHandlerFactory(ProductConfigurationHandlerFactory configurationHandlerFactory) |
void |
setConfiguratorSettingsService(ConfiguratorSettingsService configuratorSettingsService) |
void |
setProductConfigurableChecker(ProductConfigurableChecker productConfigurableChecker) |
void |
setProductService(ProductService productService) |
void |
setSessionService(SessionService sessionService) |
void |
setSubscriptionCommercePriceService(SubscriptionCommercePriceService subscriptionCommercePriceService) |
public QuotationRequestData createQuotationRequestData(java.lang.String providerName, java.lang.String itemId, InsuranceQuoteModel quote)
createQuotationRequestData in interface QuotationServiceproviderName - the name of the quotation provideritemId - a number of product Idsquote - the public java.lang.Double getPrice(QuotationResponseData responseData, java.lang.String itemId, boolean isPaynow)
getPrice in interface QuotationServiceresponseData - the QuotationResponseData beanitemId - the id of the quote itemisPaynow - whether or not the item is flagged 'paynow'protected QuotationItemResponseData getQuotationItem(QuotationResponseData responseData, java.lang.String itemId)
responseData - itemId - protected QuotationRequestData buildQuotationRequest(java.lang.String providerName, java.lang.String itemId, InsuranceQuoteModel quote)
providerName - itemId - protected java.util.Map<java.lang.String,java.lang.String> populateItemProperties(ProductModel product)
product - Product for which coverage information needs to be populatedprotected java.util.Map<java.lang.String,java.lang.String> getConfigurationsForProduct(ProductModel product)
protected abstract java.util.Map<java.lang.String,java.lang.String> populateCommonProperties(InsuranceQuoteModel quote)
public SessionService getSessionService()
public void setSessionService(SessionService sessionService)
protected SubscriptionCommercePriceService getSubscriptionCommercePriceService()
public void setSubscriptionCommercePriceService(SubscriptionCommercePriceService subscriptionCommercePriceService)
protected ProductService getProductService()
public void setProductService(ProductService productService)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected ConfiguratorSettingsService getConfiguratorSettingsService()
public void setConfiguratorSettingsService(ConfiguratorSettingsService configuratorSettingsService)
protected ProductConfigurationHandlerFactory getConfigurationHandlerFactory()
public void setConfigurationHandlerFactory(ProductConfigurationHandlerFactory configurationHandlerFactory)
protected ProductConfigurableChecker getProductConfigurableChecker()
public void setProductConfigurableChecker(ProductConfigurableChecker productConfigurableChecker)
Copyright © 2018 SAP SE. All Rights Reserved.