114 lines
5.3 KiB
XML
114 lines
5.3 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/TicketingSetCreation"
|
|
targetNamespace="http://www.thales.dc/TicketingSetCreation"
|
|
version="1.1.0">
|
|
|
|
<!-- 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>30/08/2023 - Version 1.1.0</xs:documentation>
|
|
<xs:documentation>
|
|
Add ticketing set status and update date
|
|
Make ActivationDateTime optional since only deployed set have one
|
|
</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="TicketingSetCreationXsdVersion" 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 TicketingSetCreationAuditExchange structure -->
|
|
<xs:element name="Payload" type="TicketingSetCreationAuditExchange"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<!-- Description of the TicketingSetCreationAuditExchange structure -->
|
|
<xs:complexType name="TicketingSetCreationAuditExchange">
|
|
<xs:annotation>
|
|
<xs:documentation>bpm_ticketing_set_approve_post: On approval of ticketing set by an operator</xs:documentation>
|
|
<xs:documentation>bpm_ticketing_set_reject_post: On rejection of ticketing set by an operator</xs:documentation>
|
|
<xs:documentation>bpm_ticketing_set_deploy_post: On deployment of ticketing set by an operator</xs:documentation>
|
|
<xs:documentation>bpm_ticketing_set_post: Creation of a ticketing set</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:all>
|
|
<xs:element name="ActivationDateTime" type="xs:dateTime" minOccurs="0"/>
|
|
<xs:element name="CreationDateTime" type="xs:dateTime"/>
|
|
<xs:element name="UpdateDateTime" type="xs:dateTime"/>
|
|
<xs:element name="Hash" type="xs:string"/>
|
|
<xs:element name="IdentifierVersion" type="xs:string"/>
|
|
<xs:element name="TicketingSetId" type="xs:string"/>
|
|
<xs:element name="Status" type="TicketingSetValidationStatus"/>
|
|
<xs:element name="ConfItems" type="ConfItems">
|
|
<xs:annotation>
|
|
<xs:documentation>List of configuration items contained in the set</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
<xs:complexType name="ConfItems">
|
|
<xs:sequence>
|
|
<xs:element name="ConfItem" type="ConfItem" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<xs:complexType name="ConfItem">
|
|
<xs:all>
|
|
<xs:element name="ConfItemId" type="xs:string"/>
|
|
<xs:element name="IdentifierVersion" type="xs:string" minOccurs="0"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
<xs:simpleType name="TicketingSetValidationStatus">
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="DRAFT"/>
|
|
<xs:enumeration value="APPROVED"/>
|
|
<xs:enumeration value="REJECTED"/>
|
|
<xs:enumeration value="DEPLOYED"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:schema>
|