<?xml version="1.0"?>
<xs:schema xmlns="http://www.registrucentras.lt/namespaces/jar" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.registrucentras.lt/namespaces/jar" elementFormDefault="qualified" vc:minVersion="1.1">
	<!-- Pagrindinių duomenų išrašas v.2023-11-30 -->
	<xs:element name="FAKTAI">
		<xs:annotation>
			<xs:documentation>Juridiniai faktai. Atribut&#x173; reik&#x161;m&#x117;s: 
			FAKT_TIPAS - fakto tipas i&#x161; klasifikatoriaus FAKTU_TIPAI. 
			FAKP_POTIPIS - fakto potipiai i&#x161; klasifikatoriaus FAKTU_POTIPIAI. 
			FAK_APRASYMAS - fakto apra&#x161;ymas.
			FAK_ID_PRIKLAUSO - ID Priklausantis nurodytam faktui.
			PROKUROS_NR	- Su dokumentu susijusios prok&#x16B;ros numeris (identifikavimo kodas).	
			FAK_KVO - Po&#x17E;ymis, kad faktas juridiniame asmenyje yra valdymo organu.
                        KAT_FAKTAI - kiekybiniame atstovavime dalyvaujan&#x10D;i&#x173; fakt&#x173; s&#x105;ra&#x161;as.
			KAT_ID - Nurodoma tiems fakt&#x173; potipiams, kuriems taikomos kiekybinio atstovavimo taisykl&#x117;s.				
		</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="FAKTU_NAUDOTOJAI" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="KAT_FAKTAI" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="FAKP_POTIPIS" type="xs:int"/>
			<xs:attribute name="FAKT_TIPAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FAK_APRASYMAS" type="xs:string"/>
			<xs:attribute name="FAK_ID_PRIKLAUSO" type="xs:int"/>
			<xs:attribute name="PROKUROS_NR">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="22"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FAK_KVO">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="KAT_ID">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="KAT_FAKTAI">
		<xs:complexType>
			<xs:attribute name="FAKT_TIPAS" type="xs:int" use="required"/>
			<xs:attribute name="FAKP_POTIPIS" type="xs:int" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="FAKTU_NAUDOTOJAI">
		<xs:annotation>
			<xs:documentation>Asmenys veikiantys fakte. Atribut&#x173; reik&#x161;m&#x117;s: 
			OBA_ID - Nuoroda &#x12F; element&#x105; OBJEKTU_ASMENYS PAR_KODAS - Pareig&#x173; kodas i&#x161; klasifikatoriaus PAREIGOS
			FNA_KVO_NARYS - Ar fakt&#x173; naudotojas yra kvo narys.
		</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="OBA_ID" type="xs:int" use="required"/>
			<xs:attribute name="PAR_KODAS" type="xs:int"/>
			<xs:attribute name="FNA_KVO_NARYS">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="FIZINIAI_ASMENYS">
		<xs:annotation>
			<xs:documentation>Fiziniai asmenys. Atribut&#x173; reik&#x161;m&#x117;s: FIZ_ID - Fizinio asmens dirbtinis identifikatorius. FIZ_KODAS - Fizinio asmens kodas. FIZ_GIMIMO_DATA - Fizinio asmens gimimo data. FIZ_MIRTIES_DATA - Fizinio asmens mirties data. FIZ_UZSIENIO_KODAS - U&#x17E;sienie&#x10D;io asmens kodas. FIZ_GYVENTOJU_ID - Nuoroda &#x12F; i&#x161;orin&#x12F; identifikatori&#x173; (gyventoj&#x173; registro replika). FIZ_PASTABOS - Pastabos</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="FIZ_ID" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="11"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FIZ_KODAS" type="xs:long"/>
			<xs:attribute name="FIZ_GIMIMO_DATA" type="xs:string"/>
			<xs:attribute name="FIZ_MIRTIES_DATA" type="xs:string"/>
			<xs:attribute name="FIZ_UZSIENIO_KODAS">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FIZ_GYVENTOJU_ID" type="xs:int"/>
			<xs:attribute name="FIZ_PASTABOS">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FAV_PAVARDE" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FAV_VARDAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FIZ_ILTU_KODAS">
				<xs:simpleType>
					<xs:restriction base="xs:long">
						<xs:totalDigits value="11"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="JAR">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="OBJEKTAI"/>
				<xs:element ref="FIZINIAI_ASMENYS" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="FIZINIAI_ASMENYS_NEID" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="UZSIENIO_STEIGEJAI" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="OBJEKTAI">
		<xs:annotation>
			<xs:documentation>Pagrindiniai juridinio asmens duomenys. Atribut&#x173; reik&#x161;m&#x117;s: OBJ_ID - Juridinio asmens identifikatorius (dirbtinis) OBJ_KODAS - 9 skaitmen&#x173; juridinio asmens kodas OBJ_REJESTRO_KODAS - 7 skaitmen&#x173; juridinio asmens kodas OBJ_PAV -Juridinio asmens pavadinimas FORM_KODAS - Teisin&#x117;s formos kodas i&#x161; klasifikatoriaus FORMOS STAT_STATUSAS - Juridinio asmens statusas i&#x161; klasifikatoriaus STATUSAI JST_DATA_NUO - Statuso galiojimo data NUO. JST_IGIJIMO_DATA - Statuso &#x12E;gijimo data. JAD_TEKSTAS - Juridinio asmens adresas JA_E_PRIST_DEZUTES_ADR - 9 skaitmen&#x173; elektroninio pristatymo d&#x117;&#x17E;ut&#x117;s adresas. OBJ_REG_DATA - Juridinio asmens &#x12E;registravimo registre data OBJ_STEIGIMO_DATA - &#x12E;steigimo data OBJ_ISREG_DATA - Juridinio asmens i&#x161;registravimo data OBJ_PAGRINDINIS - Juridinio asmens po&#x17E;ymis: 0 - pagrindinis, 1 - filialas, 2 - atstovyb&#x117; OBJ_ID_PRIKLAUSO - Nuoroda &#x12F; kit&#x105; juridin&#x12F; asmen&#x12F;: filialo ar atstovyb&#x117;s auk&#x161;tesn&#x119; institucij&#x105; PAGR_OBJ_KODAS - Pagrindinio juridinio asmens 9 skaitmen&#x173; kodas (tik filialui, atstovybei) PAGR_OBJ_REJESTRO_KODAS - Pagrindinio juridinio asmens 7 skaitmen&#x173; kodas (tik filialui, atstovybei) PAGR_OBJ_PAV - Pagrindinio juridinio asmens pavadinimas (tik filialui, atstovybei) DBUK_KODAS - Juridinio asmens duomen&#x173; b&#x16B;kl&#x117; i&#x161; klasifikatoriaus DUOMENU_BUKLES VER_DATA_NUO - Versijos data VER_VERSIJA - Versijos nr ISR_DATA_PATVIRTINO - I&#x161;ra&#x161;o - registravimo pa&#x17E;ym&#x117;jimo patvirtinimo data ITIP_TIPAS - I&#x161;ra&#x161;o tipas i&#x161; klasifikatoriaus ISRASU_TIPAI ITIP_PAV_I - I&#x161;ra&#x161;o tipo pavadinimas i&#x161; klasifikatoriaus ISRASU_TIPAI TARN_NR - Juridini&#x173; asmen&#x173; registro tvarkytojo registravimo tarnybos numeris TARN_PAV_I - Registravimo tarnybos pavadinimas</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="OBJEKTU_ASMENYS" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="TEKSTINIAI_DUOMENYS" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="FAKTAI" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="JA_ADRESAI" maxOccurs="2"/>
				<xs:element ref="OBJEKTU_ATRIBUTAI" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="OBJ_ID" type="xs:int" use="required"/>
			<xs:attribute name="OBJ_KODAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="9"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OBJ_REJESTRO_KODAS">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="7"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OBJ_PAV" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FORM_KODAS" type="xs:int"/>
			<xs:attribute name="STAT_STATUSAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:int"/>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="JST_DATA_NUO" type="xs:string" use="required"/>
			<xs:attribute name="JST_IGIJIMO_DATA" type="xs:string"/>
			<xs:attribute name="JAD_TEKSTAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<!--  JIRA JAR-1422  -->
			<xs:attribute name="JA_E_PRIST_DEZUTES_ADR" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="9"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<!--  /JIRA JAR-1422  -->
			<xs:attribute name="OBJ_REG_DATA" type="xs:string" use="required"/>
			<xs:attribute name="OBJ_STEIGIMO_DATA" type="xs:string"/>
			<xs:attribute name="OBJ_ISREG_DATA" type="xs:string"/>
			<xs:attribute name="OBJ_ANUL" type="xs:int"/>
			<xs:attribute name="OBJ_PAGRINDINIS" type="xs:int"/>
			<xs:attribute name="OBJ_ID_PRIKLAUSO" type="xs:int"/>
			<xs:attribute name="PAGR_OBJ_KODAS" type="xs:int"/>
			<xs:attribute name="PAGR_OBJ_REJESTRO_KODAS" type="xs:int"/>
			<xs:attribute name="PAGR_OBJ_PAV" type="xs:string"/>
			<xs:attribute name="VER_DATA_NUO" type="xs:string"/>
			<xs:attribute name="VER_VERSIJA" type="xs:int"/>
			<xs:attribute name="DBUK_KODAS" type="xs:int"/>
			<xs:attribute name="ISR_DATA_PATVIRTINO" type="xs:string"/>
			<xs:attribute name="ITIP_TIPAS" type="xs:int"/>
			<xs:attribute name="ITIP_PAV_I" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="OBJEKTU_ASMENYS">
		<xs:annotation>
			<xs:documentation>Asmenys, veikiantys fakte. Ne kiekvienas faktas gali tur&#x117;ti asmenis (teisinio statuso suteikimas). Fakte gali b&#x16B;ti daug asmen&#x173; (valdyba, steb&#x117;toj&#x173; taryba...) Atribut&#x173; reik&#x161;m&#x117;s: OBA_ID - Dirbtinis identifikatorius FIZ_ID - Asmen&#x173; identifikatorius (dirbtinis) - fizinis asmuo, dalyvaujantis fakte OBJ_ID_ASM - Juridinio asmens identifikatorius (dirbtinis) - juridinis asmuo, dalyvaujantis fakte. OBJ_KODAS - 9 skaitmen&#x173; juridinio asmens kodas - juridinis asmuo, dalyvaujantis fakte. OBJ_REJESTRO_KODAS - 7 skaitmen&#x173; juridinio asmens kodas - juridinis asmuo, dalyvaujantis fakte. OBJ_PAV -Juridinio asmens pavadinimas - juridinis asmuo, dalyvaujantis fakte. STE_KODAS - &#x12E;registravimo u&#x17E;sienio valstyb&#x117;s Registre numeris (kodas) i&#x161; klasifikatoriaus UZSIENIO_STEIGEJAI. STE_PAVAD - Steig&#x117;jo pavadinimas i&#x161; klasifikatoriaus UZSIENIO_STEIGEJAI. NJA_ID - Nejuridinio asmens identifikatorius (dirbtinis) - organizacija, nejuridinis asmuo, dalyvaujanti fakte. Pvz. savivaldyb&#x117;. Nuoroda &#x12F; klasifikatori&#x173; NEJURIDINIAI_ASMENYS</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="OBA_ID" type="xs:int" use="required"/>
			<xs:attribute name="FIZ_ID">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:totalDigits value="11"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OBJ_ID_ASM">
				<xs:simpleType>
					<xs:restriction base="xs:int"/>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OBJ_KODAS" type="xs:int"/>
			<xs:attribute name="OBJ_REJESTRO_KODAS" type="xs:int"/>
			<xs:attribute name="OBJ_PAV">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="250"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="STE_ID" type="xs:long"/>
			<xs:attribute name="NEID_FIZ_ID" type="xs:long"/>
			<xs:attribute name="NJA_ID" type="xs:int"/>
			<xs:attribute name="NJA_KODAS" type="xs:string"/>
			<xs:attribute name="NJA_PAVADINIMAS" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="TEKSTINIAI_DUOMENYS">
		<xs:annotation>
			<xs:documentation>Tekstiniai juridinio asmens duomenys(telefonai, email ir pan). Atribut&#x173; reik&#x161;m&#x117;s: 
			TATR_KODAS - Tekstinio atributo kodas i&#x161; klasifikatoriaus TEKSTINIAI_ATRIBUTAI. 
			TXD_TEKSTAS - Tekstinis duomuo.
