basketModel

createBasket

  • Create basket for the provided customer.
Method Description
Request

createBasket

  • businessUnitId: String → the businessUnitId e.g. "9090"
  • externalClientId: String → the platform e.g. "Android"
  • customerId: String → the id of the customer
  • hyperPersonalizationAccepted: Boolean
  • emailAddress: String?
  • recommendationMode: RecommendationMode

Response

  • basketLiveData
  • BasketState.BasketUpdate
    • Basket: the created Basket for the customer.
  • BasketState.BasketError

getBasket

  • Provides the current basket stored locally - offline.
Method Description
Request getBasket
  • basketId: String → the id of the basket

Response

  • basketLiveData
  • BasketState.BasketUpdate
    • Basket: the created Basket for the customer.
  • BasketState.BasketError

updateBasket

  • Provides the current basket - force online update.
Method Description
Request updateBasket
  • basketId: String → the id of the basket

Response

  • basketLiveData
  • BasketState.BasketUpdate
    • Basket: the created Basket for the customer.
  • BasketState.BasketError