Package com.skava.cart.validator
Class CartOtherChargesValidator
java.lang.Object
com.skava.cart.validator.CartValidatorAutowire
com.skava.cart.validator.CartOtherChargesValidator
- All Implemented Interfaces:
com.skava.core.EcommComponent
,com.skava.core.validation.ValidatorComponent
@Component
public class CartOtherChargesValidator
extends CartValidatorAutowire
implements com.skava.core.validation.ValidatorComponent
The Class CartOtherChargesValidator.
-
Field Summary
Fields inherited from class com.skava.cart.validator.CartValidatorAutowire
cartCommonProcess, messageSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
preProcess
(com.skava.core.validation.InputModel model) void
validateOtherCharges
(CartDataRequest request) This method performs validation for new or existing other charges request.void
validateOtherChargesPatchRequest
(OtherChargesEntity dbEntity, OtherCharges updateOtherCharges, CartDataRequest request) This method is used to perform validations while updating other charges.Methods inherited from class com.skava.cart.validator.CartValidatorAutowire
validatePageAndSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommComponent
destroy, init, onEvent
Methods inherited from interface com.skava.core.validation.ValidatorComponent
postProcess, preProcess
-
Constructor Details
-
CartOtherChargesValidator
public CartOtherChargesValidator()
-
-
Method Details
-
preProcess
public void preProcess(com.skava.core.validation.InputModel model) - Specified by:
preProcess
in interfacecom.skava.core.validation.ValidatorComponent
- See Also:
-
(com.skava.core.validation.InputModel) checks for the request and validates it This method validate other charge type value is null or empty will through error message
-
validateOtherCharges
This method performs validation for new or existing other charges request.- Parameters:
request
- holds the request information
-
validateOtherChargesPatchRequest
public void validateOtherChargesPatchRequest(OtherChargesEntity dbEntity, OtherCharges updateOtherCharges, CartDataRequest request) This method is used to perform validations while updating other charges.- Parameters:
dbEntity
- holds the current db other charge objectupdateOtherCharges
- holds the other charge objectrequest
- holds the request object
-