registre n&#x117;ra arba jis negaliojantis. 	
		</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="TATR_KODAS" type="xs:int"/>
			<xs:attribute name="TXD_TEKSTAS">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="JA_ADRESAI">
		<xs:annotation>
			<xs:documentation>Juridinio asmens adresai. Atribut&#x173; reik&#x161;m&#x117;s: 
			JAD_TEKSTAS - Tekstinis adresas. 
			ARO_KODAS - Juridinio asmens aktualaus adreso kodas. 
			ADR_BUS - Adreso b&#x16B;sena. Reik&#x161;m&#x117;s: 1 - adresas u&#x17E;registruotas adres&#x173; registre, 0 - Adreso Adres&#x173; 			
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="JAD_TEKSTAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ARO_KODAS" type="xs:int"/>
			<xs:attribute name="ADR_BUS" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="FIZINIAI_ASMENYS_NEID">
		<xs:annotation>
			<xs:documentation>Neidentifikuoti fiziniai asmenys. Atribut&#x173; reik&#x161;m&#x117;s: NEID_FIZ_ID - Neidentifikuoto fizinio asmens dirbtinis identifikatorius. FIZ_SAL_KODAS - &#x160;alies kodas. FIZ_PASTABOS - Pastabos. FIZ_GIMIMO_DATA - Gimimo data. FAV_VARDAS - Vardas. FAV_PAVARDE - Pavard&#x117;. ASM_ADRESAS - Adresas.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="NEID_FIZ_ID" type="xs:int" use="required"/>
			<xs:attribute name="FAV_VARDAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FAV_PAVARDE" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="UZSIENIO_STEIGEJAI">
		<xs:annotation>
			<xs:documentation>U&#x17E;sienio steig&#x117;jai. Atribut&#x173; reik&#x161;m&#x117;s: STE_KODAS - &#x12E;registravimo u&#x17E;sienio valstyb&#x117;s Registre numeris (kodas). STE_PAVAD - U&#x17E;sienio steig&#x117;jo pavadinimas.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="STE_ID" type="xs:int" use="required"/>
			<xs:attribute name="STE_KODAS" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="STE_PAVAD" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="200"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="OBJEKTU_ATRIBUTAI">
		<xs:annotation>
			<xs:documentation>Juridinio asmens atributai (akcij&#x173; skai&#x10D;ius, steb&#x117;toj&#x173; tarybos nari&#x173; skai&#x10D;ius ir t.t.). Atribut&#x173; reik&#x161;m&#x117;s: ATRI_KODAS - Atributo kodas i&#x161; klasifikatoriaus ATRIBUTAI. ATR_REIKSME - Atributo reik&#x161;m&#x117;. VIEN_KODAS - Matavimo vieneto kodas i&#x161; klasifikatoriaus MATAVIMU_VIENETAI.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="ATRI_KODAS">
				<xs:simpleType>
					<xs:restriction base="xs:int">
						<xs:enumeration value="202"/>
						<xs:enumeration value="203"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ATR_REIKSME">
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="14"/>
						<xs:fractionDigits value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="VIEN_KODAS" type="xs:int"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="KLAIDA" type="xs:string">
		<xs:annotation>
			<xs:documentation>Klaidos pranesimas</xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>
