- Supports the book browsing experience and cart management
- Scope: Public
Place these operations on the proper lines in the table below.
- viewCart()
- clearCart()
- AddItemToCart()
- RemoveItemFromCart()
- listBooks()
- searchBooks()
Operation Name | Description | Participants | Resource(s) | Emitted Events | Operation Details | Traits |
---|---|---|---|---|---|---|
List books by category or release date | Customer, Call Center | Request Parameters: categoryId, releaseDate Returns: Books[] | ||||
Search for books by author, title | Customer, Call Center | Request Parameters: searchQuery Returns: Books[] | ||||
Add a book to the customer's cart | Customer, Call Center | Request Parameters: cartId, bookId, quantity Returns: Cart | ||||
Remove a book from the customer's cart | Customer, Call Center | Request Parameters: cartItemId Returns: Cart | ||||
Remove all books from the customer's cart | Customer, Call Center | Request Parameters: cartId Returns: Cart | ||||
View the current cart and total | Customer, Call Center | Request Parameters: cartId Returns: Cart |