85 lines
3.9 KiB
XML
85 lines
3.9 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:loc="http://www.thales.dc/Localized"
|
|
xmlns="http://www.thales.dc/LowStock"
|
|
targetNamespace="http://www.thales.dc/LowStock"
|
|
version="1.0.0">
|
|
|
|
<!-- Import of xsd file -->
|
|
<xs:import namespace="http://www.thales.dc/Headers" schemaLocation="../../common/Headers.xsd"/>
|
|
<xs:import namespace="http://www.thales.dc/Localized" schemaLocation="../../common/Localized.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>
|
|
|
|
|
|
<!-- 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="LowStockXsdVersion" 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 LowStockAuditExchange structure -->
|
|
<xs:element name="Payload" type="LowStockAuditExchange"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<!-- Description of the LowStockAuditExchange structure -->
|
|
<xs:complexType name="LowStockAuditExchange">
|
|
<xs:annotation>
|
|
<xs:documentation>stk_entity_post: After a stock update triggering a low stock</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:all>
|
|
<xs:element name="BusinessEntity" type="loc:LocalizedBusinessEntityInt"/>
|
|
<xs:element name="EntityIdentifier" type="xs:string"/>
|
|
<xs:element name="EntityName" type="xs:string"/>
|
|
<xs:element name="EntityType" type="loc:LocalizedEntityType"/>
|
|
<xs:element name="LowStockItems" type="LowStockItems" minOccurs="0"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
<xs:complexType name="LowStockItemExchange">
|
|
<xs:all>
|
|
<xs:element name="ItemType" type="loc:LocalizedItemType"/>
|
|
<xs:element name="Quantity" type="xs:long"/>
|
|
<xs:element name="Threshold" type="xs:long"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
<xs:complexType name="LowStockItems">
|
|
<xs:sequence>
|
|
<xs:element name="LowStockItem" type="LowStockItemExchange" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:schema>
|