@revolugo/booking-api-client 7.2.4-alpha.5 → 7.2.4-alpha.7

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.
Files changed (78) hide show
  1. package/dist/index.es.js +3951 -1641
  2. package/dist/index.umd.js +2 -2
  3. package/dist/types/v1/models/AllowedPaymentMethodApi.d.ts +13 -0
  4. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf.d.ts +38 -0
  5. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf1.d.ts +38 -0
  6. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf2.d.ts +38 -0
  7. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3.d.ts +34 -0
  8. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3Payload.d.ts +40 -0
  9. package/dist/types/v1/models/AmenitiesApi.d.ts +289 -0
  10. package/dist/types/v1/models/BedApi.d.ts +43 -0
  11. package/dist/types/v1/models/BookingApi.d.ts +267 -0
  12. package/dist/types/v1/models/BookingCreateApi.d.ts +55 -0
  13. package/dist/types/v1/models/BookingCreateApiGuestsListInner.d.ts +27 -0
  14. package/dist/types/v1/models/BookingCreateApiGuestsListInnerGuestsInner.d.ts +31 -0
  15. package/dist/types/v1/models/BookingPoliciesApi.d.ts +97 -0
  16. package/dist/types/v1/models/BookingPoliciesCreateApi.d.ts +53 -0
  17. package/dist/types/v1/models/BookingsApiResponse.d.ts +28 -0
  18. package/dist/types/v1/models/CancellationPolicyApi.d.ts +43 -0
  19. package/dist/types/v1/models/ContactPersonApi.d.ts +113 -0
  20. package/dist/types/v1/models/ContactPersonOrganizationApi.d.ts +57 -0
  21. package/dist/types/v1/models/CountryIso2Code.d.ts +264 -0
  22. package/dist/types/v1/models/CurrencyClient.d.ts +159 -0
  23. package/dist/types/v1/models/ErrorApiResponse.d.ts +70 -0
  24. package/dist/types/v1/models/EventApi.d.ts +37 -0
  25. package/dist/types/v1/models/EventMetadataApi.d.ts +61 -0
  26. package/dist/types/v1/models/HotelApi.d.ts +200 -0
  27. package/dist/types/v1/models/HotelApiImages.d.ts +65 -0
  28. package/dist/types/v1/models/HotelImageApi.d.ts +67 -0
  29. package/dist/types/v1/models/HotelOfferApi.d.ts +216 -0
  30. package/dist/types/v1/models/HotelOfferApiAllOf.d.ts +37 -0
  31. package/dist/types/v1/models/HotelOfferRequestApiResponse.d.ts +94 -0
  32. package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts +84 -0
  33. package/dist/types/v1/models/HotelOffersApiResponse.d.ts +34 -0
  34. package/dist/types/v1/models/HotelOffersApiResponseMeta.d.ts +45 -0
  35. package/dist/types/v1/models/HotelOffersApiResponseMetaAllOf.d.ts +31 -0
  36. package/dist/types/v1/models/HotelOffersDataApiResponse.d.ts +70 -0
  37. package/dist/types/v1/models/HotelReviewRatingApi.d.ts +37 -0
  38. package/dist/types/v1/models/HotelRoomApi.d.ts +120 -0
  39. package/dist/types/v1/models/HotelRoomOfferApi.d.ts +192 -0
  40. package/dist/types/v1/models/HotelRoomOfferApiResponse.d.ts +58 -0
  41. package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts +76 -0
  42. package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf.d.ts +64 -0
  43. package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf1.d.ts +37 -0
  44. package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts +64 -0
  45. package/dist/types/v1/models/HotelRoomOffersApiResponse.d.ts +34 -0
  46. package/dist/types/v1/models/HotelRoomOffersCreateApi.d.ts +61 -0
  47. package/dist/types/v1/models/HotelRoomOffersDataApiResponse.d.ts +64 -0
  48. package/dist/types/v1/models/HotelRoomOffersDataCreateApi.d.ts +43 -0
  49. package/dist/types/v1/models/HotelRoomingListApi.d.ts +46 -0
  50. package/dist/types/v1/models/HotelRoomingListApiHotelRoom.d.ts +120 -0
  51. package/dist/types/v1/models/HotelRoomingListGuestApi.d.ts +37 -0
  52. package/dist/types/v1/models/HotelRoomingListGuestsCreateApi.d.ts +37 -0
  53. package/dist/types/v1/models/HotelRoomingListGuestsUpdateApi.d.ts +31 -0
  54. package/dist/types/v1/models/InvoiceApi.d.ts +45 -0
  55. package/dist/types/v1/models/Locale.d.ts +28 -0
  56. package/dist/types/v1/models/MetaPollingResponseApi.d.ts +45 -0
  57. package/dist/types/v1/models/MetaPollingResponseApiAllOf.d.ts +21 -0
  58. package/dist/types/v1/models/MetaResponseApi.d.ts +49 -0
  59. package/dist/types/v1/models/PaymentMethodApi.d.ts +13 -0
  60. package/dist/types/v1/models/PaymentMethodApiOneOf.d.ts +34 -0
  61. package/dist/types/v1/models/PaymentMethodApiOneOf1.d.ts +34 -0
  62. package/dist/types/v1/models/PaymentMethodApiOneOf1Payload.d.ts +37 -0
  63. package/dist/types/v1/models/PaymentMethodApiOneOf2.d.ts +34 -0
  64. package/dist/types/v1/models/PaymentMethodApiOneOf2Payload.d.ts +37 -0
  65. package/dist/types/v1/models/PaymentMethodApiOneOf3.d.ts +34 -0
  66. package/dist/types/v1/models/PaymentMethodApiOneOf3Payload.d.ts +52 -0
  67. package/dist/types/v1/models/PaymentMethodApiOneOfPayload.d.ts +43 -0
  68. package/dist/types/v1/models/PaymentMethodRequestApi.d.ts +36 -0
  69. package/dist/types/v1/models/PaymentMethodRequestPayloadApi.d.ts +31 -0
  70. package/dist/types/v1/models/PaymentMethodUpdatePayloadApi.d.ts +21 -0
  71. package/dist/types/v1/models/PollerStatus.d.ts +23 -0
  72. package/dist/types/v1/models/SourceMarket.d.ts +264 -0
  73. package/dist/types/v1/models/TagApi.d.ts +55 -0
  74. package/dist/types/v1/models/TaxApi.d.ts +77 -0
  75. package/dist/types/v1/models/TravelTimesApi.d.ts +33 -0
  76. package/dist/types/v1/models/TravelTimesApiTravelTimes.d.ts +43 -0
  77. package/dist/types/v1/models/index.d.ts +74 -4078
  78. package/package.json +4 -4
