The inventory resource keeps track of how many of each product we have in our warehouse. At a minimum it should reference a product and the quantity on hand. Check with the Product team for the format of the product id. Inventory could also track restock levels and the condition of the item (i.e., new, open box, used). Restock levels will help you know when to order more products. Being able to query products by their condition (e.g., new, used) could be very useful.
As a Developer
I need the inventory database to maintain product defect levels
So that inventory levels are accurate and customers cannot order defected items
Assumptions:
Goods in inventory may become damaged, and customers may return damaged items
Items in inventory should reflect their state
Customers should not place orders for goods that are damaged
Acceptance Criteria:
Given a customer order
When a GET request for a good is made to inventory that only has one product marked as default left
Then there will be an error and customer cannot complete order
As a Developer I need the inventory database to maintain product defect levels So that inventory levels are accurate and customers cannot order defected items
Assumptions:
Acceptance Criteria: