@revolugo/booking-api-client 7.2.4-alpha.2 → 7.2.4-alpha.21
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/dist/index.es.js +3944 -1692
- package/dist/index.umd.js +2 -2
- package/dist/types/v1/apis/ResourceBookingPoliciesApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceBookingsApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelImagesApi.d.ts +4 -17
- package/dist/types/v1/apis/ResourceHotelOfferRequestsApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelOffersApi.d.ts +4 -17
- package/dist/types/v1/apis/ResourceHotelRoomOfferImagesApi.d.ts +4 -17
- package/dist/types/v1/apis/ResourceHotelRoomOfferRequestsApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelRoomOffersApi.d.ts +4 -17
- package/dist/types/v1/apis/ResourceHotelRoomingListGuestsApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelRoomingListsApi.d.ts +4 -17
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts +4 -17
- package/dist/types/v1/index.d.ts +3 -3
- package/dist/types/v1/models/AllowedPaymentMethodApi.d.ts +13 -0
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf.d.ts +38 -0
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf1.d.ts +38 -0
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf2.d.ts +38 -0
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3.d.ts +34 -0
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3Payload.d.ts +40 -0
- package/dist/types/v1/models/AmenitiesApi.d.ts +289 -0
- package/dist/types/v1/models/BedApi.d.ts +43 -0
- package/dist/types/v1/models/BookingApi.d.ts +267 -0
- package/dist/types/v1/models/BookingCreateApi.d.ts +55 -0
- package/dist/types/v1/models/BookingCreateApiGuestsListInner.d.ts +27 -0
- package/dist/types/v1/models/BookingCreateApiGuestsListInnerGuestsInner.d.ts +31 -0
- package/dist/types/v1/models/BookingPoliciesApi.d.ts +97 -0
- package/dist/types/v1/models/BookingPoliciesCreateApi.d.ts +53 -0
- package/dist/types/v1/models/BookingsApiResponse.d.ts +28 -0
- package/dist/types/v1/models/CancellationPolicyApi.d.ts +43 -0
- package/dist/types/v1/models/ContactPersonApi.d.ts +113 -0
- package/dist/types/v1/models/ContactPersonOrganizationApi.d.ts +57 -0
- package/dist/types/v1/models/CountryIso2Code.d.ts +264 -0
- package/dist/types/v1/models/CurrencyClient.d.ts +159 -0
- package/dist/types/v1/models/ErrorApiResponse.d.ts +70 -0
- package/dist/types/v1/models/EventApi.d.ts +37 -0
- package/dist/types/v1/models/EventMetadataApi.d.ts +61 -0
- package/dist/types/v1/models/HotelApi.d.ts +200 -0
- package/dist/types/v1/models/HotelApiImages.d.ts +65 -0
- package/dist/types/v1/models/HotelImageApi.d.ts +67 -0
- package/dist/types/v1/models/HotelOfferApi.d.ts +216 -0
- package/dist/types/v1/models/HotelOfferApiAllOf.d.ts +37 -0
- package/dist/types/v1/models/HotelOfferRequestApiResponse.d.ts +94 -0
- package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts +84 -0
- package/dist/types/v1/models/HotelOffersApiResponse.d.ts +34 -0
- package/dist/types/v1/models/HotelOffersApiResponseMeta.d.ts +45 -0
- package/dist/types/v1/models/HotelOffersApiResponseMetaAllOf.d.ts +31 -0
- package/dist/types/v1/models/HotelOffersDataApiResponse.d.ts +70 -0
- package/dist/types/v1/models/HotelReviewRatingApi.d.ts +37 -0
- package/dist/types/v1/models/HotelRoomApi.d.ts +120 -0
- package/dist/types/v1/models/HotelRoomOfferApi.d.ts +192 -0
- package/dist/types/v1/models/HotelRoomOfferApiResponse.d.ts +58 -0
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts +76 -0
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf.d.ts +64 -0
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf1.d.ts +37 -0
- package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts +64 -0
- package/dist/types/v1/models/HotelRoomOffersApiResponse.d.ts +34 -0
- package/dist/types/v1/models/HotelRoomOffersCreateApi.d.ts +61 -0
- package/dist/types/v1/models/HotelRoomOffersDataApiResponse.d.ts +64 -0
- package/dist/types/v1/models/HotelRoomOffersDataCreateApi.d.ts +43 -0
- package/dist/types/v1/models/HotelRoomingListApi.d.ts +46 -0
- package/dist/types/v1/models/HotelRoomingListApiHotelRoom.d.ts +120 -0
- package/dist/types/v1/models/HotelRoomingListGuestApi.d.ts +37 -0
- package/dist/types/v1/models/HotelRoomingListGuestsCreateApi.d.ts +37 -0
- package/dist/types/v1/models/HotelRoomingListGuestsUpdateApi.d.ts +31 -0
- package/dist/types/v1/models/InvoiceApi.d.ts +45 -0
- package/dist/types/v1/models/Locale.d.ts +28 -0
- package/dist/types/v1/models/MetaPollingResponseApi.d.ts +45 -0
- package/dist/types/v1/models/MetaPollingResponseApiAllOf.d.ts +21 -0
- package/dist/types/v1/models/MetaResponseApi.d.ts +49 -0
- package/dist/types/v1/models/PaymentMethodApi.d.ts +13 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf.d.ts +34 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf1.d.ts +34 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf1Payload.d.ts +37 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf2.d.ts +34 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf2Payload.d.ts +37 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf3.d.ts +34 -0
- package/dist/types/v1/models/PaymentMethodApiOneOf3Payload.d.ts +52 -0
- package/dist/types/v1/models/PaymentMethodApiOneOfPayload.d.ts +43 -0
- package/dist/types/v1/models/PaymentMethodRequestApi.d.ts +36 -0
- package/dist/types/v1/models/PaymentMethodRequestPayloadApi.d.ts +31 -0
- package/dist/types/v1/models/PaymentMethodUpdatePayloadApi.d.ts +21 -0
- package/dist/types/v1/models/PollerStatus.d.ts +23 -0
- package/dist/types/v1/models/SourceMarket.d.ts +264 -0
- package/dist/types/v1/models/TagApi.d.ts +55 -0
- package/dist/types/v1/models/TaxApi.d.ts +77 -0
- package/dist/types/v1/models/TravelTimesApi.d.ts +33 -0
- package/dist/types/v1/models/TravelTimesApiTravelTimes.d.ts +43 -0
- package/dist/types/v1/models/index.d.ts +74 -4078
- package/package.json +7 -7
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { BedApi } from './BedApi';
|
|
2
|
+
import { HotelImageApi } from './HotelImageApi';
|
|
3
|
+
/**
|
|
4
|
+
* Hotel Room details.
|
|
5
|
+
* @export
|
|
6
|
+
* @interface HotelRoomApi
|
|
7
|
+
*/
|
|
8
|
+
export interface HotelRoomApi {
|
|
9
|
+
/**
|
|
10
|
+
* List of amenities in the room. May be subject to changes at the Hotel.
|
|
11
|
+
* @type {Array<string>}
|
|
12
|
+
* @memberof HotelRoomApi
|
|
13
|
+
*/
|
|
14
|
+
amenities?: Array<string> | null;
|
|
15
|
+
/**
|
|
16
|
+
* Beds list.
|
|
17
|
+
* Each nested array of beds represents a single combination of possible beds.
|
|
18
|
+
* e.g.: The following object represents **1 double bed or 1 sofa bed and 1 double bed or 1 single bed**:
|
|
19
|
+
* ```
|
|
20
|
+
* [
|
|
21
|
+
* [
|
|
22
|
+
* { count: 1, name: 'double', occupancy: 2 },
|
|
23
|
+
* { count: 1, name: 'sofa', occupancy: 1 }
|
|
24
|
+
* ],
|
|
25
|
+
* [
|
|
26
|
+
* { count: 1, name: 'double', occupancy: 2 },
|
|
27
|
+
* { count: 1, name: 'single', occupancy: 1 }
|
|
28
|
+
* ]
|
|
29
|
+
* ]
|
|
30
|
+
* ```
|
|
31
|
+
* @type {Array<Array<BedApi>>}
|
|
32
|
+
* @memberof HotelRoomApi
|
|
33
|
+
*/
|
|
34
|
+
beds: Array<Array<BedApi>>;
|
|
35
|
+
/**
|
|
36
|
+
* Prettified and localized list of beds
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof HotelRoomApi
|
|
39
|
+
*/
|
|
40
|
+
bedsPretty: string;
|
|
41
|
+
/**
|
|
42
|
+
* Hotel Room count included in the Hotel Room Offer.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof HotelRoomApi
|
|
45
|
+
*/
|
|
46
|
+
count: number;
|
|
47
|
+
/**
|
|
48
|
+
* Hotel Room description.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof HotelRoomApi
|
|
51
|
+
*/
|
|
52
|
+
description: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether high resolution images are available.
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof HotelRoomApi
|
|
57
|
+
*/
|
|
58
|
+
highresImages?: boolean | null;
|
|
59
|
+
/**
|
|
60
|
+
* Hotel Room id, when applicable.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof HotelRoomApi
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
/**
|
|
66
|
+
* List of indexes corresponding to image names for the given Hotel Room among the related hotel images.
|
|
67
|
+
* @type {Array<number>}
|
|
68
|
+
* @memberof HotelRoomApi
|
|
69
|
+
*/
|
|
70
|
+
imageIndexes?: Array<number> | null;
|
|
71
|
+
/**
|
|
72
|
+
* Hotel Room images.
|
|
73
|
+
* @type {Array<HotelImageApi>}
|
|
74
|
+
* @memberof HotelRoomApi
|
|
75
|
+
*/
|
|
76
|
+
images?: Array<HotelImageApi> | null;
|
|
77
|
+
/**
|
|
78
|
+
* Whether low resolution images are available.
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof HotelRoomApi
|
|
81
|
+
*/
|
|
82
|
+
lowresImages?: boolean | null;
|
|
83
|
+
/**
|
|
84
|
+
* Total occupancy of a single hotel room.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof HotelRoomApi
|
|
87
|
+
*/
|
|
88
|
+
occupancy: number;
|
|
89
|
+
/**
|
|
90
|
+
* Rich Hotel Room description. May contain HTML tags markup.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof HotelRoomApi
|
|
93
|
+
*/
|
|
94
|
+
richDescription?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Room surface in square feet. May be subject to changes at the Hotel.
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof HotelRoomApi
|
|
99
|
+
*/
|
|
100
|
+
roomSquareFeet?: number | null;
|
|
101
|
+
/**
|
|
102
|
+
* Room surface in square meters. May be subject to changes at the Hotel.
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof HotelRoomApi
|
|
105
|
+
*/
|
|
106
|
+
roomSquareMeters?: number | null;
|
|
107
|
+
/**
|
|
108
|
+
* Whether thumb resolution images are available (in order to display them as image carousel navigation for instance).
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof HotelRoomApi
|
|
111
|
+
*/
|
|
112
|
+
thumbImages?: boolean | null;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the HotelRoomApi interface.
|
|
116
|
+
*/
|
|
117
|
+
export declare function instanceOfHotelRoomApi(value: object): boolean;
|
|
118
|
+
export declare function HotelRoomApiFromJSON(json: any): HotelRoomApi;
|
|
119
|
+
export declare function HotelRoomApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomApi;
|
|
120
|
+
export declare function HotelRoomApiToJSON(value?: HotelRoomApi | null): any;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { CancellationPolicyApi } from './CancellationPolicyApi';
|
|
2
|
+
import { CurrencyClient } from './CurrencyClient';
|
|
3
|
+
import { HotelRoomApi } from './HotelRoomApi';
|
|
4
|
+
import { SourceMarket } from './SourceMarket';
|
|
5
|
+
import { TagApi } from './TagApi';
|
|
6
|
+
import { TaxApi } from './TaxApi';
|
|
7
|
+
/**
|
|
8
|
+
* Description of the Hotel Room Offer.
|
|
9
|
+
* @export
|
|
10
|
+
* @interface HotelRoomOfferApi
|
|
11
|
+
*/
|
|
12
|
+
export interface HotelRoomOfferApi {
|
|
13
|
+
/**
|
|
14
|
+
* Quantity of breakfast per night included in the given **Hotel Room Offer**
|
|
15
|
+
* @type {number}
|
|
16
|
+
* @memberof HotelRoomOfferApi
|
|
17
|
+
*/
|
|
18
|
+
breakfastCount?: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* This parameter describes the breakfast option for the given **Hotel Room Offer**:
|
|
21
|
+
* - **breakfast_option = "INCLUDED"**:
|
|
22
|
+
* 1. When **HotelRoomOffer.type = "PACKAGE"**:
|
|
23
|
+
* the returned **Hotel Room Offer** includes breakfast for the requested **guest count (adult_count + children over 3)**, you cannot choose otherwise, and the returned **price** already includes it,
|
|
24
|
+
* 2. When **HotelRoomOffer.type = "HOTEL_ROOM"**:
|
|
25
|
+
* the returned **Hotel Room Offer** includes breakfast for the **Hotel Room Offer** maximum occupancy, you cannot choose otherwise, and the returned **price** already includes it,
|
|
26
|
+
* -**breakfast_option = "OPTIONAL"**: the returned **Hotel Room Offer** does not include by default the breakfast and so does the returned **price**, but you'll be able to let your customers choose to add it to their booking. In that case, a **breakfast_price_per_guest_per_night** expressed in the requested **currency** will be available in the returned data, and you'll be to perform one of the two following actions:
|
|
27
|
+
* - Call **[Create Hotel Room Offer endpoint](/v1/documentation#operation/postV1Hotel_room_offers)** and get a fresh **Hotel Room Offer** with updated price
|
|
28
|
+
* - Compute and display the total price of the **Hotel Room Offer** related to the guest_count and night count requested including extra breafasts.,
|
|
29
|
+
* - **breakfast_option = "NOT_INCLUDED"**: the returned **Hotel Room Offer** does not include breakfast and you cannot choose otherwise through API. Guest may still be able to add extra breakfast option(s) at the time of check-in directly at the hotel's reception.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof HotelRoomOfferApi
|
|
32
|
+
*/
|
|
33
|
+
breakfastOption: HotelRoomOfferApiBreakfastOptionEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Price of breakfast per guest per night for the given **Hotel Room Offer**, expressed in the requested **currency**, when applicable.
|
|
36
|
+
*
|
|
37
|
+
* <div style="background-color: #ffffef; padding: 20px; border: 1px solid lightgrey; border-radius: 5px;"><b style="color: red; margin-top: 10px;">🛑 DEPRECATED.</b>
|
|
38
|
+
*
|
|
39
|
+
* <b style="color: orange;">Field renamed to "breakfast_unit_price"</div>
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof HotelRoomOfferApi
|
|
42
|
+
*/
|
|
43
|
+
breakfastPricePerGuestPerNight?: number | null;
|
|
44
|
+
/**
|
|
45
|
+
* Price of breakfast per guest per night for the given **Hotel Room Offer**, expressed in the requested **currency**, when applicable.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof HotelRoomOfferApi
|
|
48
|
+
*/
|
|
49
|
+
breakfastUnitPrice?: number | null;
|
|
50
|
+
/**
|
|
51
|
+
* The list of cancellation policies applied to the given **Hotel Room Offer**.
|
|
52
|
+
* @type {Array<CancellationPolicyApi>}
|
|
53
|
+
* @memberof HotelRoomOfferApi
|
|
54
|
+
*/
|
|
55
|
+
cancellationPolicies: Array<CancellationPolicyApi>;
|
|
56
|
+
/**
|
|
57
|
+
* When **type = HOTEL_ROOM**: this parameters represents the available quantity for the given **Hotel Room Offer**.
|
|
58
|
+
* When **type = PACKAGE**: count = 1 always.
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof HotelRoomOfferApi
|
|
61
|
+
*/
|
|
62
|
+
count?: number | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {CurrencyClient}
|
|
66
|
+
* @memberof HotelRoomOfferApi
|
|
67
|
+
*/
|
|
68
|
+
currency: CurrencyClient;
|
|
69
|
+
/**
|
|
70
|
+
* id of the associated Hotel.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof HotelRoomOfferApi
|
|
73
|
+
*/
|
|
74
|
+
hotelId: string;
|
|
75
|
+
/**
|
|
76
|
+
* List of Hotel Rooms included in the Hotel Room Offer.
|
|
77
|
+
* @type {Array<HotelRoomApi>}
|
|
78
|
+
* @memberof HotelRoomOfferApi
|
|
79
|
+
*/
|
|
80
|
+
hotelRooms: Array<HotelRoomApi>;
|
|
81
|
+
/**
|
|
82
|
+
* Hotel Room Offer id.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof HotelRoomOfferApi
|
|
85
|
+
*/
|
|
86
|
+
id?: string;
|
|
87
|
+
/**
|
|
88
|
+
* An **Hotel Room Offer** of type **PACKAGE** can be of **4 types**, described by **package_type** parameter:
|
|
89
|
+
*
|
|
90
|
+
* - **CHEAPEST** : The cheapest combination of hotel rooms that can accommodate the requested guest count. Note that it may not match the requested room count (e.g., 4 guests and 2 rooms requested may return an hotel room package including only 1 room with an occupancy of 4).
|
|
91
|
+
*
|
|
92
|
+
* -**MATCHING_ROOM_COUNT** : the cheapest hotel room package that can accommodate the given guest count and that matches exactly the room count given.
|
|
93
|
+
*
|
|
94
|
+
* -**BEST_MATCH** : The cheapest hotel room package that matches the given room and guest count with a balanced distribution of guests across the rooms (e.g.; 8 guests and 3 rooms requested may return an **Hotel Room Offer** package including 2 rooms with an occupancy of 3 on each one and 1 room with an occupancy of 2).
|
|
95
|
+
*
|
|
96
|
+
* -**REGULAR** : any other available package.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof HotelRoomOfferApi
|
|
99
|
+
*/
|
|
100
|
+
packageType?: HotelRoomOfferApiPackageTypeEnum;
|
|
101
|
+
/**
|
|
102
|
+
* Price with taxes NOT INCLUDED of the given **Hotel Room Offer** including breakfast(s) when applicable, expressed in the requested **currency**.
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof HotelRoomOfferApi
|
|
105
|
+
*/
|
|
106
|
+
price: number;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {SourceMarket}
|
|
110
|
+
* @memberof HotelRoomOfferApi
|
|
111
|
+
*/
|
|
112
|
+
sourceMarket: SourceMarket;
|
|
113
|
+
/**
|
|
114
|
+
* Either INCLUDED, NOT_INCLUDED or UNKNOWN
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof HotelRoomOfferApi
|
|
117
|
+
*/
|
|
118
|
+
stayTaxesInfo: HotelRoomOfferApiStayTaxesInfoEnum;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Array<TagApi>}
|
|
122
|
+
* @memberof HotelRoomOfferApi
|
|
123
|
+
*/
|
|
124
|
+
tags?: Array<TagApi>;
|
|
125
|
+
/**
|
|
126
|
+
* 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**.
|
|
127
|
+
*
|
|
128
|
+
* 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**.
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof HotelRoomOfferApi
|
|
131
|
+
*/
|
|
132
|
+
taxIncludedPrice: number;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {Array<TaxApi>}
|
|
136
|
+
* @memberof HotelRoomOfferApi
|
|
137
|
+
*/
|
|
138
|
+
taxes?: Array<TaxApi>;
|
|
139
|
+
/**
|
|
140
|
+
* Hotel Room Offer type.
|
|
141
|
+
*
|
|
142
|
+
* **Hotel Room Offers** with **type = "PACKAGE"** are **Hotel Room Offers** that are already bookable and you'll be able to follow the next step of the **Booking Flow** calling **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**.
|
|
143
|
+
*
|
|
144
|
+
* Otherwise, you'll be able to create a new **Hotel Room Offer** with **type = "PACKAGE"** from multiple **Hotel Room Offers** with **type = "HOTEL_ROOM"**. See **[Create Hotel Room Offer endpoint](/v1/documentation#operation/postV1Hotel_room_offers)** for details.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof HotelRoomOfferApi
|
|
147
|
+
*/
|
|
148
|
+
type?: HotelRoomOfferApiTypeEnum;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @export
|
|
152
|
+
*/
|
|
153
|
+
export declare const HotelRoomOfferApiBreakfastOptionEnum: {
|
|
154
|
+
readonly Included: "INCLUDED";
|
|
155
|
+
readonly NotIncluded: "NOT_INCLUDED";
|
|
156
|
+
readonly Optional: "OPTIONAL";
|
|
157
|
+
};
|
|
158
|
+
export type HotelRoomOfferApiBreakfastOptionEnum = typeof HotelRoomOfferApiBreakfastOptionEnum[keyof typeof HotelRoomOfferApiBreakfastOptionEnum];
|
|
159
|
+
/**
|
|
160
|
+
* @export
|
|
161
|
+
*/
|
|
162
|
+
export declare const HotelRoomOfferApiPackageTypeEnum: {
|
|
163
|
+
readonly BestMatch: "BEST_MATCH";
|
|
164
|
+
readonly Cheapest: "CHEAPEST";
|
|
165
|
+
readonly MatchingRoomCount: "MATCHING_ROOM_COUNT";
|
|
166
|
+
readonly Regular: "REGULAR";
|
|
167
|
+
};
|
|
168
|
+
export type HotelRoomOfferApiPackageTypeEnum = typeof HotelRoomOfferApiPackageTypeEnum[keyof typeof HotelRoomOfferApiPackageTypeEnum];
|
|
169
|
+
/**
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export declare const HotelRoomOfferApiStayTaxesInfoEnum: {
|
|
173
|
+
readonly Included: "included";
|
|
174
|
+
readonly NotIncluded: "not_included";
|
|
175
|
+
readonly Unknown: "unknown";
|
|
176
|
+
};
|
|
177
|
+
export type HotelRoomOfferApiStayTaxesInfoEnum = typeof HotelRoomOfferApiStayTaxesInfoEnum[keyof typeof HotelRoomOfferApiStayTaxesInfoEnum];
|
|
178
|
+
/**
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
export declare const HotelRoomOfferApiTypeEnum: {
|
|
182
|
+
readonly HotelRoom: "HOTEL_ROOM";
|
|
183
|
+
readonly Package: "PACKAGE";
|
|
184
|
+
};
|
|
185
|
+
export type HotelRoomOfferApiTypeEnum = typeof HotelRoomOfferApiTypeEnum[keyof typeof HotelRoomOfferApiTypeEnum];
|
|
186
|
+
/**
|
|
187
|
+
* Check if a given object implements the HotelRoomOfferApi interface.
|
|
188
|
+
*/
|
|
189
|
+
export declare function instanceOfHotelRoomOfferApi(value: object): boolean;
|
|
190
|
+
export declare function HotelRoomOfferApiFromJSON(json: any): HotelRoomOfferApi;
|
|
191
|
+
export declare function HotelRoomOfferApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOfferApi;
|
|
192
|
+
export declare function HotelRoomOfferApiToJSON(value?: HotelRoomOfferApi | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CurrencyClient } from './CurrencyClient';
|
|
2
|
+
import { HotelRoomOfferApi } from './HotelRoomOfferApi';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface HotelRoomOfferApiResponse
|
|
7
|
+
*/
|
|
8
|
+
export interface HotelRoomOfferApiResponse {
|
|
9
|
+
/**
|
|
10
|
+
* The total number of adults who will be staying in the property.
|
|
11
|
+
* @type {number}
|
|
12
|
+
* @memberof HotelRoomOfferApiResponse
|
|
13
|
+
*/
|
|
14
|
+
adultCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Date of check-in formatted as YYYY-MM-DD.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof HotelRoomOfferApiResponse
|
|
19
|
+
*/
|
|
20
|
+
checkInDate: string;
|
|
21
|
+
/**
|
|
22
|
+
* Date of check-out formatted as YYYY-MM-DD.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof HotelRoomOfferApiResponse
|
|
25
|
+
*/
|
|
26
|
+
checkOutDate: string;
|
|
27
|
+
/**
|
|
28
|
+
* A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof HotelRoomOfferApiResponse
|
|
31
|
+
*/
|
|
32
|
+
children?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {CurrencyClient}
|
|
36
|
+
* @memberof HotelRoomOfferApiResponse
|
|
37
|
+
*/
|
|
38
|
+
currency: CurrencyClient;
|
|
39
|
+
/**
|
|
40
|
+
* Hotel id
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof HotelRoomOfferApiResponse
|
|
43
|
+
*/
|
|
44
|
+
hotelId: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {HotelRoomOfferApi}
|
|
48
|
+
* @memberof HotelRoomOfferApiResponse
|
|
49
|
+
*/
|
|
50
|
+
hotelRoomOffer: HotelRoomOfferApi;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the HotelRoomOfferApiResponse interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfHotelRoomOfferApiResponse(value: object): boolean;
|
|
56
|
+
export declare function HotelRoomOfferApiResponseFromJSON(json: any): HotelRoomOfferApiResponse;
|
|
57
|
+
export declare function HotelRoomOfferApiResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOfferApiResponse;
|
|
58
|
+
export declare function HotelRoomOfferApiResponseToJSON(value?: HotelRoomOfferApiResponse | null): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { EventMetadataApi } from './EventMetadataApi';
|
|
2
|
+
import { SourceMarket } from './SourceMarket';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface HotelRoomOfferRequestApiResponse
|
|
7
|
+
*/
|
|
8
|
+
export interface HotelRoomOfferRequestApiResponse {
|
|
9
|
+
/**
|
|
10
|
+
* Requested number of adult(s) to be accommodated.
|
|
11
|
+
* @type {number}
|
|
12
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
13
|
+
*/
|
|
14
|
+
adultCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Check-in date formatted as `YYYY-MM-DD`.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
19
|
+
*/
|
|
20
|
+
checkInDate: string;
|
|
21
|
+
/**
|
|
22
|
+
* Check-out date formatted as `YYYY-MM-DD`.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
25
|
+
*/
|
|
26
|
+
checkOutDate: string;
|
|
27
|
+
/**
|
|
28
|
+
* A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
31
|
+
*/
|
|
32
|
+
children?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {EventMetadataApi}
|
|
36
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
37
|
+
*/
|
|
38
|
+
eventMetadata?: EventMetadataApi | null;
|
|
39
|
+
/**
|
|
40
|
+
* id of requested hotel
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
43
|
+
*/
|
|
44
|
+
hotelId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Number of room(s) requested. Results may display offers matching a different room count than the requested one, however those results will always provide enough occupancy for the total guest count needed.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
49
|
+
*/
|
|
50
|
+
roomCount: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {SourceMarket}
|
|
54
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
55
|
+
*/
|
|
56
|
+
sourceMarket: SourceMarket;
|
|
57
|
+
/**
|
|
58
|
+
* Date of the **Hotel Room Offer Request** creation
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
61
|
+
*/
|
|
62
|
+
createdAt: string;
|
|
63
|
+
/**
|
|
64
|
+
* id of the **Hotel Room Offer Request**
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof HotelRoomOfferRequestApiResponse
|
|
67
|
+
*/
|
|
68
|
+
id: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the HotelRoomOfferRequestApiResponse interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfHotelRoomOfferRequestApiResponse(value: object): boolean;
|
|
74
|
+
export declare function HotelRoomOfferRequestApiResponseFromJSON(json: any): HotelRoomOfferRequestApiResponse;
|
|
75
|
+
export declare function HotelRoomOfferRequestApiResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOfferRequestApiResponse;
|
|
76
|
+
export declare function HotelRoomOfferRequestApiResponseToJSON(value?: HotelRoomOfferRequestApiResponse | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EventMetadataApi } from './EventMetadataApi';
|
|
2
|
+
import { SourceMarket } from './SourceMarket';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface HotelRoomOfferRequestApiResponseAllOf
|
|
7
|
+
*/
|
|
8
|
+
export interface HotelRoomOfferRequestApiResponseAllOf {
|
|
9
|
+
/**
|
|
10
|
+
* Requested number of adult(s) to be accommodated.
|
|
11
|
+
* @type {number}
|
|
12
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
13
|
+
*/
|
|
14
|
+
adultCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Check-in date formatted as `YYYY-MM-DD`.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
19
|
+
*/
|
|
20
|
+
checkInDate: string;
|
|
21
|
+
/**
|
|
22
|
+
* Check-out date formatted as `YYYY-MM-DD`.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
25
|
+
*/
|
|
26
|
+
checkOutDate: string;
|
|
27
|
+
/**
|
|
28
|
+
* A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
31
|
+
*/
|
|
32
|
+
children?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {EventMetadataApi}
|
|
36
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
37
|
+
*/
|
|
38
|
+
eventMetadata?: EventMetadataApi | null;
|
|
39
|
+
/**
|
|
40
|
+
* id of requested hotel
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
43
|
+
*/
|
|
44
|
+
hotelId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Number of room(s) requested. Results may display offers matching a different room count than the requested one, however those results will always provide enough occupancy for the total guest count needed.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
49
|
+
*/
|
|
50
|
+
roomCount: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {SourceMarket}
|
|
54
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf
|
|
55
|
+
*/
|
|
56
|
+
sourceMarket: SourceMarket;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the HotelRoomOfferRequestApiResponseAllOf interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfHotelRoomOfferRequestApiResponseAllOf(value: object): boolean;
|
|
62
|
+
export declare function HotelRoomOfferRequestApiResponseAllOfFromJSON(json: any): HotelRoomOfferRequestApiResponseAllOf;
|
|
63
|
+
export declare function HotelRoomOfferRequestApiResponseAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOfferRequestApiResponseAllOf;
|
|
64
|
+
export declare function HotelRoomOfferRequestApiResponseAllOfToJSON(value?: HotelRoomOfferRequestApiResponseAllOf | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Revolugo Booking API Reference
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.5.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HotelRoomOfferRequestApiResponseAllOf1
|
|
16
|
+
*/
|
|
17
|
+
export interface HotelRoomOfferRequestApiResponseAllOf1 {
|
|
18
|
+
/**
|
|
19
|
+
* Date of the **Hotel Room Offer Request** creation
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf1
|
|
22
|
+
*/
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
* id of the **Hotel Room Offer Request**
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof HotelRoomOfferRequestApiResponseAllOf1
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the HotelRoomOfferRequestApiResponseAllOf1 interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfHotelRoomOfferRequestApiResponseAllOf1(value: object): boolean;
|
|
35
|
+
export declare function HotelRoomOfferRequestApiResponseAllOf1FromJSON(json: any): HotelRoomOfferRequestApiResponseAllOf1;
|
|
36
|
+
export declare function HotelRoomOfferRequestApiResponseAllOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOfferRequestApiResponseAllOf1;
|
|
37
|
+
export declare function HotelRoomOfferRequestApiResponseAllOf1ToJSON(value?: HotelRoomOfferRequestApiResponseAllOf1 | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EventMetadataApi } from './EventMetadataApi';
|
|
2
|
+
import { SourceMarket } from './SourceMarket';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface HotelRoomOfferRequestCreateApi
|
|
7
|
+
*/
|
|
8
|
+
export interface HotelRoomOfferRequestCreateApi {
|
|
9
|
+
/**
|
|
10
|
+
* Requested number of adult(s) to be accommodated.
|
|
11
|
+
* @type {number}
|
|
12
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
13
|
+
*/
|
|
14
|
+
adultCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Check-in date formatted as `YYYY-MM-DD`.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
19
|
+
*/
|
|
20
|
+
checkInDate: string;
|
|
21
|
+
/**
|
|
22
|
+
* Check-out date formatted as `YYYY-MM-DD`.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
25
|
+
*/
|
|
26
|
+
checkOutDate: string;
|
|
27
|
+
/**
|
|
28
|
+
* A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
31
|
+
*/
|
|
32
|
+
children?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {EventMetadataApi}
|
|
36
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
37
|
+
*/
|
|
38
|
+
eventMetadata?: EventMetadataApi | null;
|
|
39
|
+
/**
|
|
40
|
+
* id of requested hotel
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
43
|
+
*/
|
|
44
|
+
hotelId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Number of room(s) requested. Results may display offers matching a different room count than the requested one, however those results will always provide enough occupancy for the total guest count needed.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
49
|
+
*/
|
|
50
|
+
roomCount: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {SourceMarket}
|
|
54
|
+
* @memberof HotelRoomOfferRequestCreateApi
|
|
55
|
+
*/
|
|
56
|
+
sourceMarket: SourceMarket;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the HotelRoomOfferRequestCreateApi interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfHotelRoomOfferRequestCreateApi(value: object): boolean;
|
|
62
|
+
export declare function HotelRoomOfferRequestCreateApiFromJSON(json: any): HotelRoomOfferRequestCreateApi;
|
|
63
|
+
export declare function HotelRoomOfferRequestCreateApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOfferRequestCreateApi;
|
|
64
|
+
export declare function HotelRoomOfferRequestCreateApiToJSON(value?: HotelRoomOfferRequestCreateApi | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HotelRoomOffersDataApiResponse } from './HotelRoomOffersDataApiResponse';
|
|
2
|
+
import { MetaPollingResponseApi } from './MetaPollingResponseApi';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface HotelRoomOffersApiResponse
|
|
7
|
+
*/
|
|
8
|
+
export interface HotelRoomOffersApiResponse {
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @type {HotelRoomOffersDataApiResponse}
|
|
12
|
+
* @memberof HotelRoomOffersApiResponse
|
|
13
|
+
*/
|
|
14
|
+
data: HotelRoomOffersDataApiResponse;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {any}
|
|
18
|
+
* @memberof HotelRoomOffersApiResponse
|
|
19
|
+
*/
|
|
20
|
+
event?: any | null;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {MetaPollingResponseApi}
|
|
24
|
+
* @memberof HotelRoomOffersApiResponse
|
|
25
|
+
*/
|
|
26
|
+
meta: MetaPollingResponseApi;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the HotelRoomOffersApiResponse interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfHotelRoomOffersApiResponse(value: object): boolean;
|
|
32
|
+
export declare function HotelRoomOffersApiResponseFromJSON(json: any): HotelRoomOffersApiResponse;
|
|
33
|
+
export declare function HotelRoomOffersApiResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelRoomOffersApiResponse;
|
|
34
|
+
export declare function HotelRoomOffersApiResponseToJSON(value?: HotelRoomOffersApiResponse | null): any;
|