112 lines
5.7 KiB
XML
112 lines
5.7 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/FixedOriginDestinationApportionmentErrors"
|
|
targetNamespace="http://www.thales.dc/FixedOriginDestinationApportionmentErrors"
|
|
version="1.0.1">
|
|
|
|
<!-- 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>
|
|
<xs:annotation>
|
|
<xs:documentation>04/11/2021 - Version 1.0.1</xs:documentation>
|
|
<xs:documentation>
|
|
Add new ErrorType: TRANSFER_DISCOUNT_GREATER_THAN_ALLOCATED
|
|
</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="FixedOriginDestinationApportionmentErrorsXsdVersion" 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 FixedOriginDestinationApportionmentErrorsAuditExchange structure -->
|
|
<xs:element name="Payload" type="FixedOriginDestinationApportionmentErrorsAuditExchange"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<!-- Description of the FixedOriginDestinationApportionmentErrorsAuditExchange structure -->
|
|
<xs:annotation>
|
|
<xs:documentation>Apportionment error raised during an apportionment plugin execution.</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexType name="FixedOriginDestinationApportionmentErrorsAuditExchange">
|
|
<xs:annotation>
|
|
<xs:documentation>clr_contract_settlement_get: Apportionment error raised during an apportionment plugin execution.</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:all>
|
|
<xs:element name="ErrorType" type="ApportionmentErrorType"/>
|
|
<xs:element name="ProductCode" type="loc:LocalizedProductCode" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The type of product of the contract instance if it is a transit product.</xs:documentation>
|
|
<xs:documentation>Dictionary prefix: ProductCode</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="TableId" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The matrix applied for this apportionment.</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="OriginPointId" type="xs:string" minOccurs="0"/>
|
|
<xs:element name="DestinationPointId" type="xs:string" minOccurs="0"/>
|
|
<xs:element name="Amount" type="xs:decimal" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The total amount (the price of the leg).</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="ApportionedRevenue" type="xs:decimal" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The total revenue to be apportioned among all the stakeholder (this apportionment is a fraction of it)</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="MediaSerialNumber" type="xs:string" minOccurs="0"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
<xs:simpleType name="ApportionmentErrorType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="MISSING_DATA_FOR_APPORTIONMENT"/>
|
|
<xs:enumeration value="TOTAL_AND_REVENUE_AMOUNT_DIFFERENT"/>
|
|
<xs:enumeration value="TRANSFER_DISCOUNT_GREATER_THAN_ALLOCATED"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:schema>
|