Class CheckAddAvailabilityActivity

All Implemented Interfaces:
Activity<ProcessContext<CartOperationRequest>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

@Component("blCheckAddAvailabilityActivity") public class CheckAddAvailabilityActivity extends AbstractCheckAvailabilityActivity
This activity handles both adds and updates. In both cases, this will check the availability and quantities (if applicable) of the passed in request. If this is an update request, this will use the Sku from OrderItemRequestDTO.getOrderItemId(). If this is an add request, there is no order item yet so the Sku is looked up via the OrderItemRequestDTO.getSkuId().
Author:
Phillip Verheyden (phillipuniverse)