Accommodation: Unterschied zwischen den Versionen
Sandk (Diskussion | Beiträge) |
Sandk (Diskussion | Beiträge) |
||
Zeile 26: | Zeile 26: | ||
<CustomerRequests> | <CustomerRequests> | ||
<Description> | <Description> | ||
− | <Text>Superior Doppelzimmer mit | + | <Text>Superior Doppelzimmer mit Frühstück</Text> |
</Description> | </Description> | ||
</CustomerRequests> | </CustomerRequests> | ||
Zeile 38: | Zeile 38: | ||
=== Response Element === | === 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 | + | 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. |
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
Zeile 106: | Zeile 106: | ||
</Accommodation> | </Accommodation> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | [http://string.drv.de/downloads/releases/release-0.9.2/examples/Booking/UC01rs.xml Full File] |
Version vom 25. Mai 2018, 10:55 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 caracteristics 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>