Interface CheckoutService

All Superinterfaces:
CartCheckoutBaseService
All Known Implementing Classes:
DefaultCheckoutService

public interface CheckoutService extends CartCheckoutBaseService
Service representation of checkout with SAP synchronous order management
  • Method Details

    • 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

      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(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(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(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.