Package com.skava.price.service.impl
Class DeletePriceRuleServiceImpl
java.lang.Object
com.skava.price.service.impl.DeletePriceRuleServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<PriceRuleRequestInternal,
,PriceRule> DeletePriceRuleService
The Class DeletePriceRuleServiceImpl
- Since:
- 8.0
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to validation the given request.process
(PriceRuleRequestInternal request) This method is used to delete PriceRule based on given PriceRule.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.EcommService
getValidateException, getValidator
-
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 interfacecom.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 interfacecom.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.
-