David Underwood
3799ea62f7
Update README.md
2026-07-21 13:03:53 -04:00
David Underwood
f220a1691c
Reimplement checkout item removal. All existing tests now pass
2026-07-21 12:49:57 -04:00
David Underwood
60d132a821
Add BulkDiscount
2026-07-21 12:32:51 -04:00
David Underwood
554ce58cbf
Add BuyXGetOneFreeDiscount
2026-07-21 12:23:46 -04:00
David Underwood
882c18b5e6
Rebuild the Checkout class, no discounts yet
...
Checkout now stores its items using a quantity and a link back to the
original product instance. It has a reference to the store to make sure
that product IDs added are valid
2026-07-21 10:27:33 -04:00
David Underwood
e570783935
Add Shop class to keep track of available products
2026-07-21 09:48:32 -04:00
David Underwood
b65eca8356
Basic Product class
2026-07-21 09:39:05 -04:00
David Underwood
33fff52042
Put tests in their own directory and add rake task to run them
2026-07-21 09:24:40 -04:00
David Underwood
e7f6a9620f
Item removal
2026-07-15 11:50:49 -04:00
David Underwood
07a9c25d9e
Add a couple of extra test cases
2026-07-15 11:36:23 -04:00
David Underwood
ba6e6c19af
Extra documentation in README.md
2026-07-15 11:27:47 -04:00
David Underwood
257f154897
Ability to clear checkout
2026-07-15 11:20:21 -04:00
David Underwood
dabac3d746
Bulk discount for Pico2
2026-07-15 11:12:02 -04:00
David Underwood
d21373035e
BOGOF discount for ZERO2W
2026-07-15 10:57:09 -04:00
David Underwood
dadfeed768
Basic total generation, no discounts for now
2026-07-15 10:44:00 -04:00
David Underwood
8e28112a8c
Logic for adding items and validating them
2026-07-15 10:30:28 -04:00
David Underwood
3eebf18fb8
Initial commit with README
2026-07-15 09:54:07 -04:00