<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    targetNamespace="http://services.mobile.de/schema/seller/vehicle-1.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:types="http://services.mobile.de/schema/seller/types-1.0"
    xmlns:vehicle="http://services.mobile.de/schema/seller/vehicle-1.0"
    elementFormDefault="qualified">

    <xs:import namespace="http://services.mobile.de/schema/seller/types-1.0" schemaLocation="types-1.0.xsd"/>
    <xs:import namespace="http://services.mobile.de/schema/seller/site-specifics-1.0" schemaLocation="site-specifics-1.0.xsd"/>

    <xs:element name="vehicle">
        <xs:annotation>
            <xs:documentation>Vehicle specific attributes.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="classification" type="vehicle:classification"/>
                <xs:element name="model-description" type="types:stringValueType">
                    <xs:annotation>
                        <xs:documentation>Detailed description of the model. Also used as ad title. Example: Golf III
                            always parked in garage.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="vehicle:damage-and-unrepaired" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>See http://services.mobile.de/manual/damage.html.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="vehicle:accident-damaged" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>See http://services.mobile.de/manual/damage.html.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="vehicle:roadworthy" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>See http://services.mobile.de/manual/damage.html.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="vehicle:features" minOccurs="0"/>
                <xs:element ref="vehicle:specifics" minOccurs="0"/>
                <xs:element ref="vehicle:site-specifics" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>


    <xs:complexType name="classification">
        <xs:sequence>
            <xs:element name="vehicle-class" type="types:resourceRef">
                <xs:annotation>
                    <xs:documentation>The GENERAL classification of vehicles e.g. Car or Motorbike. See
                        https://services.mobile.de/refdata/sites/{site-key}/classes for possible values.
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="category" type="types:resourceRef">
                <xs:annotation>
                    <xs:documentation>The DETAILED classification of vehicles e.g. Cabrio or Limousine. See
                        https://services.mobile.de/refdata/sites/{site-key}/classes/{class-key}/categories for
                        possible values.
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="make" type="types:resourceRef">
                <xs:annotation>
                    <xs:documentation>Make of the vehicle e.g. Mercedes, Toyota. See
                        https://services.mobile.de/refdata/sites/{site-key}/classes/{class-key}/makes for possible
                        values.
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="model" type="types:resourceRef" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Model of the vehicle e.g. X5, Prius. See
                        https://services.mobile.de/refdata/sites/{site-key}/classes/{class-key}/makes/{make-key}/models
                        for possible values.
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>


    <xs:element name="site-specifics">
        <xs:complexType>
            <xs:sequence>
                <xs:any namespace="http://services.mobile.de/schema/seller/site-specifics-1.0" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
            <xs:attribute name="site-id" use="optional"></xs:attribute>
        </xs:complexType>
    </xs:element>


    <xs:element name="damage-and-unrepaired" type="types:booleanValueType">
        <xs:annotation>
            <xs:documentation>field which describes if the vehicle has an considerable unrepaired damage
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="accident-damaged" type="types:booleanValueType">
        <xs:annotation>
            <xs:documentation>the vehicle once had an accident which may be repaired or not</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="roadworthy" type="types:booleanValueType">
        <xs:annotation>
            <xs:documentation>the vehicle is ready to drive</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="features">
        <xs:annotation>
            <xs:documentation>Contains all possible features for a vehicle e.g. ESP, sunroof. See
                https://services.mobile.de/refdata/sites/{site-key}/classes/{class-key}/features for possible
                values.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="vehicle:feature" minOccurs="1" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="feature" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Describes a single feature e.g. ESP, sunroof. See
                https://services.mobile.de/refdata/sites/{site-key}/classes/{class-key}/features for possible
                values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="specifics">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="vehicle:exterior-color" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:mileage" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:door-count" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:emission-class" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:emission-fuel-consumption" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:fuel" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:power" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:gearbox" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:climatisation" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:licensed-weight" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:axles" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:load-capacity" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:num-seats" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:operating-hours" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:installation-height" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:lifting-capacity" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:lifting-height" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:construction-year" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:construction-date" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:cubic-capacity" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:driving-mode" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:driving-cab" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:condition" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:usage-type" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:country-version" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:video-url" minOccurs="0" maxOccurs="1"/>
                <xs:choice minOccurs="0">
                    <xs:element ref="vehicle:delivery-date"/>
                    <xs:element ref="vehicle:delivery-period"/>
                </xs:choice>
                <xs:element ref="vehicle:wheel-formula" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:number-of-bunks" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:hydraulic-installation" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:europallet-storage-spaces" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:dimension" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:shipping-volume" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:loading-space" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:identification-number" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:used-car-seal" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:interior-color" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:interior-type" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:airbag" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:number-of-previous-owners" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:parking-assistants" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:speed-control" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:radio" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:daytime-running-lamps" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:sliding-door-type" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:headlight-type" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:bending-lights-type" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:breakdown-service" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:battery" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:trailer-coupling-type" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:trim-line" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:model-range" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:first-models-production-date" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="vehicle:battery-capacity" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="used-car-seal" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>The dealer must be on a list of allowed dealers for that. See
                https://services.mobile.de/refdata/sites/{site-key}/classes/{class-key}/usedcarseals for possible
                values. Also see http://services.mobile.de/manual/used-car-seals_en.html for semantic validation rules.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="dimension" type="types:dimensionType">
        <xs:annotation>
            <xs:documentation>Details on the dimension of the vehicle</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="loading-space" type="types:dimensionType">
        <xs:annotation>
            <xs:documentation>Details about the maximum loading-space. Notation in cubic meter, integer. Information
                only for trucks, trailers and semitrailoers.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="wheel-formula" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>The actuation of the vehicle. See https://services.mobile.de/refdata/wheelformulas
                for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="number-of-bunks" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>The number of bunks. Information only for WoMo</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="hydraulic-installation" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Indicates the type of hydraulic installation. See
                https://services.mobile.de/refdata/hydraulicinstallations for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="europallet-storage-spaces" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Information about how many europalletes suit in the vehicle. Information only for trucks,
                trailers and semitrailers.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="shipping-volume" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Details on the shipping volume. Notation in cubic meter, integer. Information only for
                trucks, trailers and semitrailers.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="identification-number" type="types:stringValueType">
        <xs:annotation>
            <xs:documentation>TODO</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="exterior-color">
        <xs:annotation>
            <xs:documentation>The mobile.de color name. This is a fixed set of colors. Sub-element
                manufacturer-color-name is a free text field for color. See
                https://services.mobile.de/refdata/colors for possible values.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="types:resourceRef">
                    <xs:sequence>
                        <xs:element ref="vehicle:metallic" minOccurs="0"/>
                        <xs:element ref="vehicle:manufacturer-color-name" minOccurs="0"/>
                    </xs:sequence>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>

    <xs:element name="metallic" type="types:booleanValueType">
        <xs:annotation>
            <xs:documentation>Is it a metallic color?</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="manufacturer-color-name" type="types:stringValueType">
        <xs:annotation>
            <xs:documentation>The manufacturer-color-name. Free text.</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="mileage" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Real amount of mileage of the vehicle, integer.</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="delivery-date" type="types:dateValueType">
        <xs:annotation>
            <xs:documentation>Date where the vehicle is ready to be delivered to the customer. Format: tt.mm.yyyy .
                For
                newcars either delivery-date or delivery-period must be set.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="delivery-period" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Time-span until the vehicle is ready to be delivered. Information only for new vehicles.
                For newcars either delivery-date or delivery-period must be set.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="door-count" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Number of doors. See https://services.mobile.de/refdata/doorcounts for possible
                values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="first-registration" type="types:gYearMonthValueType">
        <xs:annotation>
            <xs:documentation>Timestamp representing the date of the first-registration. Format: mm.yyyy
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="emission-fuel-consumption">
        <xs:annotation>
            <xs:documentation>This element contains various fuel consumption and emission values.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:attribute name="envkv-compliant" use="optional" type="xs:boolean">
                <xs:annotation>
                    <xs:documentation>Do the given values comply with the German PKW-EnvKV act (Verordnung über
                        Verbraucherinformationen zu Kraftstoffverbrauch, CO2-Emissionen und Stromverbrauch neuer
                        Personenkraftwagen)?
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="energy-efficiency-class" use="optional" type="xs:string">
                <xs:annotation>
                    <xs:documentation>best (A+, A, B, C, D, E, F or G) worst</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="co2-emission" use="optional" type="xs:decimal">
                <xs:annotation>
                    <xs:documentation>CO2 emission. The unit is g/km. Is set to 0 for fuel type electricity.
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="inner" use="optional" type="xs:decimal">
                <xs:annotation>
                    <xs:documentation>Fuel consumption urban. For write usecases, the unit is derived from the fuel type
                        (kg/100km for CNG and l/100km for all others) and is ignored for fuel type electricity.
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="outer" use="optional" type="xs:decimal">
                <xs:annotation>
                    <xs:documentation>Fuel consumption extra urban. For write usecases, the unit is derived from the
                        fuel type (kg/100km for CNG and l/100km for all others) and is ignored for fuel type
                        electricity.
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="combined" use="optional" type="xs:decimal">
                <xs:annotation>
                    <xs:documentation>Fuel consumption combined (urban and extra urban). For write usecases, the unit is
                        derived from the fuel type (kg/100km for CNG, kWh/100km for electricity and l/100km for all
                        others).
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="unit" use="optional">
                <xs:annotation>
                    <xs:documentation>The unit of the consumption values. This element is only readonly. For write
                        usecases the unit is derived from the fuel type.
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="LITER_PER_100_KM">
                            <xs:annotation>
                                <xs:documentation>For all liquid fuel types including LPG.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CUBIC_METER_PER_100_KM">
                            <xs:annotation>
                                <xs:documentation>Deprecated. Was for fuel type CNG.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="KILOGRAMM_PER_100_KM">
                            <xs:annotation>
                                <xs:documentation>For fuel type CNG.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="KILOWATT_HOUR_PER_100_KM">
                            <xs:annotation>
                                <xs:documentation>For fuel type electricity.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="petrol-type" use="optional">
                <xs:annotation>
                    <xs:documentation>When you want to provide EnVKV compliant values, for fuel type petrol, you have to
                        specify the exact petrol type, that the consumption values are based on.
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="NORMAL">
                            <xs:annotation>
                                <xs:documentation>RON 91</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="SUPER">
                            <xs:annotation>
                                <xs:documentation>RON 95</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="SUPER_PLUS">
                            <xs:annotation>
                                <xs:documentation>RON 98</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="combined-power-consumption" use="optional" type="xs:decimal">
                <xs:annotation>
                    <xs:documentation>Combined electric energy consumption for plugin hybrid. The unit is kWh/100km.
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
        </xs:complexType>
    </xs:element>

    <xs:element name="emission-class" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>EURO 1, 2, 3, 4, .... See
                https://services.mobile.de/refdata/emissionclasses for
                possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="fuel" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Type of fuel. See https://services.mobile.de/refdata/fuels for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="power" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Power of the vehicle. Notation in KW, integer</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="gearbox" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Stickshift, automatic? See https://services.mobile.de/refdata/gearboxes for possible
                values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="climatisation" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information on the climatisation of the vehicle. See
                https://services.mobile.de/refdata/climatisations for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="licensed-weight" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Notation in kg, integer. Information only for commercial vehicles.</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="axles" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Number of axles, integer. Information only for commercial vehicles</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="load-capacity" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Notation in kg, integer. Information only for commercial vehicles</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="num-seats" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>number of seats. Information only for Buses</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="operating-hours" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Notation integer. Information only for commercial vehicles</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="installation-height" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Notation in mm, integer. Information only for commercial vehicles</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="lifting-capacity" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Notation in kg, integer. Information only for commercial vehicles</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="lifting-height" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Notation in mm, integer. Information only for commercial vehicles</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="construction-year" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Format: yyyy. Information only for commercial vehicles </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="construction-date" type="types:dateValueType">
        <xs:annotation>
            <xs:documentation>The day when the vehicle was built</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="cubic-capacity" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Cubic-capacity of the engine. Notation integer. Information only for motorcycles
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="driving-mode" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Does the motorbike have a chain or something else? See
                https://services.mobile.de/refdata/drivingmodes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="driving-cab" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the cab of the truck. See
                https://services.mobile.de/refdata/drivingcabs for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="condition" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Is the vehicle new or used? See https://services.mobile.de/refdata/conditions for
                possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="usage-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Type of used car. See https://services.mobile.de/refdata/usagetypes for possible
                values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="interior-color" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the color of the interior of the vehicle. See
                https://services.mobile.de/refdata/interiorcolors for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="interior-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the material used in the interior of the vehicle. See
                https://services.mobile.de/refdata/interiortypes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="airbag" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the airbags of the vehicle. See
                https://services.mobile.de/refdata/airbags for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="country-version" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>ISO-3166-1 alpha-2 code of the country for which the vehicle was built. See
                https://services.mobile.de/refdata/countryversion for possible values. For newcars
                this field is
                mandatory.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="video-url" type="types:stringValueType">
        <xs:annotation>
            <xs:documentation>Youtube url in youtube.com/xxx format</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="number-of-previous-owners" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Information about the number of previous owners of the vehicle</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="parking-assistants">
        <xs:annotation>
            <xs:documentation>Information about the parkingassistants of the vehicle. See
                https://services.mobile.de/refdata/parkingassistants for possible values.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="vehicle:parking-assistant" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="parking-assistant" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the parkingassistants of the vehicle. See
                https://services.mobile.de/refdata/parkingassistants for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="speed-control" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the speed control of the vehicle. See
                https://services.mobile.de/refdata/speedcontrols for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="radio">
        <xs:annotation>
            <xs:documentation>Information about the radio of the vehicle. See
                https://services.mobile.de/refdata/radiotypes for possible values.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="vehicle:radio-type" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="radio-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the radio of the vehicle. See
                https://services.mobile.de/refdata/radiotypes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="daytime-running-lamps" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the type of daytime running lamps of the vehicle. See
                https://services.mobile.de/refdata/daytimerunninglamps for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="sliding-door-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the type of sliding door of the vehicle. See
                https://services.mobile.de/refdata/slidingdoortypes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="headlight-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the headlight types of the vehicle. See
                https://services.mobile.de/refdata/headlighttypes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="bending-lights-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the type of cornering/bending lights of the vehicle. See
                https://services.mobile.de/refdata/bendinglightstypes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="breakdown-service" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the type of breakdown service kit of the vehicle. See
                https://services.mobile.de/refdata/breakdownservices for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="battery" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the battery of the electric vehicle. See
                https://services.mobile.de/refdata/batteries for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="trailer-coupling-type" type="types:resourceRef">
        <xs:annotation>
            <xs:documentation>Information about the trailer coupling type of the vehicle. See
                https://services.mobile.de/refdata/trailercouplingtypes for possible values.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="trim-line" type="types:stringValueType">
        <xs:annotation>
            <xs:documentation>Information about the trim line a.k.a feature sets (Ausstattungslinie) of the vehicle.</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="model-range" type="types:stringValueType">
        <xs:annotation>
            <xs:documentation>Information about the model range a.k.a. Baureihe of the vehicle.</xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="first-models-production-date" type="types:gYearMonthValueType">
        <xs:annotation>
            <xs:documentation>Timestamp representing the date of the first models production date. Format: mm.yyyy
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="battery-capacity" type="types:unsignedIntValueType">
        <xs:annotation>
            <xs:documentation>Battery capacity of the vehicle. Notation in kWh, integer</xs:documentation>
        </xs:annotation>
    </xs:element>


</xs:schema>
