Accommodation: Unterschied zwischen den Versionen

Aus DRV STRING
Wechseln zu: Navigation, Suche
(Added Room ELement)
K
Zeile 114: Zeile 114:
 
Whereas the code in these elements is intended to be used mainly in a technical manner and the description to be used for presentation, the description is an optional element. If not set, the code has to be used to describe room, board or included extras.
 
Whereas the code in these elements is intended to be used mainly in a technical manner and the description to be used for presentation, the description is an optional element. If not set, the code has to be used to describe room, board or included extras.
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
<v0:Room>
+
<Room>
<v0:Identifier>01</v0:Identifier>
+
<Identifier>01</Identifier>
<v0:AssignedTraveller>
+
<AssignedTraveller>
<v0:Identifier>01</v0:Identifier>
+
<Identifier>01</Identifier>
<v0:Identifier>02</v0:Identifier>
+
<Identifier>02</Identifier>
</v0:AssignedTraveller>
+
</AssignedTraveller>
<v0:RoomCode>
+
<RoomCode>
<v0:Code>DS</v0:Code>
+
<Code>DS</Code>
<v0:Attributes>
+
<Attributes>
<v0:Attribute>
+
<Attribute>
<v0:Code>SAFE</v0:Code>
+
<Code>SAFE</Code>
<v0:Description>Safe</v0:Description>
+
<Description>Safe</Description>
<v0:AttributeSource>Touroperator</v0:AttributeSource>
+
<AttributeSource>Touroperator</AttributeSource>
</v0:Attribute>
+
</Attribute>
<v0:Attribute>
+
<Attribute>
<v0:Code>DESK</v0:Code>
+
<Code>DESK</Code>
<v0:Description>Schreibtisch</v0:Description>
+
<Description>Schreibtisch</Description>
<v0:AttributeSource>Touroperator</v0:AttributeSource>
+
<AttributeSource>Touroperator</AttributeSource>
</v0:Attribute>
+
</Attribute>
</v0:Attributes>
+
</Attributes>
<v0:Description>
+
<Description>
<v0:Text>Doppelzimmer Superior</v0:Text>
+
<Text>Doppelzimmer Superior</Text>
</v0:Description>
+
</Description>
<v0:Description>
+
<Description>
<v0:Text>Zimmer größer als der Durchschnitt in Paris: 40 m², mit großem Doppelbett</v0:Text>
+
<Text>Zimmer größer als der Durchschnitt in Paris: 40 m², mit großem Doppelbett</Text>
</v0:Description>
+
</Description>
</v0:RoomCode>
+
</RoomCode>
<v0:Board>
+
<Board>
<v0:Code>BF</v0:Code>
+
<Code>BF</Code>
<v0:Description>
+
<Description>
<v0:Text>Frühstück</v0:Text>
+
<Text>Frühstück</Text>
</v0:Description>
+
</Description>
</v0:Board>
+
</Board>
<v0:IncludedExtras>
+
<IncludedExtras>
<v0:IncludedExtra>
+
<IncludedExtra>
<v0:ExtraCode>
+
<ExtraCode>
<v0:Code>WIFI</v0:Code>
+
<Code>WIFI</Code>
<v0:Description>Kostenfreies WLAN auf allen Zimmern</v0:Description>
+
<Description>Kostenfreies WLAN auf allen Zimmern</Description>
</v0:ExtraCode>
+
</ExtraCode>
</v0:IncludedExtra>
+
</IncludedExtra>
</v0:IncludedExtras>
+
</IncludedExtras>
<v0:State>OK</v0:State>
+
<State>OK</State>
</v0:Room>
+
</Room>
 
</syntaxhighlight>
 
</syntaxhighlight>

Version vom 11. Juni 2018, 11:00 Uhr

Overview

Accommodation Services extend the CommonService to carry accommodation specific information. The main element holds basic service information to give a brief overview about the main characteristics which are fully inherited by the CommonService Element. Accommodation specific information are held using a List of room elements and a List of transfer elements.

Available attributes slightly differ for the given direction of the message (Request/Response).

Request element

<Accommodation>
    <!-- CommonService elements -->
    ...
    <!-- Accommodation specific elements -->
    <Rooms>
        <Room>
            <Identifier>01</Identifier>
            <AssignedTraveller>
                <Identifier>01</Identifier>
                <Identifier>02</Identifier>
            </AssignedTraveller>
            <RoomCode>
                <Code>DS</Code>
            </RoomCode>
            <Board>
                <Code>BF</Code>
            </Board>
            <CustomerRequests>
                <Description>
                    <Text>Superior Doppelzimmer mit Frühstück</Text>
                </Description>
            </CustomerRequests>
        </Room>
    </Rooms>
