Generated by
CSDiff on 2002/01/03 3:42 PM<?xml version = "1.0" encoding = "ISO-8859-1"?> <!-- Invoice Rate Ready Schema for Ontario v2.0 2001/08/031 2001/12/21 --> <xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns = "http://www.oeb.gov.on.ca/" (Item #570) targetNamespace = "http://www.oeb.gov.on.ca/" (Item #570) elementFormDefault="qualified"> <xsd:include schemaLocation = "SimpleTypes.xsd"/> <xsd:include schemaLocation = "CommonTypes.xsd"/> <!-- --> <!-- Invoice Rate Ready Main Section --> <!-- --> <xsd:complexType name = "InvoiceRateReady"> <xsd:sequence> <xsd:element name = "ConsumerInformation" type = "ConsumerInformationStandard"/> <xsd:element name = "AccountInformation" type = "AccountInformationInvoiceRateReady"/> <xsd:element name = "InvoiceInformation" type = "InvoiceInformationInvoiceRateReady"/> </xsd:sequence> <xsd:attribute name = "BillPurpose" type = "billPurpose" use = "required"/> <xsd:attribute name = "TransactionCrossReferenceNumber" type = "lengthThirty" use = "required"/> <xsd:attribute name = "OriginalTransactionReferenceNumber" type = "lengthThirty" use = "optional"/> (Item #600) </xsd:complexType> <!-- --> <!-- Invoice Rate Ready Definitions --> <!-- --> <xsd:complexType name = "AccountChargesInvoiceRateReady"> <xsd:sequence> <xsd:element name = "AccountCharge" minOccurs = "1" maxOccurs = "unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name = "ChargeCategory" type = "chargeCategory"/> <xsd:element name = "ChargeDescription" type = "lengthEighty"/> <xsd:element name = "Amount" type = "dollarAmount"/> <xsd:element name = "Taxes" type = "TaxesInvoiceRateReady"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "AccountInformationInvoiceRateReady"> <xsd:sequence> <xsd:element name = "ValidationInformation" type = "ValidationInformationStandard"/> <xsd:element name = "ConsumerAccountNumber" type = "ConsumerAccountNumber" minOccurs = "1" maxOccurs = "2"/> <xsd:element name = "CommodityType" type = "commodityType"/> <xsd:element name = "BillingCycle" type = "BillingCycle"/> </xsd:sequence> <xsd:attribute name = "LanguagePreference" type = "languagePreference" use = "required"/> <xsd:attribute name = "BillingMethod" type = "billingMethod" use = "required"/> </xsd:complexType> <!-- --> <xsd:complexType name = "InvoiceInformationInvoiceRateReady"> <xsd:sequence> <xsd:element name = "ServicePeriod" type = "ServicePeriod"/> <xsd:element name = "InvoiceSummary" type = "InvoiceSummaryInvoiceRateReady"/> <xsd:element name = "AccountCharges" type = "AccountChargesInvoiceRateReady" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "RateCharges" type = "RateChargesInvoiceRateReady" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "ServiceCharges" type = "ServiceChargesInvoiceRateReady" minOccurs = "0" maxOccurs = "1"/> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "InvoiceSummaryInvoiceRateReady"> <xsd:sequence> <xsd:element name = "InvoiceDate" type = "date"/> <xsd:element name = "InvoiceNumber" type = "lengthThirty"/> <xsd:element name = "InvoiceDueDate" type = "date"/> <xsd:element name = "TotalCurrentAmountDue" type = "dollarAmount"/> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "MeteredInformationInvoiceRateReady"> <xsd:sequence> <xsd:element name = "MeterNumber" type = "MeterNumber"/> <xsd:element name = "RateCode" type = "RateCode" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "RateAmount" type = "RateAmount" minOccurs = "0" maxOccurs = "1"/> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "MeteredUsageDetailInvoiceRateReady"> <xsd:sequence> <xsd:element name = "UsageData" type = "UsageData" minOccurs = "1" maxOccurs = "unbounded"/> </xsd:sequence> <xsd:attribute name = "UnitOfMeasure" type = "unitOfMeasure" use = "required"/> </xsd:complexType> <!-- --> <xsd:complexType name = "RateChargesInvoiceRateReady"> <xsd:sequence> <xsd:element name = "RateCharge" minOccurs = "1" maxOccurs = "unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name = "ChargeCategory" type = "lengthThirtchargeCategory"/> (Item #587) <xsd:element name = "ChargeDescription" type = "lengthEighty"/> <xsd:element name = "Amount" type = "dollarAmount"/> <xsd:element name = "RateCode" type = "RateCode" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "RateAmount" type = "RateAmount" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "RateUsageDetail" type = "RateUsageDetailInvoiceRateReady"/> <xsd:element name = "Taxes" type = "TaxesInvoiceRateReady"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "RateUsageDetailInvoiceRateReady"> <xsd:sequence> <xsd:element name = "UsageData" type = "UsageData" minOccurs = "1" maxOccurs = "unbounded"/> </xsd:sequence> <xsd:attribute name = "UnitOfMeasure" type = "unitOfMeasure" use = "required"/> </xsd:complexType> <!-- --> <xsd:complexType name = "ServiceChargesInvoiceRateReady"> <xsd:sequence> <xsd:element name = "ServiceCharge" minOccurs = "1" maxOccurs = "unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name = "ChargeCategory" type = "lengthThirtchargeCategory"/> (Item #587) <xsd:element name = "ChargeDescription" type = "lengthEighty"/> <xsd:element name = "Amount" type = "dollarAmount"/> <xsd:element name = "ServiceInformation"> <xsd:complexType> <xsd:sequence> <xsd:choice> <xsd:element name = "UnmeteredInformation" type = "UnmeteredInformationInvoiceRateReady"/> <xsd:element name = "MeteredInformation" type = "MeteredInformationInvoiceRateReady"/> </xsd:choice> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name = "UsageInformation" type = "UsageInformationInvoiceRateReady"/> <xsd:element name = "Taxes" type = "TaxesInvoiceRateReady"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "TaxesInvoiceRateReady"> <xsd:sequence> <xsd:element name = "Tax" minOccurs = "1" maxOccurs = "unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name = "TaxDescription" type = "lengthEighty" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "Amount" type = "dollarAmount"/> </xsd:sequence> <xsd:attribute name = "TaxType" type = "taxType" use = "required"/> <xsd:attribute name = "TaxExemptStatus" type = "yesNo" use = "required"/> <xsd:attribute name = "TaxExemptNumber" type = "lengthThirty" use = "optional"/> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "UnmeteredInformationInvoiceRateReady"> <xsd:sequence> <xsd:element name = "ServiceType" type = "lengthThirty"/> <xsd:element name = "ServiceId" type = "lengthThirty"/> <xsd:element name = "NumberOfUnits" type = "lengthFive"/> <xsd:element name = "RateCode" type = "RateCode" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "RateAmount" type = "RateAmount" minOccurs = "0" maxOccurs = "1"/> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "UnmeteredUsageDetailInvoiceRateReady"> <xsd:sequence> <xsd:element name = "UsageData" type = "UsageData"/> </xsd:sequence> <xsd:attribute name = "UnitOfMeasure" type = "unitOfMeasure" use = "required"/> </xsd:complexType> <!-- --> <xsd:complexType name = "UsageInformationInvoiceRateReady"> <xsd:choice> <xsd:element name = "MeteredUsageDetail" type = "MeteredUsageDetailInvoiceRateReady" minOccurs = "1" maxOccurs = "unbounded"/> <xsd:element name = "UnmeteredUsageDetail" type = "UnmeteredUsageDetailInvoiceRateReady" minOccurs = "1" maxOccurs = "unbounded"/> </xsd:choice> </xsd:complexType> </xsd:schema>