public interface InventoryReservation extends Serializable
Quantity reserved for a particular FulfillmentGroupItem within an FulfillmentLocation. If a single
FulfillmentGroupItem can be fulfilled in multiple locations, then a FulfillmentGroupItem will have
multiple InventoryReservation records corresponding to each unique FulfillmentLocation that it can be
fulfilled at. However, the sum of all of the quantities for all of the inventory reservations for a fulfillment group
item should not exceed the quantity of the FulfillmentGroupItem itself.
InventoryReservationStrategy}| Modifier and Type | Method and Description |
|---|---|
Long |
getId()
Gets the primary key
|
org.broadleafcommerce.core.order.domain.FulfillmentGroupItem |
getItem()
The fulfillment item from the order that this inventory was reserved for.
|
FulfillmentLocation |
getLocation()
The location for which the inventory is actually coming out of
|
Integer |
getQuantity()
Obtains the quantity that was reserved at the fulfillment location for the fulfillment item.
|
org.broadleafcommerce.core.catalog.domain.Sku |
getSku()
A transient value representing the Sku that the
getItem() was used to lookup quantity. |
void |
setId(Long id)
Sets the primary key for this reservation
|
void |
setItem(org.broadleafcommerce.core.order.domain.FulfillmentGroupItem item)
Sets the item that this inventory was reserved for
|
void |
setLocation(FulfillmentLocation location)
Sets the location where this inventory should be decremented from
|
void |
setQuantity(Integer quantity)
Sets the quantity.
|
void |
setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
Sets the transient value representing the Sku that the
getItem() was used to lookup quantity for |
Long getId()
void setId(Long id)
id - the new primary keyInteger getQuantity()
FulfillmentGroupItem.getQuantity(), as it is possible that a single FulfillmentGroupItem
has reserved inventory in multiple FulfillmentLocationvoid setQuantity(Integer quantity)
quantity - FulfillmentLocation getLocation()
void setLocation(FulfillmentLocation location)
location - the FulfillmentLocation that was used to reserve getQuantity()org.broadleafcommerce.core.order.domain.FulfillmentGroupItem getItem()
void setItem(org.broadleafcommerce.core.order.domain.FulfillmentGroupItem item)
item - org.broadleafcommerce.core.catalog.domain.Sku getSku()
getItem() was used to lookup quantity. This is determined
from the FulfillmentGroupItem and is set when first creating the reservationSku that inventory should come fromvoid setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
getItem() was used to lookup quantity forsku - Copyright © 2020. All rights reserved.