<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" xml:lang="PL">
	<xsd:complexType name="PSPId_Type">
		<xsd:annotation>
			<xsd:documentation>Typ identyfikatora PSP [PSP Identifier Type]</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="StringMin1Max200_Type">
				<xsd:attribute name="PSPIdType" type="PSPIdAttribute_Type" use="required">
					<xsd:annotation>
						<xsd:documentation>Rodzaj identyfikatora PSP [PSP Identifier Type]</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:simpleType name="PSPIdAttribute_Type">
		<xsd:annotation>
			<xsd:documentation>Rodzaj identyfikatora PSP [PSP Identifier Type]</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="BIC">
				<xsd:annotation>
					<xsd:documentation>BIC [Bank Identifier Code]</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="Other">
				<xsd:annotation>
					<xsd:documentation>Inny [Other PSP Identifier Type]</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="StringMin1Max200_Type">
		<xsd:annotation>
			<xsd:documentation>Defines a string with minimum length of 1 and maximum length of 200</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:minLength value="1"/>
			<xsd:maxLength value="200"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="NazwaTytul_Type">
		<xsd:annotation>
			<xsd:documentation>Typ znakowy ograniczony do 200 znaków</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:token">
			<xsd:minLength value="1"/>
			<xsd:maxLength value="200"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="Potwierdzenie">
		<xsd:annotation>
			<xsd:documentation>Element główny potwierdzenia</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="NazwaPodmiotuPrzyjmujacego" fixed="Ministerstwo Finansów">
					<xsd:annotation>
						<xsd:documentation>Nazwa podmiotu przyjmującego dokument elektroniczny</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="NumerReferencyjny">
					<xsd:annotation>
						<xsd:documentation>Identyfikator złożonego dokumentu nadany przez CRD</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="SkrotDokumentu">
					<xsd:annotation>
						<xsd:documentation>Wartość funkcji skrótu złożonego dokumentu - identyczna z wartością użytą do podpisu składanego dokumentu</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="SkrotZlozonejStruktury">
					<xsd:annotation>
						<xsd:documentation>Wartość funkcji skrótu dokumentu w postaci otrzymanej przez system (łącznie z podpisem elektronicznym)</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="NazwaStrukturyLogicznej">
					<xsd:annotation>
						<xsd:documentation>Nazwa pliku XSD struktury logicznej dotycząca złożonego dokumentu</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="DataWplyniecia" type="xsd:dateTime">
					<xsd:annotation>
						<xsd:documentation>Data wpłynięcia dokumentu do systemu informatycznego administracji podatkowej (data ze stempla czasu)</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="StempelCzasu">
					<xsd:annotation>
						<xsd:documentation>Treść stempla czasu w postaci zakodowanej algorytmem Base64</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="NazwaPodmiotu" type="NazwaTytul_Type" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>Nazwa podmiotu przekazującego informacje [Name of the entity providing the information]</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="PSPId" type="PSPId_Type">
					<xsd:annotation>
						<xsd:documentation>The BIC or any other business identifier code that unambiguously identifies the Payment Service Provider</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="KodUrzedu">
					<xsd:annotation>
						<xsd:documentation>Kod jednostki administracji podatkowej do której kierowano dokument elektroniczny</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:string">
							<xsd:pattern value="\d{4}"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="KodFormularza">
					<xsd:annotation>
						<xsd:documentation>Kod formularza przedłożonego dokumentu elektronicznego</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:token">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="Przyjeto" type="xsd:boolean"/>
				<xsd:element name="Blad" minOccurs="0" maxOccurs="unbounded">
					<xsd:simpleType>
						<xsd:restriction base="xsd:string">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="240"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
			</xsd:sequence>
			<xsd:attribute name="wersjaSchemy" type="xsd:string" use="optional">
				<xsd:annotation>
					<xsd:documentation>Wersja schemy 1.0</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>