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)
search for order
|
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
|
java.util.List<CustomerModel> |
getSuggestedCustomers(java.lang.String username)
Deprecated.
since 6.4, use
getCustomers(String, PageableData) instead |
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
|
@Deprecated java.util.List<CustomerModel> getSuggestedCustomers(java.lang.String username)
getCustomers(String, PageableData) insteadusername - uid or customer's namevoid bindCustomerToCart(java.lang.String customerId,
java.lang.String cartId)
throws AssistedServiceException
customerId - cartId - AssistedServiceExceptionCustomerModel 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)CustomerModelDuplicateUidExceptionjava.util.Collection<CartModel> getCartsForCustomer(CustomerModel customer)
customer - customer model whose carts to be returnedUserModel getCustomer(java.lang.String customerId)
customerId - CartModel getLatestModifiedCart(UserModel customer)
customer - OrderModel gerOrderByCode(java.lang.String orderCode, UserModel customer)
orderCode - customer - boolean isAbstractOrderMatchBaseSite(AbstractOrderModel abstractOrderModel)
abstractOrderModel - BaseSiteCartModel getCartByCode(java.lang.String cartCode, UserModel customer)
cartCode - customer - AssistedServiceSession getAsmSession()
void restoreCartToUser(CartModel cart, UserModel user)
cart - user - PointOfServiceModel getAssistedServiceAgentStore()
PointOfServiceModel getAssistedServiceAgentStore(UserModel agent)
agent - SearchPageData<CustomerModel> getCustomers(java.lang.String searchCriteria, PageableData pageableData)
searchCriteria - uid or customer's namepageableData - pageable propertiesCopyright © 2017 SAP SE. All Rights Reserved.