@revolugo/common 7.0.1 → 7.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/cancellation-policies.test.ts +8 -2
- package/src/cancellation-policies.ts +57 -4
- package/src/constants/poller.ts +6 -0
- package/src/currencies/types.ts +1 -1
- package/src/currencies/utils.ts +52 -52
- package/src/schemas/booking-policy.ts +51 -0
- package/src/schemas/cancellation-policies.ts +18 -13
- package/src/schemas/currency.ts +1 -1
- package/src/schemas/global.ts +139 -0
- package/src/schemas/hotel-offer.ts +40 -28
- package/src/schemas/hotel-room-offer.ts +33 -14
- package/src/schemas/hotel-room.ts +1 -4
- package/src/schemas/hotel.ts +225 -258
- package/src/schemas/index.ts +2 -1
- package/src/schemas/list-polling-meta.ts +7 -2
- package/src/schemas/tag.ts +22 -8
- package/src/schemas/taxes.ts +4 -2
- package/src/types/calendar.ts +2 -2
- package/src/types/elements/amenity.ts +10 -10
- package/src/types/elements/booking-policy.ts +8 -8
- package/src/types/elements/booking.ts +16 -16
- package/src/types/elements/contact-person.ts +7 -0
- package/src/types/elements/elements-events.ts +2 -0
- package/src/types/elements/event-metadata.ts +6 -6
- package/src/types/elements/hotel-offer-list.ts +1 -1
- package/src/types/elements/hotel-offer-request.ts +21 -21
- package/src/types/elements/hotel-offer.ts +16 -16
- package/src/types/elements/hotel-offers-filters.ts +1 -1
- package/src/types/elements/hotel-room-offer-request.ts +22 -22
- package/src/types/elements/hotel-room-offer.ts +17 -17
- package/src/types/elements/hotel-room.ts +6 -6
- package/src/types/elements/hotel-rooming-list.ts +8 -8
- package/src/types/elements/hotel.ts +7 -7
- package/src/types/elements/meta-polling.ts +6 -6
- package/src/types/event.ts +1 -1
- package/src/types/hotel-contract.ts +1 -1
- package/src/types/hotel-room-stock.ts +1 -1
- package/src/types/pagination.ts +2 -2
- package/src/utils/create-composite-key.ts +2 -2
- package/src/utils/debounce.ts +1 -1
- package/src/utils/generate-dummy-hotel-images.ts +7 -5
- package/src/utils/get-sanitized-room-count.ts +1 -1
- package/src/utils/images.ts +5 -0
- package/src/utils/parse-children.ts +1 -1
- package/src/utils/poller.ts +56 -55
- package/src/schemas/hotel-offer-request.ts +0 -43
|
@@ -113,6 +113,12 @@ export interface Amenities {
|
|
|
113
113
|
* @memberof Amenities
|
|
114
114
|
*/
|
|
115
115
|
handicapAccessible?: boolean
|
|
116
|
+
/**
|
|
117
|
+
* Indoor pool.
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof Amenities
|
|
120
|
+
*/
|
|
121
|
+
indoorPool?: boolean
|
|
116
122
|
/**
|
|
117
123
|
* In house bar.
|
|
118
124
|
* @type {boolean}
|
|
@@ -131,12 +137,6 @@ export interface Amenities {
|
|
|
131
137
|
* @memberof Amenities
|
|
132
138
|
*/
|
|
133
139
|
inRoomMovies?: boolean
|
|
134
|
-
/**
|
|
135
|
-
* Indoor pool.
|
|
136
|
-
* @type {boolean}
|
|
137
|
-
* @memberof Amenities
|
|
138
|
-
*/
|
|
139
|
-
indoorPool?: boolean
|
|
140
140
|
/**
|
|
141
141
|
* Interior room entrance.
|
|
142
142
|
* @type {boolean}
|
|
@@ -216,17 +216,17 @@ export interface Amenities {
|
|
|
216
216
|
*/
|
|
217
217
|
sauna?: boolean
|
|
218
218
|
/**
|
|
219
|
-
*
|
|
219
|
+
* Tennis court.
|
|
220
220
|
* @type {boolean}
|
|
221
221
|
* @memberof Amenities
|
|
222
222
|
*/
|
|
223
|
-
|
|
223
|
+
tennisCourt?: boolean
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
225
|
+
* TV in room.
|
|
226
226
|
* @type {boolean}
|
|
227
227
|
* @memberof Amenities
|
|
228
228
|
*/
|
|
229
|
-
|
|
229
|
+
tVInRoom?: boolean
|
|
230
230
|
/**
|
|
231
231
|
* 24/7 security.
|
|
232
232
|
* @type {boolean}
|
|
@@ -3,6 +3,12 @@ import type { CurrencyType } from './currency.ts'
|
|
|
3
3
|
import type { HotelRoomOffer } from './hotel-room-offer.ts'
|
|
4
4
|
|
|
5
5
|
export interface BookingPolicies {
|
|
6
|
+
/**
|
|
7
|
+
* **Booking Policy** id
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof BookingPolicies
|
|
10
|
+
*/
|
|
11
|
+
id: string
|
|
6
12
|
/**
|
|
7
13
|
* The total number of adults who will be staying in the property.
|
|
8
14
|
* @type {number}
|
|
@@ -35,10 +41,11 @@ export interface BookingPolicies {
|
|
|
35
41
|
children?: string | null
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
|
-
* @type {
|
|
44
|
+
* @type {CurrencyClient}
|
|
39
45
|
* @memberof BookingPolicies
|
|
40
46
|
*/
|
|
41
47
|
currency: CurrencyType
|
|
48
|
+
|
|
42
49
|
/**
|
|
43
50
|
* Expiration date for this **Booking Policy**.
|
|
44
51
|
*
|
|
@@ -47,7 +54,6 @@ export interface BookingPolicies {
|
|
|
47
54
|
* @memberof BookingPolicies
|
|
48
55
|
*/
|
|
49
56
|
expiresAt: string | null
|
|
50
|
-
|
|
51
57
|
hasRoomingLists: boolean
|
|
52
58
|
/**
|
|
53
59
|
* Hotel id
|
|
@@ -61,12 +67,6 @@ export interface BookingPolicies {
|
|
|
61
67
|
* @memberof BookingPolicies
|
|
62
68
|
*/
|
|
63
69
|
hotelRoomOffer: HotelRoomOffer
|
|
64
|
-
/**
|
|
65
|
-
* **Booking Policy** id
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof BookingPolicies
|
|
68
|
-
*/
|
|
69
|
-
id: string
|
|
70
70
|
/**
|
|
71
71
|
* Indicates whether the price of the **Hotel Room Offer** (without breakfast included) has increased compared to the price returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers).
|
|
72
72
|
*
|
|
@@ -10,6 +10,12 @@ import type { SourceMarket } from './source-market.ts'
|
|
|
10
10
|
import type { Tax } from './tax.ts'
|
|
11
11
|
|
|
12
12
|
export interface Booking {
|
|
13
|
+
/**
|
|
14
|
+
* Booking Id
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof Booking
|
|
17
|
+
*/
|
|
18
|
+
id?: string | null
|
|
13
19
|
/**
|
|
14
20
|
* The total number of adults who will be staying in the property.
|
|
15
21
|
* @type {number}
|
|
@@ -72,7 +78,7 @@ export interface Booking {
|
|
|
72
78
|
createdAt: string
|
|
73
79
|
/**
|
|
74
80
|
*
|
|
75
|
-
* @type {
|
|
81
|
+
* @type {CurrencyClient}
|
|
76
82
|
* @memberof Booking
|
|
77
83
|
*/
|
|
78
84
|
currency: CurrencyType
|
|
@@ -100,12 +106,6 @@ export interface Booking {
|
|
|
100
106
|
* @memberof Booking
|
|
101
107
|
*/
|
|
102
108
|
hotelId: string
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {HotelRoomOffer}
|
|
106
|
-
* @memberof Booking
|
|
107
|
-
*/
|
|
108
|
-
hotelRoomOffer: HotelRoomOffer
|
|
109
109
|
/**
|
|
110
110
|
* Hotel rooming lists of a hotel booking
|
|
111
111
|
* @type {Array<HotelRoomingList>}
|
|
@@ -113,11 +113,11 @@ export interface Booking {
|
|
|
113
113
|
*/
|
|
114
114
|
hotelRoomingLists?: HotelRoomingList[]
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
117
|
-
* @type {
|
|
116
|
+
*
|
|
117
|
+
* @type {HotelRoomOffer}
|
|
118
118
|
* @memberof Booking
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
hotelRoomOffer: HotelRoomOffer
|
|
121
121
|
/**
|
|
122
122
|
* The list of invoices and credit notes (when applicable) direct urls associated to the Booking.
|
|
123
123
|
* @type {Array<InvoiceApi>}
|
|
@@ -184,18 +184,18 @@ export interface Booking {
|
|
|
184
184
|
* @memberof Booking
|
|
185
185
|
*/
|
|
186
186
|
taxAmount: number
|
|
187
|
-
/**
|
|
188
|
-
* Price of the booking including taxes expressed in the booking currency.
|
|
189
|
-
* @type {number}
|
|
190
|
-
* @memberof Booking
|
|
191
|
-
*/
|
|
192
|
-
taxIncludedPrice: number
|
|
193
187
|
/**
|
|
194
188
|
*
|
|
195
189
|
* @type {Array<Tax>}
|
|
196
190
|
* @memberof Booking
|
|
197
191
|
*/
|
|
198
192
|
taxes?: Tax[] | null
|
|
193
|
+
/**
|
|
194
|
+
* Price of the booking including taxes expressed in the booking currency.
|
|
195
|
+
* @type {number}
|
|
196
|
+
* @memberof Booking
|
|
197
|
+
*/
|
|
198
|
+
taxIncludedPrice: number
|
|
199
199
|
/**
|
|
200
200
|
* Link to Revolugo terms and conditions under which the booking is made.
|
|
201
201
|
* @type {string}
|
|
@@ -163,6 +163,13 @@ export interface PrebookFormValues {
|
|
|
163
163
|
firstName: ContactPerson['firstName']
|
|
164
164
|
lastName: ContactPerson['lastName']
|
|
165
165
|
nationality: ContactPerson['nationality']
|
|
166
|
+
organizationAddress?: string
|
|
167
|
+
organizationCity?: string
|
|
168
|
+
organizationCountry?: string
|
|
169
|
+
organizationName?: string
|
|
170
|
+
organizationState?: string
|
|
171
|
+
organizationVatNumber?: string
|
|
172
|
+
organizationZipCode?: string
|
|
166
173
|
phoneCountry: CountryIso2Code
|
|
167
174
|
phoneNumber: string
|
|
168
175
|
salutation: ContactPerson['salutation']
|
|
@@ -35,6 +35,7 @@ export enum ElementsEvent {
|
|
|
35
35
|
HotelOffersPollingStarted = 'hotel-offers:polling:started',
|
|
36
36
|
HotelOffersRetrieved = 'hotel-offers:retrieved',
|
|
37
37
|
HotelRetrieved = 'hotel:retrieved',
|
|
38
|
+
HotelRoomOfferItemVisible = 'hotel-room-offer:item:visible',
|
|
38
39
|
HotelRoomOfferRequestCreated = 'hotel-room-offer-request:created',
|
|
39
40
|
HotelRoomOfferRequestRetrieved = 'hotel-room-offer-request:retrieved',
|
|
40
41
|
HotelRoomOffersBtnClick = 'hotel-room-offers:click:btn',
|
|
@@ -68,6 +69,7 @@ export interface ElementsEventCallbacks {
|
|
|
68
69
|
[ElementsEvent.HotelOffersPollingStarted]: any
|
|
69
70
|
[ElementsEvent.HotelOffersRetrieved]: HotelOffer[]
|
|
70
71
|
[ElementsEvent.HotelRetrieved]: Hotel
|
|
72
|
+
[ElementsEvent.HotelRoomOfferItemVisible]: [HotelRoomOffer, number]
|
|
71
73
|
[ElementsEvent.HotelRoomOfferRequestCreated]: HotelRoomOfferRequestResponse
|
|
72
74
|
[ElementsEvent.HotelRoomOfferRequestRetrieved]: HotelRoomOfferRequestResponse
|
|
73
75
|
[ElementsEvent.HotelRoomOffersBtnClick]: HotelRoomOffer
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export interface EventMetadata {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Unique id of the event
|
|
4
4
|
* @type {string}
|
|
5
5
|
* @memberof EventMetadata
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
id?: string
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* End date of the event formatted as YYYY-MM-DD.
|
|
10
10
|
* @type {string}
|
|
11
11
|
* @memberof EventMetadata
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
dateEnd?: string
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Start date of the event formatted as YYYY-MM-DD.
|
|
16
16
|
* @type {string}
|
|
17
17
|
* @memberof EventMetadata
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
dateStart?: string
|
|
20
20
|
/**
|
|
21
21
|
* Image URL of the event
|
|
22
22
|
* @type {string}
|
|
@@ -12,11 +12,11 @@ export type HotelOffersSortByOrderType = `${HotelOffersSortByOrderEnum}`
|
|
|
12
12
|
|
|
13
13
|
export interface HotelOffersListPayload {
|
|
14
14
|
currency: CurrencyType
|
|
15
|
-
hotelOfferRequestId: string
|
|
16
15
|
endingBefore?: string | null
|
|
17
16
|
filterByPrice?: string
|
|
18
17
|
filterByReviewRating?: number
|
|
19
18
|
filterByStar?: string
|
|
19
|
+
hotelOfferRequestId: string
|
|
20
20
|
hotelRoomOffersLimit?: number
|
|
21
21
|
includeHotelContentDetails?: boolean | null
|
|
22
22
|
lang?: Locale
|
|
@@ -2,6 +2,11 @@ import type { EventMetadata } from './event-metadata.ts'
|
|
|
2
2
|
import type { SourceMarket } from './source-market.ts'
|
|
3
3
|
|
|
4
4
|
export interface HotelOfferRequest {
|
|
5
|
+
/**
|
|
6
|
+
* id of the **Hotel Offer Request**
|
|
7
|
+
* @type {string}
|
|
8
|
+
*/
|
|
9
|
+
id: string
|
|
5
10
|
/**
|
|
6
11
|
* This endpoint allows to find the geo-coordinates of a known address, place or locality via this free-text address query field. This address will eventually be geocoded into a latitude/longitude pair.
|
|
7
12
|
*
|
|
@@ -29,6 +34,12 @@ export interface HotelOfferRequest {
|
|
|
29
34
|
* @type {string}
|
|
30
35
|
*/
|
|
31
36
|
children?: string | null
|
|
37
|
+
/**
|
|
38
|
+
* Date of the **Hotel Room Offer Request** creation
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof HotelOfferRequestApiResponse
|
|
41
|
+
*/
|
|
42
|
+
createdAt: string
|
|
32
43
|
/**
|
|
33
44
|
*
|
|
34
45
|
* @type {EventMetadata}
|
|
@@ -60,20 +71,15 @@ export interface HotelOfferRequest {
|
|
|
60
71
|
* @type {SourceMarket}
|
|
61
72
|
*/
|
|
62
73
|
sourceMarket: SourceMarket
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* @memberof HotelOfferRequestApiResponse
|
|
67
|
-
*/
|
|
68
|
-
createdAt: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface HotelOfferRequestResponse {
|
|
69
77
|
/**
|
|
70
78
|
* id of the **Hotel Offer Request**
|
|
71
79
|
* @type {string}
|
|
80
|
+
* @memberof HotelOfferRequestApiResponse
|
|
72
81
|
*/
|
|
73
82
|
id: string
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface HotelOfferRequestResponse {
|
|
77
83
|
/**
|
|
78
84
|
* This endpoint allows to find the geo-coordinates of a known address, place or locality via this free-text address query field. This address will eventually be geocoded into a latitude/longitude pair.
|
|
79
85
|
*
|
|
@@ -106,6 +112,12 @@ export interface HotelOfferRequestResponse {
|
|
|
106
112
|
* @memberof HotelOfferRequestApiResponse
|
|
107
113
|
*/
|
|
108
114
|
children?: string | null
|
|
115
|
+
/**
|
|
116
|
+
* Date of the **Hotel Offer Request** creation
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof HotelOfferRequestApiResponse
|
|
119
|
+
*/
|
|
120
|
+
createdAt: string
|
|
109
121
|
/**
|
|
110
122
|
*
|
|
111
123
|
* @type {EventMetadataApi}
|
|
@@ -142,18 +154,6 @@ export interface HotelOfferRequestResponse {
|
|
|
142
154
|
* @memberof HotelOfferRequestApiResponse
|
|
143
155
|
*/
|
|
144
156
|
sourceMarket: SourceMarket
|
|
145
|
-
/**
|
|
146
|
-
* Date of the **Hotel Offer Request** creation
|
|
147
|
-
* @type {string}
|
|
148
|
-
* @memberof HotelOfferRequestApiResponse
|
|
149
|
-
*/
|
|
150
|
-
createdAt: string
|
|
151
|
-
/**
|
|
152
|
-
* id of the **Hotel Offer Request**
|
|
153
|
-
* @type {string}
|
|
154
|
-
* @memberof HotelOfferRequestApiResponse
|
|
155
|
-
*/
|
|
156
|
-
id: string
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
export interface HotelOfferRequestCreate {
|
|
@@ -9,6 +9,12 @@ import type { TravelTimeItem } from './travel-times.ts'
|
|
|
9
9
|
import type { CurrencyCode } from '../../currencies/constants.ts'
|
|
10
10
|
|
|
11
11
|
export interface HotelOffer {
|
|
12
|
+
/**
|
|
13
|
+
* Hotel id.
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof HotelOffer
|
|
16
|
+
*/
|
|
17
|
+
id: string
|
|
12
18
|
/**
|
|
13
19
|
* Hotel address.
|
|
14
20
|
* @type {string}
|
|
@@ -59,7 +65,7 @@ export interface HotelOffer {
|
|
|
59
65
|
countryCode?: string | null
|
|
60
66
|
/**
|
|
61
67
|
*
|
|
62
|
-
* @type {
|
|
68
|
+
* @type {CurrencyClient}
|
|
63
69
|
* @memberof HotelOffer
|
|
64
70
|
*/
|
|
65
71
|
currency?: CurrencyCode
|
|
@@ -102,11 +108,11 @@ export interface HotelOffer {
|
|
|
102
108
|
*/
|
|
103
109
|
hotelReviewRatings?: HotelReviewRating[] | null
|
|
104
110
|
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {
|
|
111
|
+
*
|
|
112
|
+
* @type {Array<HotelRoomOffer>}
|
|
107
113
|
* @memberof HotelOffer
|
|
108
114
|
*/
|
|
109
|
-
|
|
115
|
+
hotelRoomOffers: HotelRoomOffer[]
|
|
110
116
|
/**
|
|
111
117
|
*
|
|
112
118
|
* @type {HotelImages}
|
|
@@ -162,6 +168,12 @@ export interface HotelOffer {
|
|
|
162
168
|
* @memberof HotelOffer
|
|
163
169
|
*/
|
|
164
170
|
state?: string | null
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {Array<Tag>}
|
|
174
|
+
* @memberof HotelOffer
|
|
175
|
+
*/
|
|
176
|
+
tags?: Tag[]
|
|
165
177
|
/**
|
|
166
178
|
* TripAdvisor property id. When applicable.
|
|
167
179
|
* @type {string}
|
|
@@ -186,18 +198,6 @@ export interface HotelOffer {
|
|
|
186
198
|
* @memberof HotelOffer
|
|
187
199
|
*/
|
|
188
200
|
website?: string | null
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {Array<HotelRoomOffer>}
|
|
192
|
-
* @memberof HotelOffer
|
|
193
|
-
*/
|
|
194
|
-
hotelRoomOffers: HotelRoomOffer[]
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
* @type {Array<Tag>}
|
|
198
|
-
* @memberof HotelOffer
|
|
199
|
-
*/
|
|
200
|
-
tags?: Tag[]
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
export enum HotelOffersSortByEnum {
|
|
@@ -9,9 +9,9 @@ export enum FilterName {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface HotelOffersFilters {
|
|
12
|
+
[FilterName.Price]: [number, number]
|
|
12
13
|
[FilterName.Rating]: string
|
|
13
14
|
[FilterName.ReviewRating]?: number
|
|
14
|
-
[FilterName.Price]: [number, number]
|
|
15
15
|
[FilterName.SortBy]: {
|
|
16
16
|
direction: HotelOffersSortByOrderType
|
|
17
17
|
value: HotelOffersSortByEnum
|
|
@@ -2,6 +2,12 @@ import type { EventMetadata } from './event-metadata.ts'
|
|
|
2
2
|
import type { SourceMarket } from './source-market.ts'
|
|
3
3
|
|
|
4
4
|
export interface HotelRoomOfferRequest {
|
|
5
|
+
/**
|
|
6
|
+
* id of the **Hotel Room Offer Request**
|
|
7
|
+
* @type {string}
|
|
8
|
+
* @memberof HotelRoomOfferRequest
|
|
9
|
+
*/
|
|
10
|
+
id: string
|
|
5
11
|
/**
|
|
6
12
|
* Requested number of adult(s) to be accommodated.
|
|
7
13
|
* @type {number}
|
|
@@ -26,6 +32,12 @@ export interface HotelRoomOfferRequest {
|
|
|
26
32
|
* @memberof HotelRoomOfferRequest
|
|
27
33
|
*/
|
|
28
34
|
children?: string | null
|
|
35
|
+
/**
|
|
36
|
+
* Date of the **Hotel Room Offer Request** creation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof HotelRoomOfferRequest
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string
|
|
29
41
|
/**
|
|
30
42
|
*
|
|
31
43
|
* @type {EventMetadata}
|
|
@@ -50,21 +62,15 @@ export interface HotelRoomOfferRequest {
|
|
|
50
62
|
* @memberof HotelRoomOfferRequest
|
|
51
63
|
*/
|
|
52
64
|
sourceMarket: SourceMarket
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* @memberof HotelRoomOfferRequest
|
|
57
|
-
*/
|
|
58
|
-
createdAt: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface HotelRoomOfferRequestResponse {
|
|
59
68
|
/**
|
|
60
69
|
* id of the **Hotel Room Offer Request**
|
|
61
70
|
* @type {string}
|
|
62
|
-
* @memberof
|
|
71
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
63
72
|
*/
|
|
64
73
|
id: string
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface HotelRoomOfferRequestResponse {
|
|
68
74
|
/**
|
|
69
75
|
* Requested number of adult(s) to be accommodated.
|
|
70
76
|
* @type {number}
|
|
@@ -89,6 +95,12 @@ export interface HotelRoomOfferRequestResponse {
|
|
|
89
95
|
* @memberof HotelRoomOfferRequestApiResponse
|
|
90
96
|
*/
|
|
91
97
|
children?: string | null
|
|
98
|
+
/**
|
|
99
|
+
* Date of the **Hotel Room Offer Request** creation
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
102
|
+
*/
|
|
103
|
+
createdAt: string
|
|
92
104
|
/**
|
|
93
105
|
*
|
|
94
106
|
* @type {EventMetadataApi}
|
|
@@ -113,18 +125,6 @@ export interface HotelRoomOfferRequestResponse {
|
|
|
113
125
|
* @memberof HotelRoomOfferRequestApiResponse
|
|
114
126
|
*/
|
|
115
127
|
sourceMarket: SourceMarket
|
|
116
|
-
/**
|
|
117
|
-
* Date of the **Hotel Room Offer Request** creation
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof HotelRoomOfferRequestApiResponse
|
|
120
|
-
*/
|
|
121
|
-
createdAt: string
|
|
122
|
-
/**
|
|
123
|
-
* id of the **Hotel Room Offer Request**
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof HotelRoomOfferRequestApiResponse
|
|
126
|
-
*/
|
|
127
|
-
id: string
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
export type HotelRoomOfferRequestCreate = Pick<
|
|
@@ -70,6 +70,12 @@ export interface HotelRoomOffersDataResponse {
|
|
|
70
70
|
* @interface HotelRoomOffer
|
|
71
71
|
*/
|
|
72
72
|
export interface HotelRoomOffer {
|
|
73
|
+
/**
|
|
74
|
+
* Hotel Room Offer id.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof HotelRoomOffer
|
|
77
|
+
*/
|
|
78
|
+
id?: string
|
|
73
79
|
/**
|
|
74
80
|
* Quantity of breakfast per night included in the given **Hotel Room Offer**
|
|
75
81
|
* @type {number}
|
|
@@ -122,7 +128,7 @@ export interface HotelRoomOffer {
|
|
|
122
128
|
count?: number | null
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
|
-
* @type {
|
|
131
|
+
* @type {CurrencyClient}
|
|
126
132
|
* @memberof HotelRoomOffer
|
|
127
133
|
*/
|
|
128
134
|
currency: CurrencyType
|
|
@@ -138,12 +144,6 @@ export interface HotelRoomOffer {
|
|
|
138
144
|
* @memberof HotelRoomOffer
|
|
139
145
|
*/
|
|
140
146
|
hotelRooms: HotelRoom[]
|
|
141
|
-
/**
|
|
142
|
-
* Hotel Room Offer id.
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof HotelRoomOffer
|
|
145
|
-
*/
|
|
146
|
-
id?: string
|
|
147
147
|
/**
|
|
148
148
|
* An **Hotel Room Offer** of type **PACKAGE** can be of **4 types**, described by **package_type** parameter:
|
|
149
149
|
*
|
|
@@ -157,7 +157,7 @@ export interface HotelRoomOffer {
|
|
|
157
157
|
* @type {string}
|
|
158
158
|
* @memberof HotelRoomOffer
|
|
159
159
|
*/
|
|
160
|
-
packageType?: HotelRoomOfferPackageType
|
|
160
|
+
packageType?: HotelRoomOfferPackageType | null
|
|
161
161
|
/**
|
|
162
162
|
* Price with taxes NOT INCLUDED of the given **Hotel Room Offer** including breakfast(s) when applicable, expressed in the requested **currency**.
|
|
163
163
|
* @type {number}
|
|
@@ -172,18 +172,16 @@ export interface HotelRoomOffer {
|
|
|
172
172
|
sourceMarket: SourceMarket
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
|
-
* @type {
|
|
175
|
+
* @type {StayTaxesInfo}
|
|
176
176
|
* @memberof HotelRoomOffer
|
|
177
177
|
*/
|
|
178
|
-
|
|
178
|
+
stayTaxesInfo: StayTaxesInfo
|
|
179
179
|
/**
|
|
180
|
-
* Price of the given **Hotel Room Offer** including breakfast(s) when applicable, and including all taxes from returned **taxes** list parameter expressed in the requested **currency**.
|
|
181
180
|
*
|
|
182
|
-
*
|
|
183
|
-
* @type {number}
|
|
181
|
+
* @type {Array<Tag>}
|
|
184
182
|
* @memberof HotelRoomOffer
|
|
185
183
|
*/
|
|
186
|
-
|
|
184
|
+
tags?: Tag[]
|
|
187
185
|
/**
|
|
188
186
|
*
|
|
189
187
|
* @type {Array<Tax>}
|
|
@@ -192,11 +190,13 @@ export interface HotelRoomOffer {
|
|
|
192
190
|
taxes?: Tax[]
|
|
193
191
|
|
|
194
192
|
/**
|
|
193
|
+
* Price of the given **Hotel Room Offer** including breakfast(s) when applicable, and including all taxes from returned **taxes** list parameter expressed in the requested **currency**.
|
|
195
194
|
*
|
|
196
|
-
*
|
|
195
|
+
* This data is not returned for a **Hotel Room Offer** of type **HOTEL_ROOM**, you'll need to compute and display the actual tax included price of the final **Hotel Room** package corresponding to the guest count and night count requested, or make a call to the **[Create Hotel Room Offer](/v1/documentation#operation/postV1Hotel_room_offers)** endpoint in order to get a valid and bookable **Hotel Room Offer** where **type = PACKAGE** based on a packaged list of **Hotel Room Offers** of type **HOTEL_ROOM**.
|
|
196
|
+
* @type {number}
|
|
197
197
|
* @memberof HotelRoomOffer
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
taxIncludedPrice: number
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Hotel Room Offer type.
|
|
@@ -259,7 +259,7 @@ export interface HotelRoomOfferResponse {
|
|
|
259
259
|
children?: string | null
|
|
260
260
|
/**
|
|
261
261
|
*
|
|
262
|
-
* @type {
|
|
262
|
+
* @type {CurrencyClient}
|
|
263
263
|
* @memberof HotelRoomOfferResponse
|
|
264
264
|
*/
|
|
265
265
|
currency: CurrencyType
|
|
@@ -2,6 +2,12 @@ import type { Bed } from './bed.ts'
|
|
|
2
2
|
import type { HotelImage } from './hotel-image.ts'
|
|
3
3
|
|
|
4
4
|
export interface HotelRoom {
|
|
5
|
+
/**
|
|
6
|
+
* Hotel Room id, when applicable.
|
|
7
|
+
* @type {string}
|
|
8
|
+
* @memberof HotelRoom
|
|
9
|
+
*/
|
|
10
|
+
id: string
|
|
5
11
|
/**
|
|
6
12
|
* List of amenities in the room. May be subject to changes at the Hotel.
|
|
7
13
|
* @type {Array<string>}
|
|
@@ -52,12 +58,6 @@ export interface HotelRoom {
|
|
|
52
58
|
* @memberof HotelRoom
|
|
53
59
|
*/
|
|
54
60
|
highresImages?: boolean | null
|
|
55
|
-
/**
|
|
56
|
-
* Hotel Room id, when applicable.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof HotelRoom
|
|
59
|
-
*/
|
|
60
|
-
id: string
|
|
61
61
|
/**
|
|
62
62
|
* List of indexes corresponding to image names for the given Hotel Room among the related hotel images.
|
|
63
63
|
* @type {Array<number>}
|
|
@@ -6,16 +6,22 @@ export interface HotelRoomingListGuest {
|
|
|
6
6
|
* @type {string}
|
|
7
7
|
* @memberof HotelRoomingListGuest
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
id: string
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
* @type {string}
|
|
13
13
|
* @memberof HotelRoomingListGuest
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
fullname: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface HotelRoomingList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof HotelRoomingList
|
|
23
|
+
*/
|
|
24
|
+
id: string
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {HotelRoom}
|
|
@@ -34,12 +40,6 @@ export interface HotelRoomingList {
|
|
|
34
40
|
* @memberof HotelRoomingList
|
|
35
41
|
*/
|
|
36
42
|
hotelRoomingListGuests: HotelRoomingListGuest[]
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof HotelRoomingList
|
|
41
|
-
*/
|
|
42
|
-
id: string
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -6,6 +6,12 @@ import type { HotelReviewRating } from './hotel-review-rating.ts'
|
|
|
6
6
|
import type { TravelTimeItem } from './travel-times.ts'
|
|
7
7
|
|
|
8
8
|
export interface Hotel {
|
|
9
|
+
/**
|
|
10
|
+
* Hotel id.
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof HotelApi
|
|
13
|
+
*/
|
|
14
|
+
id: string
|
|
9
15
|
/**
|
|
10
16
|
* Hotel address.
|
|
11
17
|
* @type {string}
|
|
@@ -56,7 +62,7 @@ export interface Hotel {
|
|
|
56
62
|
countryCode?: string | null
|
|
57
63
|
/**
|
|
58
64
|
*
|
|
59
|
-
* @type {
|
|
65
|
+
* @type {CurrencyClient}
|
|
60
66
|
* @memberof HotelApi
|
|
61
67
|
*/
|
|
62
68
|
currency?: CurrencyType
|
|
@@ -96,12 +102,6 @@ export interface Hotel {
|
|
|
96
102
|
* @memberof HotelApi
|
|
97
103
|
*/
|
|
98
104
|
hotelReviewRatings?: HotelReviewRating[] | null
|
|
99
|
-
/**
|
|
100
|
-
* Hotel id.
|
|
101
|
-
* @type {string}
|
|
102
|
-
* @memberof HotelApi
|
|
103
|
-
*/
|
|
104
|
-
id: string
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {HotelImages}
|