﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://edavki.durs.si/Documents/Schemas/DDV_O_7.xsd" elementFormDefault="qualified" xmlns="http://edavki.durs.si/Documents/Schemas/DDV_O_7.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:edp="http://edavki.durs.si/Documents/Schemas/EDP-Common-1.xsd">
  <xs:import namespace="http://edavki.durs.si/Documents/Schemas/EDP-Common-1.xsd" schemaLocation="EDP-Common-1.xsd" id="EDP-Common-1" />
  <xs:element name="DDV-O">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="taxPeriodStart" type="xs:string">
          <xs:annotation>
            <xs:documentation xml:lang="sl">
              Začetek davčnega obdobja (datum): YYYY-MM-DD
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="taxPeriodEnd" type="xs:string">
          <xs:annotation>
            <xs:documentation xml:lang="sl">
              Konec davčnega obdobja (datum): YYYY-MM-DD
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="representedForeigner" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              Zastopani tujec
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="idNumber" type="xs:string">
                <xs:annotation>
                  <xs:documentation>
                    Identifikacijska številka
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="name" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>
                    Naziv
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="address" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>
                    Naslov
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="correctionOfPastTaxPeriod" type="xs:boolean" minOccurs="0">
          <xs:annotation>
            <xs:documentation xml:lang="sl">
              Popravki za pretekla obdobja (obvezno izbrati)
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="f02" type="xs:positiveInteger" minOccurs="0">
          <xs:annotation>
            <xs:documentation xml:lang="sl">
            Davčna številka zastopnika
          </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="f03" type="xs:boolean" minOccurs="0">
          <xs:annotation>
            <xs:documentation xml:lang="sl">
              Izračunavam odbitni delež (obvezno izbrati)
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="f04" type="xs:boolean" minOccurs="0">
          <xs:annotation>
            <xs:documentation xml:lang="sl">
              Zahtevam vračilo (obvezno izbrati)
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="f11" type="xs:decimal" minOccurs="0" />
        <xs:element name="f11a" type="xs:decimal" minOccurs="0" />
        <xs:element name="f12" type="xs:decimal" minOccurs="0" />
        <xs:element name="f13" type="xs:decimal" minOccurs="0" />
        <xs:element name="f14" type="xs:decimal" minOccurs="0" />
        <xs:element name="f15" type="xs:decimal" minOccurs="0" />
        <xs:element name="f21" type="xs:decimal" minOccurs="0" />
        <xs:element name="f22" type="xs:decimal" minOccurs="0" />
        <xs:element name="f23" type="xs:decimal" minOccurs="0" />
        <xs:element name="f23a" type="xs:decimal" minOccurs="0" />
        <xs:element name="f24" type="xs:decimal" minOccurs="0" />
        <xs:element name="f24a" type="xs:decimal" minOccurs="0" />
        <xs:element name="f25" type="xs:decimal" minOccurs="0" />
        <xs:element name="f25a" type="xs:decimal" minOccurs="0" />
        <xs:element name="f26" type="xs:decimal" minOccurs="0" />
        <xs:element name="f31" type="xs:decimal" minOccurs="0" />
        <xs:element name="f31a" type="xs:decimal" minOccurs="0" />
        <xs:element name="f32" type="xs:decimal" minOccurs="0" />
        <xs:element name="f32a" type="xs:decimal" minOccurs="0" />
        <xs:element name="f33" type="xs:decimal" minOccurs="0" />
        <xs:element name="f34" type="xs:decimal" minOccurs="0" />
        <xs:element name="f35" type="xs:decimal" minOccurs="0" />
        <xs:element name="f41" type="xs:decimal" minOccurs="0" />
        <xs:element name="f42" type="xs:decimal" minOccurs="0" />
        <xs:element name="f43" type="xs:decimal" minOccurs="0" />
        <xs:element name="f51" type="xs:decimal" minOccurs="0" />
        <xs:element name="f52" type="xs:decimal" minOccurs="0" />
        <xs:element name="unclaimed" type="xs:decimal" minOccurs="0" />
        <xs:element name="increased" type="xs:decimal" minOccurs="0" />
        <xs:element name="decreased" type="xs:decimal" minOccurs="0" />

        <xs:element name="Priloga_A" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="A11" type="xs:decimal" minOccurs="0" />
              <xs:element name="A21" type="xs:decimal" minOccurs="0" />
              <xs:element name="A22" type="xs:decimal" minOccurs="0" />
              <xs:element name="A11a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A21a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A22a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A31" type="xs:decimal" minOccurs="0" />
              <xs:element name="A34" type="xs:decimal" minOccurs="0" />
              <xs:element name="A35" type="xs:decimal" minOccurs="0" />
              <xs:element name="A41" type="xs:decimal" minOccurs="0" />
              <xs:element name="A42" type="xs:decimal" minOccurs="0" />
              <xs:element name="A31a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A34a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A35a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A41a" type="xs:decimal" minOccurs="0" />
              <xs:element name="A42a" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        
        <xs:element name="IsPrilogaAMandatory" type="xs:boolean" minOccurs="0" />
        
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Envelope">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="edp:Header" />
        <xs:element ref="edp:Signatures" />
        <xs:element name="body">
          <xs:complexType>
            <xs:sequence>
              <xs:element ref="edp:bodyContent" />
              <xs:element ref="DDV-O" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>