<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
    xmlns:location="http://classic-trader.com/api-schema/location"
    elementFormDefault="qualified"
    targetNamespace="http://classic-trader.com/api-schema/location">
    <xs:element name="location">
        <xs:annotation>
            <xs:documentation>
                This element consists of various other elements describing the contact.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="location:postalCode" minOccurs="1" maxOccurs="1"/>
                <xs:element ref="location:city" minOccurs="1" maxOccurs="1"/>
                <xs:element ref="location:state" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="location:countryCode" minOccurs="1" maxOccurs="1"/>
                <xs:element ref="location:street" minOccurs="1" maxOccurs="1"/>
                <xs:element ref="location:showAddress" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="postalCode">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:minLength value="3"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    <xs:element name="city">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:minLength value="3"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    <xs:element name="state">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:minLength value="3"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    <xs:element name="countryCode">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:minLength value="2"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    <xs:element name="street">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:minLength value="3"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    <xs:element name="showAddress">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:minLength value="3"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
</xs:schema>