Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
typeflat

Die Anfrage ist ein Element The request comprises a vco:FinishOrderRequest, die Antwort ist ein Element element; the response comprises a vco:FinalOrderResponse element. Das Element The vco:FinishOrderRequest ist vom Typ TransactionRequestType, das Element element is of type TransactionRequestType; the vco:FinalOrderResponse erweitert den Typ TransactionResponseType um das Element element extends TransactionResponseType with the vco: OrderHeader, sowie um das Element element as well as the vco:OrderResponseLine , welches beliebig oft vorkommen kann. Das Element OrderHeader hat zwei Kind-Elementeelement which can occur as often as required. The OrderHeader element has two child elements: vco:OrderID und and cbc:IssueDate.

...

Rule: FinishOrder

Ein veloconnect-konformer Server reagiert auf eine Anfrage FinishOrderRequest wie folgt:

...

Zur Anfrage wird ermittelt, ob hierzu eine Transaktionsinstanz existiert. Falls keine existiert wird der ResponseCode 420 zurückgeliefert. Falls eine solche existiert und sich diese nicht im Zustand 2 befindet, wird die Bearbeitung der Anfrage abgebrochen und der ResponseCode 430 zurückgeliefert.

...

Die im Transaktionskontext gespeicherte Bestellung wird an das Warenwirtschaftssystem des Verkäufers weitergeleitet und dort wird eine Bestellung ausgelöst, falls das Element IsTest im Request fehlt oder den Wert false hat. Sofern das Warenwirtschaftssystem der Bestellung eine Kennzeichnung gibt, die eine Weiterverfolgung der Bestellung erlaubt, und der Server diese Kennzeichnung in Erfahrung bringen kann, ist diese als vco:OrderID im Element vco:OrderHeader zu verwenden. Ferner ist das aktuelle Datum als Element cbc:IssueDate im Element vco:OrderHeader einzusetzen.

...

Falls Im Request das Element IsTest den Wert true hat, ist dafür zu sorgen, dass keine Bestellung und Lieferung ausgelöst wird.

...

A Veloconnect-compliant server responds to a FinishOrderRequest as follows:

  1. Determined as part of the request is whether a related transaction instance exists. If not, then ResponseCode 420 is returned. On existence of a transaction instance not in state 2, processing of the request is aborted, and ResponseCode 430 is returned.

  2. The order stored in the transaction context is relayed to the seller's merchandise management system, and triggered there if the element IsTest is missing in the request, or has the status false. If the merchandise management system assigns the order an identifier allowing the order to be tracked, and the server can determine this identifier, it must be used as vco:OrderID in the vco:OrderHeader element. Furthermore, the current date is to be used as a cbc:IssueDate element in the vco:OrderHeader element.

  3. If the IsTest element in the request has the status true, it is necessary to ensure that no order or delivery is triggered.

  4. From the transaction context, the OrderResponseLine elements are inserted into the response, which is supplied with ResponseCode 200 to the client. The transaction instance is switched to state 100 (final state).