<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/Eiendomsverdi/Eiendomsverdi3/2012-08-13/Eiendomsverdi3.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/Eiendomsverdi/Eiendomsverdi3/2012-08-13/Eiendomsverdi3.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

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

            © 2007 ErgoGroup AS
            Forfatter: Dag Lem &lt;dag@nimrod.no&gt;
            Basert på Eiendomsverdi Webservices - Versjon 3.0.
        </documentation>
    </annotation>

    <simpleType name="string4">
        <restriction base="string">
            <maxLength value="4"/>
        </restriction>
    </simpleType>

    <simpleType name="string64">
        <restriction base="string">
            <maxLength value="64"/>
        </restriction>
    </simpleType>

    <simpleType name="string128">
        <restriction base="string">
            <maxLength value="128"/>
        </restriction>
    </simpleType>

    <simpleType name="string256">
        <restriction base="string">
            <maxLength value="256"/>
        </restriction>
    </simpleType>

    <simpleType name="string512">
        <restriction base="string">
            <maxLength value="512"/>
        </restriction>
    </simpleType>

    <simpleType name="string1024">
        <restriction base="string">
            <maxLength value="1024"/>
        </restriction>
    </simpleType>

    <simpleType name="EstimateQuality">
        <annotation>
            <documentation>
                -1: Estimatet er usikkert.
                 0: Estimatet har relativt god presisjon.
                 1: Estimatet har god presisjon.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>
    
    <simpleType name="AccuracyLevel">
        <annotation>
            <documentation>
                Usikkerhetsnivå gradert fra 1 - 7. 
                7 medfører høy usikkerhet.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>
    
    <simpleType name="EstimateType">
        <annotation>
            <documentation>
                 0: Kan ikke estimere.
                 1: m²-metode basert på kjent boa.
                 2: m²-metode basert på omregnet boa (bra -> boa).
                 3: Dynamisk indeks basert på kjent boareal.
                 4: Dynamisk indeks basert på standard boareal.
                 5: Statisk indeks.
                 6: Forsiktig statisk indeks.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="IndexType">
        <annotation>
            <documentation>
                 0: Kan ikke estimere.
                 3: Dynamisk indeks basert på kjent boareal.
                 4: Dynamisk indeks basert på standard boareal.
                 5: Statisk indeks.
                 6: Forsiktig statisk indeks.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="PropertyType">
        <annotation>
            <documentation>
                 1: Ukjent.
                 2: Enebolig.
                 3: Rekkehus.
                 4: Leilighet.
                 5: Hybel (ikke i bruk).
                 6: Fritidsbolig.
                 7: Tomannsbolig.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="Ownership">
        <annotation>
            <documentation>
                 1: Ukjent.
                 2: Selveier.
                 3: Borettslag.
                 4: Aksjeleilighet.
                 5: Obligasjonsleilighet.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="LotOwnership">
        <annotation>
            <documentation>
                 1: Ukjent.
                 2: Selveier.
                 3: Festet.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="StatusCode">
        <annotation>
            <documentation>
                 0: OK.
                 1: Feil, se ErrorCode for mer informasjon.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="ErrorCode">
        <annotation>
            <documentation>
                 0: Ingen feil.
                 1: Ukjent spørring.
                 2: Feil format på spørring.
                 3: Eiendom ikke funnet.
                 4: Flere eiendommer funnet.
                 5: Eiendom mangler koordinater.
                 6: Intern feil, se SystemErrorCode.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="MarketRating">
        <annotation>
            <documentation>
                 0-5: Lite velfungerende boligmarked.
                 6-9: Begrenset boligmarked.
                 10-: Velfungerende boligmarked.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="EstateInfoUsagePreferences">
        <annotation>
            <documentation>
                 2: Customer (default).
                 3: Eiendomsverdi.
                 4: Customer data only.
                 5: Ignore customer data.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <simpleType name="PriceInfoUsagePreferences">
        <annotation>
            <documentation>
                 1: Newest (default).
                 2: Customer.
                 3: Eiendomsverdi.
                 4: Customer data only.
                 5: Ignore customer data.
            </documentation>
        </annotation>
        <restriction base="int"/>
    </simpleType>

    <complexType name="EV_PropertyIdentification">
        <sequence>
            <element name="ID" type="int" minOccurs="0"/>
            <element name="CouncilNumber" type="int" minOccurs="0"/>
            <element name="Council" type="tns:string256" minOccurs="0"/>
            <element name="Address" minOccurs="0">
                <complexType>
                    <sequence>
                        <element name="StreetName" type="string" minOccurs="0"/>
                        <element name="Number" type="int" minOccurs="0"/>
                        <element name="Letter" type="tns:string4" minOccurs="0"/>
                        <element name="PostalCode" type="int" minOccurs="0"/>
                        <element name="City" type="tns:string128" minOccurs="0"/>
                    </sequence>
                </complexType>
            </element>
            <element name="Matrikkel" minOccurs="0">
                <complexType>
                    <sequence>
                       <element name="GNr" type="int"/>
                       <element name="BNr" type="int"/>
                       <element name="FNr" type="int" minOccurs="0"/>
                       <element name="SNr" type="int" minOccurs="0"/>
                    </sequence>
                </complexType>
            </element>
            <element name="Cooperative" minOccurs="0">
                <complexType>
                    <sequence>
                        <element name="OrganizationNumber" type="tns:string64"/>
                        <element name="ShareNumber" type="int"/>
                    </sequence>
                </complexType>
            </element>
            <element name="ConcatenatedAddress" type="tns:string1024" minOccurs="0"/>
        </sequence>
<!--
        <attribute name="version" type="string" use="required"/>
