poc-reports/es_elt/xsd/auditData/mam/TravelEvent.xsd
2026-01-27 14:48:39 +01:00

103 lines
5.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) Revenue Collection Systems France S.A.S. - 2018-2025 ALL RIGHTS RESERVED
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:head="http://www.thales.dc/Headers"
xmlns="http://www.thales.dc/TravelEvent"
targetNamespace="http://www.thales.dc/TravelEvent"
version="1.0.1">
<!-- Import of xsd file -->
<xs:import namespace="http://www.thales.dc/Headers" schemaLocation="../../common/Headers.xsd"/>
<!-- Annotate all modification of the xsd file according to version -->
<xs:annotation>
<xs:documentation>-----------------------------------------------------------------------------------------------------------------------</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>Version List</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>-----------------------------------------------------------------------------------------------------------------------</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>04/11/2021 - Version 1.0.0</xs:documentation>
<xs:documentation>
1st part: Add the AuditMessages, AuditMessage, Headers and Payload element for the XML validation
2nd part: Add version to xsd schema
</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>-----------------------------------------------------------------------------------------------------------------------</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>17/06/2024 - Version 1.0.1</xs:documentation>
<xs:documentation>
Add the transactionId
</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>-----------------------------------------------------------------------------------------------------------------------</xs:documentation>
</xs:annotation>
<!-- Description of the AuditMessages structure -->
<xs:element name="AuditMessages" type="AuditMessagesType"/>
<xs:complexType name="AuditMessagesType">
<xs:sequence>
<!-- List of AuditMessage -->
<xs:element name="AuditMessage" type="AuditMessageType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<!-- version of AuditMessages structure -->
<xs:attribute name="TravelEventXsdVersion" type="xs:string" fixed="1.0"/>
</xs:complexType>
<!-- Description of the AuditMessage structure -->
<xs:complexType name="AuditMessageType">
<xs:sequence>
<!-- Headers structure -->
<xs:element name="Headers" type="head:HeadersType" minOccurs="0"/>
<!-- Payload is a TravelEventAuditExchange structure -->
<xs:element name="Payload" type="TravelEventAuditExchange"/>
</xs:sequence>
</xs:complexType>
<!-- Description of the TravelEventAuditExchange structure -->
<xs:complexType name="TravelEventAuditExchange">
<xs:annotation>
<xs:documentation>mam_reconstruction_inspection_post: At fraudulent inspection detection</xs:documentation>
<xs:documentation>mam_reconstruction_inspection_post: At fraudulent inspection removal</xs:documentation>
<xs:documentation>mam_reconstruction_missing_post: At missing travel event detection</xs:documentation>
<xs:documentation>mam_reconstruction_missing_post: At missing travel event removal</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="CustomerId" type="xs:string" minOccurs="0"/>
<xs:element name="MediaGraphicalNumber" type="xs:string" minOccurs="0"/>
<xs:element name="MediaId" type="xs:string" minOccurs="0"/>
<xs:element name="OccurrenceDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="Solved" type="xs:boolean">
<xs:annotation>
<xs:documentation>Stipulates if the event is now solved (ie an event occurred to replace the missing or the fraudulent inspection)
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TravelDay" type="xs:date" minOccurs="0"/>
<xs:element name="TravelEventAuditType" type="TravelEventAuditType" minOccurs="0"/>
<xs:element name="TravelEventId" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>In case of Missing, this is the Id of the travel event not missing of the leg. In case of Inspection, this is the id of
the inspection travel event
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TransactionId" type="xs:string" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:simpleType name="TravelEventAuditType">
<xs:restriction base="xs:string">
<xs:enumeration value="INSPECTION"/>
<xs:enumeration value="MISSING"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>