File Differences Analysis

Generated by CSDiff on 2002/01/03 4:09 PM

Base file: Schema 2_0\PaymentAdviceTotal.xsd

Compared file: schemas_211201\PaymentAdviceTotal.xsd

<?xml version = "1.0" encoding = "ISO-8859-1"?>

<!-- Payment Advice Total 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"/>

<!--                                                -->
<!--    Payment Advice Total Main Section           -->
<!--                                                -->

    <xsd:complexType name = "PaymentAdviceTotal">
        <xsd:sequence>
            <xsd:element name = "PaymentRouting">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name = "Sender"        type = "FinancialInstitutionInformation"/>
                        <xsd:element name = "Recipient"     type = "FinancialInstitutionInformation"/>
                    </xsd:sequence>
                    <xsd:attribute name = "Method"          type = "Method" use = "required"/>
                    <xsd:attribute name = "SettlementDate"  type = "date" use = "required"/>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name = "RemittanceInformation" type = "RemittanceInformationPaymentAdviceTotal"/>
        </xsd:sequence>
            
        <xsd:attribute name = "TraceNumber"             type = "lengthThirty" use="optional"/>
    </xsd:complexType>

<!--                                                -->
<!--    Payment Advice Total Definitions            -->
<!--                                                -->

<!-- -->
    <xsd:simpleType name = "AccountType">
        <xsd:restriction base = "xsd:string">
            <xsd:enumeration value = "Chequing"/>
            <xsd:enumeration value = "Savings"/>
        </xsd:restriction>
    </xsd:simpleType>

<!-- -->
    <xsd:simpleType name = "Method">
        <xsd:restriction base = "xsd:string">
            <xsd:enumeration value = "DirectDeposit"/>
            <xsd:enumeration value = "Cheque"/>
            <xsd:enumeration value = "WireTransfer"/>
        </xsd:restriction>
    </xsd:simpleType>

<!-- -->
    <xsd:complexType name = "RemittanceInformationPaymentAdviceTotal">
        <xsd:sequence>
            <xsd:element name = "TotalAmount"   type = "dollarAmount"/>
        </xsd:sequence>
    </xsd:complexType>

<!-- -->
    <xsd:complexType name = "FinancialInstitutionInformation">
        <xsd:sequence>
            <xsd:element name = "InstitutionName"   type = "lengthSixty"/>
            <xsd:element name = "TransitNumber"     type = "lengthThirty"/>
            <xsd:element name = "AccountType"       type = "AccountType"/>
            <xsd:element name = "AccountNumber"     type = "lengthThirty"/>
        </xsd:sequence>
    </xsd:complexType>

</xsd:schema>