<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.ote-cr.cz/schema/sfvot/confirmation" 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#" targetNamespace="http://www.ote-cr.cz/schema/sfvot/confirmation" 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="SFVOTCONFDATA">
		<xs:annotation>
			<xs:documentation xml:lang="CS">Hlavni element spolecny pro vsechny reporty konfirmaci</xs:documentation>
			<xs:documentation xml:lang="EN">Root element containing confirmation 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="Confirmation">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Informace o platbách</xs:documentation>
						<xs:documentation xml:lang="EN">Debet and credit data</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PaymentList">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="SupplyDate" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="Data" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="Conversion" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation xml:lang="CS">Konverze měny sjednání obchodu </xs:documentation>
																		<xs:documentation xml:lang="EN">Original trade currency conversion</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:attribute name="priceWithoutVat" type="xs:decimal" use="required">
																			<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="priceWithVat" type="xs:decimal" use="required">
																			<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="vat" type="xs:decimal" use="required">
																			<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="currency" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="CS">Měna sjednání obchodu</xs:documentation>
																				<xs:documentation xml:lang="EN">The original trade currency</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:enumeration value="CZK"/>
																					<xs:enumeration value="EUR"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
															<xs:attribute name="currency" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Měna zúčtování</xs:documentation>
																	<xs:documentation xml:lang="EN">The settlement currency</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:enumeration value="CZK"/>
																		<xs:enumeration value="EUR"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="payment" type="xs:decimal" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Platba</xs:documentation>
																	<xs:documentation xml:lang="EN">Payment</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="priceWithVat" type="xs:decimal" use="required">
																<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="priceWithoutVat" type="xs:decimal" use="required">
																<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="quantity" 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:attribute name="supplyRate" type="xs:decimal">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Kurz dne dodávky</xs:documentation>
																	<xs:documentation xml:lang="EN">Supply rate</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
                                                 AC+ - ACT dodávka
                                                 AC- - ACT nedodávka
                                                 DT  - Denní trh
                                                 DM-  - Denní trh - odběr
                                                 DM+  - Denní trh - dodávka
                                                 VD+ - VDT dodávka,
                                                 VD- - VDT odběr,
                                                 DE1 - Odchylky
                                                 DE2 - Vícenáklady
                                                 DP2 - Skutečná odchylka
                                                 DP3 - Mimotoleranční odchylka
                                                 DP4 - Agreg. platba za bilanční plyn
                                                 DD+ - Denní trh
                                                 DD- - Denní trh
                                                 BTD - Blokový trh - denní
                                                 DSK - DT export-import
                                                 DS- - DT export-import - odběr
                                                 DS+ - DT export-import - dodávka
                                                 DP4 - Agreg. platba za bilanční plyn
                                                 VP+ - Vnitrod. trh (plyn) – prodej
                                                 VP- - Vnitrod. trh (plyn) – nákup
                                                 DS0 - DT export-import (netting)
                                                 PX0 - Denní trh (PXE netting)
                                                 PX2 - Denní trh (PXE)
                                                 PX- - Denní trh (PXE) - odběr
                                                 PX+ - Denní trh (PXE) - dodávka
                                                 PF0 - Denní trh (PXE Future)
                                                 PF2 - Denní trh (PXE Future)
                                                 PF- - Denní trh (PXE Future)- odběr
                                                 PF+ - Denní trh (PXE Future)- dodávka
                                                 SD- - Shipping na DT - odběr
                                                 SD+ - Shipping na DT - dodávka
                                                                    </xs:documentation>
																	<xs:documentation xml:lang="EN">
                                                Trade type
                                                 IEP - Positive imbalance,
                                                 IEM - Negative imbalance
                                                 AC+ - ACT - Positive relating energy
                                                 AC- - ACT - Negative relating energy
                                                 DT  - Day-ahead market,
                                                 DM-  - Day-ahead market - consumption
                                                 DM+  - Day-ahead market - supply
                                                 VD+ - IM supply,
                                                 VD- - IM consumption,
                                                 DE1 - Imbalance
                                                 DE2 - Additional costs
                                                 DP2 - Imbalance real
                                                 DP3 - Off-Tolerance Deviation
                                                 DP4 - Aggreg. payment for balance gas
                                                 DD+ - Day-ahead market
                                                 DD- - Day-ahead market
                                                 BTD - Block market,
                                                 DSK - DT export-import
                                                 DS- - DT export-import - consumption
                                                 DS+ - DT export-import - supply
                                                 DP4 - Aggreg. payment for balance gas
                                                 VP+ - Intra-day market (gas) sale
                                                 VP- - Intra-day market (gas) purchase
                                                 DS0 - DT export-import (netting)
                                                 PX0 - Day-ahead market (PXE netting)
                                                 PX2 - Day-ahead market (PXE)
                                                 PX- - Day-ahead market (PXE) - consumption
                                                 PX+ - Day-ahead market (PXE) - supply
                                                 PF0 - Day-ahead market (PXE Future)
                                                 PF2 - Day-ahead market (PXE Future)
                                                 PF- - Day-ahead market (PXE Future) - consumption
                                                 PF+ - Day-ahead market (PXE Future) - supply
                                                 SD- - Shipping on DM - consumption
                                                 SD+ - Shipping on DM - supply
                                                                    </xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:enumeration value="IEP"/>
																		<xs:enumeration value="IEM"/>
																		<xs:enumeration value="AC+"/>
																		<xs:enumeration value="AC-"/>
																		<xs:enumeration value="DT"/>
																		<xs:enumeration value="DM-"/>
																		<xs:enumeration value="DM+"/>
																		<xs:enumeration value="VD+"/>
																		<xs:enumeration value="VD-"/>
																		<xs:enumeration value="DE1"/>
																		<xs:enumeration value="DE2"/>
																		<xs:enumeration value="DP2"/>
																		<xs:enumeration value="DP3"/>
																		<xs:enumeration value="DP4"/>
																		<xs:enumeration value="DD+"/>
																		<xs:enumeration value="DD-"/>
																		<xs:enumeration value="DO+"/>
																		<xs:enumeration value="DO-"/>
																		<xs:enumeration value="VP+"/>
																		<xs:enumeration value="VP-"/>
																		<xs:enumeration value="BTD"/>
																		<xs:enumeration value="DS0"/>
																		<xs:enumeration value="DSK"/>
																		<xs:enumeration value="DS-"/>
																		<xs:enumeration value="DS+"/>
																		<xs:enumeration value="PX0"/>
																		<xs:enumeration value="PX2"/>
																		<xs:enumeration value="PX-"/>
																		<xs:enumeration value="PX+"/>
																		<xs:enumeration value="PF0"/>
																		<xs:enumeration value="PF2"/>
																		<xs:enumeration value="PF-"/>
																		<xs:enumeration value="PF+"/>
																		<xs:enumeration value="SD-"/>
                                                                        <xs:enumeration value="SD+"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="vat" type="xs:decimal" use="required">
																<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="paymentStatus">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Stav platby (0 neuhrazeno, 1 uhrazeno, 2 pozdrženo, 3 zablokováno)</xs:documentation>
																	<xs:documentation xml:lang="EN">Payment status (0 not paid, 1 paid, 2 deferred, 3 blocked)</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:integer">
																		<xs:enumeration value="1"/>
																		<xs:enumeration value="2"/>
																		<xs:enumeration value="3"/>
																		<xs:enumeration value="0"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="variableSymbol" type="xs:integer">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Variabilní symbol</xs:documentation>
																	<xs:documentation xml:lang="EN">Reference #</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="paymentDate" type="xs:date">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Datum platby</xs:documentation>
																	<xs:documentation xml:lang="EN">Payment date</xs:documentation>
																</xs:annotation>
															</xs:attribute>
														</xs:complexType>
													</xs:element>
													<xs:element name="Netting" minOccurs="0" maxOccurs="4">
														<xs:complexType>
															<xs:attribute name="commodity">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Komodita (E elektřina, G plyn)</xs:documentation>
																	<xs:documentation xml:lang="EN">Commodity (E electricity, G gas)</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:enumeration value="E"/>
																		<xs:enumeration value="G"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="currency" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Měna zúčtování</xs:documentation>
																	<xs:documentation xml:lang="EN">The settlement currency</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:enumeration value="CZK"/>
																		<xs:enumeration value="EUR"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="paymentDate" type="xs:date">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Datum platby</xs:documentation>
																	<xs:documentation xml:lang="EN">Payment date</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="paymentStatus">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Stav platby (0 neuhrazeno, 1 uhrazeno, 2 pozdrženo, 3 zablokováno)</xs:documentation>
																	<xs:documentation xml:lang="EN">Payment status (0 not paid, 1 paid, 2 deferred, 3 blocked)</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:integer">
																		<xs:enumeration value="1"/>
																		<xs:enumeration value="2"/>
																		<xs:enumeration value="3"/>
																		<xs:enumeration value="0"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="payment" type="xs:decimal" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Platba</xs:documentation>
																	<xs:documentation xml:lang="EN">Payment</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="variableSymbol" type="xs:integer">
																<xs:annotation>
																	<xs:documentation xml:lang="CS">Variabilní symbol</xs:documentation>
																	<xs:documentation xml:lang="EN">Reference #</xs:documentation>
																</xs:annotation>
															</xs:attribute>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="supplyDate" type="xs:date" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Den dodávky</xs:documentation>
														<xs:documentation xml:lang="EN">Supply date</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="settlement" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="CS">Způsob zúčtování (0 denní, 1 měsíční)</xs:documentation>
											<xs:documentation xml:lang="EN">Settlement (0 daily, 1 monthly)</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:integer">
												<xs:enumeration value="0"/>
												<xs:enumeration value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</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:complexType>
				</xs:element>
				<xs:element ref="ds:Signature" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="dtd-version" 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-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="answer-required" type="xs:integer" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Indikace pozadavku na odpoved (1=ANO, 0=NE)</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="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:annotation>
							<xs:documentation xml:lang="CS">Report konfirmace dennich plateb OTE</xs:documentation>
							<xs:documentation xml:lang="EN">Report of daily payments confirmation</xs:documentation>
						</xs:annotation>
						<xs:enumeration value="432"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
