public interface AssistedServiceService
| Modifier and Type | Method and Description |
|---|---|
void |
bindCustomerToCart(java.lang.String customerId,
java.lang.String cartId)
Binds customer with provided id to cart if it's anonymous cart.
|
CustomerModel |
createNewCustomer(java.lang.String customerId,
java.lang.String customerName)
Creates a new customer by it email and name.
|
OrderModel |
gerOrderByCode(java.lang.String orderCode,
UserModel customer)
Deprecated.
since 6.6, use
getOrderByCode(String, UserModel) instead |
AssistedServiceSession |
getAsmSession()
Returns ASM session object with all information about current asm session.
|
PointOfServiceModel |
getAssistedServiceAgentStore()
Returns the PointOfServiceModel for the logged in as agent.
|
PointOfServiceModel |
getAssistedServiceAgentStore(UserModel agent)
Returns the PointOfServiceModel for the given as agent.
|
CartModel |
getCartByCode(java.lang.String cartCode,
UserModel customer)
search cart by code and customer
|
java.util.Collection<CartModel> |
getCartsForCustomer(CustomerModel customer)
Returns collection of a customer's carts
|
UserModel |
getCustomer(java.lang.String customerId)
returns customer
|
SearchPageData<CustomerModel> |
getCustomers(java.lang.String searchCriteria,
PageableData pageableData)
Get list of customers which username or email starts with provided value.
|
CartModel |
getLatestModifiedCart(UserModel customer)
search for a cart with most resent CartModel::getModifiedtime
|
OrderModel |
getOrderByCode(java.lang.String orderCode,
UserModel customer)
search for order
|
boolean |
isAbstractOrderMatchBaseSite(AbstractOrderModel abstractOrderModel)
Returns true when provided abstractOrderModel relates to current base site
|
void |
restoreCartToUser(CartModel cart,
UserModel user)
Restore cart to provided user
|
void bindCustomerToCart(java.lang.String customerId,
java.lang.String cartId)
throws AssistedServiceException
customerId - This is id of the customer to whom we want to bind a cartcartId - the id of the customer cart to pick upAssistedServiceException - in case cart with given cartId is not anonymousCustomerModel createNewCustomer(java.lang.String customerId, java.lang.String customerName) throws DuplicateUidException
customerId - email of to be newly created customer that is used as uidcustomerName - name of to be newly created customer (firstname and surname separated by space symbol)CustomerModelDuplicateUidException - in case customer with given customerId already existsjava.util.Collection<CartModel> getCartsForCustomer(CustomerModel customer)
customer - customer model whose carts to be returnedUserModel getCustomer(java.lang.String customerId)
customerId - email of to be newly created customer that is used as uidCartModel getLatestModifiedCart(UserModel customer)
customer - customer model whose latest modified cart to be returned@Deprecated OrderModel gerOrderByCode(java.lang.String orderCode, UserModel customer)
getOrderByCode(String, UserModel) insteadorderCode - the order's codecustomer - customer model whose order to be returnedOrderModel getOrderByCode(java.lang.String orderCode, UserModel customer)
orderCode - the order's codecustomer - customer model whose order to be returnedboolean isAbstractOrderMatchBaseSite(AbstractOrderModel abstractOrderModel)
abstractOrderModel - order modelBaseSiteCartModel getCartByCode(java.lang.String cartCode, UserModel customer)
cartCode - the cart's codecustomer - customer model whose cart to be returnedAssistedServiceSession getAsmSession()
void restoreCartToUser(CartModel cart, UserModel user)
cart - cart model to be restoreduser - user model which cart to be restoredPointOfServiceModel getAssistedServiceAgentStore()
PointOfServiceModel getAssistedServiceAgentStore(UserModel agent)
agent - AS agentSearchPageData<CustomerModel> getCustomers(java.lang.String searchCriteria, PageableData pageableData)
searchCriteria - uid or customer's namepageableData - pageable propertiesCopyright © 2018 SAP SE. All Rights Reserved.