139 lines
6.9 KiB
XML
139 lines
6.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="http://www.thales.dc/RefundContract"
|
|
targetNamespace="http://www.thales.dc/RefundContract"
|
|
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>01/06/2023 - 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>sprint 186 - 23/08/2023 - Version 1.0.1</xs:documentation>
|
|
<xs:documentation>
|
|
change versioning and add documentation to respect XSD versioning format
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:annotation>
|
|
<xs:documentation>-----------------------------------------------------------------------------------------------------------------------</xs:documentation>
|
|
</xs:annotation>
|
|
|
|
|
|
<!-- Description of the RefundContract 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="RefundContractXsdVersion" 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 RefundContractAuditExchange structure -->
|
|
<xs:element name="Payload" type="RefundContractAuditExchange"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<xs:element name="RefundContractAuditExchange" type="RefundContractAuditExchange"/>
|
|
<!-- Description of the RefundContractAuditExchange structure -->
|
|
<xs:complexType name="RefundContractAuditExchange">
|
|
<xs:annotation>
|
|
<xs:documentation>pom_refund_contract: This audit will be produced after sending closing contract to mam
|
|
mam_refund_contract: This audit will be produced after sending refund order item contract to mam
|
|
mam_contract_update: This audit will be produced after sending closing contract to mam
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:all>
|
|
<xs:element name="PaymentId" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The unique identifier of the payment</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="MediaSerialNumber" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The serial number of the media</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="ContractSerialNumber" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The serial number of the contract to refund</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="ContractStatus" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The status of the contract (DISABLE, CLOSED, ...)</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="ProductCode" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The code of the product on the catalog</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="RefundOrderId" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The unique identifier of the refund order</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="RefundOrderStatus" type="xs:string" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The status of the refund order (NOT_REQUEST, PENDING, COMPLETED, CANCELED)</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="RefundStatusOccurrenceDate" type="xs:dateTime" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The date of this status</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="InitialRefundAmount" type="xs:decimal" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The initial refund amount calculated by CSS</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="FinalRefundAmount" type="xs:decimal" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The final refund amount calculated by MAM</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="RefundFee" type="xs:decimal" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The fee applicable to refund a product</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="FinalRefundAmountFlag" type="xs:boolean" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>The fee applicable to refund a product</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
</xs:schema>
|