<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:ns="http://sds.dgaiec.min-financas.pt/ControlNotificationAndExitAuthorizationDataTypes"
	targetNamespace="http://sds.dgaiec.min-financas.pt/ControlNotificationAndExitAuthorizationDataTypes"
	elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:simpleType name="n3">
		<xs:annotation>
			<xs:documentation xml:lang="en">Numeric (fixed length 3)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="\d{3,3}" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="an..35">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (maximum length 35)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0" />
			<xs:maxLength value="35" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="an..17">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (maximum length 17)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0" />
			<xs:maxLength value="17" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="an..21">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (maximum length 21)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0" />
			<xs:maxLength value="21" />
		</xs:restriction>
	</xs:simpleType>	
	<xs:simpleType name="an..100">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (maximum length 100)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0" />
			<xs:maxLength value="100" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="an..1000">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (maximum length 1000)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0" />
			<xs:maxLength value="1000" />
		</xs:restriction>
	</xs:simpleType>	
	<xs:simpleType name="an2">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (fixed length 2)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2" />
			<xs:maxLength value="2" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="an3">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (fixed length 3)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="3" />
			<xs:maxLength value="3" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="an6">
		<xs:annotation>
			<xs:documentation xml:lang="en">Alfanumeric (fixed length 6)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="6" />
			<xs:maxLength value="6" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="date">
		<xs:annotation>
			<xs:documentation xml:lang="en">Date</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="identificationNumber">
		<xs:annotation>
			<xs:documentation>Este tipo representa a identificação da entidade. Deve ter o formato pais/tipo de identifica袯/numero de identifica袯</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="20" />
			<xs:pattern value="[A-Z]{2}/[A-Z]+/\w+" />
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="n4..14">
		<xs:annotation>
			<xs:documentation xml:lang="en">Numeric (minimum length 4 and maximum length 14)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="\d{4,14}" />
		</xs:restriction>
	</xs:simpleType>
</xs:schema>