public class DefaultInboundQuoteHelper extends java.lang.Object implements InboundQuoteHelper
| Constructor and Description |
|---|
DefaultInboundQuoteHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addLeadingZerosToNumericID(java.lang.String inputString,
int desiredLength)
Method adds leading zeros to a numeric string based on a specified total length
|
java.lang.Double |
applyQuoteDiscount(java.lang.String quoteId,
java.lang.Double discountedPrice,
java.lang.String userUid)
Apply discount on 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
|
CommerceQuoteService |
getCommerceQuoteService() |
EventService |
getEventService() |
java.lang.String |
getGuid(java.lang.String code)
Get GUID from quote's current version
|
protected java.lang.String |
getLocalizedTypeName() |
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
|
ProductService |
getProductService() |
QuoteService |
getQuoteService() |
QuoteUserTypeIdentificationStrategy |
getQuoteUserTypeIdentificationStrategy() |
UserService |
getUserService() |
java.lang.String |
getValidCode(java.lang.String code)
Update the quote code with valid leading zeros
|
void |
setCommerceQuoteService(CommerceQuoteService commerceQuoteService) |
void |
setEventService(EventService eventService) |
void |
setModelService(ModelService modelService) |
void |
setProductService(ProductService productService) |
void |
setQuoteService(QuoteService quoteService) |
void |
setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy) |
void |
setUserService(UserService userService) |
public QuoteModel createQuoteSnapshot(java.lang.String code, java.lang.String state)
InboundQuoteHelpercreateQuoteSnapshot in interface InboundQuoteHelperpublic QuoteService getQuoteService()
public void setQuoteService(QuoteService quoteService)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy()
public void setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)
public EventService getEventService()
public void setEventService(EventService eventService)
public UserService getUserService()
public void setUserService(UserService userService)
public java.lang.String getValidCode(java.lang.String code)
InboundQuoteHelpergetValidCode in interface InboundQuoteHelperpublic java.lang.String getNameForQuote(java.lang.String code)
InboundQuoteHelpergetNameForQuote in interface InboundQuoteHelperprotected java.lang.String getLocalizedTypeName()
public java.lang.String getPreviousEstimatedTotal(java.lang.String code)
InboundQuoteHelpergetPreviousEstimatedTotal in interface InboundQuoteHelperpublic java.lang.String getGuid(java.lang.String code)
InboundQuoteHelpergetGuid in interface InboundQuoteHelperpublic java.lang.Double applyQuoteDiscount(java.lang.String quoteId,
java.lang.Double discountedPrice,
java.lang.String userUid)
InboundQuoteHelperapplyQuoteDiscount in interface InboundQuoteHelperpublic java.lang.String createQuoteEntryProduct(java.lang.String code,
java.lang.String productId)
InboundQuoteHelpercreateQuoteEntryProduct in interface InboundQuoteHelperpublic java.lang.String convertEntryNumber(java.lang.String code)
convertEntryNumber in interface InboundQuoteHelpercode - contains the numeric Stringpublic CommerceQuoteService getCommerceQuoteService()
public void setCommerceQuoteService(CommerceQuoteService commerceQuoteService)
public static java.lang.String addLeadingZerosToNumericID(java.lang.String inputString,
int desiredLength)
inputString - contains the numeric StringdesiredLength - specifies the total desired length of the stringpublic ProductService getProductService()
public void setProductService(ProductService productService)
productService - the productService to setCopyright © 2017 SAP SE. All Rights Reserved.