Basket
A basket is a collection of IBasketItem
(items) and IBasketContext
which is information about those items. Example of baskets are: shopping cart, wish list, or list of ingredients.
Basket items are things which can be priced like products and services and the context items describe those products and services, for example custom engraving on a product.
A basket consists of a BasketHeaderContextInfo
(basket header) and BasketLine
s (lines).
The basket header contains information which describe the basket as a whole, for example delivery type (in store pickup, street address, etc.), shipping costs, etc.
Each basket line should contain one item and zero or more context items and the quantity to represent how many of the item there are in the line.