-->
    </complexType>

    <complexType name="EV_Sale">
        <sequence>
            <element name="RegDate" type="date"/>
            <element name="ActualSaleDate" type="date" minOccurs="0"/>
            <element name="PublicRegistrationDate" type="date" minOccurs="0"/>
            <element name="SalesPrice" type="decimal" minOccurs="0"/>
            <element name="AskingPrice" type="decimal" minOccurs="0"/>
            <element name="SurveyorsEstimate" type="decimal" minOccurs="0"/>
            <element name="SurveyorsEstimateConservative" type="decimal" minOccurs="0"/>
            <element name="CommonDebt" type="decimal" minOccurs="0"/>
        </sequence>
<!--
        <attribute name="version" type="string" use="required"/>
-->
    </complexType>

    <complexType name="EV_Credentials">
        <sequence>
            <element name="UserName" type="tns:string128"/>
            <element name="Password" type="tns:string128"/>
        </sequence>
<!--
        <attribute name="version" type="string" use="required"/>
-->
    </complexType>

    <complexType name="EV_ResultStatus">
        <sequence>
            <element name="StatusCode" type="tns:StatusCode"/>
            <element name="StatusText" type="tns:string512"/>
            <element name="Error" minOccurs="0">
                <complexType>
                    <sequence>
                        <element name="ErrorCode" type="tns:ErrorCode"/>
                        <element name="ErrorText" type="tns:string512"/>
                        <element name="SystemErrorCode" type="int" minOccurs="0"/>
                        <element name="SystemErrorText" type="tns:string512" minOccurs="0"/>
                    </sequence>
                </complexType>
            </element>
        </sequence>
<!--
        <attribute name="version" type="string" use="required"/>
-->
    </complexType>

    <complexType name="EstimateParameters">
        <sequence>
            <element name="EstateInfoUsagePreferences" type="tns:EstateInfoUsagePreferences" minOccurs="0"/>
            <element name="PriceInfoUsagePreferences" type="tns:PriceInfoUsagePreferences" minOccurs="0"/>
            <element name="PropertyType" type="tns:PropertyType" minOccurs="0"/>
            <element name="Ownership" type="tns:Ownership" minOccurs="0"/>
            <element name="ConstructionYear" type="int" minOccurs="0"/>
            <element name="EffectiveLivingFloorspace" type="decimal" minOccurs="0"/>
            <element name="FloorSpace" type="decimal" minOccurs="0"/>
            <element name="Footprint" type="decimal" minOccurs="0"/>
            <element name="LotSize" type="decimal" minOccurs="0"/>
            <element name="LotOwnership" type="tns:LotOwnership" minOccurs="0"/>
            <element name="Floor" type="int" minOccurs="0"/>
            <element name="NumFloors" type="int" minOccurs="0"/>
            <element name="NumBedrooms" type="int" minOccurs="0"/>
            <element name="EV_Sale" type="tns:EV_Sale" minOccurs="0"/>
            <element name="CommonDebt" type="decimal" minOccurs="0"/>
        </sequence>
        <attribute name="name" type="string" use="required"/>
<!--
        <attribute name="version" type="string" use="required"/>
-->
    </complexType>

    <complexType name="EV_SampleSet">
        <sequence>
            <element name="NumSamples" type="int"/>
            <element name="EV_Sample" minOccurs="0" maxOccurs="unbounded">
                <complexType>
                    <sequence>
                        <element name="EV_PropertyIdentification" type="tns:EV_PropertyIdentification"/>
                        <element name="EV_Sale" type="tns:EV_Sale"/>
                        <element name="PropertyType" type="tns:PropertyType"/>
                        <element name="Ownership" type="tns:Ownership"/>
                        <element name="ConstructionYear" type="int" minOccurs="0"/>
                        <element name="EffectiveLivingFloorspace" type="decimal" minOccurs="0"/>
                        <element name="FloorSpace" type="decimal" minOccurs="0"/>
                        <element name="Footprint" type="decimal" minOccurs="0"/>
                        <element name="LotSize" type="decimal" minOccurs="0"/>
                        <element name="LotOwnership" type="tns:LotOwnership" minOccurs="0"/>
                        <element name="Floor" type="int" minOccurs="0"/>
                        <element name="NumFloors" type="int" minOccurs="0"/>
                        <element name="NumBedrooms" type="int" minOccurs="0"/>
                        <element name="SqrmPrice" type="decimal" minOccurs="0"/>
                    </sequence>
                </complexType>
            </element>
        </sequence>
        <attribute name="name" type="string" use="required"/>
<!--
        <attribute name="version" type="string" use="required"/>
