<?xml version="1.0" encoding="UTF-8"?>
<!-- Customer Energy Summary Report Schema -->
<xs:schema xmlns="http://www.ieso.ca/schema" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ieso.ca/schema" elementFormDefault="qualified">
	<!-- Following stuff is report specific -->
	<xs:include schemaLocation="Document_r1.xsd"/>
	<xs:element name="DocBody">
		<xs:annotation>
			<xs:documentation>Document Body</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="MPShortName" nillable="false">
					<xs:annotation>
						<xs:documentation>Market Participant Short Name</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:minLength value="1"/>
							<xs:maxLength value="12"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="MPId" type="xs:integer">
					<xs:annotation>
						<xs:documentation>Market participant Identifier</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="DeliveryDate" type="xs:string">
					<xs:annotation>
						<xs:documentation>The month for which this data applies</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="EnergySummary">
					<xs:annotation>
						<xs:documentation>Customer Energy Summary</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="TotalMWh" type="xs:integer">
								<xs:annotation>
									<xs:documentation>Total monthly consumption</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="OffPeakMWh" type="xs:integer">
								<xs:annotation>
									<xs:documentation>Off-peak monthly consumption</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="OnPeakMWh" type="xs:integer">
								<xs:annotation>
									<xs:documentation>On-peak monthly consumption</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="AvgOZP" type="MW_decimal2">
								<xs:annotation>
									<xs:documentation>Average HOEP for the whole month</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="OnPeakOZP" type="MW_decimal2">
								<xs:annotation>
									<xs:documentation>Average HOEP for the on-peak period of the month</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="OffPeakOZP" type="MW_decimal2">
								<xs:annotation>
									<xs:documentation>Average HOEP for the off-peak period of the month</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="PeakHourData">
								<xs:annotation>
									<xs:documentation>Wrapper for the consumption data for the peak hour during the month</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="PeakDate" type="xs:date">
											<xs:annotation>
												<xs:documentation>Date the peak consumption occurred</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="PeakHour" type="xs:integer">
											<xs:annotation>
												<xs:documentation>Hour the peak consumption occurred</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="PeakMWh" type="MW_decimal3">
											<xs:annotation>
												<xs:documentation>Peak consumption</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="TTDCData">
								<xs:annotation>
									<xs:documentation>Wrapper for the TTDC data</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="TTDCPeakDate" type="xs:date">
											<xs:annotation>
												<xs:documentation>Date that the system peak for transmission charges occurred</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="TTDCPeakHour" type="xs:integer">
											<xs:annotation>
												<xs:documentation>Hour that the system peak for transmission changes occurred</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="TTDCPeakMWh" type="MW_decimal3">
											<xs:annotation>
												<xs:documentation>System peak for transmission charges</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="TTDCCoincidentMWh" type="MW_decimal3">
											<xs:annotation>
												<xs:documentation>The market participant consumption at system peak for transmission charges</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="GlobalAdjustmentData">
								<xs:annotation>
									<xs:documentation>Wrapper for the consumption data for the 5 highest Ontario ICI Demand dates and hours</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ICIPeakData" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>Wrapper for the consumption data for the Ontario ICI Demand date and hour</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="ICIDate" type="xs:date">
														<xs:annotation>
															<xs:documentation>The date of the peak Ontario ICI Demand</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="ICIHour" type="xs:integer">
														<xs:annotation>
															<xs:documentation>The hour ending on the peak Ontario ICI Demand date</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="ICIMWh" type="xs:integer">
														<xs:annotation>
															<xs:documentation>The Ontario ICI Demand on the peak Ontario ICI Demand date and hour</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="ICICoincidentMWh" type="MW_decimal3">
														<xs:annotation>
															<xs:documentation>The market participant consumption at the Ontario ICI Demand peak</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="HistoricalData">
								<xs:annotation>
									<xs:documentation>Wrapper for the consumption during the previous 13 months</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="MonthData" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>Wrapper for the consumption during the month</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="Month" type="xs:date">
														<xs:annotation>
															<xs:documentation>Month</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="MonthMWh" type="xs:integer">
														<xs:annotation>
															<xs:documentation>Consumption</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:simpleType name="MW_decimal2">
		<xs:annotation>
			<xs:documentation>The amount of Energy MW in deciaml</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MW_decimal3">
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="3"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>