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.
  • Constructor Details

    • CartOtherChargesValidator

      public CartOtherChargesValidator()
  • Method Details

    • preProcess

      public void preProcess(com.skava.core.validation.InputModel model)
      Specified by:
      preProcess in interface com.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

      public void validateOtherCharges(CartDataRequest request)
      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 object
      updateOtherCharges - holds the other charge object
      request - holds the request object