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

CardZoneRequest

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

 

<?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="CardZoneRequest" type="cardZoneRequest"/>

    <xs:complexType name="cardZoneRequest">
        <xs:all>
            <xs:element name="MerchantId" type="merchantId"/>
            <xs:element name="TerminalId" type="terminalId" minOccurs="0"/>
            <xs:element name="TrackingId" type="trackingId"/>
            <xs:element name="CardFromNumber" type="cardFromNumber" minOccurs="0"/>
            <xs:element name="CardToNumber" type="cardToNumber" minOccurs="0"/>
            <xs:element ref="ds:Signature" minOccurs="0"/>
        </xs:all>
    </xs:complexType>
    <xs:simpleType name="merchantId">
        <xs:restriction base="xs:string">
        <xs:pattern value="[A-Za-z0-9]{1,15}"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="terminalId">
        <xs:restriction base="xs:string">
            <xs:pattern value="[A-Za-z0-9]{1,8}"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="trackingId">
        <xs:restriction base="xs:string">
            <xs:pattern value="[A-Za-z0-9]{1,16}"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="cardFromNumber">
        <xs:restriction base="xs:string">
            <xs:pattern value="[0-9]{13,19}"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="cardToNumber">
        <xs:restriction base="xs:string">
            <xs:pattern value="[0-9]{13,19}"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>