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
  • 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 interface com.skava.core.EcommService<CartDataRequest,com.skava.core.ResponseModel>
      Overrides:
      getValidator in class CartPaymentServiceImpl
    • 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 interface com.skava.core.EcommService<CartDataRequest,com.skava.core.ResponseModel>
      Parameters:
      request - the request
      Returns:
      the instance of PaymentResponse object.
    • methodFallback

      public PaymentResponse methodFallback(CartDataRequest request)
      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.