SDK Example: Update Items in Basket (Winter '20)

Use the example SDK code in this topic to update items in a basket.

Possible error conditions:

"UpdateItemsInCart::getAPIPath() must have catalogCode."

"UpdateItemsInCart::getAnonymousSiteRestUrl() must have catalogCode."

"UpdateItemsInCart::getRequestPayload() must have basketAction."

"UpdateItemsInCart::getRequestPayload() must have lineItemKey when basketAction is 'updateBasket'."

"UpdateItemsInCart::getRequestPayload() must have basketkey when basketAction is 'updateBasket'."

"UpdateItemsInCart::getRequestPayload() must have bundleContextKey when basketAction is 'updateBasket'."