<?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" vc:minVersion="1.1" elementFormDefault="qualified">
	<!-- Trumpasis išrašas(identifikaciniai duomenys) v 2.4.1 2023-11-27 -->
	<xs:element name="OBJEKTAI">
		<xs:annotation>
			<xs:documentation> Pagrindiniai juridinio asmens duomenys. Atribut&#x173; reik&#x161;m&#x117;s: OBJ_ID - Juridinio asmens - objekto identifikatorius (dirbtinis) OBJ_KODAS - 9 skaitmen&#x173; juridinio asmens kodas OBJ_REJESTRO_KODAS - 7 skaitmen&#x173; 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 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 - &#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 pavadinimas (tik filialui, atstovybei) DBUK_KODAS - Juridinio asmens duomen&#x173; b&#x16B;kl&#x117; i&#x161; klasifikatoriaus DUOMENU_BUKLES VER_DATA_NUO - Duomen&#x173; 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="TEKSTINIAI_DUOMENYS" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="JA_ADRESAI" maxOccurs="2"/>
				<xs:element ref="FAKTAI" minOccurs="0" maxOccurs="unbounded"/>
			</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" type="xs:int"/>
			<xs:attribute name="JAD_TEKSTAS">
				<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_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="DBUK_KODAS" type="xs:int"/>
			<xs:attribute name="VER_DATA_NUO" type="xs:string"/>
			<xs:attribute name="VER_VERSIJA" 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="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 </xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="TATR_KODAS" type="xs:int"/>
			<xs:attribute name="TXD_TEKSTAS" use="required">
				<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> &#x12E;mon&#x117;s adresai. Atribut&#x173; reik&#x161;m&#x117;s: 
				JAD_TEKSTAS - Juridinio asmens 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; registre n&#x117;ra arba jis negaliojantis. 	
			</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="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. </xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="FAKTU_NAUDOTOJAI" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="FAKT_TIPAS" type="xs:int" use="required"/>
			<xs:attribute name="FAKP_POTIPIS" type="xs:int" use="required"/>
			<xs:attribute name="FAK_APRASYMAS" type="xs:string"/>

		</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 </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:complexType>
	</xs:element>
</xs:schema>
