Package com.sap.retail.oaa.validators
Class ResponsiveSummaryCheckoutStepValidator
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.checkout.steps.validation.AbstractCheckoutStepValidator
com.sap.retail.oaa.validators.ResponsiveSummaryCheckoutStepValidator
- All Implemented Interfaces:
CheckoutStepValidator
Validator for Summary in Checkout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValidationResultscheckCartAndDelivery(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Checks the cart delivery method and modeprotected ValidationResultscheckPaymentMethodAndPickup(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Checks the payment method and pickup informationprotected ValidationResultsdoSourcingAndRedirect(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Performs Sourcing for current session cart and redirects to the corresponding checkout step.protected OaaCheckoutFacadeReturns the OaaCheckoutFacade.voidsetCommonUtils(CommonUtils commonUtils) voidsetOaaCheckoutFacade(OaaCheckoutFacade oaaCheckoutFacade) Sets the OaaCheckoutFacade.validateOnEnter(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) This method should be implemented to validate whether all the required details are present before entering the checkout step.Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.checkout.steps.validation.AbstractCheckoutStepValidator
getCheckoutFacade, getCheckoutFlowFacade, setCheckoutFacade, setCheckoutFlowFacade, validateOnExit
-
Constructor Details
-
ResponsiveSummaryCheckoutStepValidator
public ResponsiveSummaryCheckoutStepValidator()
-
-
Method Details
-
getCommonUtils
- Returns:
- the commonUtils
-
setCommonUtils
- Parameters:
commonUtils- the commonUtils to set
-
validateOnEnter
public ValidationResults validateOnEnter(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Description copied from interface:CheckoutStepValidatorThis method should be implemented to validate whether all the required details are present before entering the checkout step.- Specified by:
validateOnEnterin interfaceCheckoutStepValidator- Specified by:
validateOnEnterin classAbstractCheckoutStepValidator- Returns:
- ValidationResults
-
doSourcingAndRedirect
protected ValidationResults doSourcingAndRedirect(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Performs Sourcing for current session cart and redirects to the corresponding checkout step.- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
checkPaymentMethodAndPickup
protected ValidationResults checkPaymentMethodAndPickup(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Checks the payment method and pickup information- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
checkCartAndDelivery
protected ValidationResults checkCartAndDelivery(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Checks the cart delivery method and mode- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
setOaaCheckoutFacade
Sets the OaaCheckoutFacade.- Parameters:
oaaCheckoutFacade-
-
getOaaCheckoutFacade
Returns the OaaCheckoutFacade.- Returns:
- OaaCheckoutFacade
-