const requestPayload = {
GetHotelAvailRQ: {
SearchCriteria: {
OffSet: 1,
SortBy: 'SabreRating',
SortOrder: 'DESC',
PageSize: 100,
AvailRatesOnly: true,
GeoSearch: {
GeoRef: {
Radius: 50,
UOM: 'MI',
RefPoint: {
Value: searchCriteria.location.airportCode,
ValueContext: 'CODE',
RefPointType: '6',
StateProv: searchCriteria.location.stateCode,
CountryCode: searchCriteria.location.countryCode,
},
},
},
RateInfoRef: {
ConvertedRateInfoOnly: false,
CurrencyCode: 'USD',
BestOnly: '2',
PrepaidQualifier: 'IncludePrepaid',
StayDateRange: {
StartDate: searchCriteria.date.checkIn,
EndDate: searchCriteria.date.checkOut,
},
Rooms: {
Room: [
{
Index: 1,
Adults: 2,
},
],
},
InfoSource: '100,110,112,113',
},
HotelPref: {
AmenityCodes: {
Inclusive: true,
AmenityCode: [
'15',
],
},
SabreRating: {
Min: '3',
Max: '5',
},
},
ImageRef: {
Type: 'MEDIUM',
LanguageCode: 'EN',
},
},
}
};