@revolugo/revolugo-client-js
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
date_from: Date; | ||
date_from: string; | ||
/** | ||
@@ -30,3 +30,3 @@ * The end date and time of the cancellation policy, given in the hotel timezone. | ||
*/ | ||
date_to: Date; | ||
date_to: string; | ||
/** | ||
@@ -33,0 +33,0 @@ * The penalty percentage that is due in case of cancellation during the **date_from** to **date_to** date range. |
@@ -26,4 +26,4 @@ "use strict"; | ||
return { | ||
'date_from': (new Date(json['date_from'])), | ||
'date_to': (new Date(json['date_to'])), | ||
'date_from': json['date_from'], | ||
'date_to': json['date_to'], | ||
'penalty_percentage': json['penalty_percentage'], | ||
@@ -41,4 +41,4 @@ }; | ||
return { | ||
'date_from': (value.date_from.toISOString().substr(0, 10)), | ||
'date_to': (value.date_to.toISOString().substr(0, 10)), | ||
'date_from': value.date_from, | ||
'date_to': value.date_to, | ||
'penalty_percentage': value.penalty_percentage, | ||
@@ -45,0 +45,0 @@ }; |
@@ -48,2 +48,8 @@ /** | ||
/** | ||
* ID of the associated Hotel. | ||
* @type {string} | ||
* @memberof HotelRoomOffer | ||
*/ | ||
hotel_id?: string; | ||
/** | ||
* | ||
@@ -50,0 +56,0 @@ * @type {Array<HotelRoom>} |
@@ -59,2 +59,3 @@ "use strict"; | ||
'discount_percentage': !runtime_1.exists(json, 'discount_percentage') ? undefined : json['discount_percentage'], | ||
'hotel_id': !runtime_1.exists(json, 'hotel_id') ? undefined : json['hotel_id'], | ||
'hotel_rooms': (json['hotel_rooms'].map(_1.HotelRoomFromJSON)), | ||
@@ -85,2 +86,3 @@ 'id': !runtime_1.exists(json, 'id') ? undefined : json['id'], | ||
'hotel_rooms': (value.hotel_rooms.map(_1.HotelRoomToJSON)), | ||
'hotel_id': value.hotel_id, | ||
'id': value.id, | ||
@@ -87,0 +89,0 @@ 'market_price': value.market_price, |
{ | ||
"name": "@revolugo/revolugo-client-js", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "Javascript Revolugo Booking API Client (browser + server)", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
484428
7337