All Superinterfaces:
BusinessObject, Iterable<Item>, MessageListHolder, SalesDocument, SalesDocumentBase<ItemList,Item,Header>, Serializable, SimpleDocument<ItemList,Item,Header>
All Known Implementing Classes:
OrderHistoryImpl, OrderImpl

public interface Order extends SalesDocument
Business object representation of an Order.
The order extends the SalesDocument business object.
There can be several orders per session existent. All back ends require a login to access an order.
See Also:
  • Method Details

    • getBasketId

      TechKey getBasketId()
      Returns the TechKey of the basket used for creating this order.
      Returns:
      TechKey of Basket
    • setBasketId

      void setBasketId(TechKey basketId)
      Sets the TechKey of basket used for creating this order. The TechKey is stored as a reference to the basket.
      Parameters:
      basketId - TechKey of the basket
    • destroyContent

      void destroyContent() throws CommunicationException
      Destroys content in BusinessObject layer and application memory of the back end. Only the already persisted content remains. For example: An order which is not yet submitted and for which destroyContent is called, will be deleted from application memory. An Order which is already submitted (e.g. via checkout), destroyContent will only invalidate the BusinessObject but not the back end representation.
      Specified by:
      destroyContent in interface SalesDocument
      Throws:
      CommunicationException - in case back-end error
    • saveOrderAndCommit

      boolean saveOrderAndCommit() throws CommunicationException
      Saves the order in the back end and commits. Changes will be persisted.
      Returns:
      true if the save and commit were successful
      Throws:
      CommunicationException - in case of a back-end error
    • setLoadStateCreate

      void setLoadStateCreate() throws BusinessObjectException
      Sets the creation mode of LO-API. It is only used in ERP scenario.
      Throws:
      BusinessObjectException - in case of a back-end error
    • isCancelable

      boolean isCancelable() throws CommunicationException
      Checks if the order is cancelable
      Returns:
      true if order is cancelable
      Throws:
      CommunicationException - in case of a back-end error