Room Service Module Specs
The documented modules are:
- Add An Order
- Calls:
- Get room number
- Get order time
- Get order date
- Get delivery time
- Get delivery date
- Get item number
- Get number of items ordered
- Get employee ID
- Get comments
- Calling sequence:
- Get room number
- Get order time
- Get order date
- Get delivery time
- Get delivery date
- Get service item number
- Get number of items ordered
- Get employee ID
- Get comments
- Output:
- food order - instance to be updated in data store
"Fees"
- movie order - instance to be updated in data store
"Fees"
- wake-up order - instance to be updated in data store
"Fees"
- Status message to user
- Description:
- Adds an item to invoice's food order, movie order,
or wake-up order. Adds the cost of the item to the
present total. It returns an status message to
the user (successful/unsuccessful).
- Cancel An Order
- Calls:
- Get room number
- Get item number
- Get delivery time
- Get delivery date
- Calling sequence:
- Get room number
- Get item number
- Get delivery time
- Get delivery date
- Output:
- food order - instance to be removed from data store
"Fees"
- movie order - instance to be removed from data store
"Fees"
- wake-up order - instance to be removed from data store
"Fees"
- Status message to user
- Description:
- Deletes an item from the invoice's food order,
movie order, or wake-up order. Subtracts the
item cost from the present total. It returns
an status message (successful/unsuccessful).
- Modify An Order
- Calls:
- Get room number
- Get delivery time
- Get delivery date
- Get service item number
- Get number of items ordered
- Get employee ID
- Get comments
- Calling sequence:
- Get room number
- Get delivery time
- Get delivery date
- Get service item number
- Get number of items ordered
- Get employee ID
- Get comments
- Output:
- food order - instance to be updated in data store
"Fees"
- movie order - instance to be updated in data store
"Fees"
- wake-up order - instance to be updated in data store
"Fees"
- Status message to user
- Description:
- Modifies information associated with a food order,
movie order, or wake-up order. It returns
an status message (successful/unsuccessful).
- Process completed order
- Calling sequence:
- Get room number
- Get comments
- Output:
- food order - instance to be updated as completed
- movie order - instance to be updated as completed
- wake-up order - instance to be updated as completed
- Status message to user
- Description:
- Updates an order as being completed in field comment
in data store "Order" if the order exists. Otherwise
returns an status message (unsuccessful).
- Search By Room Number
- Calling sequence:
- Get room number
- Output:
- food order - instance to be returned to user
- movie order - instance to be returned to user
- wake-up order(s) - instance(s) to be returned to user
- status message to user
- Description:
- Search for corresponding information associated with
specified room number. Returns the food order,
movie order and wake-up order information for the
desired room.
- Search By Delivery Time
- Calling sequence:
- Get delivery time
- Output:
- food order(s) - instance(s) to be returned to user
- movie order(s) - instance(s) to be returned to user
- wake-up order(s) - instance(s) to be returned to user
- status message to user
- Description:
- Search for information corresponding to the delivery
time inputted.