@@ -0,0 +1,267 @@
1
+ import { CancellationPolicyApi } from './CancellationPolicyApi';
2
+ import { ContactPersonApi } from './ContactPersonApi';
3
+ import { CurrencyClient } from './CurrencyClient';
4
+ import { EventApi } from './EventApi';
5
+ import { HotelRoomOfferApi } from './HotelRoomOfferApi';
6
+ import { HotelRoomingListApi } from './HotelRoomingListApi';
7
+ import { InvoiceApi } from './InvoiceApi';
8
+ import { PaymentMethodApi } from './PaymentMethodApi';
9
+ import { SourceMarket } from './SourceMarket';
10
+ import { TaxApi } from './TaxApi';
11
+ /**
12
+ * Booking record
13
+ * @export
14
+ * @interface BookingApi
15
+ */
16
+ export interface BookingApi {
17
+ /**
18
+ * Additional instructions on how to check-in.
19
+ * @type {string}
20
+ * @memberof BookingApi
21
+ */
22
+ additionalCheckInInstruction?: string | null;
23
+ /**
24
+ * Additional house policy, house manual, or condominium rules.
25
+ * @type {string}
26
+ * @memberof BookingApi
27
+ */
28
+ additionalPolicies?: string | null;
29
+ /**
30
+ * The total number of adults who will be staying in the property.
31
+ * @type {number}
32
+ * @memberof BookingApi
33
+ */
34
+ adultCount: number;
35
+ /**
36
+ * Date of booking cancellation request, when applicable.
37
+ * @type {string}
38
+ * @memberof BookingApi
39
+ */
40
+ canceledAt?: string | null;
41
+ /**
42
+ * The list of cancellation policy date range with their corresponding penalty percentage.
43
+ * @type {Array<CancellationPolicyApi>}
44
+ * @memberof BookingApi
45
+ */
46
+ cancellationPolicies: Array<CancellationPolicyApi>;
47
+ /**
48
+ * Remarks about the cancellation policy.
49
+ * @type {string}
50
+ * @memberof BookingApi
51
+ */
52
+ cancellationPolicyRemarks?: string | null;
53
+ /**
54
+ * Date of check-in formatted as YYYY-MM-DD.
55
+ * @type {string}
56
+ * @memberof BookingApi
57
+ */
58
+ checkInDate: string;
59
+ /**
60
+ * Date of check-out formatted as YYYY-MM-DD.
61
+ * @type {string}
62
+ * @memberof BookingApi
63
+ */
64
+ checkOutDate: string;
65
+ /**
66
+ * A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old.
67
+ * @type {string}
68
+ * @memberof BookingApi
69
+ */
70
+ children?: string | null;
71
+ /**
72
+ * Date of booking confirmation request, when applicable.
73
+ * @type {string}
74
+ * @memberof BookingApi
75
+ */
76
+ confirmedAt?: string | null;
77
+ /**
78
+ *
79
+ * @type {ContactPersonApi}
80
+ * @memberof BookingApi
81
+ */
82
+ contactPerson: ContactPersonApi;
83
+ /**
84
+ * Creation date of the **Booking**.
85
+ * @type {string}
86
+ * @memberof BookingApi
87
+ */
88
+ createdAt: string;
89
+ /**
90
+ *
91
+ * @type {CurrencyClient}
92
+ * @memberof BookingApi
93
+ */
94
+ currency: CurrencyClient;
95
+ /**
96
+ * Customer Reference of the requested Booking (sometimes to present by the customer at hotel check-in).
97
+ * @type {string}
98
+ * @memberof BookingApi
99
+ */
100
+ customerReference?: string | null;
101
+ /**
102
+ *
103
+ * @type {EventApi}
104
+ * @memberof BookingApi
105
+ */
106
+ event?: EventApi | null;
107
+ /**
108
+ * Date of booking failure, when applicable.
109
+ * @type {string}
110
+ * @memberof BookingApi
111
+ */
112
+ failedAt?: string | null;
113
+ /**
114
+ * Code your guest might need to show to the hotel during check-in. This number will only but available a few days prior to check-in and it’s subject to availability.
115
+ * @type {string}
116
+ * @memberof BookingApi
117
+ */
118
+ hotelConfirmationId?: string | null;
119
+ /**
120
+ * Hotel Id of the requested Booking.
121
+ * @type {string}
122
+ * @memberof BookingApi
123
+ */
124
+ hotelId: string;
125
+ /**
126
+ *
127
+ * @type {HotelRoomOfferApi}
128
+ * @memberof BookingApi
129
+ */
130
+ hotelRoomOffer: HotelRoomOfferApi;
131
+ /**
132
+ * Hotel rooming lists of a hotel booking
133
+ * @type {Array<HotelRoomingListApi>}
134
+ * @memberof BookingApi
135
+ */
136
+ hotelRoomingLists?: Array<HotelRoomingListApi>;
137
+ /**
138
+ * Booking Id
139
+ * @type {string}
140
+ * @memberof BookingApi
141
+ */
142
+ id?: string | null;
143
+ /**
144
+ * The list of invoices and credit notes (when applicable) direct urls associated to the Booking.
145
+ * @type {Array<InvoiceApi>}
146
+ * @memberof BookingApi
147
+ */
148
+ invoices?: Array<InvoiceApi> | null;
149
+ /**
150
+ * Date of the last booking status update.
151
+ * @type {string}
152
+ * @memberof BookingApi
153
+ */
154
+ lastStatusUpdatedAt: string;
155
+ /**
156
+ * You can use this parameter to attach key-value data to bookings. Metadata is useful for storing additional, structured information on a booking. As an example, you could store your user's full name and corresponding unique identifier from your system on a booking. Metadata is not used internally by the Booking Engine and won't be seen by your users unless you choose to show it to them.
157
+ * @type {{ [key: string]: string; }}
158
+ * @memberof BookingApi
159
+ */
160
+ metadata?: {
161
+ [key: string]: string;
162
+ } | null;
163
+ /**
164
+ * Booking Pay Later Status
165
+ * @type {string}
166
+ * @memberof BookingApi
167
+ */
168
+ payLater?: BookingApiPayLaterEnum;
169
+ /**
170
+ * List of preferred payment methods to be used along with their respective payload (when applicable) in order to fulfill the booking.
171
+ *
172
+ * ⚠️ This field is only returned when **booking.status = bkg-created**
173
+ * @type {Array<PaymentMethodApi>}
174
+ * @memberof BookingApi
175
+ */
176
+ paymentMethods?: Array<PaymentMethodApi>;
177
+ /**
178
+ * Penalty percentage of the requested Booking.
179
+ *
180
+ * When **booking.status = bkg-cx** this is the percentage of the **booking.tax_included_price** that have been charged on the canceled booking. Otherwise, this field won't be returned.
181
+ * @type {number}
182
+ * @memberof BookingApi
183
+ */
184
+ penaltyPercentage?: number | null;
185
+ /**
186
+ * Booking Reference of the requested Booking.
187
+ * @type {string}
188
+ * @memberof BookingApi
189
+ */
190
+ reference: string;
191
+ /**
192
+ *
193
+ * @type {SourceMarket}
194
+ * @memberof BookingApi
195
+ */
196
+ sourceMarket: SourceMarket;
197
+ /**
198
+ * Booking status. Please, refer to [Booking Status](/v1/documentation#tag/Booking-Status) for details.
199
+ * @type {string}
200
+ * @memberof BookingApi
201
+ */
202
+ status: BookingApiStatusEnum;
203
+ /**
204
+ * Total tax amount expressed in the booking currency.
205
+ * @type {number}
206
+ * @memberof BookingApi
207
+ */
208
+ taxAmount: number;
209
+ /**
210
+ * Price of the booking including taxes expressed in the booking currency.
211
+ * @type {number}
212
+ * @memberof BookingApi
213
+ */
214
+ taxIncludedPrice: number;
215
+ /**
216
+ *
217
+ * @type {Array<TaxApi>}
218
+ * @memberof BookingApi
219
+ */
220
+ taxes?: Array<TaxApi> | null;
221
+ /**
222
+ * Link to Revolugo terms and conditions under which the booking is made.
223
+ * @type {string}
224
+ * @memberof BookingApi
225
+ */
226
+ terms: string;
227
+ /**
228
+ * This is the token to pass as URL params to [Cancel Booking endpoint](/v1/documentation#operation/deleteV1BookingsId) in order to perform a cancel request on the booking. If you want to cancel a booking, you should use this token instead of the booking id.
229
+ *
230
+ * ⚠️ For security reasons, this token is unique and once generated, it is valid during a period of 10 minutes.
231
+ *
232
+ * In order to get a fresh valid token you need to call **[Retrieve Booking endpoint](/v1/documentation#operation/getV1BookingsId)**.
233
+ * @type {string}
234
+ * @memberof BookingApi
235
+ */
236
+ token?: string | null;
237
+ }
238
+ /**
239
+ * @export
240
+ */
241
+ export declare const BookingApiPayLaterEnum: {
242
+ readonly Disabled: "DISABLED";
243
+ readonly Enabled: "ENABLED";
244
+ readonly Forced: "FORCED";
245
+ };
246
+ export type BookingApiPayLaterEnum = typeof BookingApiPayLaterEnum[keyof typeof BookingApiPayLaterEnum];
247
+ /**
248
+ * @export
249
+ */
250
+ export declare const BookingApiStatusEnum: {
251
+ readonly Cx: "bkg-cx";
252
+ readonly Cf: "bkg-cf";
253
+ readonly Created: "bkg-created";
254
+ readonly Af: "bkg-af";
255
+ readonly Ip: "bkg-ip";
256
+ readonly Pc: "bkg-pc";
257
+ readonly Pp: "bkg-pp";
258
+ readonly Qr: "bkg-qr";
259
+ };
260
+ export type BookingApiStatusEnum = typeof BookingApiStatusEnum[keyof typeof BookingApiStatusEnum];
261
+ /**
262
+ * Check if a given object implements the BookingApi interface.
263
+ */
264
+ export declare function instanceOfBookingApi(value: object): boolean;
265
+ export declare function BookingApiFromJSON(json: any): BookingApi;
266
+ export declare function BookingApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingApi;
267
+ export declare function BookingApiToJSON(value?: BookingApi | null): any;
@@ -0,0 +1,55 @@
1
+ import { BookingCreateApiGuestsListInner } from './BookingCreateApiGuestsListInner';
2
+ import { ContactPersonApi } from './ContactPersonApi';
3
+ import { PaymentMethodRequestApi } from './PaymentMethodRequestApi';
4
+ /**
5
+ *
6
+ * @export
7
+ * @interface BookingCreateApi
8
+ */
9
+ export interface BookingCreateApi {
10
+ /**
11
+ * Booking policy id to book, returned from previous **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** call
12
+ * @type {string}
13
+ * @memberof BookingCreateApi
14
+ */
15
+ bookingPolicyId: string;
16
+ /**
17
+ *
18
+ * @type {ContactPersonApi}
19
+ * @memberof BookingCreateApi
20
+ */
21
+ contactPerson: ContactPersonApi;
22
+ /**
23
+ *
24
+ * @type {Array<BookingCreateApiGuestsListInner>}
25
+ * @memberof BookingCreateApi
26
+ */
27
+ guestsList?: Array<BookingCreateApiGuestsListInner>;
28
+ /**
29
+ * You can use this parameter to attach key-value data to bookings. Metadata is useful for storing additional, structured information on a booking. As an example, you could store your user's full name and corresponding unique identifier from your system on a booking. Metadata is not used internally by the Booking Engine and won't be seen by your users unless you choose to show it to them.
30
+ * @type {{ [key: string]: string; }}
31
+ * @memberof BookingCreateApi
32
+ */
33
+ metadata?: {
34
+ [key: string]: string;
35
+ } | null;
36
+ /**
37
+ * List of preferred payment methods to be used along with their respective payload (when applicable) in order to fulfill the booking.
38
+ * @type {Array<PaymentMethodRequestApi>}
39
+ * @memberof BookingCreateApi
40
+ */
41
+ paymentMethods?: Array<PaymentMethodRequestApi>;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof BookingCreateApi
46
+ */
47
+ trackingId?: string | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the BookingCreateApi interface.
51
+ */
52
+ export declare function instanceOfBookingCreateApi(value: object): boolean;
53
+ export declare function BookingCreateApiFromJSON(json: any): BookingCreateApi;
54
+ export declare function BookingCreateApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingCreateApi;
55
+ export declare function BookingCreateApiToJSON(value?: BookingCreateApi | null): any;
@@ -0,0 +1,27 @@
1
+ import { BookingCreateApiGuestsListInnerGuestsInner } from './BookingCreateApiGuestsListInnerGuestsInner';
2
+ /**
3
+ *
4
+ * @export
5
+ * @interface BookingCreateApiGuestsListInner
6
+ */
7
+ export interface BookingCreateApiGuestsListInner {
8
+ /**
9
+ *
10
+ * @type {Array<BookingCreateApiGuestsListInnerGuestsInner>}
11
+ * @memberof BookingCreateApiGuestsListInner
12
+ */
13
+ guests: Array<BookingCreateApiGuestsListInnerGuestsInner>;
14
+ /**
15
+ *
16
+ * @type {string}
17
+ * @memberof BookingCreateApiGuestsListInner
18
+ */
19
+ hotelRoomId: string;
20
+ }
21
+ /**
22
+ * Check if a given object implements the BookingCreateApiGuestsListInner interface.
23
+ */
24
+ export declare function instanceOfBookingCreateApiGuestsListInner(value: object): boolean;
25
+ export declare function BookingCreateApiGuestsListInnerFromJSON(json: any): BookingCreateApiGuestsListInner;
26
+ export declare function BookingCreateApiGuestsListInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingCreateApiGuestsListInner;
27
+ export declare function BookingCreateApiGuestsListInnerToJSON(value?: BookingCreateApiGuestsListInner | null): any;
@@ -0,0 +1,31 @@
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 BookingCreateApiGuestsListInnerGuestsInner
16
+ */
17
+ export interface BookingCreateApiGuestsListInnerGuestsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BookingCreateApiGuestsListInnerGuestsInner
22
+ */
23
+ fullname: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the BookingCreateApiGuestsListInnerGuestsInner interface.
27
+ */
28
+ export declare function instanceOfBookingCreateApiGuestsListInnerGuestsInner(value: object): boolean;
29
+ export declare function BookingCreateApiGuestsListInnerGuestsInnerFromJSON(json: any): BookingCreateApiGuestsListInnerGuestsInner;
30
+ export declare function BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingCreateApiGuestsListInnerGuestsInner;
31
+ export declare function BookingCreateApiGuestsListInnerGuestsInnerToJSON(value?: BookingCreateApiGuestsListInnerGuestsInner | null): any;
@@ -0,0 +1,97 @@
1
+ import { CancellationPolicyApi } from './CancellationPolicyApi';
2
+ import { CurrencyClient } from './CurrencyClient';
3
+ import { HotelRoomOfferApi } from './HotelRoomOfferApi';
4
+ /**
5
+ *
6
+ * @export
7
+ * @interface BookingPoliciesApi
8
+ */
9
+ export interface BookingPoliciesApi {
10
+ /**
11
+ * The total number of adults who will be staying in the property.
12
+ * @type {number}
13
+ * @memberof BookingPoliciesApi
14
+ */
15
+ adultCount: number;
16
+ /**
17
+ * The list of cancellation policy date range with their corresponding penalty percentage.
18
+ * @type {Array<CancellationPolicyApi>}
19
+ * @memberof BookingPoliciesApi
20
+ */
21
+ cancellationPolicies: Array<CancellationPolicyApi>;
22
+ /**
23
+ * Date of check-in formatted as YYYY-MM-DD.
24
+ * @type {string}
25
+ * @memberof BookingPoliciesApi
26
+ */
27
+ checkInDate: string;
28
+ /**
29
+ * Date of check-out formatted as YYYY-MM-DD.
30
+ * @type {string}
31
+ * @memberof BookingPoliciesApi
32
+ */
33
+ checkOutDate: string;
34
+ /**
35
+ * A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old.
36
+ * @type {string}
37
+ * @memberof BookingPoliciesApi
38
+ */
39
+ children?: string | null;
40
+ /**
41
+ *
42
+ * @type {CurrencyClient}
43
+ * @memberof BookingPoliciesApi
44
+ */
45
+ currency: CurrencyClient;
46
+ /**
47
+ * Expiration date for this **Booking Policy**.
48
+ *
49
+ * The returned **Booking Policy** (price and cancellation policies) is valid bookable policy up to this **expires_at** date, while it may be valid for a longer period in the case of some suppliers, this API call is equivalent to an availability check and it is important not to let long periods between retrieval of this policy and the booking confirmation call itself as this will often reduce the likelihood of a **Hotel Room Offer** being successfully booked.
50
+ * @type {Date}
51
+ * @memberof BookingPoliciesApi
52
+ */
53
+ expiresAt: Date | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof BookingPoliciesApi
58
+ */
59
+ hasRoomingLists: boolean;
60
+ /**
61
+ * Hotel id
62
+ * @type {string}
63
+ * @memberof BookingPoliciesApi
64
+ */
65
+ hotelId: string;
66
+ /**
67
+ *
68
+ * @type {HotelRoomOfferApi}
69
+ * @memberof BookingPoliciesApi
70
+ */
71
+ hotelRoomOffer: HotelRoomOfferApi;
72
+ /**
73
+ * **Booking Policy** id
74
+ * @type {string}
75
+ * @memberof BookingPoliciesApi
76
+ */
77
+ id: string;
78
+ /**
79
+ * Indicates whether the price of the **Hotel Room Offer** (without breakfast included) has increased compared to the price returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers).
80
+ *
81
+ * In some case, the returned price may increase for various reasons including: Currency rate change between the POST **Booking Policies** call and the GET **Hotel Room Offers** call, **Hotel Room Offer** price has increased since the GET **Hotel Room Offers** call.
82
+ *
83
+ * If **is_price_increased** is **true**, it means that the actual/updated price of the **Hotel Room Offer** is greater than the price previously returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers). If **is_price_increased** is **false**, the price of the **Hotel Room Offer** is equal to the price returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers).
84
+ *
85
+ * ⚠️ It is strongly advised to clearly inform your customer of any price increase that may occur.
86
+ * @type {boolean}
87
+ * @memberof BookingPoliciesApi
88
+ */
89
+ isPriceIncreased: boolean;
90
+ }
91
+ /**
92
+ * Check if a given object implements the BookingPoliciesApi interface.
93
+ */
94
+ export declare function instanceOfBookingPoliciesApi(value: object): boolean;
95
+ export declare function BookingPoliciesApiFromJSON(json: any): BookingPoliciesApi;
96
+ export declare function BookingPoliciesApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingPoliciesApi;
97
+ export declare function BookingPoliciesApiToJSON(value?: BookingPoliciesApi | null): any;
@@ -0,0 +1,53 @@
1
+ import { Locale } from './Locale';
2
+ /**
3
+ *
4
+ * @export
5
+ * @interface BookingPoliciesCreateApi
6
+ */
7
+ export interface BookingPoliciesCreateApi {
8
+ /**
9
+ * This parameter allows to add breakfast to the booking as long as every requested Hotel Room Offers **breakfast_option = OPTIONAL** .
10
+ *
11
+ * The final breakfast count that will be included in the Hotel Room Offer will be returned in the response and is calculated as follows:
12
+ *
13
+ * - If the returned Hotel Room Offer **total room count** > **hotel_room_offer_request.adult_count** then **breakfast_count** will be equal to the **total room count** of the returned Hotel Room Offer,
14
+ *
15
+ * - Otherwise **breakfast_count** will be equal to the minimum value between related **hotel_room_offer_request.adult_count** and returned Hotel Room Offer **total occupancy**.
16
+ *
17
+ * <div style="background-color: #ffffef; padding: 20px; border: 1px solid lightgrey; border-radius: 5px;"><b style="color: red; margin-top: 10px;">🛑 DEPRECATED.</b>
18
+ *
19
+ * <b style="color: orange;">If you already use this field, don't worry as we still support it with the following behaviour:</b>
20
+ * - <span style="color: orange;">When **add_breakfast = true** then **breakfast_count = MIN(guest count, total offer occupancy)** where **guest count** is the total number of adult and children over 3.</span>
21
+ * - <span style="color: orange;">Otherwise **breakfast_count = 0**.</span></div>
22
+ * @type {boolean}
23
+ * @memberof BookingPoliciesCreateApi
24
+ */
25
+ addBreakfast?: boolean | null;
26
+ /**
27
+ * This parameter describes the quantity of breakfast / night that should be included in the **Booking**. When **breakfast_option = OPTIONAL**, valid **breakfast_count** lower bound is **room count** and upper bound is **guest count**, where **guest count** is the number of adult and children over 3.
28
+ *
29
+ * ⚠️ The actual breakfast count that will be included in the **Booking** is the one that is returned in the response of this endpoint and might be different from this **breakfast_count** paramater in some cases. Please, make sure to check the actual breakfast count included in the **Hotel Room Offer** returned in the response of this endpoint.
30
+ * @type {number}
31
+ * @memberof BookingPoliciesCreateApi
32
+ */
33
+ breakfastCount?: number;
34
+ /**
35
+ * Id of requested **Hotel Room Offer** returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers). Requested **Hotel Room Offer** must be of **type = PACKAGE**
36
+ * @type {string}
37
+ * @memberof BookingPoliciesCreateApi
38
+ */
39
+ hotelRoomOfferId: string;
40
+ /**
41
+ *
42
+ * @type {Locale}
43
+ * @memberof BookingPoliciesCreateApi
44
+ */
45
+ lang?: Locale | null;
46
+ }
47
+ /**
48
+ * Check if a given object implements the BookingPoliciesCreateApi interface.
49
+ */
50
+ export declare function instanceOfBookingPoliciesCreateApi(value: object): boolean;
51
+ export declare function BookingPoliciesCreateApiFromJSON(json: any): BookingPoliciesCreateApi;
52
+ export declare function BookingPoliciesCreateApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingPoliciesCreateApi;
53
+ export declare function BookingPoliciesCreateApiToJSON(value?: BookingPoliciesCreateApi | null): any;
@@ -0,0 +1,28 @@
1
+ import { BookingApi } from './BookingApi';
2
+ import { MetaResponseApi } from './MetaResponseApi';
3
+ /**
4
+ *
5
+ * @export
6
+ * @interface BookingsApiResponse
7
+ */
8
+ export interface BookingsApiResponse {
9
+ /**
10
+ * List of detailed Bookings
11
+ * @type {Array<BookingApi>}
12
+ * @memberof BookingsApiResponse
13
+ */
14
+ data: Array<BookingApi>;
15
+ /**
16
+ *
17
+ * @type {MetaResponseApi}
18
+ * @memberof BookingsApiResponse
19
+ */
20
+ meta: MetaResponseApi;
21
+ }
22
+ /**
23
+ * Check if a given object implements the BookingsApiResponse interface.
24
+ */
25
+ export declare function instanceOfBookingsApiResponse(value: object): boolean;
26
+ export declare function BookingsApiResponseFromJSON(json: any): BookingsApiResponse;
27
+ export declare function BookingsApiResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingsApiResponse;
28
+ export declare function BookingsApiResponseToJSON(value?: BookingsApiResponse | null): any;
@@ -0,0 +1,43 @@
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 CancellationPolicyApi
16
+ */
17
+ export interface CancellationPolicyApi {
18
+ /**
19
+ * The start date and time of the cancellation policy, given in the hotel timezone.
20
+ * @type {string}
21
+ * @memberof CancellationPolicyApi
22
+ */
23
+ dateFrom: string;
24
+ /**
25
+ * The end date and time of the cancellation policy, given in the hotel timezone.
26
+ * @type {string}
27
+ * @memberof CancellationPolicyApi
28
+ */
29
+ dateTo: string;
30
+ /**
31
+ * The penalty percentage that is due in case of cancellation during the **date_from** to **date_to** period range.
32
+ * @type {number}
33
+ * @memberof CancellationPolicyApi
34
+ */
35
+ penaltyPercentage: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CancellationPolicyApi interface.
39
+ */
40
+ export declare function instanceOfCancellationPolicyApi(value: object): boolean;
41
+ export declare function CancellationPolicyApiFromJSON(json: any): CancellationPolicyApi;
42
+ export declare function CancellationPolicyApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationPolicyApi;
43
+ export declare function CancellationPolicyApiToJSON(value?: CancellationPolicyApi | null): any;