Class InventoryLocation

java.lang.Object
com.broadleafcommerce.cartoperation.domain.InventoryLocation
All Implemented Interfaces:
Serializable

public class InventoryLocation extends Object implements Serializable
See Also:
  • Constructor Details

    • InventoryLocation

      public InventoryLocation()
  • Method Details

    • getId

      public String getId()
      The InventoryLocation contextId.
      Returns:
      the contextId of this Inventory Location
    • getLocationNumber

      public String getLocationNumber()
      Arbitrary location number, which could be an external ID, store number, etc.
      Returns:
      the locationNumber
    • getName

      public String getName()
      Arbitrary name of the location.
      Returns:
      The name of the location.
    • isPickupLocation

      public boolean isPickupLocation()
      Indicates if this location is available for pickup. Default is false.
      Returns:
      True if this location is available for pickup.
    • isShippingLocation

      public boolean isShippingLocation()
      Indicates if this location is available for shipping. Default is true.
      Returns:
      True if this location is available for shipping.
    • isStoreLocation

      public boolean isStoreLocation()
      Indicates if this inventory location is also a store, meaning that it is a location that customers can come to shop. Default is false.
      Returns:
      True if this inventory location is also a physical store.
    • getVendorRef

      public String getVendorRef()
      Soft reference to the vendor associated with this inventory location. This value can be null, in which case, no vendor is associated.
      Returns:
      Soft reference to the vendor associated with this location.
    • getAddress

      public com.broadleafcommerce.fulfillment.common.domain.Address getAddress()
      Physical address of this location.
      Returns:
      The physical address of this location.
    • setId

      public void setId(String id)
      The InventoryLocation contextId.
      Parameters:
      contextId -
    • setLocationNumber

      public void setLocationNumber(String locationNumber)
      Arbitrary location number, which could be an external ID, store number, etc.
      Parameters:
      locationNumber -
    • setName

      public void setName(String name)
      Arbitrary name of the location.
      Parameters:
      name - The name of the location.
    • setPickupLocation

      public void setPickupLocation(boolean pickupLocation)
      Indicates if this location is available for pickup. Default is false.
      Parameters:
      pickupLocation - True if this location is available for pickup.
    • setShippingLocation

      public void setShippingLocation(boolean shippingLocation)
      Indicates if this location is available for shipping. Default is true.
      Parameters:
      shippingLocation - True if this location is available for shipping.
    • setStoreLocation

      public void setStoreLocation(boolean storeLocation)
      Indicates if this inventory location is also a store, meaning that it is a location that customers can come to shop. Default is false.
      Parameters:
      storeLocation - True if this inventory location is also a physical store.
    • setVendorRef

      public void setVendorRef(String vendorRef)
      Soft reference to the vendor associated with this inventory location. This value can be null, in which case, no vendor is associated.
      Parameters:
      vendorRef - Soft reference to the vendor associated with this location.
    • setAddress

      public void setAddress(com.broadleafcommerce.fulfillment.common.domain.Address address)
      Physical address of this location.
      Parameters:
      address - The physical address of this location.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object