<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.ote-cr.cz/schema/sfvot/billing/sum" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ote="http://www.ote-cr.cz/schema/globals" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://www.ote-cr.cz/schema/sfvot/report/billing/sum" targetNamespace="http://www.ote-cr.cz/schema/sfvot/billing/sum" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:import namespace="http://www.ote-cr.cz/schema/globals" schemaLocation="./ote_globals.xsd"/>
    <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="./xmldsig-core-schema.xsd"/>
    <xs:element name="SFVOTBILLINGSUM">
        <xs:annotation>
            <xs:documentation xml:lang="CS">Hlavni element spolecny pro vsechny financni reporty</xs:documentation>
            <xs:documentation xml:lang="EN">Root element containing basic message data</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="SenderIdentification" type="ote:SenderIdentificationType">
                    <xs:annotation>
                        <xs:documentation xml:lang="CS">Identifikace odesilatele zpravy, tzn. OTE, a.s.</xs:documentation>
                        <xs:documentation xml:lang="EN">EAN13 Sender identification - OTE, a.s.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="ReceiverIdentification" type="ote:ReceiverIdentificationType">
                    <xs:annotation>
                        <xs:documentation xml:lang="CS">Identifikace prijemce, resp. odesilatele pozadavku</xs:documentation>
                        <xs:documentation xml:lang="EN">Message receiver identification</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Reference" type="ote:ReferenceType" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation xml:lang="CS">Reference na předešlou zprávu. Pokud není element obsažen v cílovém XML nebyl report generován na základě XML požadavku.</xs:documentation>
                        <xs:documentation xml:lang="EN">Reference to the previous message, if any.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="BillingSum">
                    <xs:annotation>
                        <xs:documentation xml:lang="CS">Podklady pro fakturaci - souhrn MV</xs:documentation>
                        <xs:documentation xml:lang="EN">Billing Report - summary</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Rut" maxOccurs="unbounded" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation xml:lang="CS">Data participanta</xs:documentation>
                                    <xs:documentation xml:lang="EN">Participant data</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="TradeGroup" maxOccurs="unbounded">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="CS">Data skupiny obchodu</xs:documentation>
                                                <xs:documentation xml:lang="EN">Trade group data</xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element name="Data" maxOccurs="unbounded">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="CS">Data dle typu obchodu</xs:documentation>
                                                            <xs:documentation xml:lang="EN">Data by trade type</xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:attribute name="amtNetEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="amtNetCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="tradeType" use="required">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">
                                                Typ obchodu IEP - Kladné odchylky,
                                                 IEM - Záporné odchylky
                                                 IEP-SZ - Kladné odchylky,
                                                 IEM-SZ - Záporné odchylky
                                                 VD--SZ - VDT odběr - vyúčtování daně z el.,
                                                 AC+ - ACT dodávka
                                                 AC- - ACT nedodávka
                                                 DT-CZK - Denní trh
                                                 DT-EUR - Denní trh
                                                 EMD - Vypořádání stavu nouze z koord. DT
                                                 DSK - DT export-import
                                                 VD+ - VDT dodávka,
                                                 VD- - VDT odběr,
                                                 BTD - Blokový trh - denní,
                                                 PSK - Agregovaná RE,
                                                 PP1 - Popl. za služby
                                                 PP2 - Popl. za spotřebu
                                                 PP3 - Popl. za zobchod. en.
                                                 PP4 - Popl. za CDS
                                                 PP5 - Popl. za VD trh
                                                 PP6 - Popl. za vyrovnávací trh
                                                 PP7 - Popl. za obchod. na BT
                                                 PP8 - Popl. za doplnění FZ
                                                 PRF - Platba za profil - služby z řízení úzkého místa
                                                                    </xs:documentation>
                                                                    <xs:documentation xml:lang="EN">
                                                Trade type
                                                 IEP - Positive imbalance,
                                                 IEM - Negative imbalance
                                                 IEP-SZ - Positive imbalance,
                                                 IEM-SZ - Negative imbalance
                                                 VD--SZ - IM consumption - el. tax settlement,
                                                 AC+ - ACT - Positive relating energy
                                                 AC- - ACT - Negative relating energy
                                                 DT-CZK - Day-ahead market,
                                                 DT-EUR - Day-ahead market,
                                                 EMD - Settlement of emergency from Day-ahead market CZ-SK
                                                 DSK - DT export-import
                                                 VD+ - IM supply,
                                                 VD- - IM consumption,
                                                 BTD - Block market,
                                                 PSK - Agregated RE
                                                 PP1 - Fees - services
                                                 PP2 - Fees - consumption
                                                 PP3 - Fees - trading day
                                                 PP4 - Fees - CDS
                                                 PP5 - Fees - IM
                                                 PP6 - Fees - BM
                                                 PP7 - Fee for BM
                                                 PP8 - Fee for compensation
                                                 PRF - Settlement for PRF
                                                                    </xs:documentation>
                                                                </xs:annotation>
                                                                <xs:simpleType>
                                                                    <xs:restriction base="xs:string">
                                                                        <xs:enumeration value="IEP"/>
                                                                        <xs:enumeration value="IEM"/>
                                                                        <xs:enumeration value="IEP-SZ"/>
                                                                        <xs:enumeration value="IEM-SZ"/>
                                                                        <xs:enumeration value="VD--SZ"/>
                                                                        <xs:enumeration value="AC+"/>
                                                                        <xs:enumeration value="AC-"/>
                                                                        <xs:enumeration value="DT-CZK"/>
                                                                        <xs:enumeration value="DT-EUR"/>
                                                                        <xs:enumeration value="EMD"/>
                                                                        <xs:enumeration value="DSK"/>
                                                                        <xs:enumeration value="VD+"/>
                                                                        <xs:enumeration value="VD-"/>
                                                                        <xs:enumeration value="BTD"/>
                                                                        <xs:enumeration value="PSK"/>
                                                                        <xs:enumeration value="PP1"/>
                                                                        <xs:enumeration value="PP2"/>
                                                                        <xs:enumeration value="PP3"/>
                                                                        <xs:enumeration value="PP4"/>
                                                                        <xs:enumeration value="PP5"/>
                                                                        <xs:enumeration value="PP6"/>
                                                                        <xs:enumeration value="PP7"/>
                                                                        <xs:enumeration value="PP8"/>
                                                                        <xs:enumeration value="PRF"/>
                                                                    </xs:restriction>
                                                                </xs:simpleType>
                                                            </xs:attribute>
                                                            <xs:attribute name="volume" type="xs:decimal" use="required">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Množství</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Volume</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                        </xs:complexType>
                                                    </xs:element>

                                                    <xs:element name="Summary">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="CS">Data dle skupiny obchodu</xs:documentation>
                                                            <xs:documentation xml:lang="EN">Data by trade group</xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:attribute name="advancedAmtCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Zálohová platba</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Advanced payment</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="advancedAmtEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Zálohová platba</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Advanced payment</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="amtCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Částka s daní</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The amount with tax</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="amtEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Částka s daní</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The amount with tax</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="amtNetCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="amtNetEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="diffCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Rozdíl záloh a celkové sumy</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Difference of advances and payments</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="diffEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Rozdíl záloh a celkové sumy</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Difference of advances and payments</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="etaxCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Daň z elektřiny</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="etaxEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Daň z elektřiny</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="refund" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Vratka daně z elektřiny</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Refund of electricity tax</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="tradeType" use="required">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">Typ obchodu</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">Trade type</xs:documentation>
                                                                </xs:annotation>
                                                                <xs:simpleType>
                                                                    <xs:restriction base="xs:string">
                                                                        <xs:enumeration value="TOTAL"/>
                                                                    </xs:restriction>
                                                                </xs:simpleType>
                                                            </xs:attribute>
                                                            <xs:attribute name="vatCzk" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">DPH</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">VAT</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                            <xs:attribute name="vatEur" type="xs:decimal">
                                                                <xs:annotation>
                                                                    <xs:documentation xml:lang="CS">DPH</xs:documentation>
                                                                    <xs:documentation xml:lang="EN">VAT</xs:documentation>
                                                                </xs:annotation>
                                                            </xs:attribute>
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="name" type="xs:string">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="CS">Zkrácený název účastníka trhu</xs:documentation>
                                            <xs:documentation xml:lang="EN">The participant's short name</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute name="particId" type="xs:integer">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="CS">Jednoznačný identifikátor účastníka trhu</xs:documentation>
                                            <xs:documentation xml:lang="EN">The participant's unique id</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>

				
                        </xs:sequence>
                        <xs:attribute name="date" type="xs:date" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="CS">Čas generování</xs:documentation>
                                <xs:documentation xml:lang="EN">Production timestamp</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="dateFrom" type="xs:date" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="CS">Datum od</xs:documentation>
                                <xs:documentation xml:lang="EN">Date from</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="dateTo" type="xs:date" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="CS">Datum do</xs:documentation>
                                <xs:documentation xml:lang="EN">Date to</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="title" type="xs:string" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="CS">Název reportu</xs:documentation>
                                <xs:documentation xml:lang="EN">Report title</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="ote" type="xs:boolean" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="CS">Je-li nastaveno (1, true) jedna se o Podklady pro fakturaci OTE, v opacnem pripade (0, false) o Podklady pro fakturaci</xs:documentation>
                                <xs:documentation xml:lang="EN">If set (1, true) OTE is on debet side, otherwise (0, false) OTE is on credit side</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element ref="ds:Signature" minOccurs="0"/>
            </xs:sequence>
            <xs:attribute name="answer-required" type="xs:boolean" use="required">
                <xs:annotation>
                    <xs:documentation xml:lang="CS">Indikace pozadavku na odpoved</xs:documentation>
                    <xs:documentation xml:lang="EN">Indication of request for response 1=YES, 0=NO</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="date-time" type="xs:dateTime" use="required">
                <xs:annotation>
                    <xs:documentation xml:lang="CS">Datum a cas zpravy</xs:documentation>
                    <xs:documentation xml:lang="EN">Date and time of message</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="dtd-release" type="xs:string" use="required" fixed="1">
                <xs:annotation>
                    <xs:documentation xml:lang="CS">Rezervovano pro pristi verze. Zatim konstanta '1'</xs:documentation>
                    <xs:documentation xml:lang="EN">Reserved for incoming versions. So far a constant '1'</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="dtd-version" type="xs:unsignedByte" use="required" fixed="1">
                <xs:annotation>
                    <xs:documentation xml:lang="CS">Rezervovano pro prist verze. Zatim konstanta '1'</xs:documentation>
                    <xs:documentation xml:lang="EN">Reserved for incoming versions; so far a constant '1'</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="id" type="ote:msg-id" use="required">
                <xs:annotation>
                    <xs:documentation xml:lang="CS">Identifikator zpravy</xs:documentation>
                    <xs:documentation xml:lang="EN">Message Identification</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="message-code" use="required">
                <xs:annotation>
                    <xs:documentation xml:lang="CS">Kod zpravy upresnujici obsah zpravy.</xs:documentation>
                    <xs:documentation xml:lang="EN">Message code that specifies the message content.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="435"/>
                        <xs:enumeration value="438"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
</xs:schema>
