Package com.skava.cart.service.impl
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
-
Field Summary
Fields inherited from class com.skava.cart.service.impl.CartShippingServiceImpl
cartFactory, cartNewFactory, cartShippingProcess, 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.process
(CartDataRequest cartRequest) The method PatchUpdateCartShippingServiceImpl.process This method is used to update Shipping entity based on input shipping request.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
-
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 interfacecom.skava.core.EcommService<CartDataRequest,
ShippingResponse> - Overrides:
getValidator
in classCartShippingServiceImpl
-
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 interfacecom.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
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.
-