My name is Syl. I'm the owner of the Argent Rose, a small wizardry store.
I need to update the inventory of my store, at the end of each day, in order to track the quality and sell-in of my products.
-
All products have:
- A description.
- A sell-in value which denotes the number of days we have to sell the product (0 means the last day the product should be sold).
- A quality value which denotes how valuable the product is. It's never negative and never more than 50.
-
All the products in our inventory are valid.
- quality decreases by two.
- sell-in decreases by one.
-
Products described as "Aged Brie":
- Their sell-in decreases by one.
- Their quality increases by one.
-
Products described as "Lanzarote Wine":
- Their sell-in decreases by one.
- Their quality increases by two.
-
Products described as "Theatre Passes":
- Their sell-in decreases by one.
- Their quality changes as their sell-in day approaches:
- increases by one when there are more than five days to sell the product.
- increases by three when there are five days or less to sell the product.
- drops to zero after the play.
- Their quality changes twice as fast as it did before the sell-in days expires.
- Their sell-in decreases by one.