crossed out rate response for one room
var liverate24North = new TTWeb.LiveRate({
hotelId: 'KEY24N', //'NYCREF',
portalId: '24northhotel', //'refineryhotelnewyork',
defaultLocale: 'en',
defaultCurrency: 'USD',
defaultTimezone: 'America/New_York'
});
liverate24North.getCrossOutRate({'ip_address':sessionStorage.ip_add,'room_code': 'D1KP'}).then(function(response){
var rates= response;
document.getElementById('oneRateResponse').innerHTML = JSON.stringify(rates, null, 4);
console.log("Selected Room rate" );
console.log(rates);
}).catch(function(error){
document.getElementById('oneRateResponse').innerHTML = JSON.stringify(error,null,4);
});
Response:
crossed out rate response for all rooms
var liverateRefinery = new TTWeb.LiveRate({
hotelId: 'NYCREF',
portalId: 'refineryhotelnewyork',
defaultLocale: 'en',
defaultCurrency: 'USD'
});
liverateRefinery.getCrossOutRate({'ip_address':sessionStorage.ip_add}).then(function(response){
var rates= response;
document.getElementById('rateResponse').innerHTML = JSON.stringify(rates, null, 4);
console.log("All Rooms rates" );
console.log(rates);
}).catch(function(error){
document.getElementById('rateResponse').innerHTML = JSON.stringify(error,null,4);
});
Response: