<?xml version="1.0"?>
<schema 
    targetNamespace="http://ws.infotorg.no/xml/Bisnode/BisnodeNOGI/2020-03-01/BISNOGI.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/Bisnode/BisnodeNOGI/2020-03-01/BISNOGI.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

    <annotation>
        <documentation xml:lang="no">
          Tjenestespesifikasjon for NorskGjeldsinformasjon vi Bisnode.

          © 2020 EVRY ASA
          Forfatter: Thomas Flatmo &lt;thomas.flatmo@evry.com&gt;
        </documentation>
    </annotation>

	  <include schemaLocation="https://ws-test.infotorg.no/xml/Bisnode/BisnodeNOGI/2020-03-01/include/Gjeldsopplysning.xsd"/>

    <element name="hentOppslagGjeldsinformasjon">
          <complexType>
            <sequence>
              <element minOccurs="0" maxOccurs="1" name="saksref" type="tns:Saksref"/>
              <element minOccurs="1" maxOccurs="1" name="foedselsnr" type="tns:Fnr"/>
              
              <!-- felter ifm. gjennpartsbrev -->
              <element minOccurs="0" maxOccurs="1" name="cellPhone" type="tns:CellPhone"/>
              <element minOccurs="0" maxOccurs="1" name="emailAddress" type="tns:EmailAddress"/>
              <element minOccurs="0" maxOccurs="1" name="referenceID" type="tns:ReferenceID"/>
              <element minOccurs="0" maxOccurs="1" name="messageToCustomer" type="tns:MessageToCustomer"/>
              
              <any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> <!-- åpent for å legge til flere felt -->
            </sequence>
        </complexType>
    </element>


    <element name="OppslagGjeldsinformasjon">
        <complexType>
            <sequence>
                 <element minOccurs="1" maxOccurs="1" name="customer" type="tns:Customer"/>
                 <element minOccurs="1" maxOccurs="1" name="status" type="tns:Status" />
                 <element minOccurs="0" maxOccurs="1" name="message" type="tns:Message" />
                 
                 <any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> <!-- åpent for å legge til flere felt -->
             </sequence>
        </complexType>
    </element>
    
</schema>
