This file contains 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
{ | |
"id": 165840, | |
"name": "Flexible - Breakfast Inclusive", | |
"description": "Breakfast Included Room", | |
"currency_code": "EUR", | |
"charge_code": "100", | |
"end_date": "", | |
"source": "IBE Public", | |
"market_segment": "HBARWEB - Website Rooms", | |
"deposit_policy": { |
This file contains 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
const path = require('path'); | |
const restify = require('restify'); | |
const eventSource = require('./transformers/eventSource'); | |
const transformer = require('./transformers/transformer'); | |
const utility = require('./botUtility'); | |
// Import required bot services. See https://aka.ms/bot-services to learn more about the different parts of a bot. | |
const { BotFrameworkAdapter } = require('botbuilder'); | |
// This bot's main dialog. |
This file contains 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
const result = polly().handle(error => error.status === 429) | |
.waitAndRetry(retryTimes).executeForPromise(async () => { | |
const response = await axios.get(`${apiUrl}/booking/v1/offer-index`, requestConfig); | |
if (response.data) { | |
return response.data; | |
} | |
return Promise.reject(); | |
} | |
) |