Use case name: Make Order Request
Summary: Customer enters an order request to purchase the selected items. The customer’s credit card
is checked for validity to pay for the requested items.
Actor: Customer, Bank
Precondition: Customer added items to a cart and logged in customer account.
Main sequence:
1. Customer orders the items with the order details (item names, quantities, total price) in a cart.
2. System retrieves the customer’s credit card number from customer account.
3. System requests to a bank checking the customer’s credit card for the purchase amount.
4. If approved, system receives a purchase authorization number from bank.
5. System stores a delivery order containing order details, customer Id, purchase authorization number,
and order status as “ordered”.
6. System confirms approval of purchase and displays order information to customer.
Alternative sequences:
Step 4: If authorization of the customer’s credit card is denied (e.g., invalid credit card or over credit
limit), the system prompts the customer to enter a different credit card number. The customer can
either enter a different credit card number or cancel the order. If customer’s new credit card is
authorized by bank, the customer’s account is updated with the new card number.
Postcondition: Customer has ordered items.
Use case name: Make Order Request
Summary: Customer enters an order request to purchase the selected items. The customer’s credit card
is checked for validity to pay for the requested items.
Actor: Customer, Bank
Precondition: Customer added items to a cart and logged in customer account.
Main sequence:
1. Customer orders the items with the order details (item names, quantities, total price) in a cart.
2. System retrieves the customer’s credit card number from customer account.
3. System requests to a bank checking the customer’s credit card for the purchase amount.
4. If approved, system receives a purchase authorization number from bank.
5. System stores a delivery order containing order details, customer Id, purchase authorization number,
and order status as “ordered”.
6. System confirms approval of purchase and displays order information to customer.
Alternative sequences:
Step 4: If authorization of the customer’s credit card is denied (e.g., invalid credit card or over credit
limit), the system prompts the customer to enter a different credit card number. The customer can
either enter a different credit card number or cancel the order. If customer’s new credit card is
authorized by bank, the customer’s account is updated with the new card number.
Postcondition: Customer has ordered items.