public interface BasketStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
clearCart(TypedObject cart)
Clear the cart specified of all cart entries.
|
TypedObject |
cloneCart(TypedObject customer,
String cartCode)
Creates a clone of the cart already exists for the specified customer with the specified cartCode.
|
TypedObject |
createCart(TypedObject customer)
Creates a new cart for the specified customer.
|
TypedObject |
createCart(TypedObject customer,
String cartCode)
Creates a new cart for the specified customer with the cart code specified.
|
TypedObject |
getCart(TypedObject customer,
String cartCode)
Gets an existing cart for the specified customer with a specified cartCode.
|
TypedObject |
getDefaultCart(TypedObject customer)
Gets the default stored cart for the specified customer
|
TypedObject |
pickupCart(TypedObject customer,
String cartCode)
Picks up an existing cart for the specified customer with a specified cartCode, sets the CallContext accordingly.
|
boolean |
transferCartToCustomer(TypedObject cart,
TypedObject customer)
Transfer ownership of the specified cart to the specified user.
|
TypedObject getDefaultCart(TypedObject customer)
customer - The customerTypedObject getCart(TypedObject customer, String cartCode)
customer - The customer that owns the cartcartCode - The code of the cartTypedObject pickupCart(TypedObject customer, String cartCode)
customer - The customer that owns the cartcartCode - The code of the cartTypedObject createCart(TypedObject customer)
customer - The customer that will own the new cartTypedObject createCart(TypedObject customer, String cartCode)
customer - The customer that will own the new cartcartCode - The cart code for the new cartvoid clearCart(TypedObject cart)
cart - The cartboolean transferCartToCustomer(TypedObject cart, TypedObject customer)
cart - The cart to transfer to the customercustomer - The customer to transfer the cart toTypedObject cloneCart(TypedObject customer, String cartCode)
customer - The customer that owns the cartcartCode - The code of the cartCopyright © 2017 SAP SE. All Rights Reserved.