126 lines
6.0 KiB
XML
126 lines
6.0 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/CustomerProfile"
|
|
targetNamespace="http://www.thales.dc/CustomerProfile"
|
|
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>09/03/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>
|
|
|
|
<!-- 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="CustomerProfileXsdVersion" 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 CustomerProfileAuditExchange structure -->
|
|
<xs:element name="Payload" type="CustomerProfileAuditExchange"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<!-- Description of the CustomerProfileAuditExchange structure -->
|
|
<xs:complexType name="CustomerProfileAuditExchange">
|
|
<xs:annotation>
|
|
<xs:documentation>cmm_customers_profile_add: At customer profile creation</xs:documentation>
|
|
<xs:documentation>cmm_customers_profile_edit: At customer profile update</xs:documentation>
|
|
<xs:documentation>cmm_customers_profile_validation: At customer profile validation</xs:documentation>
|
|
<xs:documentation>cmm_customers_profile_remove: At customer profile delete</xs:documentation>
|
|
<xs:documentation>cmm_customers_profile_all_remove: At customer profile delete all</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:all>
|
|
<xs:element name="CustomerId" type="xs:string"/>
|
|
<xs:element name="RequestDate" type="xs:date" minOccurs="0"/>
|
|
<xs:element name="UpdateDate" type="xs:date" minOccurs="0"/>
|
|
<xs:element name="Comment" type="xs:string" minOccurs="0"/>
|
|
<xs:element name="CustomerExplicitProfiles" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>Customer Explicit Profile</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="CustomerExplicitProfile" type="CustomerExplicitProfileAudit" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="CustomerImplicitProfileAudit" minOccurs="0">
|
|
<xs:annotation>
|
|
<xs:documentation>Customer Implicit Profile</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="ProfileId" type="xs:string" minOccurs="0"/>
|
|
<xs:element name="ProfileNumber" type="xs:string"/>
|
|
<xs:element name="CustomerBirthDate" type="xs:date"/>
|
|
<xs:element name="ProfileStatus" type="ProfileStatus" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="CustomerExplicitProfileAudit">
|
|
<xs:all>
|
|
<xs:element name="ProfileId" type="xs:int"/>
|
|
<xs:element name="ProfileNumber" type="xs:string"/>
|
|
<xs:element name="StartValidityDate" type="xs:date" minOccurs="0"/>
|
|
<xs:element name="EndValidityDate" type="xs:date" minOccurs="0"/>
|
|
<xs:element name="ProfileStatus" type="ProfileStatus" minOccurs="0"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
<xs:simpleType name="ProfileStatus">
|
|
<xs:annotation>
|
|
<xs:documentation>Customer profile status enumeration</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="REJECTED"/>
|
|
<xs:enumeration value="PENDING_VALIDATION"/>
|
|
<xs:enumeration value="VALIDATED"/>
|
|
<xs:enumeration value="EXPIRED"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
<xs:simpleType name="ProfileType">
|
|
<xs:annotation>
|
|
<xs:documentation>Customer profile type</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="IMPLICIT"/>
|
|
<xs:enumeration value="EXPLICIT"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:schema>
|