Skip to content

Latest commit

 

History

History
192 lines (122 loc) · 7.65 KB

FunctionalRequirements.md

File metadata and controls

192 lines (122 loc) · 7.65 KB

Functional Requirements - initial discussion

The business goal (reminder):

A "ghost kitchen" (food preparation and cooking facility set up for the preparation of delivery-only meals.) needs an ordering system to allow users to have visibility of what items are available, purchase, and pick up items at any one of their points of sale / smart-fridge.

Requirements provided by the owner

  1. Must integrate with 3rd party smart fridges to obtain inventory and purchase activity
  2. Smart Fridges Produce item inventory levels and purchases. The smart fridges have a cloud based management system that handles communication with the Smart Fridge so obtaining this data would be through an API.
  3. Must integrate with point of sale system at kiosks
  4. The Kiosk is a sublet space inside another business where we will sell our product but have an employee handle the transactions through a point of sale. The same data should be accessible through the PoS systems API.
  5. Mobile and Web accessible application
  6. Support providing feedback on items of verified purchases and in-app surveys.
  7. Accept coupons and promotional pricing
  8. Send inventory updates to the central kitchen

Clarification and possible out of scope items

Req #1 sounds quite vague and out of scope as there is an independent system (we'll call it Kiosk Mgmt System) that provides communication and managing of smart-fridges (see Req #2). From our perspective, it sounds like the responsibility of such integration and communication lays out of the responsibility of the Ordering system. Need clarification.

Req #3 tells that the Ordering system should integrate with point of sales. So from our perspective, it is confirmation from the seller. Here using cash for non-subscribers might be a valid use case.

Req #4 groups with Req #3 and provide additional information about the environment and context. If we transform it to the use cases, then it will be:

  • The system should support and engage occasional users.
  • System should support cash payments

Req #5 is clear and telling about user communication channels and engagement. Then, possible use cases:

  • System should support and engage subscribers and known users

Req #6 entirely is about user engagement in various aspects that might not be defined yet. Then, possible use cases: The system should be extensible for a new form of engagements, including surveys, direct feedback, reviews, discount/coupon programs, and so on.

Req #7 is extension of Req #6

Req #8 is about integration.

Assumptions:

  1. Central kitchen already uses some tracking system that has some form of API that accepts writes.
  2. Inventory updates are not limited by changes in the stock of smart-fridges for a refill.
  3. Inventory updates can be formed by the user's request for the desired meal. A User can be a Subscriber or a Known user.
  4. Inventory updates created by scheduling system from subscribers menu for a week/month.

Questions:

  1. How often the central kitchen should get updates? Why it's important - the kitchen by itself does not work 24/7. A kitchen should have refillment of supply
  2. How to provide feedback to the user if order can't be fulfilled in the desired time frame? Are there timeframes of delivery in general?

Functional areas - preliminary analysis of scenarios

Based on the business goal provided by the owner, we can extract the following functional areas:

Core context

  1. Meal reservation (Req #8, #5, #6)
  2. Picking up a meal (Req #3, #4)
  3. Point Of Sales integration with Ordering system (#3, #4)
  4. Meal catalog (visibility of items) (#7, #6)
  5. Ordering system - internal subsystem
  6. Scheduling meals

Support context

  1. Purchasing system

Generic context

  1. Integration between internal systems
  2. User applications
  3. Notification system

Meal reservation

Make an available upfront reservation of meals based on time. In general, it might be instantly available meals in the fridge and on-demand from the catalog.

Sunny day scenarios:

  1. User (Subscriber, Known user) browse the meal catalog, select available meals in fridges, book it, and pay a meal at pickup time.
  2. Subscriber forming a menu schedule and get a notification when a meal is available each day. The prepared menu is prepaid.

Extended use cases:

Questions:

  1. Is there an option for prepayment to book a meal, say for a week, for a month?
  2. Is there any cutoff time for a user to pick the meal?
  3. If Subscriber didn't pick up a meal during a time frame, can it be listed in the shared catalog?

Risks:

  1. User booked a meal, but not picked it up. Option: prepay to accomplish the operation.

Picking up a meal

Responsible for "direct" communication with a fridge and how the picking up process might be executed.

Sunny day scenarios:

  1. Subscriber user saved card in the app to authorize and pick up a meal. Kiosk knows the order associated with the user upfront.
  2. Known user selects a meal from the catalog, use a card for payment, and pick up a meal.
  3. Occasional user will order a meal with the help of PoS Seller.
  4. Meal arrived in a fridge, the user gets notification of availability.

Extended use cases:

Risks:

  1. Loss of connection. Options: 1) Generating one-time recovery codes. 2) Swiping the card and getting a meal.
  2. Meal is stuck in the fridge. Options: 1) User take a photo and submit a complaint.

Point Of Sales integration

Special app (or part of frontend) with user impersonation by PoS admin. Allows reusing the same logic as for other users.

Sunny day scenarios:

  1. Occasional user make an order, PoS admin performs order in the PoS app. The type of payment doesn't matter.
  2. Subscriber coming to grab a meal, provide a code/message that appears in PoS app, based on this info PoS Admin provides a meal.

Extended use cases:

Risks:

  1. Loss of connection. Options: 1) Eventual consistency of operations. Send data when the network will be available. 2) Recovery codes from Subscriber

Meal catalog

Responsible for providing information about available meals in fridges and on-demand meals.

Sunny day scenarios:

  1. Actual meals for each fridge is available for browsing. Each item contains a description, price, exact place.

Extended use cases:

  1. User can set the desired area of fridges and get items based and this area
  2. User can set filters based on allergens and content

Risks:

  1. Can the catalog contain meals out of order but with general availability for ordering within some time frame?
  2. How often data should be updated?

Ordering system

Keep tracking the ordering process and generation info for the Ghost Kitchen.

Sunny day scenarios: 1.

Extended use cases:

Risks:

  1. What is the minimum time frame for ordering a meal that is not available in fridges but can be prepared by Ghost Kitchen?
  2. Is it possible to make a mass order and set a specific address?
  3. User ordered a meal, but there is no possibility to deliver it? Short of stock, kitchen closed.

Purchasing system

Facade for payment systems

Sunny day scenarios:

Extended use cases:

Risks:

User applications

UI for the Ordering system

Sunny day scenarios:

Extended use cases:

Risks:

Integration between internal systems

Communication with upstream and downstream systems.

Sunny day scenarios:

Extended use cases:

Risks:

Notification system

Make user informed on postponed in time actions.

Sunny day scenarios:

  1. Default notification channel is in-app messages.

Extended use cases:

  1. User can set up preferred way of notification: in-app, push, email, SMS
  2. Notifications differ by type and have different delivery channels. Types are: order-related, news, feedback request, other.

Risks:

  1. Should there be a backup channel?
  2. Several ways of delivery for the same type?