Interface CheckoutService

    • Method Detail

      • placeOrder

        OrderData placeOrder()
        Submits an order from the current session cart which is held in the SAP back end.
        Returns:
        The order that has been persisted in the SAP back end
      • getSupportedDeliveryModes

        java.util.List<DeliveryModeData> getSupportedDeliveryModes()
        Retrieving delivery modes from SAP back end. In SAP terminology, this is mostly referred to as 'Shipping Condition'
        Returns:
        The list of available delivery modes. These are read from the SAP back end.
      • setDeliveryMode

        boolean setDeliveryMode​(java.lang.String deliveryModeCode)
        Sets a delivery mode code into the current session cart which is held in SD, and updates the cart afterwards as prices can change.
        Parameters:
        deliveryModeCode - The new delivery mode code. Named 'Shipping condition' in SAP back end terms.
        Returns:
        Has this action been performed successfully?
      • setPurchaseOrderNumber

        boolean setPurchaseOrderNumber​(java.lang.String purchaseOrderNumber)
        Sets the purchase order number into the current session cart which is held in SD, and updates the cart afterwards.
        Parameters:
        purchaseOrderNumber - Purchase order number
        Returns:
        Has this action been performed successfully?
      • setDeliveryAddress

        boolean setDeliveryAddress​(java.lang.String sapCustomerId)
        Sets current delivery address. It's not possible to set a document specific address, instead the ID of a valid ship-to party needs to be passed.
        Parameters:
        sapCustomerId - Technical key of an back end ship-to party, typically with length 10
        Returns:
        Did it succeed?
      • updateCheckoutCart

        CartData updateCheckoutCart​(CartData cartData)
        Update the checkout cart quantity,
        Parameters:
        cartData - Cartdata values
        Returns:
        cartData after update.