n4.cuwo.messages.evaluatebasket.EvaluateBasketOperation

The EvaluateBasketOperation message is used to trigger the evaluation of a basket.

This operation is only available to KIOSK CUWOs!

The message has the following structure:

{
  "@type": "n4.cuwo.messages.evaluatebasket.EvaluateBasketOperation",
  "id": "...",
  "basket": {...},
  "customerInformation": {...}
}

The various member provide the information necessary for the operation:

  • id - The ID of the operation. Will be used as part of the acknowledgement and result messages
  • basket - The basket to evaluate. Consists of items and may hold discounts.
  • customerInformation - Information about the customer.

If the operation is successful, an instance of EvaluateBasketResult is returned as part of the OperationFinished message.

EvaluateBasketResult has the following structure:

{
  "@type": "n4.cuwo.messages.evaluatebasket.EvaluateBasketResult",
  "evaluationResult": {...}
}

The various member provide the result information for the operation:

  • evaluationResult - The evaluation result (amounts, taxes, etc.) as a BasketEvaluationData structure