IT 312 / SIAE-Commerce Project Guide
Your section

Use cases

The people, systems, and flows your e-commerce project supports.

Actors

ActorTypeDescription
GuestPersonVisitor who is not logged in
CustomerPersonRegistered user who buys products (inherits everything a Guest can do)
AdminPersonStore staff who manage products, orders, stock and reports
Payment GatewayExternal systemMock gateway (behaves like PayMongo); confirms online payments through a webhook
Mail ServiceExternal systemDelivers emails the system sends
27 use cases
IDUse caseActorsModule
UC-01Register an accountGuestUsers & Auth
Group 6
UC-02Log in / log outGuest, Customer, AdminUsers & Auth
Group 6
UC-03Reset passwordGuestUsers & Auth
Group 6
UC-04Manage profile and addressesCustomerUsers & Auth
Group 6
UC-05Browse products by categoryGuest, CustomerProduct Catalog
Group 4Two modules
UC-06View product detailsGuest, CustomerProduct Catalog
Group 4Two modules
UC-07Manage products and categoriesAdminProduct Catalog
Group 4Two modules
UC-08Search and filter productsGuest, CustomerSearch & Filters
Group 4Two modules
UC-09Manage cartCustomerCart & Wishlist
Group 7
UC-10Manage wishlistCustomerCart & Wishlist
Group 7
UC-11Check outCustomerCheckout & Orders
Group 3
UC-12View order history and detailsCustomerCheckout & Orders
Group 3
UC-13Cancel a pending orderCustomerCheckout & Orders
Group 3
UC-14Manage orders and statusesAdminCheckout & Orders
Group 3
UC-15Pay onlineCustomer, Payment GatewayPayments
Group 1
UC-16Confirm payment (webhook)Payment GatewayPayments
Group 1
UC-17Restock and adjust inventoryAdminInventory & Stock
Group 2Two modules
UC-18View stock historyAdminInventory & Stock
Group 2Two modules
UC-19View dashboard and sales reportsAdminAdmin Dashboard & Reports
Group 2Two modules
UC-20Export sales report (CSV)AdminAdmin Dashboard & Reports
Group 2Two modules
UC-21Receive order emailsCustomer, Mail ServiceNotifications
Not assigned in this section
UC-22Receive low-stock alertsAdmin, Mail ServiceNotifications
Not assigned in this section
UC-23Manage shipping ratesAdminShipping & Tracking
Not assigned in this section
UC-24Mark order as shippedAdminShipping & Tracking
Not assigned in this section
UC-25Track an orderCustomerShipping & Tracking
Not assigned in this section
UC-26Write a product reviewCustomerReviews & Ratings
Not assigned in this section
UC-27Moderate reviewsAdminReviews & Ratings
Not assigned in this section

UC-11 · Check out

Actor
Customer
Precondition
Customer is logged in and the cart has at least one item
Trigger
Customer clicks Checkout on the cart page
Postcondition
An order exists with status Pending, the cart is empty, stock is reduced, a confirmation email is sent

Main flow

  1. System shows the cart items, default address, shipping fee and payment options.
  2. Customer picks an address and a payment method (COD or online) and may enter a voucher code.
  3. Customer clicks Place order.
  4. System re-checks stock for every item.
  5. System creates the order and its items, then empties the cart.
  6. System fires OrderPlaced; stock is deducted, a shipment is prepared and an email is sent.
  7. For COD, system shows the order in My Orders. For online payment, system sends the customer to the gateway (continues in UC-15).

Alternative flows

  • 4a. An item is out of stock: system returns to the cart and names the item.
  • 2a. Voucher code is invalid or expired: system places the order without a discount and says why.
  • 7a. Online payment fails: the order stays Pending; the customer can retry from the order page.

Vouchers is unassigned this semester; checkout accepts the demo code WELCOME10 as part of UC-11.