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 | ||||
---|---|---|---|---|
| ||||
<RoomStay> <RoomRates> <RoomRate RoomTypeCode="ROOM1" RatePlanCode="RATE1" NumberOfUnits="1"> <Rates> <Rate <-- ROOM STAY DETAILS OMITTED --> UnitMultiplier="1" 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="495.00" AmountAfterTax="550.00" CurrencyCode="AUD"> <Taxes> <ResGuestRPHs> <ResGuestRPH RPH<Tax Amount="55.00" CurrencyCode="1AUD"/> > </Taxes> </ResGuestRPHs> Total> </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 | ||||
---|---|---|---|---|
| ||||
<RoomStay> <RoomRates> <RoomStay> <RoomRate RoomTypeCode="ROOM1" RatePlanCode="RATE1" NumberOfUnits="1"> <-- ROOM STAY DETAILS<Rates> OMITTED --> <Rate UnitMultiplier="1" <TimeSpan StartRateTimeUnit="Day" EffectiveDate="20082012-1103-12" EndExpireDate="20082012-11-1503-14"> <Base AmountBeforeTax="495.50" AmountAfterTax="550.00" CurrencyCode="AUD"/> <Total <ResGuestRPHs> AmountBeforeTax="531.00" AmountAfterTax="590.00" CurrencyCode="AUD"/> <ResGuestRPH RPH="1"/> <AdditionalCharges AmountBeforeTax="35.50" AmountAfterTax="40.00"/> </ResGuestRPHs> Rate> </Rates> </RoomStay>RoomRate> </RoomStays>RoomRates> <ResGuests> <TimeSpan Start="2012-03-12" End="2012-03-14"/> <ResGuest<Total ResGuestRPHAmountBeforeTax="1531.00" ArrivalTimeAmountAfterTax="10:30:00590.00" CurrencyCode="AUD"> <Taxes> <Profiles> <Tax Amount="59.00" CurrencyCode="AUD"/> </Taxes> </Total> </RoomStay> |
The example below shows daily rates when the rate amount differs for the booked dates.
Code Block | ||||
---|---|---|---|---|
| ||||
<RoomStay> <RoomRates> <ProfileInfo> <RoomRate <Profile ProfileTypeRoomTypeCode="ROOM1" RatePlanCode="RATE1" NumberOfUnits="1"> <Customer> <Rates> <PersonName> <GivenName>James</GivenName> <Surname>Bond</Surname> </PersonName> <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- PERSONAL DETAILS OMITTED --> </Customer> </Profile> </ProfileInfo> </Profiles> </ResGuest> </ResGuests> 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> |