public interface BolCartFacade
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Item> |
addEntriesToCart(java.util.List<Item> items)
Adds a list of items to the cart, keeping their handles
|
void |
addItemsToCart(java.util.List<Item> items)
Adds a list of items to the cart, keeping their handles
|
Item |
addToCart(java.lang.String code,
long quantity)
Adds a product to the cart
|
Address |
createAddress()
Creates a new address instance.
|
Basket |
createCart()
Creates a new session cart.
|
java.util.Map<java.lang.String,java.lang.String> |
getAllowedDeliveryTypes()
Fetches available delivery types from the cache.
|
Basket |
getCart()
Return current cart from BOL.
|
Item |
getCartItem(int itemNumber)
Fetches cart item per item number
|
java.lang.Boolean |
hasCart()
Does a session cart exist? This cart is connected to a (non-persisted) order in the SAP back end.
|
boolean |
isBackendDown() |
Order |
placeOrderFromCart(Basket sapCart)
Places an order based on a cart, and returns this order.
|
void |
releaseCart()
Releases the current session cart.
|
void |
updateCart()
Updates the session cart and re-reads it from the SAP back end.
|
MessageList |
validateCart()
Validates the cart and compiles the list of cart error messages.
|
Basket getCart()
java.lang.Boolean hasCart()
Basket createCart()
void updateCart()
Item addToCart(java.lang.String code, long quantity)
code - Product ID to be added to the cartquantity - Quantity to be added to the cartItem getCartItem(int itemNumber)
itemNumber - Internal item numberjava.util.Map<java.lang.String,java.lang.String> getAllowedDeliveryTypes()
Address createAddress()
Order placeOrderFromCart(Basket sapCart)
sapCart - SAP representation of a cartvoid releaseCart()
MessageList validateCart()
SalesDocumentvoid addItemsToCart(java.util.List<Item> items)
items - BOL itemsjava.util.List<Item> addEntriesToCart(java.util.List<Item> items)
items - BOL items item listboolean isBackendDown()
Copyright © 2018 SAP SE. All Rights Reserved.