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

136 lines
6.2 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/CustomerClaim"
targetNamespace="http://www.thales.dc/CustomerClaim"
version="1.0.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>
<!-- 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="CustomerClaimXsdVersion" 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 CustomerClaimAuditExchange structure -->
<xs:element name="Payload" type="CustomerClaimAuditExchange"/>
</xs:sequence>
</xs:complexType>
<!-- Description of the CustomerClaimAuditExchange structure -->
<xs:complexType name="CustomerClaimAuditExchange">
<xs:annotation>
<xs:documentation>clm_customer_claims_post: At claims creation or update</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="AnswerExpected" type="xs:boolean">
<xs:annotation>
<xs:documentation>Whenever an operator answered a customer but shall later come back to him.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AuthorId" type="xs:string">
<xs:annotation>
<xs:documentation>Claim author id</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AuthorType" type="CustomerClaimAuthor">
<xs:annotation>
<xs:documentation>Claim author type (operator, customer, ...).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ClaimNumber" type="xs:string"/>
<xs:element name="CustomerClaimType" type="CustomerClaimType">
<xs:annotation>
<xs:documentation>Dictionary prefix: CustomerClaimType</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CustomerId" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Customer account identifier. May be null (DEVICE_DYSFUNCTION case).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LastEventDuration" type="xs:duration" minOccurs="0">
<xs:annotation>
<xs:documentation>Duration since previous event sent</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PendingLimitDate" type="xs:dateTime" minOccurs="0">
<xs:annotation>
<xs:documentation>The date AFTER which the claim may be processed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Status" type="CustomerClaimStatus">
<xs:annotation>
<xs:documentation>Dictionary prefix: CustomerClaimStatus</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Text" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Last message exchange during the conversation.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="CustomerClaimAuthor">
<xs:restriction base="xs:string">
<xs:enumeration value="OPERATOR"/>
<xs:enumeration value="DEVICE"/>
<xs:enumeration value="CUSTOMER"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CustomerClaimType">
<xs:restriction base="xs:string">
<xs:enumeration value="REFUND"/>
<xs:enumeration value="CUSTOMER_CLAIM"/>
<xs:enumeration value="EVIDENCE_CHECK"/>
<xs:enumeration value="DEVICE_DYSFUNCTION"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CustomerClaimStatus">
<xs:restriction base="xs:string">
<xs:enumeration value="SUBMITTED"/>
<xs:enumeration value="IN_PROGRESS"/>
<xs:enumeration value="APPROVED"/>
<xs:enumeration value="REJECTED"/>
<xs:enumeration value="CLOSED"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>