<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:kdpw:xsd:auth.ntf.001.01" targetNamespace="urn:kdpw:xsd:auth.ntf.001.01" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:annotation>
		<xs:documentation source="Name" xml:lang="EN">SFTR - Notification message</xs:documentation>
		<xs:documentation source="Definition" xml:lang="EN">SFTR - Notification message</xs:documentation>
	</xs:annotation>
	<xs:element name="Document" type="Document">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Document</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Document</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:simpleType name="AnyBICIdentifier">
		<xs:restriction base="xs:string">
			<xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="CorrectionNotification">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Correction notification</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Correction notification</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="RcId" type="LEIIdentifier">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Counterparty Id</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Unique code identifying the counterparty submitting the correction</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="UnqTradIdr" type="Max52Text">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Unique trade identifier</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Unique trade Identifier (UTI) as agreed with the other counterparty.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="OthCtrPtyId" type="OtherCounterpartyIdentification">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Other counterparty identification</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Other counterparty identification</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Document">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Document</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Document</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="NtfctnMsg" type="SFTRNotificationMessage">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Entity relations message</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Entity relations message</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="NotificationDetails">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Notification details</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Notification details</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="CrrtnNtfctn" type="CorrectionNotification">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Correction notification</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Notification of correction submitted by RC</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="OtherCounterpartyIdentification">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Other counterparty identification</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Other counterparty identification</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:choice>
				<xs:element name="LEI" type="LEIIdentifier">
					<xs:annotation>
						<xs:documentation source="Name" xml:lang="EN">LEI</xs:documentation>
						<xs:documentation source="Definition" xml:lang="EN">Other counterparty LEI</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CltId" type="Max50Text">
					<xs:annotation>
						<xs:documentation source="Name" xml:lang="EN">Client Id</xs:documentation>
						<xs:documentation source="Definition" xml:lang="EN">Other counterparty client Id</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BIC" type="AnyBICIdentifier">
					<xs:annotation>
						<xs:documentation source="Name" xml:lang="EN">BIC code</xs:documentation>
						<xs:documentation source="Definition" xml:lang="EN">Other counterparty BIC code</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="GeneralInformation">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">General information</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">General information</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="RptgNtty" type="LEIIdentifier">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Report submitting entity Id</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Report submitting entity ID</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="LEIIdentifier">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">LEI Identifier</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Legal Entity Identifier is a code allocated to a party as described in ISO 17442 "Financial Services - Legal Entity Identifier (LEI)".</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="[A-Z0-9]{18,18}[0-9]{2,2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max50Text">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Max 50 Text</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Specifies a character string with a maximum length of 50 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="50"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max52Text">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Max 52 Text</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Specifies a character string with a maximum length of 52 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="52"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="SFTRNotificationMessage">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">SFTR notification message</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">SFTR notification message</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="GnlInf" type="GeneralInformation">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">General information</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">General information</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="NtfctnDtls" type="NotificationDetails" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Notification details</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Notification details</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
