restock

abstract suspend fun restock(name: String, quantity: Int): RepositoryResponse<Ingredient>

Return

the restocked ingredient and WarehouseMessage.OK if the new ingredient has been successfully restocked, otherwise it returns WarehouseMessage.ERROR_INGREDIENT_NOT_FOUND

Parameters

name

of the ingredient to restock

quantity

to add to the warehouse