This UML sequence diagram for bookstore represents the procedure of when you buy a book in a bookstore. A customer selects the book after they have browsed around and this prompts the store’s system to check for any available copies. If copies of the book are in stock, then it will be placed into the cart, followed by order confirmation.
Upon reaching the checkout stage, payment is made through the payment gateway, after which the store system updates its inventory and sends order confirmation. But if there are no more copies available, an appropriate message will be displayed.