Interface Order

    • Method Detail

      • 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