Class PatchUpdateCartShippingServiceImpl

java.lang.Object
com.skava.cart.service.impl.CartShippingServiceImpl
com.skava.cart.service.impl.PatchUpdateCartShippingServiceImpl
All Implemented Interfaces:
PatchUpdateCartShippingService, com.skava.core.EcommService<CartDataRequest,ShippingResponse>

@Service public class PatchUpdateCartShippingServiceImpl extends CartShippingServiceImpl implements PatchUpdateCartShippingService

The Class PatchUpdateCartShippingServiceImpl.

This class defines the operations for the update shipping entity service. This class checks for the access level to determine if the shipping needs to be updated to the cart or item.

Since:
2018.12.05
Version:
8.0.0
Author:
Infosys Equinox
  • Constructor Details

    • PatchUpdateCartShippingServiceImpl

      public PatchUpdateCartShippingServiceImpl()
  • Method Details

    • getValidator

      @ValidatorEvent(serviceName="cartcheckout", webhookName="cartservices/validator/cartshipping", actionType="patch") 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,ShippingResponse>
      Overrides:
      getValidator in class CartShippingServiceImpl
    • process

      @SendEvent(eventType="cartservices/cartshipping/patch", identifier="response_shipping.id") @HystrixCommand(commandKey="item-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions=com.skava.core.validation.ValidateException.class) public ShippingResponse process(CartDataRequest cartRequest)
      The method PatchUpdateCartShippingServiceImpl.process This method is used to update Shipping entity based on input shipping request. This also invokes the validation process to validate if the input is a valid.
      Specified by:
      process in interface com.skava.core.EcommService<CartDataRequest,ShippingResponse>
      Parameters:
      cartRequest - Contains the details required for updating of the shipping entity.
      Returns:
      It returns the instance of ShippingResponse that contains the result for the update shipping request.
      See Also:
    • methodFallback

      public ShippingResponse 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.