@revolugo/booking-api-client 7.9.2 → 7.10.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/dist/index.es.js +3275 -3011
- package/dist/index.umd.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/booking-api-client.d.ts +12 -11
- package/dist/types/booking-api-client.d.ts.map +1 -0
- package/dist/types/env.d.ts +1 -0
- package/dist/types/env.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceBookingPoliciesApi.d.ts +2 -78
- package/dist/types/v1/apis/ResourceBookingPoliciesApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceBookingsApi.d.ts +19 -237
- package/dist/types/v1/apis/ResourceBookingsApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelImagesApi.d.ts +2 -42
- package/dist/types/v1/apis/ResourceHotelImagesApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelOfferRequestsApi.d.ts +2 -61
- package/dist/types/v1/apis/ResourceHotelOfferRequestsApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelOffersApi.d.ts +3 -62
- package/dist/types/v1/apis/ResourceHotelOffersApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelRoomOfferImagesApi.d.ts +2 -42
- package/dist/types/v1/apis/ResourceHotelRoomOfferImagesApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelRoomOfferRequestsApi.d.ts +2 -61
- package/dist/types/v1/apis/ResourceHotelRoomOfferRequestsApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelRoomOffersApi.d.ts +3 -65
- package/dist/types/v1/apis/ResourceHotelRoomOffersApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelRoomingListGuestsApi.d.ts +2 -85
- package/dist/types/v1/apis/ResourceHotelRoomingListGuestsApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelRoomingListsApi.d.ts +2 -42
- package/dist/types/v1/apis/ResourceHotelRoomingListsApi.d.ts.map +1 -0
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts +2 -43
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts.map +1 -0
- package/dist/types/v1/apis/index.d.ts +12 -11
- package/dist/types/v1/apis/index.d.ts.map +1 -0
- package/dist/types/v1/index.d.ts +1 -0
- package/dist/types/v1/index.d.ts.map +1 -0
- package/dist/types/v1/models/AllowedPaymentMethodApi.d.ts +15 -10
- package/dist/types/v1/models/AllowedPaymentMethodApi.d.ts.map +1 -0
- package/dist/types/v1/models/AllowedPaymentMethodCouponApi.d.ts +13 -0
- package/dist/types/v1/models/AllowedPaymentMethodCouponApi.d.ts.map +1 -0
- package/dist/types/v1/models/AllowedPaymentMethodCreditCardApi.d.ts +13 -0
- package/dist/types/v1/models/AllowedPaymentMethodCreditCardApi.d.ts.map +1 -0
- package/dist/types/v1/models/AllowedPaymentMethodDepositAccountApi.d.ts +13 -0
- package/dist/types/v1/models/AllowedPaymentMethodDepositAccountApi.d.ts.map +1 -0
- package/dist/types/v1/models/AllowedPaymentMethodPayLaterApi.d.ts +15 -0
- package/dist/types/v1/models/AllowedPaymentMethodPayLaterApi.d.ts.map +1 -0
- package/dist/types/v1/models/AllowedPaymentMethodPayLaterApiPayload.d.ts +15 -0
- package/dist/types/v1/models/AllowedPaymentMethodPayLaterApiPayload.d.ts.map +1 -0
- package/dist/types/v1/models/AmenitiesApi.d.ts +4 -241
- package/dist/types/v1/models/AmenitiesApi.d.ts.map +1 -0
- package/dist/types/v1/models/BedApi.d.ts +4 -36
- package/dist/types/v1/models/BedApi.d.ts.map +1 -0
- package/dist/types/v1/models/BookingApi.d.ts +23 -218
- package/dist/types/v1/models/BookingApi.d.ts.map +1 -0
- package/dist/types/v1/models/BookingCreateApi.d.ts +9 -43
- package/dist/types/v1/models/BookingCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/BookingCreateApiGuestsListInner.d.ts +5 -21
- package/dist/types/v1/models/BookingCreateApiGuestsListInner.d.ts.map +1 -0
- package/dist/types/v1/models/BookingCreateApiGuestsListInnerGuestsInner.d.ts +4 -26
- package/dist/types/v1/models/BookingCreateApiGuestsListInnerGuestsInner.d.ts.map +1 -0
- package/dist/types/v1/models/BookingPoliciesApi.d.ts +9 -88
- package/dist/types/v1/models/BookingPoliciesApi.d.ts.map +1 -0
- package/dist/types/v1/models/BookingPoliciesCreateApi.d.ts +5 -45
- package/dist/types/v1/models/BookingPoliciesCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/BookingsApiResponse.d.ts +6 -22
- package/dist/types/v1/models/BookingsApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/BreakfastOption.d.ts +12 -0
- package/dist/types/v1/models/BreakfastOption.d.ts.map +1 -0
- package/dist/types/v1/models/CancellationPolicyApi.d.ts +4 -36
- package/dist/types/v1/models/CancellationPolicyApi.d.ts.map +1 -0
- package/dist/types/v1/models/ContactPersonApi.d.ts +10 -89
- package/dist/types/v1/models/ContactPersonApi.d.ts.map +1 -0
- package/dist/types/v1/models/ContactPersonOrganizationApi.d.ts +6 -47
- package/dist/types/v1/models/ContactPersonOrganizationApi.d.ts.map +1 -0
- package/dist/types/v1/models/CountryIso2Code.d.ts +3 -15
- package/dist/types/v1/models/CountryIso2Code.d.ts.map +1 -0
- package/dist/types/v1/models/CurrencyClient.d.ts +3 -16
- package/dist/types/v1/models/CurrencyClient.d.ts.map +1 -0
- package/dist/types/v1/models/ErrorApiResponse.d.ts +4 -49
- package/dist/types/v1/models/ErrorApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/EventApi.d.ts +4 -31
- package/dist/types/v1/models/EventApi.d.ts.map +1 -0
- package/dist/types/v1/models/EventMetadataApi.d.ts +4 -51
- package/dist/types/v1/models/EventMetadataApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelApi.d.ts +11 -167
- package/dist/types/v1/models/HotelApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelApiImages.d.ts +4 -55
- package/dist/types/v1/models/HotelApiImages.d.ts.map +1 -0
- package/dist/types/v1/models/HotelImageApi.d.ts +4 -56
- package/dist/types/v1/models/HotelImageApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelOfferApi.d.ts +13 -181
- package/dist/types/v1/models/HotelOfferApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelOfferRequestApiResponse.d.ts +6 -78
- package/dist/types/v1/models/HotelOfferRequestApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts +5 -64
- package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelOffersApiResponse.d.ts +6 -27
- package/dist/types/v1/models/HotelOffersApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelOffersApiResponseMeta.d.ts +5 -36
- package/dist/types/v1/models/HotelOffersApiResponseMeta.d.ts.map +1 -0
- package/dist/types/v1/models/HotelOffersDataApiResponse.d.ts +6 -57
- package/dist/types/v1/models/HotelOffersDataApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelReviewRatingApi.d.ts +4 -31
- package/dist/types/v1/models/HotelReviewRatingApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomApi.d.ts +6 -101
- package/dist/types/v1/models/HotelRoomApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOfferApi.d.ts +13 -154
- package/dist/types/v1/models/HotelRoomOfferApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOfferApiHotelRoomsInner.d.ts +25 -0
- package/dist/types/v1/models/HotelRoomOfferApiHotelRoomsInner.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOfferApiResponse.d.ts +6 -47
- package/dist/types/v1/models/HotelRoomOfferApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts +6 -62
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts +5 -46
- package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOffersApiResponse.d.ts +6 -27
- package/dist/types/v1/models/HotelRoomOffersApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOffersCreateApi.d.ts +7 -52
- package/dist/types/v1/models/HotelRoomOffersCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOffersDataApiResponse.d.ts +6 -52
- package/dist/types/v1/models/HotelRoomOffersDataApiResponse.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomOffersDataCreateApi.d.ts +4 -36
- package/dist/types/v1/models/HotelRoomOffersDataCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomingListApi.d.ts +7 -38
- package/dist/types/v1/models/HotelRoomingListApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomingListGuestApi.d.ts +4 -31
- package/dist/types/v1/models/HotelRoomingListGuestApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomingListGuestsCreateApi.d.ts +4 -31
- package/dist/types/v1/models/HotelRoomingListGuestsCreateApi.d.ts.map +1 -0
- package/dist/types/v1/models/HotelRoomingListGuestsUpdateApi.d.ts +4 -26
- package/dist/types/v1/models/HotelRoomingListGuestsUpdateApi.d.ts.map +1 -0
- package/dist/types/v1/models/InvoiceApi.d.ts +4 -34
- package/dist/types/v1/models/InvoiceApi.d.ts.map +1 -0
- package/dist/types/v1/models/Locale.d.ts +3 -15
- package/dist/types/v1/models/Locale.d.ts.map +1 -0
- package/dist/types/v1/models/MetaPollingResponseApi.d.ts +5 -36
- package/dist/types/v1/models/MetaPollingResponseApi.d.ts.map +1 -0
- package/dist/types/v1/models/MetaResponseApi.d.ts +4 -41
- package/dist/types/v1/models/MetaResponseApi.d.ts.map +1 -0
- package/dist/types/v1/models/OrderAddon.d.ts +15 -0
- package/dist/types/v1/models/OrderAddon.d.ts.map +1 -0
- package/dist/types/v1/models/OrderAddonSelection.d.ts +13 -0
- package/dist/types/v1/models/OrderAddonSelection.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodApi.d.ts +15 -10
- package/dist/types/v1/models/PaymentMethodApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodCouponApi.d.ts +15 -0
- package/dist/types/v1/models/PaymentMethodCouponApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodCouponApiPayload.d.ts +11 -0
- package/dist/types/v1/models/PaymentMethodCouponApiPayload.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodCreditCardApi.d.ts +15 -0
- package/dist/types/v1/models/PaymentMethodCreditCardApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodCreditCardApiPayload.d.ts +11 -0
- package/dist/types/v1/models/PaymentMethodCreditCardApiPayload.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodDepositAccountApi.d.ts +15 -0
- package/dist/types/v1/models/PaymentMethodDepositAccountApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodDepositAccountApiPayload.d.ts +11 -0
- package/dist/types/v1/models/PaymentMethodDepositAccountApiPayload.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodPayLaterApi.d.ts +15 -0
- package/dist/types/v1/models/PaymentMethodPayLaterApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodPayLaterApiPayload.d.ts +18 -0
- package/dist/types/v1/models/PaymentMethodPayLaterApiPayload.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodRequestApi.d.ts +5 -24
- package/dist/types/v1/models/PaymentMethodRequestApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodRequestPayloadApi.d.ts +4 -26
- package/dist/types/v1/models/PaymentMethodRequestPayloadApi.d.ts.map +1 -0
- package/dist/types/v1/models/PaymentMethodUpdatePayloadApi.d.ts +5 -16
- package/dist/types/v1/models/PaymentMethodUpdatePayloadApi.d.ts.map +1 -0
- package/dist/types/v1/models/PollerStatus.d.ts +3 -15
- package/dist/types/v1/models/PollerStatus.d.ts.map +1 -0
- package/dist/types/v1/models/RequestPayload.d.ts +22 -0
- package/dist/types/v1/models/RequestPayload.d.ts.map +1 -0
- package/dist/types/v1/models/SourceMarket.d.ts +3 -15
- package/dist/types/v1/models/SourceMarket.d.ts.map +1 -0
- package/dist/types/v1/models/TagApi.d.ts +4 -46
- package/dist/types/v1/models/TagApi.d.ts.map +1 -0
- package/dist/types/v1/models/TaxApi.d.ts +8 -61
- package/dist/types/v1/models/TaxApi.d.ts.map +1 -0
- package/dist/types/v1/models/TravelTimesApi.d.ts +5 -26
- package/dist/types/v1/models/TravelTimesApi.d.ts.map +1 -0
- package/dist/types/v1/models/TravelTimesApiTravelTimes.d.ts +4 -36
- package/dist/types/v1/models/TravelTimesApiTravelTimes.d.ts.map +1 -0
- package/dist/types/v1/models/index.d.ts +74 -74
- package/dist/types/v1/models/index.d.ts.map +1 -0
- package/dist/types/v1/runtime.d.ts +1 -19
- package/dist/types/v1/runtime.d.ts.map +1 -0
- package/package.json +11 -11
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf.d.ts +0 -38
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf1.d.ts +0 -38
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf2.d.ts +0 -38
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3.d.ts +0 -34
- package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3Payload.d.ts +0 -40
- package/dist/types/v1/models/HotelOfferApiAllOf.d.ts +0 -37
- package/dist/types/v1/models/HotelOffersApiResponseMetaAllOf.d.ts +0 -31
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf.d.ts +0 -57
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf1.d.ts +0 -33
- package/dist/types/v1/models/HotelRoomingListApiHotelRoom.d.ts +0 -120
- package/dist/types/v1/models/MetaPollingResponseApiAllOf.d.ts +0 -21
- package/dist/types/v1/models/PaymentMethodApiOneOf.d.ts +0 -34
- package/dist/types/v1/models/PaymentMethodApiOneOf1.d.ts +0 -34
- package/dist/types/v1/models/PaymentMethodApiOneOf1Payload.d.ts +0 -43
- package/dist/types/v1/models/PaymentMethodApiOneOf2.d.ts +0 -34
- package/dist/types/v1/models/PaymentMethodApiOneOf2Payload.d.ts +0 -43
- package/dist/types/v1/models/PaymentMethodApiOneOf3.d.ts +0 -34
- package/dist/types/v1/models/PaymentMethodApiOneOf3Payload.d.ts +0 -58
- package/dist/types/v1/models/PaymentMethodApiOneOfPayload.d.ts +0 -43
|
@@ -1,64 +1,24 @@
|
|
|
1
|
-
import { HotelImageApi, Locale } from '../models/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Revolugo Booking API Reference
|
|
4
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.5.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
1
|
import * as runtime from '../runtime.ts';
|
|
2
|
+
import { type HotelImageApi, type Locale } from '../models/index.ts';
|
|
14
3
|
export interface HotelImagesRetrievePayload {
|
|
15
4
|
id: string;
|
|
16
5
|
lang?: Locale;
|
|
17
6
|
}
|
|
18
|
-
/**
|
|
19
|
-
* HotelImages - interface
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface HotelImagesInterface
|
|
23
|
-
*/
|
|
24
7
|
export interface HotelImagesInterface {
|
|
25
|
-
/**
|
|
26
|
-
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
27
|
-
* @summary Retrieve Images of an Hotel
|
|
28
|
-
* @param {string} id Id of the requested hotel.
|
|
29
|
-
* @param {Locale} [lang] Set the language for the returned content using a valid language code.
|
|
30
|
-
* @param {*} [options] Override http request option.
|
|
31
|
-
* @throws {RequiredError}
|
|
32
|
-
* @memberof HotelImagesInterface
|
|
33
|
-
*/
|
|
34
8
|
retrieveRaw(requestParameters: HotelImagesRetrievePayload, initOverrides?: RequestInit & {
|
|
35
9
|
minCallCount?: number;
|
|
36
10
|
maxCallCount?: number;
|
|
37
11
|
}): Promise<runtime.ApiResponse<Array<HotelImageApi>>>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
40
|
-
* Retrieve Images of an Hotel
|
|
41
|
-
*/
|
|
42
12
|
retrieve(requestParameters: HotelImagesRetrievePayload, initOverrides?: RequestInit & {
|
|
43
13
|
minCallCount?: number;
|
|
44
14
|
maxCallCount?: number;
|
|
45
15
|
}): Promise<Array<HotelImageApi>>;
|
|
46
16
|
}
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
17
|
export declare class HotelImages extends runtime.BaseAPI implements HotelImagesInterface {
|
|
51
|
-
/**
|
|
52
|
-
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
53
|
-
* Retrieve Images of an Hotel
|
|
54
|
-
*/
|
|
55
18
|
retrieveRaw(requestParameters: HotelImagesRetrievePayload, initOverrides?: RequestInit & {
|
|
56
19
|
minCallCount?: number;
|
|
57
20
|
maxCallCount?: number;
|
|
58
21
|
}): Promise<runtime.ApiResponse<Array<HotelImageApi>>>;
|
|
59
|
-
/**
|
|
60
|
-
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
61
|
-
* Retrieve Images of an Hotel
|
|
62
|
-
*/
|
|
63
22
|
retrieve(requestParameters: HotelImagesRetrievePayload, initOverrides?: RequestInit): Promise<Array<HotelImageApi>>;
|
|
64
23
|
}
|
|
24
|
+
//# sourceMappingURL=ResourceHotelImagesApi.d.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CAAC,aAAa,CAAC,CAAC;CAG5H"}
|
|
@@ -1,98 +1,39 @@
|
|
|
1
|
-
import { HotelOfferRequestApiResponse, HotelOfferRequestCreateApi } from '../models/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Revolugo Booking API Reference
|
|
4
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.5.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
1
|
import * as runtime from '../runtime.ts';
|
|
2
|
+
import { type HotelOfferRequestApiResponse, type HotelOfferRequestCreateApi } from '../models/index.ts';
|
|
14
3
|
export interface HotelOfferRequestsRetrievePayload {
|
|
15
4
|
id: string;
|
|
16
5
|
}
|
|
17
6
|
export interface HotelOfferRequestsCreatePayload {
|
|
18
7
|
hotelOfferRequestCreateApi?: HotelOfferRequestCreateApi;
|
|
19
8
|
}
|
|
20
|
-
/**
|
|
21
|
-
* HotelOfferRequests - interface
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
* @interface HotelOfferRequestsInterface
|
|
25
|
-
*/
|
|
26
9
|
export interface HotelOfferRequestsInterface {
|
|
27
|
-
/**
|
|
28
|
-
* Returns a single Hotel Offer Request by id
|
|
29
|
-
* @summary Retrieve a Single Hotel Offer Request
|
|
30
|
-
* @param {string} id id of the **Hotel Offer Request**
|
|
31
|
-
* @param {*} [options] Override http request option.
|
|
32
|
-
* @throws {RequiredError}
|
|
33
|
-
* @memberof HotelOfferRequestsInterface
|
|
34
|
-
*/
|
|
35
10
|
retrieveRaw(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
|
|
36
11
|
minCallCount?: number;
|
|
37
12
|
maxCallCount?: number;
|
|
38
13
|
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
|
|
39
|
-
/**
|
|
40
|
-
* Returns a single Hotel Offer Request by id
|
|
41
|
-
* Retrieve a Single Hotel Offer Request
|
|
42
|
-
*/
|
|
43
14
|
retrieve(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
|
|
44
15
|
minCallCount?: number;
|
|
45
16
|
maxCallCount?: number;
|
|
46
17
|
}): Promise<HotelOfferRequestApiResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
49
|
-
* @summary Create an Hotel Offer Request
|
|
50
|
-
* @param {HotelOfferRequestCreateApi} [hotelOfferRequestCreateApi] Create an Hotel Offer Request
|
|
51
|
-
* @param {*} [options] Override http request option.
|
|
52
|
-
* @throws {RequiredError}
|
|
53
|
-
* @memberof HotelOfferRequestsInterface
|
|
54
|
-
*/
|
|
55
18
|
createRaw(requestParameters: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit & {
|
|
56
19
|
minCallCount?: number;
|
|
57
20
|
maxCallCount?: number;
|
|
58
21
|
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
|
|
59
|
-
/**
|
|
60
|
-
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
61
|
-
* Create an Hotel Offer Request
|
|
62
|
-
*/
|
|
63
22
|
create(requestParameters: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit & {
|
|
64
23
|
minCallCount?: number;
|
|
65
24
|
maxCallCount?: number;
|
|
66
25
|
}): Promise<HotelOfferRequestApiResponse>;
|
|
67
26
|
}
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
27
|
export declare class HotelOfferRequests extends runtime.BaseAPI implements HotelOfferRequestsInterface {
|
|
72
|
-
/**
|
|
73
|
-
* Returns a single Hotel Offer Request by id
|
|
74
|
-
* Retrieve a Single Hotel Offer Request
|
|
75
|
-
*/
|
|
76
28
|
retrieveRaw(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
|
|
77
29
|
minCallCount?: number;
|
|
78
30
|
maxCallCount?: number;
|
|
79
31
|
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
|
|
80
|
-
/**
|
|
81
|
-
* Returns a single Hotel Offer Request by id
|
|
82
|
-
* Retrieve a Single Hotel Offer Request
|
|
83
|
-
*/
|
|
84
32
|
retrieve(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit): Promise<HotelOfferRequestApiResponse>;
|
|
85
|
-
/**
|
|
86
|
-
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
87
|
-
* Create an Hotel Offer Request
|
|
88
|
-
*/
|
|
89
33
|
createRaw(requestParameters: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit & {
|
|
90
34
|
minCallCount?: number;
|
|
91
35
|
maxCallCount?: number;
|
|
92
36
|
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
|
|
93
|
-
/**
|
|
94
|
-
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
95
|
-
* Create an Hotel Offer Request
|
|
96
|
-
*/
|
|
97
37
|
create(requestParameters?: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit): Promise<HotelOfferRequestApiResponse>;
|
|
98
38
|
}
|
|
39
|
+
//# sourceMappingURL=ResourceHotelOfferRequestsApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceHotelOfferRequestsApi.d.ts","sourceRoot":"","sources":["../../../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W,2BAA2B;IAKpF,WAAW,CAAC,iBAAiB,EAAE,iCAAiC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAqB7M,QAAQ,CAAC,iBAAiB,EAAE,iCAAiC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAOlI,SAAS,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAoBzM,MAAM,CAAC,iBAAiB,GAAE,+BAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,4BAA4B,CAAC;CAG5I"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { CurrencyClient, HotelOffersApiResponse, Locale } from '../models/index.ts';
|
|
2
|
-
import { TPollerCallback } from '@revolugo/common/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Revolugo Booking API Reference
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.5.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
1
|
import * as runtime from '../runtime.ts';
|
|
2
|
+
import { type CurrencyClient, type HotelOffersApiResponse, type Locale } from '../models/index.ts';
|
|
3
|
+
import { type TPollerCallback } from '@revolugo/common/utils';
|
|
15
4
|
export interface HotelOffersListPayload {
|
|
16
5
|
currency: CurrencyClient;
|
|
17
6
|
hotelOfferRequestId: string;
|
|
@@ -29,72 +18,26 @@ export interface HotelOffersListPayload {
|
|
|
29
18
|
sortByOrder?: HotelOffersSortByOrderEnum;
|
|
30
19
|
startingAfter?: string | null;
|
|
31
20
|
}
|
|
32
|
-
/**
|
|
33
|
-
* HotelOffers - interface
|
|
34
|
-
*
|
|
35
|
-
* @export
|
|
36
|
-
* @interface HotelOffersInterface
|
|
37
|
-
*/
|
|
38
21
|
export interface HotelOffersInterface {
|
|
39
|
-
/**
|
|
40
|
-
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
41
|
-
* @summary ⚛️ Retrieve Hotel Offers
|
|
42
|
-
* @param {CurrencyClient} currency ISO 4217 currency code.
|
|
43
|
-
* @param {string} hotelOfferRequestId id of the **Hotel Offer Request** previously created via [Create Hotel Offer Request](/v1/documentation#operation/postV1Hotel_offer_requests).
|
|
44
|
-
* @param {string} [endingBefore] A cursor to use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default).
|
|
45
|
-
* @param {string} [filterByPrice] Filter hotel offers by price per night interval. e.g.: \"200-400\" or \"-400\" or \"100\". ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default).
|
|
46
|
-
* @param {number} [filterByReviewRating] Filter hotels that have guest reviews over 6/10.
|
|
47
|
-
* @param {string} [filterByStar] Filter hotel offers by star rating. e.g.: \"1,2,3\" will return only hotels with 1, 2 or 3 star rating.
|
|
48
|
-
* @param {number} [hotelRoomOffersLimit] Limit the number of **Hotel Room Offers**, embedded on each **Hotel Offer** object, sorted by price.
|
|
49
|
-
* @param {boolean} [includeHotelContentDetails] Include hotel content details on each **Hotel Offer** object.
|
|
50
|
-
* @param {Locale} [lang] Set the language for the returned content using a valid language code.
|
|
51
|
-
* @param {number} [limit] Limit the number of **Hotel Offers** returned. Limit can range between 1 and 100. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default).
|
|
52
|
-
* @param {boolean} [onlyRecommendedHotelOffers] By default, filtering and sorting of returned **Hotel Offer** list is performed by our own **Search Engine** algorithm in order to maximize conversion rate. 💡 <span style=\"color:green\">When turned on, the endpoint returns a list limited to 10 **Hotel Offers**</span> Set it to **false** in order to disable this feature.
|
|
53
|
-
* @param {number} [priceHistogramStepCount] Number of price steps to be included in the returned **price_histogram** dataset. e.g.: \"15\" will return a dataset with 15 price steps.
|
|
54
|
-
* @param {'distance' | 'price' | 'rating' | 'review_rating' | 'top_picks'} [sortBy] Sort the returned **Hotel Offer** list. The sorting feature can only perform sorting based on 1 type whichever specified first. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default).
|
|
55
|
-
* @param {'asc' | 'desc'} [sortByOrder] Sort **Hotel Offer** list in **asc**ending or **desc**ending order. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default).
|
|
56
|
-
* @param {string} [startingAfter] A cursor to use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default).
|
|
57
|
-
* @param {*} [options] Override http request option.
|
|
58
|
-
* @throws {RequiredError}
|
|
59
|
-
* @memberof HotelOffersInterface
|
|
60
|
-
*/
|
|
61
22
|
listRaw(requestParameters: HotelOffersListPayload, initOverrides?: RequestInit & {
|
|
62
23
|
minCallCount?: number;
|
|
63
24
|
maxCallCount?: number;
|
|
64
25
|
}): Promise<runtime.ApiResponse<HotelOffersApiResponse>>;
|
|
65
|
-
/**
|
|
66
|
-
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
67
|
-
* ⚛️ Retrieve Hotel Offers
|
|
68
|
-
*/
|
|
69
26
|
list(requestParameters: HotelOffersListPayload, pollerCallback?: TPollerCallback<HotelOffersApiResponse>, initOverrides?: RequestInit & {
|
|
70
27
|
minCallCount?: number;
|
|
71
28
|
maxCallCount?: number;
|
|
72
29
|
}): Promise<HotelOffersApiResponse>;
|
|
73
30
|
}
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
31
|
export declare class HotelOffers extends runtime.BaseAPI implements HotelOffersInterface {
|
|
78
|
-
/**
|
|
79
|
-
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
80
|
-
* ⚛️ Retrieve Hotel Offers
|
|
81
|
-
*/
|
|
82
32
|
listRaw(requestParameters: HotelOffersListPayload, initOverrides?: RequestInit & {
|
|
83
33
|
minCallCount?: number;
|
|
84
34
|
maxCallCount?: number;
|
|
85
35
|
}): Promise<runtime.ApiResponse<HotelOffersApiResponse>>;
|
|
86
|
-
/**
|
|
87
|
-
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
88
|
-
* ⚛️ Retrieve Hotel Offers
|
|
89
|
-
*/
|
|
90
36
|
list(requestParameters: HotelOffersListPayload, pollerCallback?: TPollerCallback<HotelOffersApiResponse>, initOverrides?: RequestInit & {
|
|
91
37
|
minCallCount?: number;
|
|
92
38
|
maxCallCount?: number;
|
|
93
39
|
}): Promise<HotelOffersApiResponse>;
|
|
94
40
|
}
|
|
95
|
-
/**
|
|
96
|
-
* @export
|
|
97
|
-
*/
|
|
98
41
|
export declare const HotelOffersSortByEnum: {
|
|
99
42
|
Distance: "distance";
|
|
100
43
|
Price: "price";
|
|
@@ -103,11 +46,9 @@ export declare const HotelOffersSortByEnum: {
|
|
|
103
46
|
TopPicks: "top_picks";
|
|
104
47
|
};
|
|
105
48
|
export type HotelOffersSortByEnum = typeof HotelOffersSortByEnum[keyof typeof HotelOffersSortByEnum];
|
|
106
|
-
/**
|
|
107
|
-
* @export
|
|
108
|
-
*/
|
|
109
49
|
export declare const HotelOffersSortByOrderEnum: {
|
|
110
50
|
Asc: "asc";
|
|
111
51
|
Desc: "desc";
|
|
112
52
|
};
|
|
113
53
|
export type HotelOffersSortByOrderEnum = typeof HotelOffersSortByOrderEnum[keyof typeof HotelOffersSortByOrderEnum];
|
|
54
|
+
//# sourceMappingURL=ResourceHotelOffersApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceHotelOffersApi.d.ts","sourceRoot":"","sources":["../../../../src/v1/apis/ResourceHotelOffersApi.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EACH,KAAK,cAAc,EAGnB,KAAK,sBAAsB,EAG3B,KAAK,MAAM,EAGd,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG1E,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,cAAc,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0BAA0B,CAAC,EAAE,OAAO,GAAG,IAAI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AAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAC5E,OAAO,CAAC,sBAAsB,CAAC;CAOlC;AAID,eAAO,MAAM,qBAAqB;cACN,UAAU;WAChB,OAAO;YACL,QAAQ;kBACK,eAAe;cACvB,WAAW;CACvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAIrG,eAAO,MAAM,0BAA0B;SACrB,KAAK;UACH,MAAM;CACzB,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,64 +1,24 @@
|
|
|
1
|
-
import { HotelImageApi, Locale } from '../models/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Revolugo Booking API Reference
|
|
4
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.5.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
1
|
import * as runtime from '../runtime.ts';
|
|
2
|
+
import { type HotelImageApi, type Locale } from '../models/index.ts';
|
|
14
3
|
export interface HotelRoomOfferImagesRetrievePayload {
|
|
15
4
|
id: string;
|
|
16
5
|
lang?: Locale;
|
|
17
6
|
}
|
|
18
|
-
/**
|
|
19
|
-
* HotelRoomOfferImages - interface
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface HotelRoomOfferImagesInterface
|
|
23
|
-
*/
|
|
24
7
|
export interface HotelRoomOfferImagesInterface {
|
|
25
|
-
/**
|
|
26
|
-
* Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
|
|
27
|
-
* @summary Retrieve Images of an Hotel Room Offer
|
|
28
|
-
* @param {string} id Id of the requested hotel room offer.
|
|
29
|
-
* @param {Locale} [lang] Set the language for the returned content using a valid language code.
|
|
30
|
-
* @param {*} [options] Override http request option.
|
|
31
|
-
* @throws {RequiredError}
|
|
32
|
-
* @memberof HotelRoomOfferImagesInterface
|
|
33
|
-
*/
|
|
34
8
|
retrieveRaw(requestParameters: HotelRoomOfferImagesRetrievePayload, initOverrides?: RequestInit & {
|
|
35
9
|
minCallCount?: number;
|
|
36
10
|
maxCallCount?: number;
|
|
37
11
|
}): Promise<runtime.ApiResponse<Array<Array<HotelImageApi>>>>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
|
|
40
|
-
* Retrieve Images of an Hotel Room Offer
|
|
41
|
-
*/
|
|
42
12
|
retrieve(requestParameters: HotelRoomOfferImagesRetrievePayload, initOverrides?: RequestInit & {
|
|
43
13
|
minCallCount?: number;
|
|
44
14
|
maxCallCount?: number;
|
|
45
15
|
}): Promise<Array<Array<HotelImageApi>>>;
|
|
46
16
|
}
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
17
|
export declare class HotelRoomOfferImages extends runtime.BaseAPI implements HotelRoomOfferImagesInterface {
|
|
51
|
-
/**
|
|
52
|
-
* Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
|
|
53
|
-
* Retrieve Images of an Hotel Room Offer
|
|
54
|
-
*/
|
|
55
18
|
retrieveRaw(requestParameters: HotelRoomOfferImagesRetrievePayload, initOverrides?: RequestInit & {
|
|
56
19
|
minCallCount?: number;
|
|
57
20
|
maxCallCount?: number;
|
|
58
21
|
}): Promise<runtime.ApiResponse<Array<Array<HotelImageApi>>>>;
|
|
59
|
-
/**
|
|
60
|
-
* Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
|
|
61
|
-
* Retrieve Images of an Hotel Room Offer
|
|
62
|
-
*/
|
|
63
22
|
retrieve(requestParameters: HotelRoomOfferImagesRetrievePayload, initOverrides?: RequestInit): Promise<Array<Array<HotelImageApi>>>;
|
|
64
23
|
}
|
|
24
|
+
//# sourceMappingURL=ResourceHotelRoomOfferImagesApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceHotelRoomOfferImagesApi.d.ts","sourceRoot":"","sources":["../../../../src/v1/apis/ResourceHotelRoomOfferImagesApi.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EACH,KAAK,aAAa,EAGlB,KAAK,MAAM,EAGd,MAAM,oBAAoB,CAAC;AAI5B,MAAM,WAAW,mCAAmC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,MAAM,WAAW,6BAA6B;IAU1C,WAAW,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IAK/M,QAAQ,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAC1L;AAID,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,OAAQ,YAAW,6BAA6B;IAKxF,WAAW,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAwB9M,QAAQ,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;CAG5I"}
|
|
@@ -1,98 +1,39 @@
|
|
|
1
|
-
import { HotelRoomOfferRequestApiResponse, HotelRoomOfferRequestCreateApi } from '../models/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Revolugo Booking API Reference
|
|
4
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.5.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
1
|
import * as runtime from '../runtime.ts';
|
|
2
|
+
import { type HotelRoomOfferRequestApiResponse, type HotelRoomOfferRequestCreateApi } from '../models/index.ts';
|
|
14
3
|
export interface HotelRoomOfferRequestsRetrievePayload {
|
|
15
4
|
id: string;
|
|
16
5
|
}
|
|
17
6
|
export interface HotelRoomOfferRequestsCreatePayload {
|
|
18
7
|
hotelRoomOfferRequestCreateApi?: HotelRoomOfferRequestCreateApi;
|
|
19
8
|
}
|
|
20
|
-
/**
|
|
21
|
-
* HotelRoomOfferRequests - interface
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
* @interface HotelRoomOfferRequestsInterface
|
|
25
|
-
*/
|
|
26
9
|
export interface HotelRoomOfferRequestsInterface {
|
|
27
|
-
/**
|
|
28
|
-
* Returns a single Hotel Room Offer Request by id
|
|
29
|
-
* @summary Retrieve a Single Hotel Room Offer Request
|
|
30
|
-
* @param {string} id id of the **Hotel Room Offer Request**
|
|
31
|
-
* @param {*} [options] Override http request option.
|
|
32
|
-
* @throws {RequiredError}
|
|
33
|
-
* @memberof HotelRoomOfferRequestsInterface
|
|
34
|
-
*/
|
|
35
10
|
retrieveRaw(requestParameters: HotelRoomOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
|
|
36
11
|
minCallCount?: number;
|
|
37
12
|
maxCallCount?: number;
|
|
38
13
|
}): Promise<runtime.ApiResponse<HotelRoomOfferRequestApiResponse>>;
|
|
39
|
-
/**
|
|
40
|
-
* Returns a single Hotel Room Offer Request by id
|
|
41
|
-
* Retrieve a Single Hotel Room Offer Request
|
|
42
|
-
*/
|
|
43
14
|
retrieve(requestParameters: HotelRoomOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
|
|
44
15
|
minCallCount?: number;
|
|
45
16
|
maxCallCount?: number;
|
|
46
17
|
}): Promise<HotelRoomOfferRequestApiResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
49
|
-
* @summary Create an Hotel Room Offer Request
|
|
50
|
-
* @param {HotelRoomOfferRequestCreateApi} [hotelRoomOfferRequestCreateApi] Create an Hotel Room Offer Request
|
|
51
|
-
* @param {*} [options] Override http request option.
|
|
52
|
-
* @throws {RequiredError}
|
|
53
|
-
* @memberof HotelRoomOfferRequestsInterface
|
|
54
|
-
*/
|
|
55
18
|
createRaw(requestParameters: HotelRoomOfferRequestsCreatePayload, initOverrides?: RequestInit & {
|
|
56
19
|
minCallCount?: number;
|
|
57
20
|
maxCallCount?: number;
|
|
58
21
|
}): Promise<runtime.ApiResponse<HotelRoomOfferRequestApiResponse>>;
|
|
59
|
-
/**
|
|
60
|
-
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
61
|
-
* Create an Hotel Room Offer Request
|
|
62
|
-
*/
|
|
63
22
|
create(requestParameters: HotelRoomOfferRequestsCreatePayload, initOverrides?: RequestInit & {
|
|
64
23
|
minCallCount?: number;
|
|
65
24
|
maxCallCount?: number;
|
|
66
25
|
}): Promise<HotelRoomOfferRequestApiResponse>;
|
|
67
26
|
}
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
27
|
export declare class HotelRoomOfferRequests extends runtime.BaseAPI implements HotelRoomOfferRequestsInterface {
|
|
72
|
-
/**
|
|
73
|
-
* Returns a single Hotel Room Offer Request by id
|
|
74
|
-
* Retrieve a Single Hotel Room Offer Request
|
|
75
|
-
*/
|
|
76
28
|
retrieveRaw(requestParameters: HotelRoomOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
|
|
77
29
|
minCallCount?: number;
|
|
78
30
|
maxCallCount?: number;
|
|
79
31
|
}): Promise<runtime.ApiResponse<HotelRoomOfferRequestApiResponse>>;
|
|
80
|
-
/**
|
|
81
|
-
* Returns a single Hotel Room Offer Request by id
|
|
82
|
-
* Retrieve a Single Hotel Room Offer Request
|
|
83
|
-
*/
|
|
84
32
|
retrieve(requestParameters: HotelRoomOfferRequestsRetrievePayload, initOverrides?: RequestInit): Promise<HotelRoomOfferRequestApiResponse>;
|
|
85
|
-
/**
|
|
86
|
-
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
87
|
-
* Create an Hotel Room Offer Request
|
|
88
|
-
*/
|
|
89
33
|
createRaw(requestParameters: HotelRoomOfferRequestsCreatePayload, initOverrides?: RequestInit & {
|
|
90
34
|
minCallCount?: number;
|
|
91
35
|
maxCallCount?: number;
|
|
92
36
|
}): Promise<runtime.ApiResponse<HotelRoomOfferRequestApiResponse>>;
|
|
93
|
-
/**
|
|
94
|
-
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
95
|
-
* Create an Hotel Room Offer Request
|
|
96
|
-
*/
|
|
97
37
|
create(requestParameters?: HotelRoomOfferRequestsCreatePayload, initOverrides?: RequestInit): Promise<HotelRoomOfferRequestApiResponse>;
|
|
98
38
|
}
|
|
39
|
+
//# sourceMappingURL=ResourceHotelRoomOfferRequestsApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceHotelRoomOfferRequestsApi.d.ts","sourceRoot":"","sources":["../../../../src/v1/apis/ResourceHotelRoomOfferRequestsApi.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EACH,KAAK,gCAAgC,EAGrC,KAAK,8BAA8B,EAGtC,MAAM,oBAAoB,CAAC;AAI5B,MAAM,WAAW,qCAAqC;IAClD,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mCAAmC;IAChD,8BAA8B,CAAC,EAAE,8BAA8B,CAAC;CACnE;AAOD,MAAM,WAAW,+BAA+B;IAS5C,WAAW,CAAC,iBAAiB,EAAE,qCAAqC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAKtN,QAAQ,CAAC,iBAAiB,EAAE,qCAAqC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,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oomOfferApiResponse, HotelRoomOffersApiResponse, HotelRoomOffersCreateApi, Locale } from '../models/index.ts';
|
|
2
|
-
import { TPollerCallback } from '@revolugo/common/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Revolugo Booking API Reference
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.5.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
1
|
import * as runtime from '../runtime.ts';
|
|
2
|
+
import { type CurrencyClient, type HotelRoomOfferApiResponse, type HotelRoomOffersApiResponse, type HotelRoomOffersCreateApi, type Locale } from '../models/index.ts';
|
|
3
|
+
import { type TPollerCallback } from '@revolugo/common/utils';
|
|
15
4
|
export interface HotelRoomOffersListPayload {
|
|
16
5
|
currency: CurrencyClient;
|
|
17
6
|
hotelRoomOfferRequestId: string;
|
|
@@ -21,88 +10,37 @@ export interface HotelRoomOffersListPayload {
|
|
|
21
10
|
export interface HotelRoomOffersCreatePayload {
|
|
22
11
|
hotelRoomOffersCreateApi?: HotelRoomOffersCreateApi;
|
|
23
12
|
}
|
|
24
|
-
/**
|
|
25
|
-
* HotelRoomOffers - interface
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface HotelRoomOffersInterface
|
|
29
|
-
*/
|
|
30
13
|
export interface HotelRoomOffersInterface {
|
|
31
|
-
/**
|
|
32
|
-
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
33
|
-
* @summary ⚛️ Retrieve Hotel Room Offers
|
|
34
|
-
* @param {CurrencyClient} currency ISO 4217 currency code.
|
|
35
|
-
* @param {string} hotelRoomOfferRequestId id of the **Hotel Room Offer Request** previously created via [Create Hotel Room Offer Request](/v1/documentation#operation/postV1Hotel_room_offer_requests).
|
|
36
|
-
* @param {Locale} [lang] Set the language for the returned content using a valid language code.
|
|
37
|
-
* @param {number} [limit] Limit the number of **Hotel Room Offers** returned, sorted by increasing price.
|
|
38
|
-
* @param {*} [options] Override http request option.
|
|
39
|
-
* @throws {RequiredError}
|
|
40
|
-
* @memberof HotelRoomOffersInterface
|
|
41
|
-
*/
|
|
42
14
|
listRaw(requestParameters: HotelRoomOffersListPayload, initOverrides?: RequestInit & {
|
|
43
15
|
minCallCount?: number;
|
|
44
16
|
maxCallCount?: number;
|
|
45
17
|
}): Promise<runtime.ApiResponse<HotelRoomOffersApiResponse>>;
|
|
46
|
-
/**
|
|
47
|
-
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
48
|
-
* ⚛️ Retrieve Hotel Room Offers
|
|
49
|
-
*/
|
|
50
18
|
list(requestParameters: HotelRoomOffersListPayload, pollerCallback?: TPollerCallback<HotelRoomOffersApiResponse>, initOverrides?: RequestInit & {
|
|
51
19
|
minCallCount?: number;
|
|
52
20
|
maxCallCount?: number;
|
|
53
21
|
}): Promise<HotelRoomOffersApiResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
56
|
-
* @summary Create Hotel Room Offer
|
|
57
|
-
* @param {HotelRoomOffersCreateApi} [hotelRoomOffersCreateApi] Create Hotel Room Offer
|
|
58
|
-
* @param {*} [options] Override http request option.
|
|
59
|
-
* @throws {RequiredError}
|
|
60
|
-
* @memberof HotelRoomOffersInterface
|
|
61
|
-
*/
|
|
62
22
|
createRaw(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit & {
|
|
63
23
|
minCallCount?: number;
|
|
64
24
|
maxCallCount?: number;
|
|
65
25
|
}): Promise<runtime.ApiResponse<HotelRoomOfferApiResponse>>;
|
|
66
|
-
/**
|
|
67
|
-
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
68
|
-
* Create Hotel Room Offer
|
|
69
|
-
*/
|
|
70
26
|
create(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit & {
|
|
71
27
|
minCallCount?: number;
|
|
72
28
|
maxCallCount?: number;
|
|
73
29
|
}): Promise<HotelRoomOfferApiResponse>;
|
|
74
30
|
}
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
31
|
export declare class HotelRoomOffers extends runtime.BaseAPI implements HotelRoomOffersInterface {
|
|
79
|
-
/**
|
|
80
|
-
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
81
|
-
* ⚛️ Retrieve Hotel Room Offers
|
|
82
|
-
*/
|
|
83
32
|
listRaw(requestParameters: HotelRoomOffersListPayload, initOverrides?: RequestInit & {
|
|
84
33
|
minCallCount?: number;
|
|
85
34
|
maxCallCount?: number;
|
|
86
35
|
}): Promise<runtime.ApiResponse<HotelRoomOffersApiResponse>>;
|
|
87
|
-
/**
|
|
88
|
-
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
89
|
-
* ⚛️ Retrieve Hotel Room Offers
|
|
90
|
-
*/
|
|
91
36
|
list(requestParameters: HotelRoomOffersListPayload, pollerCallback?: TPollerCallback<HotelRoomOffersApiResponse>, initOverrides?: RequestInit & {
|
|
92
37
|
minCallCount?: number;
|
|
93
38
|
maxCallCount?: number;
|
|
94
39
|
}): Promise<HotelRoomOffersApiResponse>;
|
|
95
|
-
/**
|
|
96
|
-
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
97
|
-
* Create Hotel Room Offer
|
|
98
|
-
*/
|
|
99
40
|
createRaw(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit & {
|
|
100
41
|
minCallCount?: number;
|
|
101
42
|
maxCallCount?: number;
|
|
102
43
|
}): Promise<runtime.ApiResponse<HotelRoomOfferApiResponse>>;
|
|
103
|
-
/**
|
|
104
|
-
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
105
|
-
* Create Hotel Room Offer
|
|
106
|
-
*/
|
|
107
44
|
create(requestParameters?: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<HotelRoomOfferApiResponse>;
|
|
108
45
|
}
|
|
46
|
+
//# sourceMappingURL=ResourceHotelRoomOffersApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceHotelRoomOffersApi.d.ts","sourceRoot":"","sources":["../../../../src/v1/apis/ResourceHotelRoomOffersApi.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EACH,KAAK,cAAc,EAMnB,KAAK,yBAAyB,EAG9B,KAAK,0BAA0B,EAG/B,KAAK,wBAAwB,EAG7B,KAAK,MAAM,EAGd,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG1E,MAAM,WAAW,0BAA0B;IACvC,QAAQ,EAAE,cAAc,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