Project introduction: http://codekata.com/kata/kata09-back-to-the-checkout/
-
Complete the core functions
- get products by Category
- get product by SKu
- add product
- New order
- add order item
- Delete order item
- Checkout
-
Add Discount feature
- Add Discount
- Delete Discount
- Update Discount
- PriceAfterDiscount
-
Apply Discount
- Add totalSaved field in Order
- "Add order item" function should check if the discount is available for the product
- "Delete order item" function should check and remove the discount if the product is removed or the quantity is reduced
TODO:
- move process to service layer
- Add item to order
- Delete item from order
- Apply discount
- Add more test cases