Interface CheckoutService
- All Superinterfaces:
CartCheckoutBaseService
- All Known Implementing Classes:
DefaultCheckoutService
Service representation of checkout with SAP synchronous order management
-
Method Summary
Modifier and TypeMethodDescriptionRetrieving delivery modes from SAP back end.Submits an order from the current session cart which is held in the SAP back end.booleansetDeliveryAddress(String sapCustomerId) Sets current delivery address.booleansetDeliveryMode(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.booleansetPurchaseOrderNumber(String purchaseOrderNumber) Sets the purchase order number into the current session cart which is held in SD, and updates the cart afterwards.updateCheckoutCart(CartData cartData) Update the checkout cart quantity,Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCart
-
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
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
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
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
Update the checkout cart quantity,- Parameters:
cartData- Cartdata values- Returns:
- cartData after update.
-