<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:kdpw:xsd:acmt.sta.002.02" targetNamespace="urn:kdpw:xsd:acmt.sta.002.02" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:annotation>
		<xs:documentation>Komunikat przekazywany z systemu KDPW w odpowiedzi na instrukcję dotyczącą konta. Komunikat zawiera status przesłanej instrukcji oraz ewentualny kod i przyczynę błędu.</xs:documentation>
		<xs:appinfo>
			<NmPL>Status instrukcji dotyczącej konta</NmPL>
		</xs:appinfo>
	</xs:annotation>
	<xs:element name="KDPWDocument" type="KDPWDocument">
		<xs:annotation>
			<xs:documentation>Komunikat systemu KDPW</xs:documentation>
			<xs:appinfo>
				<NmPL>Komunikat systemu KDPW</NmPL>
			</xs:appinfo>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="AccountDetails">
		<xs:annotation>
			<xs:documentation>Atrybuty konta rozliczeniowego</xs:documentation>
			<xs:appinfo>
				<NmPL>Konto rozliczeniowe</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AcctOwnr" type="KDPWMemberIdentifier">
				<xs:annotation>
					<xs:documentation>Uczestnik - właściciel konta w postaci kodu KDPW</xs:documentation>
					<xs:appinfo>
						<NmPL>Uczestnik - właściciel konta</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="FrmlAcctInf" type="FormalAccountInformation">
				<xs:annotation>
					<xs:documentation>Atrybuty konta konta formalnego</xs:documentation>
					<xs:appinfo>
						<NmPL>Konto formalne</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="RglrAcctInf" type="RegularAccountInformation" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Atrybuty konta podmiotowego</xs:documentation>
					<xs:appinfo>
						<NmPL>Atrybuty konta podmiotowego</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="SttlmtAcctDtls" type="SettlementAccountInformation" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Dane konta rozrachunku</xs:documentation>
					<xs:appinfo>
						<NmPL>Dane konta rozrachunku</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="Code4Text">
		<xs:annotation>
			<xs:documentation>Kwalifikator, kod</xs:documentation>
			<xs:appinfo>
				<NmPL>Kwalifikator</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="DateAndDateTimeChoice">
		<xs:annotation>
			<xs:documentation>Data i czas</xs:documentation>
			<xs:appinfo>
				<NmPL>Data i czas</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:choice>
				<xs:element name="Dt" type="ISODate">
					<xs:annotation>
						<xs:documentation>Data</xs:documentation>
						<xs:appinfo>
							<NmPL>Data</NmPL>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="DtTm" type="ISODateTime">
					<xs:annotation>
						<xs:documentation>Data i czas</xs:documentation>
						<xs:appinfo>
							<NmPL>Data i czas</NmPL>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="FormalAccountInformation">
		<xs:annotation>
			<xs:documentation>Atrybuty konta formalnego</xs:documentation>
			<xs:appinfo>
				<NmPL>Atrybuty konta formalnego</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="OwnrTp" type="Max1Text">
				<xs:annotation>
					<xs:documentation>Typ własności np. papiery własne, klienta, rachunek papierów wartościowych</xs:documentation>
					<xs:appinfo>
						<NmPL>Typ własności</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="MmbTp" type="Max2Text">
				<xs:annotation>
					<xs:documentation>Typ uczestnictwa</xs:documentation>
					<xs:appinfo>
						<NmPL>Typ uczestnictwa</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="ReprAgrmntId" type="Max2Text">
				<xs:annotation>
					<xs:documentation>Identyfikator umowy reprezentacji</xs:documentation>
					<xs:appinfo>
						<NmPL>Identyfikator umowy reprezentacji</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="LglBase" type="Max16TextCollapse" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Podstawa prawna</xs:documentation>
					<xs:appinfo>
						<NmPL>Podstawa prawna</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="FunctionOfMessage">
		<xs:annotation>
			<xs:documentation>Funkcja komunikatu</xs:documentation>
			<xs:appinfo>
				<NmPL>Funkcja komunikatu</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="NEWM">
				<xs:annotation>
					<xs:documentation>Nowy komunikat</xs:documentation>
					<xs:appinfo>
						<NmPL>Nowy komunikat</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="GeneralInformation">
		<xs:annotation>
			<xs:documentation>Informacje ogólne</xs:documentation>
			<xs:appinfo>
				<NmPL>Informacje ogólne</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="SndrMsgRef" type="Max16Text">
				<xs:annotation>
					<xs:documentation>Identyfikator komunikatu utworzony przez nadawcę</xs:documentation>
					<xs:appinfo>
						<NmPL>Identyfikator komunikatu</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="FuncOfMsg" type="FunctionOfMessage">
				<xs:annotation>
					<xs:documentation>Funkcja komunikatu</xs:documentation>
					<xs:appinfo>
						<NmPL>Funkcja komunikatu</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="CreDtTm" type="DateAndDateTimeChoice" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Data utworzenia komunikatu</xs:documentation>
					<xs:appinfo>
						<NmPL>Data utworzenia komunikatu</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="Lnk" type="Linkages" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Powiązania z innymi komunikatami</xs:documentation>
					<xs:appinfo>
						<NmPL>Referencje</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="ISODate">
		<xs:annotation>
			<xs:documentation>Data</xs:documentation>
			<xs:appinfo>
				<NmPL>Data</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:date"/>
	</xs:simpleType>
	<xs:simpleType name="ISODateTime">
		<xs:annotation>
			<xs:documentation>Data i czas</xs:documentation>
			<xs:appinfo>
				<NmPL>Data i czas</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:dateTime"/>
	</xs:simpleType>
	<xs:complexType name="KDPWDocument">
		<xs:annotation>
			<xs:documentation>Komunikat systemu KDPW</xs:documentation>
			<xs:appinfo>
				<NmPL>Komunikat systemu KDPW</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="acmt.sta.002.02" type="acmt.sta.002.02" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Status instrukcji dotyczącej konta</xs:documentation>
					<xs:appinfo>
						<NmPL>Status instrukcji dotyczącej konta</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="Sndr" type="KDPWMemberIdentifier" use="required">
			<xs:annotation>
				<xs:documentation>Nadawca w postaci kodu KDPW</xs:documentation>
				<xs:appinfo>
					<NmPL>Nadawca</NmPL>
				</xs:appinfo>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Rcvr" type="KDPWMemberIdentifier" use="required">
			<xs:annotation>
				<xs:documentation>Odbiorca w postaci kodu KDPW</xs:documentation>
				<xs:appinfo>
					<NmPL>Odbiorca</NmPL>
				</xs:appinfo>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:simpleType name="KDPWMemberIdentifier">
		<xs:annotation>
			<xs:documentation>Identyfikator uczestnika KDPW</xs:documentation>
			<xs:appinfo>
				<NmPL>Identyfikator uczestnika KDPW</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="Linkages">
		<xs:annotation>
			<xs:documentation>Powiązania z innymi komunikatami</xs:documentation>
			<xs:appinfo>
				<NmPL>Referencje</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="RltdRef" type="Max16Text">
				<xs:annotation>
					<xs:documentation>Identyfikator poprzednio otrzymanej instrukcji dotyczącej konta.</xs:documentation>
					<xs:appinfo>
						<NmPL>Identyfikator poprzedniego komunikatu</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="Max1Text">
		<xs:annotation>
			<xs:documentation>Tekst o długości 1 znaku</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max2Text">
		<xs:annotation>
			<xs:documentation>Tekst o maksymalnej długości 2 znaków</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max4Text">
		<xs:annotation>
			<xs:documentation>Tekst o maksymalnej długości 4 znaków</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max8Text">
		<xs:annotation>
			<xs:documentation>Tekst o maksymalnej długości 8 znaków</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max16Text">
		<xs:annotation>
			<xs:documentation>Tekst o maksymalnej długości 16 znaków</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="16"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max16TextCollapse">
		<xs:annotation>
			<xs:documentation>Tekst o maksymalnej długości 16 znaków</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="16"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max140Text">
		<xs:annotation>
			<xs:documentation>Tekst o maksymalnej długości 140 znaków</xs:documentation>
			<xs:appinfo>
				<NmPL>Tekst</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="140"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="OperationDetails">
		<xs:annotation>
			<xs:documentation>Szczegóły operacji na koncie</xs:documentation>
			<xs:appinfo>
				<NmPL>Szczegóły operacji na koncie</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="OprCd" type="Code4Text">
				<xs:annotation>
					<xs:documentation>Kod operacji na koncie.  Dozwolone wartości: 
						CRTA-Utworzenie konta; CLSA-Zamknięcie konta; SUSP-Zawieszenie konta; CHGA - Zmiana charakterystyki konta.</xs:documentation>
					<xs:appinfo>
						<NmPL>Kod operacji na koncie</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Reason">
		<xs:annotation>
			<xs:documentation>Przyczyna</xs:documentation>
			<xs:appinfo>
				<NmPL>Przyczyna</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="RsnCd" type="Code4Text" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Kod przyczyny</xs:documentation>
					<xs:appinfo>
						<NmPL>Kod przyczyny</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="RsnTxt" type="Max140Text" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Opis przyczyny</xs:documentation>
					<xs:appinfo>
						<NmPL>Opis przyczyny</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RegularAccountInformation">
		<xs:annotation>
			<xs:documentation>Atrybuty konta podmiotowego</xs:documentation>
			<xs:appinfo>
				<NmPL>Informacje dotyczące konta podmiotowego</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AcctTp" type="Max2Text">
				<xs:annotation>
					<xs:documentation>Rodzaj konta</xs:documentation>
					<xs:appinfo>
						<NmPL>Rodzaj konta</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="ClntTp" type="Max8Text" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Numer klasyfikacyjny klienta (NKK)</xs:documentation>
					<xs:appinfo>
						<NmPL>Numer klasyfikacyjny klienta (NKK)</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="PrtfNb" type="Max2Text" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Numer portfela</xs:documentation>
					<xs:appinfo>
						<NmPL>Numer portfela</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="AcctId" type="Max16TextCollapse" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Identyfikator konta podmiotowego</xs:documentation>
					<xs:appinfo>
						<NmPL>Identyfikator konta podmiotowego</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="AcctNm" type="Max16TextCollapse" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Opcjonalna nazwa konta</xs:documentation>
					<xs:appinfo>
						<NmPL>Nazwa konta</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="RprtAut" type="Max1Text" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Autoryzacja dla KDPW_CCP do raportowania</xs:documentation>
					<xs:appinfo>
						<NmPL>Autoryzacja dla KDPW_CCP do raportowania</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="NettTp" type="Code4Text" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Rodzaj naliczania pozycji netto.
					Dopuszczalne wartości:
					GROS - do rozrachunku brutto w pw, 
					NETT - netting w pw, 
					NETD - netting kierunkowy w pw,
					NOTT-  netting w p.w. z badaniem progu opłacalności,
					NOTD - netting kierunkowy w p.w. z badaniem progu opłacalności.
					</xs:documentation>
					<xs:appinfo>
						<NmPL>Rodzaj naliczania pozycji netto</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SettlementAccountInformation">
		<xs:annotation>
			<xs:documentation>Dane konta rozrachunku</xs:documentation>
			<xs:appinfo>
				<NmPL>Dane konta rozrachunku</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AcctOwnr" type="KDPWMemberIdentifier">
				<xs:annotation>
					<xs:documentation>Uczestnik - właściciel konta w postaci kodu KDPW</xs:documentation>
					<xs:appinfo>
						<NmPL>Uczestnik - właściciel konta</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="AcctId" type="Max16TextCollapse">
				<xs:annotation>
					<xs:documentation>Identyfikator konta rozrachunku</xs:documentation>
					<xs:appinfo>
						<NmPL>Identyfikator konta rozrachunku</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Status">
		<xs:annotation>
			<xs:documentation>Status</xs:documentation>
			<xs:appinfo>
				<NmPL>Status</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="StsCd" type="Code4Text">
				<xs:annotation>
					<xs:documentation>Kod statusu</xs:documentation>
					<xs:appinfo>
						<NmPL>Kod statusu</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="Rsn" type="Reason" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Przyczyna</xs:documentation>
					<xs:appinfo>
						<NmPL>Przyczyna</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="acmt.sta.002.02">
		<xs:annotation>
			<xs:documentation>Status instrukcji dotyczącej konta</xs:documentation>
			<xs:appinfo>
				<NmPL>Status instrukcji dotyczącej konta</NmPL>
			</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="GnlInf" type="GeneralInformation">
				<xs:annotation>
					<xs:documentation>Blok informacji ogólnych</xs:documentation>
					<xs:appinfo>
						<NmPL>Informacje ogólne</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="OprDtls" type="OperationDetails" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Szczegóły operacji</xs:documentation>
					<xs:appinfo>
						<NmPL>Szczegóły operacji</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="AcctDtls" type="AccountDetails">
				<xs:annotation>
					<xs:documentation>Informacje o koncie</xs:documentation>
					<xs:appinfo>
						<NmPL>Informacje o koncie</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="Sts" type="Status">
				<xs:annotation>
					<xs:documentation>Status</xs:documentation>
					<xs:appinfo>
						<NmPL>Status</NmPL>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
