Accommodation: Unterschied zwischen den Versionen
Sandk (Diskussion | Beiträge) |
(→Overview) |
||
Zeile 1: | Zeile 1: | ||
== Overview == | == Overview == | ||
Accommodation Services extend the CommonService to carry accommodation specific information. | 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 | + | 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). | Available attributes slightly differ for the given direction of the message (Request/Response). |
Version vom 29. Mai 2018, 10:38 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>
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>