<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://ws.infotorg.no/xml/SVV/Autosys/2008-02-11/Autosys.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/SVV/Autosys/2008-02-11/Autosys.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

    <annotation>
        <documentation xml:lang="no">
            Datatyper for Autosys.

            © 2008 ErgoGroup AS 
            Forfatter: Håvard Mork &lt;havard.mork@ergogroup.no&gt;
            Forfatter: Dag Lem &lt;dag@nimrod.no&gt;
        </documentation>
    </annotation>

    <complexType name="EierinfoMessage">
        <annotation>
            <documentation>Eierinfo spørring</documentation>
        </annotation>
        <sequence>
            <element name="konto" type="string"/>
            <element name="passord" type="string"/>
            <element name="kundenr" type="string"/>
            <element name="regnr" type="string" nillable="true"/>
            <element name="fodselsnr" type="string" nillable="true"/>
            <element name="etternavn" minOccurs="0" type="string" nillable="true"/>
        </sequence>
    </complexType>

    <complexType name="EierinfoResponse">
        <annotation>
            <documentation>Eierinfo respons</documentation>
        </annotation>
        <sequence>
            <element name="statuskode" type="string"/>
            <element name="statustekst" type="string" nillable="true"/>
            <element name="kundenr" type="string" nillable="true"/>
            <element name="fodselsnr" type="string" nillable="true"/>
            <element name="navn" type="string" nillable="true"/>
            <element name="adresse" type="string" nillable="true"/>
            <element name="postnr" type="string" nillable="true"/>
            <element name="poststed" type="string" nillable="true"/>
            <element name="antall" type="int"/>

            <element name="detalj" type="tns:EierinfoDetalj"
                minOccurs="0" maxOccurs="1"/>
            <element name="linje" type="tns:EierinfoLinje"
                minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
    </complexType>

    <complexType name="EierinfoDetalj">
        <annotation>
            <documentation>Eierinfo detalj</documentation>
        </annotation>
        <sequence>
            <element name="kjennemerke" type="string" nillable="true"/>
            <element name="regaar" type="int" nillable="true"/>
            <element name="merkenavn" type="string" nillable="true"/>
            <element name="modelltype" type="string" nillable="true"/>
            <element name="kjoeretoeyGruppeKode" type="int" nillable="true"/>
            <element name="kjoeretoeyGruppeTekst" type="string" nillable="true"/>
            <element name="medeierFodselsnr" type="string" nillable="true"/>
            <element name="medeierNavn" type="string" nillable="true"/>
            <element name="medeierAdresse" type="string" nillable="true"/>
            <element name="medeierPostnr" type="string" nillable="true"/>
            <element name="medeierPoststed" type="string" nillable="true"/>
            <element name="solgtDato" type="date" nillable="true"/>
            <element name="avregDato" type="date" nillable="true"/>
            <element name="vraketDato" type="date" nillable="true"/>
            <element name="stjaaletDato" type="date" nillable="true"/>
            <element name="utfoertDato" type="date" nillable="true"/>
        </sequence>
    </complexType>

    <complexType name="EierinfoLinje">
        <annotation>
            <documentation>Eierinfo detalj</documentation>
        </annotation>
        <sequence>
            <element name="kjennemerke" type="string" nillable="true"/>
            <element name="regaar" type="int" nillable="true"/>
            <element name="merkenavn" type="string" nillable="true"/>
            <element name="modell" type="string" nillable="true"/>
            <element name="kjoeretoeyGruppeKode" type="int" nillable="true"/>
            <element name="kjoeretoeyGruppeTekst" type="string" nillable="true"/>
            <element name="medeier" type="boolean" nillable="true"/>
            <element name="solgt" type="boolean" nillable="true"/>
            <element name="avreg" type="boolean" nillable="true"/>
            <element name="vraket" type="boolean" nillable="true"/>
            <element name="stjaalet" type="boolean" nillable="true"/>
            <element name="utfoert" type="boolean" nillable="true"/>
            <element name="leasing" minOccurs="0" type="boolean" nillable="true"/>
        </sequence>
    </complexType>

    <complexType name="redirect">
        <sequence>
            <element name="url" type="string"/>
            <element name="method" type="string"/>
            <element name="parametre">
                <complexType>
                    <sequence>
                        <element name="parameter" minOccurs="0" maxOccurs="unbounded">
                            <complexType>
                                <sequence>
                                    <element name="kode" type="string"/>
                                    <element name="verdi" type="string"/>
                                </sequence>
                            </complexType>
                        </element>
                    </sequence>
                </complexType>
            </element>
        </sequence>
    </complexType>

    <element name="hentEierinfo" type="tns:EierinfoMessage"/>
    <element name="Eierinfo" type="tns:EierinfoResponse"/>
    <element name="hentEkstern">
        <complexType/>
    </element>
    <element name="Ekstern" type="tns:redirect"/>

</schema>
