Object-Oriented Programming · DoorDash · Medium
Requirements Input: accept a cart made up of item entries. At a minimum, every entry must provide an item ID / SKU plus the quantity being requested; stock status and minimum/maximum bounds can come from item metadata or a mocked inventory or catalog service. Check no fewer than these three categories of rules: The quantity requested for an item has to be acceptable. The item needs to be available / in inventory. The item's own lower and upper quantity bounds must be…
Checking your access…