My implementation of kata09.
Create a new basket object given a set of pricing rules.
rules
: Object
{
'regulars': {
'A': 50,
'B': 30,
'C': 20,
'D': 15,
},
'specials': {
'A': {
'quantity': 3,
'price': 130,
},
'B': {
'quantity': 2,
'price': 45,
},
},
}
Scan a new item into the basket
item
: String : Type of Item
Retreive the total price of the items in the basket.