</Accommodation>

Full File

In case of a Request the structure is also capable of holding service related customerRequests for a desired CheckIn/Out time.

Response Element

The Response on the other hand is meant to represent the view of the TourOperator on the request. In case of CheckIn/out Times the values are either reflected in meaning of confirmation or correction. The Response also carries more specific information about the requested accommodation service like LocationDetails or a Stay element to inform about charged nights and CheckIn/Out Times.

<Accommodation>
     <!-- CommonService elements -->
     ...
     <!-- Accommodation specific elements -->
    <LocationDetails>
        <GeoLocation>
            <Longitude>2.314477</Longitude>
            <Latitude>48.87173</Latitude>
        </GeoLocation>
        <Contact>
            <Mail>reservations.lebristolparis@oetkercollection.com</Mail>
            <Phone>+33 153 43 43 00</Phone>
            <URL>http://www.lebristolparis.com/eng/home</URL>
        </Contact>
        <Address>
            <AddressLines>
                <AddressLine>Le Bristol Paris</AddressLine>
            </AddressLines>
            <Street>Rue du Faubourg Saint Honoré</Street>
            <Additional>08. Arrondissement - Champs Élysées</Additional>
            <HouseNumber>112</HouseNumber>
            <ZIPCode>75008</ZIPCode>
            <City>Paris</City>
            <Country>
                <Name>Frankreich</Name>
                <CountryCode>FR</CountryCode>
            </Country>
        </Address>
        <Regions>
            <Region>
                <Code>FR-IDF</Code>
                <Description>
                    <Text>Ille de France</Text>
                </Description>
            </Region>
        </Regions>
    </LocationDetails>
    <Rooms>
        <Room>
            <Identifier>01</Identifier>
            <AssignedTraveller>
                <Identifier>01</Identifier>
                <Identifier>02</Identifier>
            </AssignedTraveller>
            <RoomCode>
                <Code>DS</Code>
                <Description>
                    <Text>Doppelzimmer Superior</Text>
                </Description>
                <Description>
                    <Text>Zimmer größer als der Durchschnitt in Paris: 40 m², mit großem Doppelbett</Text>
                </Description>
            </RoomCode>
            <Board>
                <Code>BF</Code>
            </Board>
            <State>OK</State>
        </Room>
    </Rooms>
    <Stay>
        <ChargedNights>7</ChargedNights>
        <CheckInOut/>
    </Stay>
</Accommodation>

Full File

Room Element

A Room-Element, as the name suggests, represents a physical room in the accommodation facility. Each room has an (optional) List of assigned travellers, which can be used to directly assign the travellers to a specific room.

It is represented by a RoomCode Element holding code and description of the room category. Specific attributes of the room (like room facilities). In addition to that, it holds the selected board and a List of included extra services, all represented by a code and a description. Whereas the code in these elements is intended to be used mainly in a technical manner and the description to be used for presentation, the description is an optional element. If not set, the code has to be used to describe room, board or included extras.

<Room>
	<Identifier>01</Identifier>
	<AssignedTraveller>
		<Identifier>01</Identifier>
		<Identifier>02</Identifier>
	</AssignedTraveller>
	<RoomCode>
		<Code>DS</Code>
		<Attributes>
			<Attribute>
				<Code>SAFE</Code>
				<Description>Safe</Description>
				<AttributeSource>Touroperator</AttributeSource>
			</Attribute>
			<Attribute>
				<Code>DESK</Code>
				<Description>Schreibtisch</Description>
				<AttributeSource>Touroperator</AttributeSource>
			</Attribute>
		</Attributes>
		<Description>
			<Text>Doppelzimmer Superior</Text>
		</Description>
		<Description>
			<Text>Zimmer größer als der Durchschnitt in Paris: 40 m², mit großem Doppelbett</Text>
		</Description>
	</RoomCode>
	<Board>
		<Code>BF</Code>
		<Description>
			<Text>Frühstück</Text>
		</Description>
	</Board>
	<IncludedExtras>
		<IncludedExtra>
			<ExtraCode>
				<Code>WIFI</Code>
				<Description>Kostenfreies WLAN auf allen Zimmern</Description>
			</ExtraCode>
		</IncludedExtra>
	</IncludedExtras>
	<State>OK</State>
</Room>