RT9733
From TipperWiki
9733 Case 8002330 - "Multi Rate Reservations for Softbrands (legs not an option)"
Current Functionality
We request a list of available awards:
FetchRateAwards.1256776325.286540.xml
The guest chooses one, and we send a booking request:
CreateBooking.1256776371.832548.xml
Note that since this is an award redemption booking, this is added to the XML to tell Opera to take points away from the guest:
<hc:MemberAwardInfo>
<m:awardType>FNGT</m:awardType>
<m:membershipID>727808</m:membershipID>
</hc:MemberAwardInfo>
Then the guest has to make a separate booking for the next night.
Availability.1256780865.232713.xml CreateBooking.1256780913.394658.xml
Desired Functionality
This is the simplest (smallest change set) design I came up with today. If there are better or more comprehensive designs then let's explore them. --Jhannah 02:10, 29 October 2009 (UTC)
We FetchRateAwardsRequest and AvailabilityRequest just like above.
FetchRateAwards.1256776325.286540.xml Availability.1256780865.232713.xml
But now instead of having to send two separate CreateBooking requests we send a single CreateBooking which includes both the XML to tell Opera to take points away from the guest:
<hc:MemberAwardInfo>
<m:awardType>FNGT</m:awardType>
<m:membershipID>727808</m:membershipID>
</hc:MemberAwardInfo>
And lists both rates that we're booking:
<CreateBookingRequest xmlns="http://webservices.micros.com/ows/5.1/Reservation.wsdl"> <HotelReservation> <r:RoomStays> <hc:RoomStay> <hc:RatePlans> <hc:RatePlan ratePlanCode="SGBENE"/> <hc:RatePlan ratePlanCode="BAR7"/> </hc:RatePlans> <hc:RoomTypes> <hc:RoomType roomTypeCode="DDD" numberOfUnits="1"/> </hc:RoomTypes> <hc:RoomRates> <hc:RoomRate roomTypeCode="DDD" ratePlanCode="SGBENE"> <hc:Rates> <hc:Rate effectiveDate="2009-10-28"> <hc:Base currencyCode="USD">0</hc:Base> </hc:Rate> </hc:Rates> </hc:RoomRate> <hc:RoomRate roomTypeCode="DDD" ratePlanCode="BAR7"> <hc:Rates> <hc:Rate effectiveDate="2009-10-29"> <hc:Base currencyCode="USD">149</hc:Base> </hc:Rate> </hc:Rates> </hc:RoomRate> </hc:RoomRates>
Since Opera returned availability for Oct 28 for one night and Oct 29 for one night, it must now accept this two night reservation request regardless of any restrictions in Opera.
I've zipped up the files above so you can inspect them: Media:RT9733.zip
