This example covers two common business cases.
- Split stay, one guest staying in the same room type, but for non continuous intervals. For example mon-wed and fri-sun.
- One reservation with multiple room types (hence multiple RoomStays) with only one ResGuest provided.
Example
NOTE: Some of the sections are left out for clarity, as they don't impact on this example. Follow on from the example in the OTA_ResRetrieveRS to fill in the missing bits
...
Daily Rates
The example below shows daily rates when the same rate applies to both dates (2012-03-12 and 2012-03-13) and no extra fees and/or charges applies.
Code Block |
---|
language | html/xml |
---|
title | Daily Rates |
---|
|
<RoomStay>
<RoomRates>
<RoomRate RoomTypeCode="ROOM1" RatePlanCode="RATE1" NumberOfUnits="1">
<Rates>
<-- ROOM STAY DETAILS OMITTED -->
<Rate UnitMultiplier="2" RateTimeUnit="Day" EffectiveDate="2012-03-12" ExpireDate="2012-03-14">
<Base AmountBeforeTax="495.00" AmountAfterTax="550.00" CurrencyCode="AUD"/>
<Total AmountBeforeTax="495.00" AmountAfterTax="550.00" CurrencyCode="AUD"/>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="20082012-1103-0812" End="20082012-1103-0914"/> >
<Total AmountBeforeTax="990.00" AmountAfterTax="1100.00" CurrencyCode="AUD">
<ResGuestRPHs> <Taxes>
<ResGuestRPH RPH<Tax Amount="110.00" CurrencyCode="1AUD"/> >
</Taxes>
</ResGuestRPHs>
Total>
</RoomStay> |
Code Block |
---|
|
<RoomStay>
<RoomStay><RoomRates>
<RoomRate NumberOfUnits="1" RatePlanCode="BAR" RoomTypeCode="DLXR">
<Rates>
<Rate ExpireDate="2013-12-31" <-- ROOM STAY DETAILS OMITTED -->
RateTimeUnit="Day" UnitMultiplier="1" EffectiveDate="2013-12-30">
<Base AmountAfterTax="39.20" CurrencyCode="USD"/>
</Rate>
<TimeSpan<Rate StartExpireDate="20082014-11-12" End="2008-11-1501-01" RateTimeUnit="Day" UnitMultiplier="1" EffectiveDate="2013-12-31">
<Base AmountAfterTax="39.20" CurrencyCode="USD"/>
<ResGuestRPHs>
</Rate>
<ResGuestRPH RPH<Rate ExpireDate="2014-01-02" RateTimeUnit="Day" UnitMultiplier="1" EffectiveDate="/> 2014-01-01">
<Base AmountAfterTax="39.20" CurrencyCode="USD"/>
</Rate>
</Rates>
</ResGuestRPHs>RoomRate>
</RoomStay>
</RoomStays>
<ResGuests>
<ResGuest ResGuestRPH="1" ArrivalTime="10:30:00">
<Profiles>
<ProfileInfo>
<Profile ProfileType="1">
<Customer>
<PersonName>
<GivenName>James</GivenName>
<Surname>Bond</Surname>
</PersonName>
</RoomRates>
<TimeSpan End="2014-01-02" Start="2013-12-30"/>
<Total AmountAfterTax="117.60" CurrencyCode="USD"/>
</RoomStay> |
The example below shows daily rates when the same rate applies to both dates (2012-03-12 and 2012-03-13) and there are additional charges.
Code Block |
---|
language | html/xml |
---|
title | Daily Rates Base and Total Amounts |
---|
|
<RoomStay>
<RoomRates>
<RoomRate RoomTypeCode="ROOM1" RatePlanCode="RATE1" NumberOfUnits="1">
<Rates>
<Rate UnitMultiplier="2" RateTimeUnit="Day" EffectiveDate="2012-03-12" ExpireDate="2012-03-14">
<Base AmountBeforeTax="495.50" AmountAfterTax="550.00" CurrencyCode="AUD"/>
<Total AmountBeforeTax="566.50" AmountAfterTax="630.00" CurrencyCode="AUD"/>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="2012-03-12" End="2012-03-14"/>
<Total AmountBeforeTax="1133.00" AmountAfterTax="1260.00" CurrencyCode="AUD">
<Taxes>
<Tax Amount="127.00" CurrencyCode="AUD"/>
</Taxes>
</Total>
</RoomStay> |
The example below shows daily rates when the rate amount differs for the booked dates.
Code Block |
---|
language | html/xml |
---|
title | Daily Rates - Multiple rate amounts |
---|
|
<RoomStay>
<RoomRates>
<RoomRate RoomTypeCode="ROOM1" RatePlanCode="RATE1" NumberOfUnits="1">
<Rates>
<-- PERSONAL DETAILS OMITTED -->
</Customer>
</Profile>
</ProfileInfo>
</Profiles>
</ResGuest>
</ResGuests>
<Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2012-03-12" ExpireDate="2012-03-13">
<Base AmountBeforeTax="252.00" AmountAfterTax="280.00" CurrencyCode="AUD"/>
</Rate>
<Rate UnitMultiplier="1" RateTimeUnit="Day" EffectiveDate="2012-03-13" ExpireDate="2012-03-14">
<Base AmountBeforeTax="279.00" AmountAfterTax="310.00" CurrencyCode="AUD"/>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="2012-03-12" End="2012-03-14"/>
<Total AmountBeforeTax="531.00" AmountAfterTax="590.00" CurrencyCode="AUD">
<Taxes>
<Tax Amount="59.00" CurrencyCode="AUD"/>
</Taxes>
</Total>
</RoomStay> |