-->
    </complexType>

    <element name="hentMarkedsverdi">
        <complexType>
            <sequence>
                <element name="EV_PropertyIdentification" type="tns:EV_PropertyIdentification"/>
                <element name="EstimateParameters" type="tns:EstimateParameters" minOccurs="0"/>
                <element name="EstimateDate" type="date" minOccurs="0"/>
            </sequence>
        </complexType>
    </element>

    <element name="Markedsverdi">
        <complexType>
            <sequence>
                <element name="EV_ResultStatus" type="tns:EV_ResultStatus"/>
                <element name="EV_PropertyIdentification" type="tns:EV_PropertyIdentification" minOccurs="0"/>
                <element name="EstimateParameters" type="tns:EstimateParameters" minOccurs="0" maxOccurs="2"/>
                <element name="LastKnownCommonDebtDate" type="date" minOccurs="0"/>
                <element name="LastKnownCommonDebt" type="decimal" minOccurs="0"/>
                <element name="MarketRating" type="tns:MarketRating" minOccurs="0"/>
                <element name="EstimateDate" type="date" minOccurs="0"/>
                <element name="Estimate_IMV" minOccurs="0">
                    <complexType>
                        <sequence>
                            <element name="EstimatedValue" type="decimal"/>
                            <element name="EstimateQuality" type="tns:EstimateQuality" minOccurs="0"/>
                            <element name="EV_Sale" type="tns:EV_Sale"/>
                            <element name="Index" type="decimal"/>
                            <element name="IndexType" type="tns:EstimateType"/>
                            <element name="Haircut" type="decimal" minOccurs="0"/>
                        </sequence>
                    </complexType>
                </element>
                <element name="Estimate_AMP" minOccurs="0">
                    <complexType>
                        <sequence>
                            <element name="EstimatedValue" type="decimal"/>
                            <element name="EstimateQuality" type="tns:EstimateQuality" minOccurs="0"/>
                            <element name="Haircut" type="decimal" minOccurs="0"/>
                            <element name="EV_SampleSet" type="tns:EV_SampleSet" minOccurs="0" maxOccurs="2"/>
                        </sequence>
                    </complexType>
                </element>
                <element name="Estimate_Rules" minOccurs="0">
                    <complexType>
                        <sequence>
                            <element name="EstimatedValue" type="decimal"/>
                            <element name="EstimateType" type="tns:EstimateType"/>
                            <element name="EstimateQuality" type="tns:EstimateQuality" minOccurs="0"/>
                            <element name="Haircut" type="decimal" minOccurs="0"/>
                            <element name="ReasonCode" type="int"/>
                        </sequence>
                    </complexType>
                </element>
            </sequence>
        </complexType>
    </element>
   <complexType name="Reference">
      <sequence>
         <element minOccurs="1" maxOccurs="1" form="unqualified" name="ReferenceID" nillable="true" type="string" /> 
      </sequence>
     <attribute name="name" type="string" /> 
   </complexType>

    <element name="hentMarkedsverdiVektet">
        <complexType>
            <sequence>
                <element name="EV_PropertyIdentification" type="tns:EV_PropertyIdentification"/>
                <element name="EstimateParameters" type="tns:EstimateParameters" minOccurs="0"/>
                <element name="EstimateDate" type="date" minOccurs="0"/>
            </sequence>
        </complexType>
    </element>
    
    <element name="MarkedsverdiVektet">
        <complexType>
            <sequence>
                <element name="EV_ResultStatus" type="tns:EV_ResultStatus"/>
                <element name="EV_PropertyIdentification" type="tns:EV_PropertyIdentification" minOccurs="0"/>
                <element name="EstimateParameters" type="tns:EstimateParameters" minOccurs="0" maxOccurs="unbounded"/>
                <element name="LastKnownCommonDebtDate" type="date" minOccurs="0"/>
                <element name="LastKnownCommonDebt" type="decimal" minOccurs="0"/>
                <element name="MarketRating" type="tns:MarketRating" minOccurs="0"/>
                <element name="EstimateDate" type="date" minOccurs="0"/>
                <element name="Estimate" minOccurs="0" maxOccurs="1" nillable="true">
                    <complexType>
                        <sequence>
                            <element name="EstimatedValue" type="decimal"  minOccurs="0" maxOccurs="1"/>
                            <element name="AccuracyLevel" type="tns:AccuracyLevel"  minOccurs="0" maxOccurs="1"/>
                            <element name="EV_SampleSet" type="tns:EV_SampleSet"  minOccurs="0" maxOccurs="1"/>
                            <element name="HaircutValue" type="decimal"  minOccurs="0" maxOccurs="1"/>
                            <element name="CustomerMaxPrice" type="decimal"  minOccurs="0" maxOccurs="1"/>
                            <element name="CustomerApprovedPrice" type="decimal"  minOccurs="0" maxOccurs="1"/>
                            <element name="ApprovedValue" type="decimal"  minOccurs="0" maxOccurs="1"/>
                        </sequence>
                    </complexType>                    
                </element>               
                <element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="Reference" nillable="true" type="tns:Reference" /> 
  		<element minOccurs="0" maxOccurs="1" form="unqualified" name="PDFDocumentLocation" type="string" /> 

                <element name="Estimate_Rules" minOccurs="0">
                    <complexType>
                        <sequence>
                            <element name="EstimatedValue" type="decimal"/>
                            <element name="EstimateType" type="tns:EstimateType"/>
                            
                            <element name="Haircut" type="decimal" minOccurs="0"/>
                            <element name="ReasonCode" type="int"/>
                        </sequence>
                    </complexType>
                </element>
            </sequence>
        </complexType>
    </element>
    
    <element name="hentEkstern">
        <complexType>
            <sequence>
                <element name="kommunenr" type="string" minOccurs="0"/>
                <element name="gaardsnr" type="string" minOccurs="0"/>
                <element name="bruksnr" type="string" minOccurs="0"/>
                <element name="festenr" type="string" minOccurs="0"/>
                <element name="seksjonsnr" type="string" minOccurs="0"/>
                <element name="gatenavn" type="string" minOccurs="0"/>
                <element name="gatenr" type="string" minOccurs="0"/>
                <element name="bokstav" type="string" minOccurs="0"/>
                <element name="postnr" type="string" minOccurs="0"/>
                <element name="adresse" type="string" minOccurs="0"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentAreaAttributes">
        <complexType>
            <sequence>
                <element name="EV_PropertyIdentification" type="tns:EV_PropertyIdentification"/>
            </sequence>
        </complexType>
    </element>

    <element name="AreaAttributes">
        <complexType>
            <sequence>
                <element name="EV_ResultStatus" type="tns:EV_ResultStatus"/>
                <element name="AreaAttributes" type="tns:AreaAttributes" minOccurs="0"/>
            </sequence>
        </complexType>
    </element>

    <complexType name="AreaAttributes">
        <sequence>
            <element name="PrimaryArea" nillable="true" type="double"/>
            <element name="UsableArea" nillable="true" type="double"/>
            <element name="ExternalUsableArea" nillable="true" type="double"/>
            <element name="GlazedBalconyUsableArea" nillable="true" type="double"/>
            <element name="InternalUsableArea" nillable="true" type="double"/>
            <element name="GrossArea" nillable="true" type="double"/>
            <element name="LowHeightFloorArea" nillable="true" type="double"/>
            <element name="OpenTerraceAndBalconyArea" nillable="true" type="double"/>
        </sequence>
    </complexType>

    <element name="hentGetWeightedEstimateExtended">
        <complexType>
            <sequence>
                <element minOccurs="0" name="estateIdentification" nillable="true" type="tns:EstateIdentificationInfo"/>
                <element minOccurs="0" name="housingCooperativeShareIdentification" nillable="true" type="tns:HousingCooperatativeShareIdentificationInfo"/>
                <!--<element minOccurs="0" name="customerEstimateInput" nillable="true" type="q24:CustomerEstimateInput" xmlns:q24="http://schemas.datacontract.org/2004/07/EV.InformationServices.ExternalApi.DTO"/>-->
            </sequence>
        </complexType>
    </element>

    <element name="GetWeightedEstimateExtended">
        <complexType>
            <sequence>
                <element minOccurs="0" name="GetWeightedEstimateExtendedResult" nillable="true" type="tns:EstimateResultWeightedExtended"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentGetValueValidationReport">
        <complexType>
            <sequence>
                <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
            </sequence>
        </complexType>
    </element>

    <element name="GetValueValidationReport">
        <complexType>
            <sequence>
                <element minOccurs="0" name="GetValueValidationReportResult" nillable="true" type="tns:ReportResponse"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentGetValueValidationDataWithout">
        <complexType>
            <sequence>
                <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
            </sequence>
        </complexType>
    </element>

    <element name="GetValueValidationDataWithout">
        <complexType>
            <sequence>
                <element minOccurs="0" name="GetValueValidationDataWithoutEstimateResult" nillable="true" type="tns:ValueValidationData"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentGetValueValidationDataAndGen">
        <complexType>
            <sequence>
                <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
            </sequence>
        </complexType>
    </element>

    <element name="GetValueValidationDataAndGen">
        <complexType>
            <sequence>
                <element minOccurs="0" name="GetValueValidationDataAndGenerateReportResult" nillable="true" type="tns:ValueValidationReport"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentApproveAppraisalReport">
        <complexType>
            <sequence>
                <element minOccurs="0" name="Comment" nillable="true" type="string"/>
                <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
                <element minOccurs="0" name="Signature" nillable="true" type="string"/>
            </sequence>
        </complexType>
    </element>

    <element name="ApproveAppraisalReport">
        <complexType>
            <sequence>
                <element minOccurs="0" name="ApproveAppraisalReportResult" nillable="true" type="tns:ReviewAppraisalReportResponse"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentRejectAppraisalReport">
        <complexType>
            <sequence>
                <element minOccurs="0" name="Comment" nillable="true" type="string"/>
                <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
                <element minOccurs="0" name="Signature" nillable="true" type="string"/>
            </sequence>
        </complexType>
    </element>

    <element name="RejectAppraisalReport">
        <complexType>
            <sequence>
                <element minOccurs="0" name="RejectAppraisalReportResult" nillable="true" type="tns:ReviewAppraisalReportResponse"/>
            </sequence>
        </complexType>
    </element>
