<?xml version="1.0" encoding="UTF-8"?>
<s:schema xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <s:element name="args">
        <s:complexType>
            <s:choice minOccurs="1" maxOccurs="unbounded">
                <s:element name="personCode" maxOccurs="1" nillable="true">
                    <s:annotation>
                        <s:documentation>Fizinio asmens kodas arba ILTU kodas</s:documentation>
                    </s:annotation>
                    <s:simpleType>
                        <s:restriction base="s:string">
                            <s:pattern value="[0-9]{11}"/>
                        </s:restriction>
                    </s:simpleType>
                </s:element>

                <s:element name="businessCode" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>Juridinio asmens kodas</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="amnId" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>AMN_ID</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="mandateId" maxOccurs="1" nillable="true">
                    <s:simpleType>
                        <s:annotation>
                            <s:documentation>Įgaliojimo identifikavimo kodas</s:documentation>
                        </s:annotation>
                        <s:restriction base="s:string">
                            <s:pattern value="[0-9]{10}"/>
                        </s:restriction>
                    </s:simpleType>
                </s:element>

                <s:element name="notarialRegisterNo" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>Notarinio registro numeris</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="firstName" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>Fizinio asmens vardas</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="lastName" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>Fizinio asmens pavardė</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="birthDate" maxOccurs="1" type="s:date" nillable="true">
                    <s:annotation>
                        <s:documentation>Fizinio asmens gimimo data (YYYY-MM-DD)</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="serviceCode" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>Paslaugos kodas</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="serviceProvider" maxOccurs="1" type="s:string" nillable="true">
                    <s:annotation>
                        <s:documentation>Juridinio asmens kodas (Paslaugos teikėjas)</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="periodFrom" maxOccurs="1" type="s:date" nillable="true">
                    <s:annotation>
                        <s:documentation>Periodas (nuo)</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="periodTo" maxOccurs="1" type="s:date" nillable="true">
                    <s:annotation>
                        <s:documentation>Periodas (iki)</s:documentation>
                    </s:annotation>
                </s:element>

                <s:element name="format" maxOccurs="1">
                    <s:simpleType>
                        <s:restriction base="s:string">
                            <s:enumeration value="pdf"/>
                            <s:enumeration value="xml"/>
                        </s:restriction>
                    </s:simpleType>
                </s:element>

            </s:choice>
        </s:complexType>
    </s:element>
</s:schema>
