Ticket Title: Complete Order Class for Item Ordering and Checkout System
Priority: High
Description:
This ticket focuses on completing the implementation of the Order class within the JavaGo package. The goal is to finalise the order workflow, including item selection, basket management, checkout, and payment processing.
Ticket Title: Complete
Order
Class for Item Ordering and Checkout SystemPriority: High
Description: This ticket focuses on completing the implementation of the
Order
class within theJavaGo
package. The goal is to finalise the order workflow, including item selection, basket management, checkout, and payment processing.Related Issue: #Order-Class-Development (link to the corresponding issue)
Current State:
order
method allows the user to select items from the menu and add them to the basket.Terminal
class is being used to manage the UI in the console.Tasks:
Order Number Generation:
orderNumber
. The format should resemble something likeORD123456
.Server Name Input:
Payment Process:
paymentSuccess
boolean is updated based on the user’s response or mock validation.Receipt Generation:
Terminal.printHeader()
method for a structured view.Error Handling:
Code Refactoring:
order
method cleaner and easier to maintain.Acceptance Criteria:
Order
class should allow users to browse a menu, add items to the basket, and checkout.orderNumber
should be generated for each order.Test Plan: