Class DeletePriceRuleServiceImpl

java.lang.Object
com.skava.price.service.impl.DeletePriceRuleServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<PriceRuleRequestInternal,PriceRule>, DeletePriceRuleService

@Service public class DeletePriceRuleServiceImpl extends Object implements DeletePriceRuleService
The Class DeletePriceRuleServiceImpl
Since:
8.0
Author:
Infosys Equinox
  • Constructor Details

    • DeletePriceRuleServiceImpl

      public DeletePriceRuleServiceImpl()
  • Method Details

    • getValidator

      @ValidatorEvent(serviceName="pricing", webhookName="priceservice/validator/pricerule", actionType="delete") public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method is used to validation the given request.
      Specified by:
      getValidator in interface com.skava.core.EcommService<PriceRuleRequestInternal,PriceRule>
      Returns:
      It returns the ValidatorComponent.
    • process

      @SendEvent(eventType="priceservice/pricerule/delete", identifier="request_id") public PriceRule process(PriceRuleRequestInternal request)
      This method is used to delete PriceRule based on given PriceRule.
      Specified by:
      process in interface com.skava.core.EcommService<PriceRuleRequestInternal,PriceRule>
      Parameters:
      request - It contains the attributes required for the delete of PriceRule.
      Returns:
      It returns the delete count of PriceRuleResponse.
      Throws:
      com.skava.core.ECommerceException - It will throw Ecommerce exception if it process get failed.