Package com.skava.cart.service.impl
Class DeleteCartPaymentServiceImpl
java.lang.Object
com.skava.cart.service.impl.CartPaymentServiceImpl
com.skava.cart.service.impl.DeleteCartPaymentServiceImpl
- All Implemented Interfaces:
DeleteCartPaymentService
,com.skava.core.EcommService<CartDataRequest,
com.skava.core.ResponseModel>
@Service
public class DeleteCartPaymentServiceImpl
extends CartPaymentServiceImpl
implements DeleteCartPaymentService
The Class DeleteCartPaymentServiceImpl. This class is the implementation of
the delete promotion service.
- Since:
- 2018-11-24
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.cart.service.impl.CartPaymentServiceImpl
cartCommonProcess, cartDomainFactory, cartEventSender, cartFactory, cartNewFactory, cartPaymentProcess, ENTITY, messageSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
getValidator
(CartDataRequest cartDataRequest) This method returns the list of a validator componentmethodFallback
(CartDataRequest request) Fall back process if there is any exception in the execution of the process.com.skava.core.ResponseModel
process
(CartDataRequest request) Process.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
-
DeleteCartPaymentServiceImpl
public DeleteCartPaymentServiceImpl()
-
-
Method Details
-
getValidator
@ValidatorEvent(serviceName="cartcheckout", webhookName="cartservices/validator/cartpayment", actionType="delete") public List<com.skava.core.validation.ValidatorComponent> getValidator(CartDataRequest cartDataRequest) This method returns the list of a validator component- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CartDataRequest,
com.skava.core.ResponseModel> - Overrides:
getValidator
in classCartPaymentServiceImpl
-
process
@SendEvent(eventType="cartservices/cartpayment/delete", identifier="request_cartId") @HystrixCommand(commandKey="item-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions=com.skava.core.validation.ValidateException.class) public com.skava.core.ResponseModel process(CartDataRequest request) Process. This method is used to delete the specific payment from the given cart. If the given cart doesn't exists then it will throw the error as cart not exists. If the given payment doesnt't exists then it will throw the error as payment does not exists.- Specified by:
process
in interfacecom.skava.core.EcommService<CartDataRequest,
com.skava.core.ResponseModel> - Parameters:
request
- the request- Returns:
- the instance of
PaymentResponse
object.
-
methodFallback
Fall back process if there is any exception in the execution of the process.- Parameters:
request
- The request for the process- Returns:
- The response from the fall back process.
-