@Service(value="blFulfillmentGroupItemStrategy") public class FulfillmentGroupItemStrategyImpl extends Object implements FulfillmentGroupItemStrategy
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentGroupItemDao |
fgItemDao |
protected FulfillmentGroupService |
fulfillmentGroupService |
protected OrderItemService |
orderItemService |
protected OrderService |
orderService |
protected boolean |
removeEmptyFulfillmentGroups |
| Constructor and Description |
|---|
FulfillmentGroupItemStrategyImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected FulfillmentGroup |
addItemToFulfillmentGroup(Order order,
OrderItem orderItem,
FulfillmentGroup fulfillmentGroup) |
protected FulfillmentGroup |
addItemToFulfillmentGroup(Order order,
OrderItem orderItem,
int quantity,
FulfillmentGroup fulfillmentGroup) |
boolean |
isRemoveEmptyFulfillmentGroups() |
CartOperationRequest |
onItemAdded(CartOperationRequest request) |
CartOperationRequest |
onItemRemoved(CartOperationRequest request) |
CartOperationRequest |
onItemUpdated(CartOperationRequest request) |
protected FulfillmentType |
resolveFulfillmentType(DiscreteOrderItem discreteOrderItem)
Resolves the fulfillment type based on the order item.
|
protected FulfillmentType |
resolveFulfillmentType(Sku sku) |
void |
setRemoveEmptyFulfillmentGroups(boolean removeEmptyFulfillmentGroups) |
protected List<FulfillmentGroupItem> |
updateItemQuantity(Order order,
OrderItem orderItem,
Integer orderItemQuantityDelta) |
CartOperationRequest |
verify(CartOperationRequest request) |
protected FulfillmentGroupService fulfillmentGroupService
protected OrderItemService orderItemService
protected OrderService orderService
protected FulfillmentGroupItemDao fgItemDao
protected boolean removeEmptyFulfillmentGroups
public CartOperationRequest onItemAdded(CartOperationRequest request) throws PricingException
onItemAdded in interface FulfillmentGroupItemStrategyPricingExceptionprotected FulfillmentType resolveFulfillmentType(DiscreteOrderItem discreteOrderItem)
DiscreteOrderItem.getSku()
to then invoke resolveFulfillmentType(Sku).discreteOrderItem - protected FulfillmentType resolveFulfillmentType(Sku sku)
protected FulfillmentGroup addItemToFulfillmentGroup(Order order, OrderItem orderItem, FulfillmentGroup fulfillmentGroup) throws PricingException
PricingExceptionprotected FulfillmentGroup addItemToFulfillmentGroup(Order order, OrderItem orderItem, int quantity, FulfillmentGroup fulfillmentGroup) throws PricingException
PricingExceptionpublic CartOperationRequest onItemUpdated(CartOperationRequest request) throws PricingException
onItemUpdated in interface FulfillmentGroupItemStrategyPricingExceptionprotected List<FulfillmentGroupItem> updateItemQuantity(Order order, OrderItem orderItem, Integer orderItemQuantityDelta) throws PricingException
PricingExceptionpublic CartOperationRequest onItemRemoved(CartOperationRequest request)
onItemRemoved in interface FulfillmentGroupItemStrategypublic CartOperationRequest verify(CartOperationRequest request) throws PricingException
verify in interface FulfillmentGroupItemStrategyPricingExceptionpublic boolean isRemoveEmptyFulfillmentGroups()
isRemoveEmptyFulfillmentGroups in interface FulfillmentGroupItemStrategypublic void setRemoveEmptyFulfillmentGroups(boolean removeEmptyFulfillmentGroups)
setRemoveEmptyFulfillmentGroups in interface FulfillmentGroupItemStrategyCopyright © 2015. All Rights Reserved.