public interface FulfillmentLocation extends Serializable
Representative of a location that has inventory associated with it. While not explicitly exposed through getters,
a FulfillmentLocation can contain a list of Inventory. This list of Inventory can be retrieved
by using various methods found in InventoryService.
FulfillmentLocations are normally unique on a per-address basis. For instance, you might have a warehouse
in the US that has some amount of inventory, and another warehouse in the UK that has different inventory.
| Modifier and Type | Method and Description |
|---|---|
org.broadleafcommerce.profile.core.domain.Address |
getAddress()
Gets where this is physically located.
|
Boolean |
getDefaultLocation()
Retrieves if this fulfillment location as default
|
org.broadleafcommerce.core.order.service.type.FulfillmentType |
getFulfillmentType()
The type of fulfillment that this location supports.
|
Long |
getId() |
String |
getName()
Convenient name for this location for internal usage and to make the admin easier to navigate
|
boolean |
isDefaultLocation()
Retrieves if this fulfillment location as default.
|
void |
setAddress(org.broadleafcommerce.profile.core.domain.Address address)
Set the
Address of the fulfillment location |
void |
setDefaultLocation(Boolean defaultLocation)
Sets whether or not this fulfillment location is the default one
|
void |
setFulfillmentType(org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
Sets the type of fulfillment that this location supports.
|
void |
setId(Long id) |
void |
setName(String name)
For convenience you can name an inventory location.
|
Long getId()
void setId(Long id)
id - the id of the fulfillment locationString getName()
void setName(String name)
name - the new name for this locationorg.broadleafcommerce.profile.core.domain.Address getAddress()
Address of the fulfillment locationvoid setAddress(org.broadleafcommerce.profile.core.domain.Address address)
Address of the fulfillment locationaddress - org.broadleafcommerce.core.order.service.type.FulfillmentType getFulfillmentType()
FulfillmentType.PHYSICAL_PICKUP and FulfillmentType.PHYSICAL_SHIP.void setFulfillmentType(org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
Sku.getFulfillmentType() to determine which location to decrement inventory fromfulfillmentType - the new FulfillmentType that this location supportsInventoryLocationResolver#resolveInventoryLocationForDecrement(org.broadleafcommerce.core.order.domain.FulfillmentGroup, org.broadleafcommerce.core.catalog.domain.Sku, int)}Boolean getDefaultLocation()
boolean isDefaultLocation()
void setDefaultLocation(Boolean defaultLocation)
defaultLocation - Copyright © 2020. All rights reserved.