Class SkuInventoryReservationRequestGroup
java.lang.Object
com.broadleafcommerce.inventory.domain.SkuInventoryReservationRequestGroup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Indicates if this group is expected to be picked up or shipped.The locationId of theInventoryLocation
at from which the customer wishes to receive inventory.List of items to reserve.This is only useful whenSkuInventoryFulfillmentType
is SHIP.int
hashCode()
void
setFulfillmentType
(String fulfillmentType) Indicates if this group is expected to be picked up or shipped.void
setRequestedInventoryLocationId
(String requestedInventoryLocationId) The locationId of theInventoryLocation
at from which the customer wishes to receive inventory.void
setRequestedItems
(List<SkuInventoryAdjustmentRequestItem> requestedItems) List of items to reserve.void
setShipToAddress
(Address shipToAddress) This is only useful whenSkuInventoryFulfillmentType
is SHIP.toString()
-
Constructor Details
-
SkuInventoryReservationRequestGroup
public SkuInventoryReservationRequestGroup()
-
-
Method Details
-
getFulfillmentType
Indicates if this group is expected to be picked up or shipped. For PICKUP, pickupLocationId is required. For SHIP, pickupLocationId is optional, but without it, shipToAddress is required. -
getRequestedInventoryLocationId
The locationId of theInventoryLocation
at from which the customer wishes to receive inventory. This is more typically used for PICKUP. However, the calling application may know theInventoryLocation.getId()
from which a SHIP should occur. In this case, it's perfectly acceptable to provide this value in lieu of the shipToAddress. -
getShipToAddress
This is only useful whenSkuInventoryFulfillmentType
is SHIP. It provides a hint to the system to attempt to select the bestInventoryLocation
(s) for decrementing inventory for the purpose of shipping items. This is required if fulfillmentType is SHIP and if requestedInventoryLocationId is blank. -
getRequestedItems
List of items to reserve. This cannot be null and must contain at least 1 item. -
setFulfillmentType
Indicates if this group is expected to be picked up or shipped. For PICKUP, pickupLocationId is required. For SHIP, pickupLocationId is optional, but without it, shipToAddress is required. -
setRequestedInventoryLocationId
The locationId of theInventoryLocation
at from which the customer wishes to receive inventory. This is more typically used for PICKUP. However, the calling application may know theInventoryLocation.getId()
from which a SHIP should occur. In this case, it's perfectly acceptable to provide this value in lieu of the shipToAddress. -
setShipToAddress
This is only useful whenSkuInventoryFulfillmentType
is SHIP. It provides a hint to the system to attempt to select the bestInventoryLocation
(s) for decrementing inventory for the purpose of shipping items. This is required if fulfillmentType is SHIP and if requestedInventoryLocationId is blank. -
setRequestedItems
List of items to reserve. This cannot be null and must contain at least 1 item. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-