Interface OrderMultishipOption

All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<OrderMultishipOption>
All Known Implementing Classes:
OrderMultishipOptionImpl

public interface OrderMultishipOption extends org.broadleafcommerce.common.copy.MultiTenantCloneable<OrderMultishipOption>
Represents a given set of options for an OrderItem in an Order in the multiship context. This class is used to store current multiship settings for an Order without having to generate the necessary FulfillmentGroups and FulfillmentGroupItems. It also can be used to re-create the multiship set should the Order change
Author:
Andre Azzolini (apazzolini)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.profile.core.domain.Address
    Gets the associated Address with this OrderMultishipOption
    Gets the associated FulfillmentOption with this OrderMultishipOption
    Returns the internal id of this OrderMultishipOption
    Returns the Order associated with this OrderMultishipOption
    Gets the OrderItem associated with this OrderMultishipOption.
    void
    setAddress(org.broadleafcommerce.profile.core.domain.Address address)
    Sets the associated Address with this OrderMultishipOption
    void
    Sets the associated FulfillmentOption with this OrderMultishipOption
    void
    setId(Long id)
    Sets the internal id of this OrderMultishipOption
    void
    setOrder(Order order)
    Sets the associated Order with this OrderMultishipOption
    void
    Sets the associated OrderItem with this OrderMultishipOption

    Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable

    createOrRetrieveCopyInstance
  • Method Details

    • getId

      Long getId()
      Returns the internal id of this OrderMultishipOption
      Returns:
      the internal id
    • setId

      void setId(Long id)
      Sets the internal id of this OrderMultishipOption
      Parameters:
      id - the internal id
    • getOrder

      Order getOrder()
      Returns the Order associated with this OrderMultishipOption
      Returns:
      the associated Order
    • setOrder

      void setOrder(Order order)
      Sets the associated Order with this OrderMultishipOption
      Parameters:
      order - the associated order
    • getOrderItem

      OrderItem getOrderItem()
      Gets the OrderItem associated with this OrderMultishipOption. Note that the default Broadleaf implementation will produce an equal number of instances of OrderMultishipOption to the quantity of the OrderItem
      Returns:
      the associated OrderItem
    • setOrderItem

      void setOrderItem(OrderItem orderItem)
      Sets the associated OrderItem with this OrderMultishipOption
      Parameters:
      orderItem - the associated OrderItem
      See Also:
    • getAddress

      org.broadleafcommerce.profile.core.domain.Address getAddress()
      Gets the associated Address with this OrderMultishipOption
      Returns:
      the associated Address
    • setAddress

      void setAddress(org.broadleafcommerce.profile.core.domain.Address address)
      Sets the associated Address with this OrderMultishipOption
      Parameters:
      address - the associated Address
    • getFulfillmentOption

      FulfillmentOption getFulfillmentOption()
      Gets the associated FulfillmentOption with this OrderMultishipOption
      Returns:
      the associated FulfillmentOption
    • setFulfillmentOption

      void setFulfillmentOption(FulfillmentOption fulfillmentOption)
      Sets the associated FulfillmentOption with this OrderMultishipOption
      Parameters:
      fulfillmentOption - the associated FulfillmentOption