I need some help to confirm I am on the right track with this. I did a use case diagram and class diagram for the popular online shopping scenario.
Please look through it and criticize constructively, let me have your views on it as I am still learning UML.
The story behind the modeling is shown below:
The name of the company is X-company and they are into the sales of paints. X-company has a website that sells these paints online to two types of customers - retailers and wholesalers. X-Company has a few paints currently which vary in color, size, cost each paint-type obviously varying in these characteristics. Retailers can log into the site and purchase paints in single digits (like 1 or 2 paints) at a time while wholesalers buy paints in large quantities at discounts of 10% for 10 paints and above, 20% for 20 paints and above, 30% for 30 paints and above.
The website has been made to be easy as possible. Customers get to the site, selects the type of paint and is shown the characteristics of the paint. If the customer accesspts to purchase they select the quanitity they need. If the customer is ok with the price they then confirm their order. on confirmation, the website checks for the stock of paints to see if there are enough paints available. If there are not available, the customer is notified and asked to select another type. If they are available, the customer provides payment card details such as address, card number, card pin. The payment is done through an external integration. On payment, the customers order is sent to the customer except if the customer requests a cancellation or the order through the website administrator.
The website-organizer or administrator is responsible for adding new paints to the website and taking out old paints when there is a new stock of paints.
The class diagram I have drawn is shown below:
User
is abstract, would be good to label it so. – Darren Burgess