<!-- =========================================================================== -->
    <element name="hentGetEstimateDocument">
        <complexType>
            <sequence>
                <element minOccurs="0" name="storedEstimateDocumentationId" type="int"/>
            </sequence>
        </complexType>
    </element>

    <element name="GetEstimateDocument">
        <complexType>
            <sequence>
                <element minOccurs="0" name="GetEstimateDocumentResult" nillable="true" type="base64Binary"/>
            </sequence>
        </complexType>
    </element>

    <complexType name="redirect">
        <sequence>
            <element name="url" type="string"/>
            <element name="method" type="string"/>
            <element name="ExternalUserID" 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>

    <complexType name="EstateIdentificationInfo">
        <sequence>
            <element minOccurs="0" name="Address" nillable="true" type="tns:Address"/>
            <element minOccurs="0" name="EV_AddressID" type="int"/>
            <element minOccurs="0" name="EV_EstateID" type="int"/>
            <element minOccurs="0" name="EV_ShareID" type="int"/>
            <element minOccurs="0" name="Identification" nillable="true" type="tns:Matrikkel"/>
        </sequence>
    </complexType>

    <complexType name="HousingCooperatativeShareIdentificationInfo">
        <sequence>
            <element minOccurs="0" name="OrganizationNumber" type="long"/>
            <element minOccurs="0" name="ShareNumber" type="int"/>
        </sequence>
    </complexType>

    <complexType name="Address">
        <sequence>
            <element minOccurs="0" name="BasicAreaName" nillable="true" type="string"/>
            <element minOccurs="0" name="BasicAreaNumber" nillable="true" type="int"/>
            <element minOccurs="0" name="ConcatenatedAddress" nillable="true" type="string"/>
            <element minOccurs="0" name="FullAddress" nillable="true" type="string"/>
            <element minOccurs="0" name="Municipality" nillable="true" type="string"/>
            <element minOccurs="0" name="Postcode" nillable="true" type="int"/>
            <element minOccurs="0" name="PostcodeArea" nillable="true" type="string"/>
            <element minOccurs="0" name="Rest" nillable="true" type="string"/>
            <element minOccurs="0" name="StreetLetter" nillable="true" type="string"/>
            <element minOccurs="0" name="StreetName" nillable="true" type="string"/>
            <element minOccurs="0" name="StreetNumber" nillable="true" type="int"/>
        </sequence>
    </complexType>

    <complexType name="Matrikkel">
        <sequence>
            <element minOccurs="0" name="BNr" nillable="true" type="int"/>
            <element minOccurs="0" name="FNr" nillable="true" type="int"/>
            <element minOccurs="0" name="GNr" nillable="true" type="int"/>
            <element minOccurs="0" name="KNr" nillable="true" type="int"/>
            <element minOccurs="0" name="SNr" nillable="true" type="int"/>
        </sequence>
    </complexType>

    <complexType name="ArrayOfEstimateSample">
        <sequence>
            <element minOccurs="0" maxOccurs="unbounded" name="EstimateSample" nillable="true" type="tns:EstimateSample"/>
        </sequence>
    </complexType>

    <complexType name="EstimateSample">
        <sequence>
            <element minOccurs="0" name="Address" nillable="true" type="string"/>
            <element minOccurs="0" name="BuildYear" type="double"/>
            <element minOccurs="0" name="CalcSqrPrice" type="double"/>
            <element minOccurs="0" name="CommonDebt" type="double"/>
            <element minOccurs="0" name="Date" type="dateTime"/>
            <element minOccurs="0" name="Distance" nillable="true" type="double"/>
            <element minOccurs="0" name="EV_AddressID" nillable="true" type="int"/>
            <element minOccurs="0" name="EV_EstateID" nillable="true" type="int"/>
            <element minOccurs="0" name="ExternalUsableArea" nillable="true" type="double"/>
            <element minOccurs="0" name="GlazedBalconyUsableArea" nillable="true" type="double"/>
            <element minOccurs="0" name="InternalUsableArea" nillable="true" type="double"/>
            <element minOccurs="0" name="Latitude" type="double"/>
            <element minOccurs="0" name="LivingArea" type="double"/>
            <element minOccurs="0" name="Longitude" type="double"/>
            <element minOccurs="0" name="LowHeightFloorArea" nillable="true" type="double"/>
            <element minOccurs="0" name="OpenTerraceAndBalconyArea" nillable="true" type="double"/>
            <element minOccurs="0" name="Price" nillable="true" type="double"/>
            <element minOccurs="0" name="PriceAssumption" nillable="true" type="double"/>
            <element minOccurs="0" name="UseSample" type="boolean"/>
            <element minOccurs="0" name="UseSampleHigh" type="boolean"/>
            <element minOccurs="0" name="UseSampleLow" type="boolean"/>
            <element minOccurs="0" name="UseSampleMedium" type="boolean"/>
            <element minOccurs="0" name="Weight" type="double"/>
        </sequence>
    </complexType>

    <complexType name="EnumKeyDescriptionPair">
        <sequence>
            <element minOccurs="0" name="Description" nillable="true" type="string"/>
            <element minOccurs="0" name="Key" type="int"/>
        </sequence>
    </complexType>

    <complexType name="EstimateResult">
        <sequence>
            <element minOccurs="0" name="LastKnownCommondebt" nillable="true" type="double"/>
            <element minOccurs="0" name="LastKnownCommondebtDate" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="MunicipalityScore" type="int"/>
            <element minOccurs="0" name="Status" nillable="true" type="tns:EnumKeyDescriptionPair"/>
        </sequence>
    </complexType>

    <complexType name="EstimateResultWeighted">
        <complexContent mixed="false">
            <extension base="tns:EstimateResult">
                <sequence>
                    <element minOccurs="0" name="AccuracyLevel" type="int"/>
                    <element minOccurs="0" name="CustomerApprovedValue" type="double"/>
                    <element minOccurs="0" name="CustomerMaxValue" type="double"/>
                    <element minOccurs="0" name="Estimate" type="double"/>
                    <element minOccurs="0" name="EstimateHaircut" type="double"/>
                    <element minOccurs="0" name="EstimateSamples" nillable="true" type="tns:ArrayOfEstimateSample"/>
                    <element minOccurs="0" name="GrossValueEstimate" type="double"/>
                    <element minOccurs="0" name="HaircutPercentage" type="double"/>
                    <element minOccurs="0" name="NetValueEstimate" type="double"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="EstimateResultWeightedExtended">
        <complexContent mixed="false">
            <extension base="tns:EstimateResultWeighted">
                <sequence>
                    <element minOccurs="0" name="AreaMarketScore" nillable="true" type="int"/>
                    <element minOccurs="0" name="AreaVacationHomeMarketScore" nillable="true" type="int"/>
                    <element minOccurs="0" name="EstateType" nillable="true" type="tns:EnumKeyDescriptionPair"/>
                    <element minOccurs="0" name="StoredEstimateDocumentationId" nillable="true" type="int"/>
                    <element minOccurs="0" name="EnergyLabel" nillable="true">
                        <complexType>
                            <sequence>
                                <element name="EnergyLabelColor" nillable="true" minOccurs="0" type="tns:EnumKeyDescriptionPair"/>
                                <element name="EnergyLabelLetter" nillable="true" type="string" minOccurs="0"/>
                                <element name="EstimatedEnergyLabelLetter" nillable="true" type="string" minOccurs="0"/>
                            </sequence>
                        </complexType>
                    </element>
                    <any minOccurs="0" processContents="skip"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="ReportResponse">
        <complexContent mixed="false">
            <extension base="tns:BaseDTO">
                <sequence>
                    <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
                    <element minOccurs="0" name="ReportAsBytes" nillable="true" type="base64Binary"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="ValueValidationData">
        <complexContent mixed="false">
            <extension base="tns:BaseDTO">
                <sequence>
                    <element minOccurs="0" name="Appraisal" nillable="true" type="tns:AppraisalInformation"/>
                    <element minOccurs="0" name="Checkpoints" nillable="true" type="tns:Checkpoints"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="BaseDTO">
        <sequence>
            <element minOccurs="0" name="Status" nillable="true" type="tns:EnumKeyDescriptionPair"/>
        </sequence>
    </complexType>

    <complexType name="AppraisalInformation">
        <sequence>
            <element minOccurs="0" name="ActivatedDate" type="dateTime"/>
            <element minOccurs="0" name="Address" nillable="true" type="tns:Address"/>
            <element minOccurs="0" name="AppraisalValueDescription" nillable="true" type="string"/>
            <element minOccurs="0" name="AreaSalesRankedByPrice" nillable="true" type="tns:ArrayOfSaleRank"/>
            <element minOccurs="0" name="AreaSalesRankedBySqmPrice" nillable="true" type="tns:ArrayOfSaleRank"/>
            <element minOccurs="0" name="BasicAreaUnitSalesRankedByPrice" nillable="true" type="tns:ArrayOfSaleRank"/>
            <element minOccurs="0" name="BasicAreaUnitSalesRankedBySqmPrice" nillable="true" type="tns:ArrayOfSaleRank"/>
            <element minOccurs="0" name="Bedrooms" nillable="true" type="tns:AppraisalInformation.PropertyInt"/>
            <element minOccurs="0" name="BuildYear" nillable="true" type="tns:AppraisalInformation.PropertyInt"/>
            <element minOccurs="0" name="Buildings" nillable="true" type="tns:ArrayOfBuilding"/>
            <element minOccurs="0" name="Cadastre" nillable="true" type="tns:Matrikkel"/>
            <element minOccurs="0" name="Capital" nillable="true" type="double"/>
            <element minOccurs="0" name="ClientEmail" nillable="true" type="string"/>
            <element minOccurs="0" name="ClientName" nillable="true" type="string"/>
            <element minOccurs="0" name="ClientPhoneNumber" nillable="true" type="string"/>
            <element minOccurs="0" name="CommonDebt" nillable="true" type="double"/>
            <element minOccurs="0" name="ComparableSales" nillable="true" type="tns:ArrayOfComparableSale"/>
            <element minOccurs="0" name="ComparableSalesRankedByPrice" nillable="true" type="tns:ArrayOfSaleRank"/>
            <element minOccurs="0" name="ComparableSalesRankedBySqmPrice" nillable="true" type="tns:ArrayOfSaleRank"/>
            <element minOccurs="0" name="CurrentCommonDebt" nillable="true" type="double"/>
            <element minOccurs="0" name="EstateAgentEmail" nillable="true" type="string"/>
            <element minOccurs="0" name="EstateAgentName" nillable="true" type="string"/>
            <element minOccurs="0" name="EstateAgentOfficeLegalName" nillable="true" type="string"/>
            <element minOccurs="0" name="EstateAgentPhoneNumber" nillable="true" type="string"/>
            <element minOccurs="0" name="EstateType" nillable="true" type="tns:AppraisalInformation.PropertyEnumKeyDescriptionPair"/>
            <element minOccurs="0" name="Floor" nillable="true" type="tns:AppraisalInformation.PropertyInt"/>
            <element minOccurs="0" name="GrossArea" nillable="true" type="tns:AppraisalInformation.PropertyDouble"/>
            <element minOccurs="0" name="HousingCooperatativeShareIdentification" nillable="true" type="tns:HousingCooperatativeShareIdentificationInfo"/>
            <element minOccurs="0" name="InspectionDate" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="IsPreValuation" type="boolean"/>
            <element minOccurs="0" name="LastSaleCommonDebt" nillable="true" type="double"/>
            <element minOccurs="0" name="LastSaleDate" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="LastSaleIndexedValue" nillable="true" type="double"/>
            <element minOccurs="0" name="LastSalesPrice" nillable="true" type="double"/>
            <element minOccurs="0" name="LastSalesPriceNotRelevant" type="boolean"/>
            <element minOccurs="0" name="LastSalesPriceNotRelevantExtraDescription" nillable="true" type="string"/>
            <element minOccurs="0" name="LocationQualityFactor" type="int"/>
            <element minOccurs="0" name="MarketingDescription" nillable="true" type="string"/>
            <element minOccurs="0" name="NumberOfFloors" nillable="true" type="tns:AppraisalInformation.PropertyInt"/>
            <element minOccurs="0" name="Owners" nillable="true" type="tns:ArrayOfOwner"/>
            <element minOccurs="0" name="OwnershipType" nillable="true" type="tns:AppraisalInformation.PropertyEnumKeyDescriptionPair"/>
            <element minOccurs="0" name="PresumedMarketValueIncludedCommonDebt" nillable="true" type="double"/>
            <element minOccurs="0" name="PresumedMarketValueWithoutCommonDebt" nillable="true" type="double"/>
            <element minOccurs="0" name="PrimaryArea" nillable="true" type="tns:AppraisalInformation.PropertyDouble"/>
            <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
            <element minOccurs="0" name="Rent" nillable="true" type="double"/>
            <element minOccurs="0" name="SaleHistory" nillable="true" type="tns:ArrayOfSale"/>
            <element minOccurs="0" name="SiteArea" nillable="true" type="tns:AppraisalInformation.PropertyDouble"/>
            <element minOccurs="0" name="SiteType" nillable="true" type="tns:AppraisalInformation.PropertyEnumKeyDescriptionPair"/>
            <element minOccurs="0" name="SkipPriceReason" nillable="true" type="string"/>
            <element minOccurs="0" name="StandardQualityFactor" type="int"/>
            <element minOccurs="0" name="UtilityFloorSpace" nillable="true" type="tns:AppraisalInformation.PropertyDouble"/>
        </sequence>
    </complexType>

    <complexType name="ArrayOfSaleRank">
        <sequence>
            <element minOccurs="0" maxOccurs="unbounded" name="SaleRank" nillable="true" type="tns:SaleRank"/>
        </sequence>
    </complexType>

    <complexType name="AppraisalInformation.PropertyInt">
        <sequence>
            <element minOccurs="0" name="CustomerValue" nillable="true" type="int"/>
            <element minOccurs="0" name="EiendomsverdiValue" nillable="true" type="int"/>
            <element minOccurs="0" name="Source" nillable="true" type="tns:EstimateInfoSource"/>
        </sequence>
    </complexType>

    <complexType name="ArrayOfBuilding">
        <sequence>
            <element minOccurs="0" maxOccurs="unbounded" name="Building" nillable="true" type="tns:Building"/>
        </sequence>
    </complexType>

    <complexType name="Building">
        <sequence>
            <element minOccurs="0" name="BuildingType" nillable="true" type="string"/>
            <element minOccurs="0" name="Date" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="ModificationType" nillable="true" type="string"/>
        </sequence>
    </complexType>

    <simpleType name="EstimateInfoSource">
        <restriction base="string">
            <enumeration value="SurveyorsValuation">
                <annotation>
                    <appinfo>
                        <EnumerationValue>1</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="Accountant">
                <annotation>
                    <appinfo>
                        <EnumerationValue>2</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="Drawingplan">
                <annotation>
                    <appinfo>
                        <EnumerationValue>3</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="SalesContract">
                <annotation>
                    <appinfo>
                        <EnumerationValue>4</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="Prospect">
                <annotation>
                    <appinfo>
                        <EnumerationValue>5</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="Public_Register">
                <annotation>
                    <appinfo>
                        <EnumerationValue>6</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="StipulatedByEstateAgent">
                <annotation>
                    <appinfo>
                        <EnumerationValue>7</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="Depot">
                <annotation>
                    <appinfo>
                        <EnumerationValue>8</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="Appraisal">
                <annotation>
                    <appinfo>
                        <EnumerationValue>9</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="EstateAgentValue">
                <annotation>
                    <appinfo>
                        <EnumerationValue>10</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
            <enumeration value="ValidatedValueValuation">
                <annotation>
                    <appinfo>
                        <EnumerationValue>11</EnumerationValue>
                    </appinfo>
                </annotation>
            </enumeration>
        </restriction>
    </simpleType>

    <complexType name="SaleRank">
        <sequence>
            <element minOccurs="0" name="Address" nillable="true" type="string"/>
            <element minOccurs="0" name="AreaName" nillable="true" type="string"/>
            <element minOccurs="0" name="AreaType" nillable="true" type="string"/>
            <element minOccurs="0" name="Buildyear" nillable="true" type="int"/>
            <element minOccurs="0" name="IsCurrentAppraisalObject" type="boolean"/>
            <element minOccurs="0" name="Rank" type="long"/>
            <element minOccurs="0" name="Size" nillable="true" type="double"/>
            <element minOccurs="0" name="Value" type="double"/>
        </sequence>
    </complexType>

    <complexType name="ArrayOfComparableSale">
        <sequence>
            <element minOccurs="0" maxOccurs="unbounded" name="ComparableSale" nillable="true" type="tns:ComparableSale"/>
        </sequence>
    </complexType>

    <complexType name="ComparableSale">
        <sequence>
            <element minOccurs="0" name="AddedByUser" type="boolean"/>
            <element minOccurs="0" name="Address" nillable="true" type="string"/>
            <element minOccurs="0" name="BuildYear" nillable="true" type="int"/>
            <element minOccurs="0" name="CommonDebt" nillable="true" type="double"/>
            <element minOccurs="0" name="Distance" type="double"/>
            <element minOccurs="0" name="PriceAssumption" nillable="true" type="double"/>
            <element minOccurs="0" name="PricePerSquareMeter" nillable="true" type="double"/>
            <element minOccurs="0" name="RegisteredDate" type="dateTime"/>
            <element minOccurs="0" name="SalesPrice" nillable="true" type="double"/>
            <element minOccurs="0" name="SelectedAsComparable" type="boolean"/>
            <element minOccurs="0" name="Size" nillable="true" type="double"/>
            <element minOccurs="0" name="SoldDate" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="TurnoverTimeInDays" type="int"/>
        </sequence>
    </complexType>

    <complexType name="AppraisalInformation.PropertyEnumKeyDescriptionPair">
        <sequence>
            <element minOccurs="0" name="CustomerValue" nillable="true" type="tns:EnumKeyDescriptionPair"/>
            <element minOccurs="0" name="EiendomsverdiValue" nillable="true" type="tns:EnumKeyDescriptionPair"/>
            <element minOccurs="0" name="Source" nillable="true" type="tns:EstimateInfoSource"/>
        </sequence>
    </complexType>

    <complexType name="AppraisalInformation.PropertyDouble">
        <sequence>
            <element minOccurs="0" name="CustomerValue" nillable="true" type="double"/>
            <element minOccurs="0" name="EiendomsverdiValue" nillable="true" type="double"/>
            <element minOccurs="0" name="Source" nillable="true" type="tns:EstimateInfoSource"/>
        </sequence>
    </complexType>

    <complexType name="ArrayOfOwner">
        <sequence>
            <element minOccurs="0" maxOccurs="unbounded" name="Owner" nillable="true" type="tns:Owner"/>
        </sequence>
    </complexType>

    <complexType name="Owner">
        <sequence>
            <element minOccurs="0" name="Address" nillable="true" type="string"/>
            <element minOccurs="0" name="Name" nillable="true" type="string"/>
            <element minOccurs="0" name="ShareAsFraction" nillable="true" type="string"/>
        </sequence>
    </complexType>

    <complexType name="ArrayOfSale">
        <sequence>
            <element minOccurs="0" maxOccurs="unbounded" name="Sale" nillable="true" type="tns:Sale"/>
        </sequence>
    </complexType>

    <complexType name="Sale">
        <sequence>
            <element minOccurs="0" name="Commondebt" nillable="true" type="double"/>
            <element minOccurs="0" name="PriceAssumption" nillable="true" type="double"/>
            <element minOccurs="0" name="PublicRegistrationDate" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="RegisteredDate" type="dateTime"/>
            <element minOccurs="0" name="SalesPrice" nillable="true" type="double"/>
            <element minOccurs="0" name="SoldDate" nillable="true" type="dateTime"/>
            <element minOccurs="0" name="SquareMeterPrice" nillable="true" type="double"/>
            <element minOccurs="0" name="SurveyorsValuation" nillable="true" type="double"/>
            <element minOccurs="0" name="TurnoverTimeInDays" nillable="true" type="int"/>
        </sequence>
    </complexType>

    <complexType name="Checkpoints">
        <sequence>
            <element minOccurs="0" name="AppraisalAgeInMonths" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="AppraisalValueDeviationForLastSixMonths" nillable="true" type="tns:Checkpoints.ThresholdDouble"/>
            <element minOccurs="0" name="AppraisalVsEstimate" nillable="true" type="tns:Checkpoints.ThresholdDouble"/>
            <element minOccurs="0" name="AppraisalVsIndexedLastSalesPrice" nillable="true" type="tns:Checkpoints.ThresholdDouble"/>
            <element minOccurs="0" name="AverageTransactionTimeInArea" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="InscpectionAgeInMonths" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="IsAppraisalClientNameEqualToOwnerName" nillable="true" type="tns:Checkpoints.ThresholdBoolean"/>
            <element minOccurs="0" name="IsAreaModified" nillable="true" type="tns:Checkpoints.ThresholdBoolean"/>
            <element minOccurs="0" name="IsEstateTypeModified" nillable="true" type="tns:Checkpoints.ThresholdBoolean"/>
            <element minOccurs="0" name="IsPreValuation" nillable="true" type="tns:Checkpoints.ThresholdBoolean"/>
            <element minOccurs="0" name="LastSaleTransactionTime" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="MarketAreaScore" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="MunicipalityScore" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="NumberOfAppraisalsLastSixMonths" nillable="true" type="tns:Checkpoints.ThresholdInt"/>
            <element minOccurs="0" name="PercentageOfHigherPricesInArea" nillable="true" type="tns:Checkpoints.ThresholdDouble"/>
            <element minOccurs="0" name="PercentageOfHigherSquareMeterPricesInArea" nillable="true" type="tns:Checkpoints.ThresholdDouble"/>
        </sequence>
    </complexType>

    <complexType name="Checkpoints.ThresholdInt">
        <sequence>
            <element minOccurs="0" name="Description" nillable="true" type="string"/>
            <element minOccurs="0" name="ThresholdValue" type="int"/>
            <element minOccurs="0" name="Value" nillable="true" type="int"/>
            <element minOccurs="0" name="Warning" type="boolean"/>
        </sequence>
    </complexType>

    <complexType name="Checkpoints.ThresholdDouble">
        <sequence>
            <element minOccurs="0" name="Description" nillable="true" type="string"/>
            <element minOccurs="0" name="ThresholdValue" type="double"/>
            <element minOccurs="0" name="Value" nillable="true" type="double"/>
            <element minOccurs="0" name="Warning" type="boolean"/>
        </sequence>
    </complexType>

    <complexType name="Checkpoints.ThresholdBoolean">
        <sequence>
            <element minOccurs="0" name="Description" nillable="true" type="string"/>
            <element minOccurs="0" name="ThresholdValue" type="boolean"/>
            <element minOccurs="0" name="Value" nillable="true" type="boolean"/>
            <element minOccurs="0" name="Warning" type="boolean"/>
        </sequence>
    </complexType>

    <complexType name="ValueValidationReport">
        <complexContent mixed="false">
            <extension base="tns:BaseDTO">
                <sequence>
                    <element minOccurs="0" name="Appraisal" nillable="true" type="tns:AppraisalInformation"/>
                    <element minOccurs="0" name="Checkpoints" nillable="true" type="tns:Checkpoints"/>
                    <element minOccurs="0" name="Estimate" nillable="true" type="tns:EstimateResultWeightedExtended"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>


    <complexType name="ReviewAppraisalReportResponse">
        <complexContent mixed="false">
            <extension base="tns:BaseDTO">
                <sequence>
                    <element minOccurs="0" name="ReferenceNumber" nillable="true" type="string"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>

    <element name="Ekstern" type="tns:redirect"/>
</schema>
