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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<DeliveryModeData>getSupportedDeliveryModes()Retrieving delivery modes from SAP back end.OrderDataplaceOrder()Submits an order from the current session cart which is held in the SAP back end.booleansetDeliveryAddress(java.lang.String sapCustomerId)Sets current delivery address.booleansetDeliveryMode(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.booleansetPurchaseOrderNumber(java.lang.String purchaseOrderNumber)Sets the purchase order number into the current session cart which is held in SD, and updates the cart afterwards.CartDataupdateCheckoutCart(CartData cartData)Update the checkout cart quantity,-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCart
-
-
-
-
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?
-
-