restock

open suspend override fun restock(ingredient: UpdateQuantity): WarehouseServiceResponse<Ingredient>

Return

null and WarehouseMessage.ERROR_WRONG_PARAMETERS if the quantity passed in the body is less ore equal to 0, otherwise it returns the repository response

Parameters

ingredient

information needed to restock