Ви знаходитеся тут: Головна / Подключение Money Transfer / XSD scheme / StatusResponse

StatusResponse

створив(ла) Igor Uleschenko Востаннє змінено: Вер 12, 2019 10:35

 

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
           version="1.0"
           elementFormDefault="qualified"
           attributeFormDefault="qualified">

    <xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
               schemaLocation="classpath:schemas/xmldsig-core-schema.xsd"/>

    <xs:element name="CardInfo" type="cardBinInfo"/>

    <xs:element name="CardZoneResponse" type="cardZoneResponse"/>

    <xs:element name="StatusResponse" type="statusResponse"/>

    <xs:element name="Status" type="statusElement"/>

    <xs:element name="TransactionResponse" type="transactionResponse"/>

    <xs:element name="tranCliche" type="tranCliche"/>

    <xs:element name="tranResult" type="tranResult"/>

    <xs:complexType name="statusResponse">
        <xs:all>
            <xs:element minOccurs="0" ref="Status"/>
            <xs:element minOccurs="0" name="CardZoneResponses">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" ref="CardZoneResponse"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="TransactionResponses">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" ref="TransactionResponse"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="cardZoneResponse">
        <xs:all>
            <xs:element name="TrackingId" type="xs:string"/>
            <xs:element name="Status" type="status"/>
            <xs:element minOccurs="0" name="CardFromInfo" type="cardBinInfo"/>
            <xs:element minOccurs="0" name="CardToInfo" type="cardBinInfo"/>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="status">
        <xs:all>
            <xs:element name="Code" type="xs:string"/>
            <xs:element name="Message" type="xs:string"/>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="statusElement">
        <xs:all>
            <xs:element minOccurs="0" name="Code" type="xs:string"/>
            <xs:element minOccurs="0" name="Message" type="xs:string"/>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="cardBinInfo">
        <xs:all>
            <xs:element name="CountryCode" type="xs:string"/>
            <xs:element name="CardType" type="xs:string"/>
            <xs:element name="Brand" type="cardBrand"/>
            <xs:element name="CardZone" type="cardZone"/>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="transactionResponse">
        <xs:all>
            <xs:element name="TrackingId" type="xs:string"/>
            <xs:element name="Status" type="status"/>
            <xs:element minOccurs="0" name="FundingResult" type="tranResult"/>
            <xs:element minOccurs="0" name="PaymentResult" type="tranResult"/>
            <xs:element ref="ds:Signature" minOccurs="0"/>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="tranResult">
        <xs:sequence>
            <xs:element name="Date" type="xs:string"/>
            <xs:element name="CVResult" type="xs:string" minOccurs="0"/>
            <xs:element name="MerchantCliche" type="tranCliche" minOccurs="0"/>
            <xs:element name="ApprovalCode" type="xs:string"/>
            <xs:element name="AuthCode" type="xs:string"/>
            <xs:element name="RRN" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="tranCliche">
        <xs:sequence>
            <xs:element name="MerchantId" type="xs:string"/>
            <xs:element name="TerminalId" type="xs:string"/>
            <xs:element name="MCC" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>

    <xs:simpleType name="cardBrand">
        <xs:restriction base="xs:string">
            <xs:enumeration value="VISA"/>
            <xs:enumeration value="MAST"/>
            <xs:enumeration value="MAES"/>
            <xs:enumeration value="ONIX"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="cardZone">
        <xs:restriction base="xs:string">
            <xs:enumeration value="NATIVE"/>
            <xs:enumeration value="LOCAL"/>
            <xs:enumeration value="DOMESTIC"/>
            <xs:enumeration value="CROSS_BOARD"/>
            <xs:enumeration value="FORBIDDEN"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>