Purchase Order
Wewic opened this issue · 0 comments
Wewic commented
User: Customer
Input: userName, OrderID, Payment Type
Output: “Purchase Complete” or “Purchase Denied”
Basic Case: Check that OrderID is valid. If all items within the Order are in stock, then subtract quantity of menu item(s) by the quantity of purchase. Return “Purchase Complete”.
Exceptions:
If “quantity of menu item - quantity of purchase < 0”, return “Purchase Denied”
If Customer does not have a payment type specified, return “Purchase Denied”
If payment type is denied, ask to select alternate payment type, else return “Purchase Denied”