Created
March 4, 2016 17:51
-
-
Save leandrojo/4b90a5b4c30402fdf839 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HotelListRequest: { | |
| apiExperience : 'PARTNER_WEBSITE', | |
| arrivalDate : arrivalDate, | |
| departureDate : departureDate, | |
| numberOfResults : opts.numberOfResults || 200, | |
| includeDetails : opts.details || true, | |
| includeHotelFeeBreakdown: true, | |
| sort: opts.sort || 'HIGH_MARGIN', | |
| RoomGroup: { | |
| Room: { numberOfAdults: opts.numberOfAdults || 2 } | |
| } | |
| } | |
| // Check the type of search you get, if a string extend with. | |
| { | |
| destinationString: location | |
| } | |
| // Or else an array with latitude and longitude extend request. | |
| { | |
| latitude : location.lat, | |
| longitude : location.lng, | |
| searchRadius : opts.searchRadius || 21, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment