Wiki source code of 3. CalcPackage
Version 8.1 by Giorgi Mdivnishvili on 2023/12/26 17:05
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | |||
3 | |||
4 | {{toc/}} | ||
5 | {{/box}} | ||
6 | |||
7 | = Method Description = | ||
8 | |||
9 | The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods. | ||
10 | |||
11 | |||
12 | == Endpoint URL - [POST] == | ||
13 | |||
14 | {{info}} | ||
15 | [[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]] | ||
16 | {{/info}} | ||
17 | |||
18 | |||
19 | == Request Parameters == | ||
20 | |||
21 | (% class="box infomessage" %) | ||
22 | ((( | ||
23 | None | ||
24 | ))) | ||
25 | |||
26 | |||
27 | == Request Body == | ||
28 | |||
29 | {{code language="Json"}} | ||
30 | { | ||
31 | "packageId": "string", | ||
32 | "extraServicePriceCodes": [ | ||
33 | "string" | ||
34 | ], | ||
35 | "flightPassengers": [ | ||
36 | { | ||
37 | "id": "string", | ||
38 | "selectedForwardBaggageCode": "string", | ||
39 | "selectedBackwardBaggageCode": "string" | ||
40 | } | ||
41 | ], | ||
42 | "includeInsurance": true, | ||
43 | "refreshPrices": true | ||
44 | } | ||
45 | {{/code}} | ||
46 | |||
47 | (% class="wikigeneratedid" id="HRequestBodyexample" %) | ||
48 | (% id="cke_bm_10575S" style="display:none" %) | ||
49 | |||
50 | (% class="wikigeneratedid" %) | ||
51 | |||
52 | |||
53 | == Request Body example == | ||
54 | |||
55 | {{code language="Json"}} | ||
56 | { | ||
57 | "packageId": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57", | ||
58 | "extraServicePriceCodes": [ | ||
59 | |||
60 | ], | ||
61 | "flightPassengers": [ | ||
62 | { | ||
63 | "id": "42779531011000004-A1", | ||
64 | "selectedForwardBaggageCode": "", | ||
65 | "selectedBackwardBaggageCode": "" | ||
66 | } | ||
67 | ], | ||
68 | "includeInsurance": true, | ||
69 | "refreshPrices": true | ||
70 | } | ||
71 | {{/code}} | ||
72 | |||
73 | |||
74 | == Response == | ||
75 | |||
76 | {{code language="json"}} | ||
77 | { | ||
78 | "error": true, | ||
79 | "errorCode": "string", | ||
80 | "errorDescription": "string", | ||
81 | "userErrorDescription": "string", | ||
82 | "package": { | ||
83 | "cacheKey": "string", | ||
84 | "id": "string", | ||
85 | "priceCurrency": "string", | ||
86 | "totalPrice": 0, | ||
87 | "agentCommissionPercent": 0, | ||
88 | "agentCommissionAmount": 0, | ||
89 | "includedExtrasAmount": 0, | ||
90 | "priceDifference": 0, | ||
91 | "hotel": { | ||
92 | "hotelPriceId": "string", | ||
93 | "providerId": 0, | ||
94 | "hotelName": "string", | ||
95 | "hotelCode": "string", | ||
96 | "nigths": 0, | ||
97 | "mealPlan": "string", | ||
98 | "hotelClass": "string", | ||
99 | "availabilityType": "OnRequest", | ||
100 | "availableRoomsCount": 0, | ||
101 | "fewRooms": true, | ||
102 | "roomCategoryCode": "string", | ||
103 | "roomCategoryName": "string", | ||
104 | "placementTypeName": "string", | ||
105 | "placementDescription": "string", | ||
106 | "checkInDate": "2023-12-26T12:55:59.433Z", | ||
107 | "checkOutDate": "2023-12-26T12:55:59.433Z", | ||
108 | "adults": 0, | ||
109 | "children": 0, | ||
110 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
111 | "districtName": "string", | ||
112 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
113 | "cityName": "string", | ||
114 | "countryCode": "string", | ||
115 | "countryName": "string", | ||
116 | "hasAlcohol": true, | ||
117 | "hasFreeWifi": true, | ||
118 | "hasMetro": true, | ||
119 | "hasPool": true, | ||
120 | "hasMall": true, | ||
121 | "cancellationPolicyDescription": "string", | ||
122 | "cancellationPolicy": { | ||
123 | "cancellationPolicyCode": "string", | ||
124 | "noShowChargeValue": 0, | ||
125 | "noShowChargeValueType": "string", | ||
126 | "earlyDepartureChargeValue": 0, | ||
127 | "earlyDepartureChargeValueType": "string", | ||
128 | "conditions": [ | ||
129 | { | ||
130 | "timeunits": 0, | ||
131 | "timeunitType": "string", | ||
132 | "timeOffsetTypeName": "string", | ||
133 | "chargeValue": 0, | ||
134 | "chargeValueType": "string" | ||
135 | } | ||
136 | ] | ||
137 | } | ||
138 | }, | ||
139 | "flight": { | ||
140 | "id": "string", | ||
141 | "departureDate": "2023-12-26T12:55:59.433Z", | ||
142 | "returnDate": "2023-12-26T12:55:59.433Z", | ||
143 | "departureTicketsLeft": 0, | ||
144 | "returnTicketsLeft": 0, | ||
145 | "departureAvailabilityType": "OnRequest", | ||
146 | "returnAvailabilityType": "OnRequest", | ||
147 | "isTwoWay": true, | ||
148 | "sameBaggageForAll": true, | ||
149 | "totalBaggage": true, | ||
150 | "departureSegments": [ | ||
151 | { | ||
152 | "airlineCode": "string", | ||
153 | "airlineName": "string", | ||
154 | "flightCode": "string", | ||
155 | "class": "string", | ||
156 | "lugageWeight": 0, | ||
157 | "handLugageWeight": 0, | ||
158 | "departureFlightDate": "2023-12-26T12:55:59.433Z", | ||
159 | "departureCountryName": "string", | ||
160 | "departureCityName": "string", | ||
161 | "departureAirportCode": "string", | ||
162 | "departureAirportName": "string", | ||
163 | "departureTerminalCode": "string", | ||
164 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", | ||
165 | "arrivalCountryName": "string", | ||
166 | "arrivalCityName": "string", | ||
167 | "arrivalAirportCode": "string", | ||
168 | "arrivalAirportName": "string", | ||
169 | "arrivalTerminalCode": "string", | ||
170 | "flightDuration": "string" | ||
171 | } | ||
172 | ], | ||
173 | "returnSegments": [ | ||
174 | { | ||
175 | "airlineCode": "string", | ||
176 | "airlineName": "string", | ||
177 | "flightCode": "string", | ||
178 | "class": "string", | ||
179 | "lugageWeight": 0, | ||
180 | "handLugageWeight": 0, | ||
181 | "departureFlightDate": "2023-12-26T12:55:59.433Z", | ||
182 | "departureCountryName": "string", | ||
183 | "departureCityName": "string", | ||
184 | "departureAirportCode": "string", | ||
185 | "departureAirportName": "string", | ||
186 | "departureTerminalCode": "string", | ||
187 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", | ||
188 | "arrivalCountryName": "string", | ||
189 | "arrivalCityName": "string", | ||
190 | "arrivalAirportCode": "string", | ||
191 | "arrivalAirportName": "string", | ||
192 | "arrivalTerminalCode": "string", | ||
193 | "flightDuration": "string" | ||
194 | } | ||
195 | ], | ||
196 | "passengers": [ | ||
197 | { | ||
198 | "id": "string", | ||
199 | "isAdult": true, | ||
200 | "selectedForwardBaggageCode": "string", | ||
201 | "selectedBackwardBaggageCode": "string", | ||
202 | "forwardBaggages": [ | ||
203 | { | ||
204 | "baggageCode": "string", | ||
205 | "description": "string", | ||
206 | "price": 0, | ||
207 | "currency": "string", | ||
208 | "included": true | ||
209 | } | ||
210 | ], | ||
211 | "backwardBaggages": [ | ||
212 | { | ||
213 | "baggageCode": "string", | ||
214 | "description": "string", | ||
215 | "price": 0, | ||
216 | "currency": "string", | ||
217 | "included": true | ||
218 | } | ||
219 | ] | ||
220 | } | ||
221 | ] | ||
222 | }, | ||
223 | "extraServices": [ | ||
224 | { | ||
225 | "extraServiceCode": "string", | ||
226 | "extraServiceTypeCode": "string", | ||
227 | "isMandatory": 0, | ||
228 | "extraServiceName": "string", | ||
229 | "minimalServiceAmount": 0, | ||
230 | "includedPriceCode": "string", | ||
231 | "prices": [ | ||
232 | { | ||
233 | "extraServicePriceCode": "string", | ||
234 | "displayName": "string", | ||
235 | "restrictionInfo": "string", | ||
236 | "additionalInfo": "string", | ||
237 | "price": 0, | ||
238 | "extraPrice": 0, | ||
239 | "currency": "string" | ||
240 | } | ||
241 | ] | ||
242 | } | ||
243 | ], | ||
244 | "insurancePrice": { | ||
245 | "name": "string", | ||
246 | "price": 0, | ||
247 | "priceSurcarge": 0, | ||
248 | "actualStartDate": "2023-12-26T12:55:59.433Z", | ||
249 | "actualEndDate": "2023-12-26T12:55:59.433Z", | ||
250 | "optional": true, | ||
251 | "includedInPackagePrice": true | ||
252 | } | ||
253 | }, | ||
254 | "altPackages": [ | ||
255 | { | ||
256 | "cacheKey": "string", | ||
257 | "id": "string", | ||
258 | "priceCurrency": "string", | ||
259 | "totalPrice": 0, | ||
260 | "agentCommissionPercent": 0, | ||
261 | "agentCommissionAmount": 0, | ||
262 | "includedExtrasAmount": 0, | ||
263 | "priceDifference": 0, | ||
264 | "hotel": { | ||
265 | "hotelPriceId": "string", | ||
266 | "providerId": 0, | ||
267 | "hotelName": "string", | ||
268 | "hotelCode": "string", | ||
269 | "nigths": 0, | ||
270 | "mealPlan": "string", | ||
271 | "hotelClass": "string", | ||
272 | "availabilityType": "OnRequest", | ||
273 | "availableRoomsCount": 0, | ||
274 | "fewRooms": true, | ||
275 | "roomCategoryCode": "string", | ||
276 | "roomCategoryName": "string", | ||
277 | "placementTypeName": "string", | ||
278 | "placementDescription": "string", | ||
279 | "checkInDate": "2023-12-26T12:55:59.433Z", | ||
280 | "checkOutDate": "2023-12-26T12:55:59.433Z", | ||
281 | "adults": 0, | ||
282 | "children": 0, | ||
283 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
284 | "districtName": "string", | ||
285 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
286 | "cityName": "string", | ||
287 | "countryCode": "string", | ||
288 | "countryName": "string", | ||
289 | "hasAlcohol": true, | ||
290 | "hasFreeWifi": true, | ||
291 | "hasMetro": true, | ||
292 | "hasPool": true, | ||
293 | "hasMall": true, | ||
294 | "cancellationPolicyDescription": "string", | ||
295 | "cancellationPolicy": { | ||
296 | "cancellationPolicyCode": "string", | ||
297 | "noShowChargeValue": 0, | ||
298 | "noShowChargeValueType": "string", | ||
299 | "earlyDepartureChargeValue": 0, | ||
300 | "earlyDepartureChargeValueType": "string", | ||
301 | "conditions": [ | ||
302 | { | ||
303 | "timeunits": 0, | ||
304 | "timeunitType": "string", | ||
305 | "timeOffsetTypeName": "string", | ||
306 | "chargeValue": 0, | ||
307 | "chargeValueType": "string" | ||
308 | } | ||
309 | ] | ||
310 | } | ||
311 | }, | ||
312 | "flight": { | ||
313 | "id": "string", | ||
314 | "departureDate": "2023-12-26T12:55:59.433Z", | ||
315 | "returnDate": "2023-12-26T12:55:59.433Z", | ||
316 | "departureTicketsLeft": 0, | ||
317 | "returnTicketsLeft": 0, | ||
318 | "departureAvailabilityType": "OnRequest", | ||
319 | "returnAvailabilityType": "OnRequest", | ||
320 | "isTwoWay": true, | ||
321 | "sameBaggageForAll": true, | ||
322 | "totalBaggage": true, | ||
323 | "departureSegments": [ | ||
324 | { | ||
325 | "airlineCode": "string", | ||
326 | "airlineName": "string", | ||
327 | "flightCode": "string", | ||
328 | "class": "string", | ||
329 | "lugageWeight": 0, | ||
330 | "handLugageWeight": 0, | ||
331 | "departureFlightDate": "2023-12-26T12:55:59.433Z", | ||
332 | "departureCountryName": "string", | ||
333 | "departureCityName": "string", | ||
334 | "departureAirportCode": "string", | ||
335 | "departureAirportName": "string", | ||
336 | "departureTerminalCode": "string", | ||
337 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", | ||
338 | "arrivalCountryName": "string", | ||
339 | "arrivalCityName": "string", | ||
340 | "arrivalAirportCode": "string", | ||
341 | "arrivalAirportName": "string", | ||
342 | "arrivalTerminalCode": "string", | ||
343 | "flightDuration": "string" | ||
344 | } | ||
345 | ], | ||
346 | "returnSegments": [ | ||
347 | { | ||
348 | "airlineCode": "string", | ||
349 | "airlineName": "string", | ||
350 | "flightCode": "string", | ||
351 | "class": "string", | ||
352 | "lugageWeight": 0, | ||
353 | "handLugageWeight": 0, | ||
354 | "departureFlightDate": "2023-12-26T12:55:59.433Z", | ||
355 | "departureCountryName": "string", | ||
356 | "departureCityName": "string", | ||
357 | "departureAirportCode": "string", | ||
358 | "departureAirportName": "string", | ||
359 | "departureTerminalCode": "string", | ||
360 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", | ||
361 | "arrivalCountryName": "string", | ||
362 | "arrivalCityName": "string", | ||
363 | "arrivalAirportCode": "string", | ||
364 | "arrivalAirportName": "string", | ||
365 | "arrivalTerminalCode": "string", | ||
366 | "flightDuration": "string" | ||
367 | } | ||
368 | ], | ||
369 | "passengers": [ | ||
370 | { | ||
371 | "id": "string", | ||
372 | "isAdult": true, | ||
373 | "selectedForwardBaggageCode": "string", | ||
374 | "selectedBackwardBaggageCode": "string", | ||
375 | "forwardBaggages": [ | ||
376 | { | ||
377 | "baggageCode": "string", | ||
378 | "description": "string", | ||
379 | "price": 0, | ||
380 | "currency": "string", | ||
381 | "included": true | ||
382 | } | ||
383 | ], | ||
384 | "backwardBaggages": [ | ||
385 | { | ||
386 | "baggageCode": "string", | ||
387 | "description": "string", | ||
388 | "price": 0, | ||
389 | "currency": "string", | ||
390 | "included": true | ||
391 | } | ||
392 | ] | ||
393 | } | ||
394 | ] | ||
395 | }, | ||
396 | "extraServices": [ | ||
397 | { | ||
398 | "extraServiceCode": "string", | ||
399 | "extraServiceTypeCode": "string", | ||
400 | "isMandatory": 0, | ||
401 | "extraServiceName": "string", | ||
402 | "minimalServiceAmount": 0, | ||
403 | "includedPriceCode": "string", | ||
404 | "prices": [ | ||
405 | { | ||
406 | "extraServicePriceCode": "string", | ||
407 | "displayName": "string", | ||
408 | "restrictionInfo": "string", | ||
409 | "additionalInfo": "string", | ||
410 | "price": 0, | ||
411 | "extraPrice": 0, | ||
412 | "currency": "string" | ||
413 | } | ||
414 | ] | ||
415 | } | ||
416 | ], | ||
417 | "insurancePrice": { | ||
418 | "name": "string", | ||
419 | "price": 0, | ||
420 | "priceSurcarge": 0, | ||
421 | "actualStartDate": "2023-12-26T12:55:59.433Z", | ||
422 | "actualEndDate": "2023-12-26T12:55:59.433Z", | ||
423 | "optional": true, | ||
424 | "includedInPackagePrice": true | ||
425 | } | ||
426 | } | ||
427 | ], | ||
428 | "refreshPriceResult": "Success" | ||
429 | } | ||
430 | {{/code}} | ||
431 | |||
432 | |||
433 | === Response example === | ||
434 | |||
435 | {{code language="Json"}} | ||
436 | { | ||
437 | "package": { | ||
438 | "id": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57", | ||
439 | "priceCurrency": "USD", | ||
440 | "totalPrice": 937.16, | ||
441 | "agentCommissionPercent": 0.00, | ||
442 | "agentCommissionAmount": 0.00, | ||
443 | "includedExtrasAmount": 0, | ||
444 | "priceDifference": 0, | ||
445 | "hotel": { | ||
446 | "hotelPriceId": "193990fa-41a5-46e6-9805-50f82c3c377f", | ||
447 | "providerId": 13, | ||
448 | "hotelName": "Mercure Dubai Barsha Heights Suites Apartments", | ||
449 | "hotelCode": "5f125310-7025-4807-a4c6-49cd284c9c14", | ||
450 | "nigths": 2, | ||
451 | "mealPlan": "BB", | ||
452 | "hotelClass": "4", | ||
453 | "availabilityType": "StopSale", | ||
454 | "availableRoomsCount": 0, | ||
455 | "fewRooms": true, | ||
456 | "roomCategoryCode": "f8e1ffe5-25cc-46a4-80e8-586d1c049de4", | ||
457 | "roomCategoryName": "1 B/R Apartment City View", | ||
458 | "placementTypeName": "SNGL + CHILD(2-5.99)sharing", | ||
459 | "checkInDate": "2024-02-15T20:00:00.000Z", | ||
460 | "checkOutDate": "2024-02-17T20:00:00.000Z", | ||
461 | "adults": 1, | ||
462 | "children": 1, | ||
463 | "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", | ||
464 | "districtName": "Al Barsha", | ||
465 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
466 | "cityName": "Dubai", | ||
467 | "countryCode": "AE", | ||
468 | "countryName": "United Arab Emirates", | ||
469 | "hasAlcohol": false, | ||
470 | "hasFreeWifi": true, | ||
471 | "hasMetro": true, | ||
472 | "hasPool": true, | ||
473 | "hasMall": false, | ||
474 | "cancellationPolicyDescription": "Cancellation Policy: 5 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", | ||
475 | "cancellationPolicy": { | ||
476 | "noShowChargeValue": 100.00, | ||
477 | "noShowChargeValueType": "%", | ||
478 | "earlyDepartureChargeValue": 100.00, | ||
479 | "earlyDepartureChargeValueType": "%", | ||
480 | "conditions": [ | ||
481 | { | ||
482 | "timeunits": 5, | ||
483 | "timeunitType": "Day", | ||
484 | "timeOffsetTypeName": "Before Arrival", | ||
485 | "chargeValue": 100.00, | ||
486 | "chargeValueType": "%" | ||
487 | } | ||
488 | ] | ||
489 | } | ||
490 | }, | ||
491 | "flight": { | ||
492 | "id": "0c299240-6fc6-4f79-ba99-3548f2de3f57", | ||
493 | "departureDate": "2024-02-15T20:00:00.000Z", | ||
494 | "returnDate": "2024-02-17T20:00:00.000Z", | ||
495 | "departureTicketsLeft": 7, | ||
496 | "returnTicketsLeft": 7, | ||
497 | "departureAvailabilityType": "FewPlaces", | ||
498 | "returnAvailabilityType": "FewPlaces", | ||
499 | "isTwoWay": true, | ||
500 | "sameBaggageForAll": false, | ||
501 | "totalBaggage": true, | ||
502 | "departureSegments": [ | ||
503 | { | ||
504 | "airlineCode": "KC", | ||
505 | "airlineName": "Air Astana-", | ||
506 | "flightCode": "KC899", | ||
507 | "class": "econom", | ||
508 | "lugageWeight": 20, | ||
509 | "handLugageWeight": 6, | ||
510 | "departureFlightDate": "2024-02-15T20:00:00.000Z", | ||
511 | "departureCountryName": "Kazakhstan", | ||
512 | "departureCityName": "Almaty", | ||
513 | "departureAirportCode": "ALA", | ||
514 | "departureAirportName": "Almaty Intl Airport", | ||
515 | "departureTerminalCode": "ALA", | ||
516 | "arrivalFlightDate": "2024-02-15T20:00:00.000Z", | ||
517 | "arrivalCountryName": "United Arab Emirates", | ||
518 | "arrivalCityName": "Dubai", | ||
519 | "arrivalAirportCode": "DXB", | ||
520 | "arrivalAirportName": "Dubai Intl Airport", | ||
521 | "arrivalTerminalCode": "DXB1", | ||
522 | "flightDuration": "0h 50m" | ||
523 | } | ||
524 | ], | ||
525 | "returnSegments": [ | ||
526 | { | ||
527 | "airlineCode": "KC", | ||
528 | "airlineName": "Air Astana-", | ||
529 | "flightCode": "KC900", | ||
530 | "class": "econom", | ||
531 | "lugageWeight": 20, | ||
532 | "handLugageWeight": 6, | ||
533 | "departureFlightDate": "2024-02-17T20:00:00.000Z", | ||
534 | "departureCountryName": "United Arab Emirates", | ||
535 | "departureCityName": "Dubai", | ||
536 | "departureAirportCode": "DXB", | ||
537 | "departureAirportName": "Dubai Intl Airport", | ||
538 | "departureTerminalCode": "DXB1", | ||
539 | "arrivalFlightDate": "2024-02-17T20:00:00.000Z", | ||
540 | "arrivalCountryName": "Kazakhstan", | ||
541 | "arrivalCityName": "Almaty", | ||
542 | "arrivalAirportCode": "ALA", | ||
543 | "arrivalAirportName": "Almaty Intl Airport", | ||
544 | "arrivalTerminalCode": "ALA", | ||
545 | "flightDuration": "8h 15m" | ||
546 | } | ||
547 | ], | ||
548 | "passengers": [ | ||
549 | { | ||
550 | "id": "42779531011000004-A1", | ||
551 | "isAdult": true, | ||
552 | "forwardBaggages": [ | ||
553 | { | ||
554 | "baggageCode": "TOTAL_BAGGAGE", | ||
555 | "description": "1 piece included, UP TO 50 POUNDS/23 KILOGRAMS, OVER 62 LINEAR INCHES/158 LINEAR CENTIMETERS", | ||
556 | "price": 45.00, | ||
557 | "currency": "USD", | ||
558 | "included": false | ||
559 | } | ||
560 | ], | ||
561 | "backwardBaggages": [ | ||
562 | { | ||
563 | "baggageCode": "INCLUDED_IN_FORWARD", | ||
564 | "price": 0, | ||
565 | "included": false | ||
566 | } | ||
567 | ] | ||
568 | }, | ||
569 | { | ||
570 | "id": "42779531011000004-C1", | ||
571 | "isAdult": false, | ||
572 | "forwardBaggages": [ | ||
573 | { | ||
574 | "baggageCode": "TOTAL_BAGGAGE", | ||
575 | "description": "1 piece included, UP TO 50 POUNDS/23 KILOGRAMS, OVER 62 LINEAR INCHES/158 LINEAR CENTIMETERS", | ||
576 | "price": 45.00, | ||
577 | "currency": "USD", | ||
578 | "included": false | ||
579 | } | ||
580 | ], | ||
581 | "backwardBaggages": [ | ||
582 | { | ||
583 | "baggageCode": "INCLUDED_IN_FORWARD", | ||
584 | "price": 0, | ||
585 | "included": false | ||
586 | } | ||
587 | ] | ||
588 | } | ||
589 | ] | ||
590 | }, | ||
591 | "extraServices": [], | ||
592 | "insurancePrice": { | ||
593 | "name": "Medical INS (N10000)", | ||
594 | "price": 13.44, | ||
595 | "priceSurcarge": 0.00, | ||
596 | "actualStartDate": "2024-02-15T20:00:00.000Z", | ||
597 | "actualEndDate": "2024-02-17T20:00:00.000Z", | ||
598 | "optional": false, | ||
599 | "includedInPackagePrice": true | ||
600 | } | ||
601 | }, | ||
602 | "altPackages": [ | ||
603 | { | ||
604 | "id": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:63d79c94-1e19-443f-8a17-50e59e633ea8", | ||
605 | "priceCurrency": "USD", | ||
606 | "totalPrice": 968.40, | ||
607 | "agentCommissionPercent": 0.00, | ||
608 | "agentCommissionAmount": 0.00, | ||
609 | "includedExtrasAmount": 0, | ||
610 | "priceDifference": 31.24, | ||
611 | "hotel": { | ||
612 | "hotelPriceId": "193990fa-41a5-46e6-9805-50f82c3c377f", | ||
613 | "providerId": 13, | ||
614 | "hotelName": "Mercure Dubai Barsha Heights Suites Apartments", | ||
615 | "hotelCode": "5f125310-7025-4807-a4c6-49cd284c9c14", | ||
616 | "nigths": 2, | ||
617 | "mealPlan": "BB", | ||
618 | "hotelClass": "4", | ||
619 | "availabilityType": "StopSale", | ||
620 | "availableRoomsCount": 0, | ||
621 | "fewRooms": true, | ||
622 | "roomCategoryCode": "f8e1ffe5-25cc-46a4-80e8-586d1c049de4", | ||
623 | "roomCategoryName": "1 B/R Apartment City View", | ||
624 | "placementTypeName": "SNGL + CHILD(2-5.99)sharing", | ||
625 | "checkInDate": "2024-02-15T20:00:00.000Z", | ||
626 | "checkOutDate": "2024-02-17T20:00:00.000Z", | ||
627 | "adults": 1, | ||
628 | "children": 1, | ||
629 | "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", | ||
630 | "districtName": "Al Barsha", | ||
631 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
632 | "cityName": "Dubai", | ||
633 | "countryCode": "AE", | ||
634 | "countryName": "United Arab Emirates", | ||
635 | "hasAlcohol": false, | ||
636 | "hasFreeWifi": true, | ||
637 | "hasMetro": true, | ||
638 | "hasPool": true, | ||
639 | "hasMall": false, | ||
640 | "cancellationPolicyDescription": "Cancellation Policy: 5 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", | ||
641 | "cancellationPolicy": { | ||
642 | "noShowChargeValue": 100.00, | ||
643 | "noShowChargeValueType": "%", | ||
644 | "earlyDepartureChargeValue": 100.00, | ||
645 | "earlyDepartureChargeValueType": "%", | ||
646 | "conditions": [ | ||
647 | { | ||
648 | "timeunits": 5, | ||
649 | "timeunitType": "Day", | ||
650 | "timeOffsetTypeName": "Before Arrival", | ||
651 | "chargeValue": 100.00, | ||
652 | "chargeValueType": "%" | ||
653 | } | ||
654 | ] | ||
655 | } | ||
656 | }, | ||
657 | "flight": { | ||
658 | "id": "63d79c94-1e19-443f-8a17-50e59e633ea8", | ||
659 | "departureDate": "2024-02-15T20:00:00.000Z", | ||
660 | "returnDate": "2024-02-17T20:00:00.000Z", | ||
661 | "departureTicketsLeft": 50, | ||
662 | "returnTicketsLeft": 50, | ||
663 | "departureAvailabilityType": "FewPlaces", | ||
664 | "returnAvailabilityType": "FewPlaces", | ||
665 | "isTwoWay": true, | ||
666 | "sameBaggageForAll": false, | ||
667 | "totalBaggage": false, | ||
668 | "departureSegments": [ | ||
669 | { | ||
670 | "airlineCode": "FZ", | ||
671 | "airlineName": "Fly Dubai.", | ||
672 | "flightCode": "FZ1722", | ||
673 | "class": "econom", | ||
674 | "lugageWeight": 20, | ||
675 | "handLugageWeight": 6, | ||
676 | "departureFlightDate": "2024-02-15T20:00:00.000Z", | ||
677 | "departureCountryName": "Kazakhstan", | ||
678 | "departureCityName": "Almaty", | ||
679 | "departureAirportCode": "ALA", | ||
680 | "departureAirportName": "Almaty Intl Airport", | ||
681 | "departureTerminalCode": "ALA", | ||
682 | "arrivalFlightDate": "2024-02-15T20:00:00.000Z", | ||
683 | "arrivalCountryName": "United Arab Emirates", | ||
684 | "arrivalCityName": "Dubai", | ||
685 | "arrivalAirportCode": "DXB", | ||
686 | "arrivalAirportName": "Dubai Intl Airport", | ||
687 | "arrivalTerminalCode": "DXB3", | ||
688 | "flightDuration": "0h 55m" | ||
689 | } | ||
690 | ], | ||
691 | "returnSegments": [ | ||
692 | { | ||
693 | "airlineCode": "FZ", | ||
694 | "airlineName": "Fly Dubai.", | ||
695 | "flightCode": "FZ1721", | ||
696 | "class": "econom", | ||
697 | "lugageWeight": 20, | ||
698 | "handLugageWeight": 6, | ||
699 | "departureFlightDate": "2024-02-17T20:00:00.000Z", | ||
700 | "departureCountryName": "United Arab Emirates", | ||
701 | "departureCityName": "Dubai", | ||
702 | "departureAirportCode": "DXB", | ||
703 | "departureAirportName": "Dubai Intl Airport", | ||
704 | "departureTerminalCode": "DXB3", | ||
705 | "arrivalFlightDate": "2024-02-18T20:00:00.000Z", | ||
706 | "arrivalCountryName": "Kazakhstan", | ||
707 | "arrivalCityName": "Almaty", | ||
708 | "arrivalAirportCode": "ALA", | ||
709 | "arrivalAirportName": "Almaty Intl Airport", | ||
710 | "arrivalTerminalCode": "DXB3", | ||
711 | "flightDuration": "8h 10m" | ||
712 | } | ||
713 | ], | ||
714 | "passengers": [ | ||
715 | { | ||
716 | "id": "42779547001000004-A1", | ||
717 | "isAdult": true, | ||
718 | "selectedForwardBaggageCode": "INCLUDED", | ||
719 | "selectedBackwardBaggageCode": "INCLUDED", | ||
720 | "forwardBaggages": [ | ||
721 | { | ||
722 | "baggageCode": "INCLUDED", | ||
723 | "description": "20 KG INCLUDED", | ||
724 | "price": 0.0, | ||
725 | "currency": "USD", | ||
726 | "included": true | ||
727 | } | ||
728 | ], | ||
729 | "backwardBaggages": [ | ||
730 | { | ||
731 | "baggageCode": "INCLUDED", | ||
732 | "description": "20 KG INCLUDED", | ||
733 | "price": 0.0, | ||
734 | "currency": "USD", | ||
735 | "included": true | ||
736 | } | ||
737 | ] | ||
738 | }, | ||
739 | { | ||
740 | "id": "42779547001000004-C1", | ||
741 | "isAdult": false, | ||
742 | "selectedForwardBaggageCode": "INCLUDED", | ||
743 | "selectedBackwardBaggageCode": "INCLUDED", | ||
744 | "forwardBaggages": [ | ||
745 | { | ||
746 | "baggageCode": "INCLUDED", | ||
747 | "description": "20 KG INCLUDED", | ||
748 | "price": 0.0, | ||
749 | "currency": "USD", | ||
750 | "included": true | ||
751 | } | ||
752 | ], | ||
753 | "backwardBaggages": [ | ||
754 | { | ||
755 | "baggageCode": "INCLUDED", | ||
756 | "description": "20 KG INCLUDED", | ||
757 | "price": 0.0, | ||
758 | "currency": "USD", | ||
759 | "included": true | ||
760 | } | ||
761 | ] | ||
762 | } | ||
763 | ] | ||
764 | }, | ||
765 | "extraServices": [], | ||
766 | "insurancePrice": { | ||
767 | "name": "Medical INS (N10000)", | ||
768 | "price": 13.44, | ||
769 | "priceSurcarge": 0.00, | ||
770 | "actualStartDate": "2024-02-15T20:00:00.000Z", | ||
771 | "actualEndDate": "2024-02-17T20:00:00.000Z", | ||
772 | "optional": false, | ||
773 | "includedInPackagePrice": true | ||
774 | } | ||
775 | }, | ||
776 | { | ||
777 | {{/code}} | ||
778 | |||
779 | |||
780 | === Schema === | ||
781 | |||
782 | {{success}} | ||
783 | CalcOnlyHotelPackageResponse{ | ||
784 | |||
785 | |error|boolean | ||
786 | |errorCode|string | ||
787 | nullable: true | ||
788 | |errorDescription|string | ||
789 | nullable: true | ||
790 | |userErrorDescription|string | ||
791 | nullable: true | ||
792 | |package|OnlyHotelPackage{((( | ||
793 | |id|string | ||
794 | nullable: true | ||
795 | |priceCurrency|string | ||
796 | nullable: true | ||
797 | |totalPrice|number($double) | ||
798 | |agentCommissionPercent|number($double) | ||
799 | |agentCommissionAmount|number($double) | ||
800 | |hotel|PackageHotel{((( | ||
801 | |hotelPriceId|string | ||
802 | nullable: true | ||
803 | |providerId|integer($int32) | ||
804 | |hotelName|string | ||
805 | nullable: true | ||
806 | |hotelCode|string | ||
807 | nullable: true | ||
808 | |nigths|integer($int32) | ||
809 | |mealPlan|string | ||
810 | nullable: true | ||
811 | |hotelClass|string | ||
812 | nullable: true | ||
813 | |availabilityType|RoomAvailabilityTypeEnumstringEnum: | ||
814 | [ OnRequest, FreeSale, StopSale ] | ||
815 | |availableRoomsCount|integer($int32) | ||
816 | |fewRooms|boolean | ||
817 | |roomCategoryCode|string | ||
818 | nullable: true | ||
819 | |roomCategoryName|string | ||
820 | nullable: true | ||
821 | |placementTypeName|string | ||
822 | nullable: true | ||
823 | |placementDescription|string | ||
824 | nullable: true | ||
825 | |checkInDate|string($date-time) | ||
826 | |checkOutDate|string($date-time) | ||
827 | |adults|integer($int32) | ||
828 | |children|integer($int32) | ||
829 | |districtUID|string($uuid) | ||
830 | nullable: true | ||
831 | |districtName|string | ||
832 | nullable: true | ||
833 | |cityUID|string($uuid) | ||
834 | nullable: true | ||
835 | |cityName|string | ||
836 | nullable: true | ||
837 | |countryCode|string | ||
838 | nullable: true | ||
839 | |countryName|string | ||
840 | nullable: true | ||
841 | |hasAlcohol|boolean | ||
842 | |hasFreeWifi|boolean | ||
843 | |hasMetro|boolean | ||
844 | |hasPool|boolean | ||
845 | |hasMall|boolean | ||
846 | |cancellationPolicyDescription|string | ||
847 | nullable: true | ||
848 | |cancellationPolicy|CancellationPolicyExchange{((( | ||
849 | |cancellationPolicyCode|string | ||
850 | nullable: true | ||
851 | |noShowChargeValue|number($double) | ||
852 | nullable: true | ||
853 | |noShowChargeValueType|string | ||
854 | nullable: true | ||
855 | |earlyDepartureChargeValue|number($double) | ||
856 | nullable: true | ||
857 | |earlyDepartureChargeValueType|string | ||
858 | nullable: true | ||
859 | |conditions|[ | ||
860 | nullable: trueCancellationPolicyConditionExchange{((( | ||
861 | |timeunits|integer($int32) | ||
862 | |timeunitType|string | ||
863 | nullable: true | ||
864 | |timeOffsetTypeName|string | ||
865 | nullable: true | ||
866 | |chargeValue|number($double) | ||
867 | nullable: true | ||
868 | |chargeValueType|string | ||
869 | nullable: true | ||
870 | |||
871 | }] | ||
872 | ))) | ||
873 | |||
874 | } | ||
875 | ))) | ||
876 | |||
877 | } | ||
878 | ))) | ||
879 | |extraServices|[ | ||
880 | nullable: trueHotelExtraServiceBase{((( | ||
881 | |extraServiceCode|string | ||
882 | nullable: true | ||
883 | |extraServiceTypeCode|string | ||
884 | nullable: true | ||
885 | |isMandatory|integer($int32) | ||
886 | |extraServiceName|string | ||
887 | nullable: true | ||
888 | |minimalServiceAmount|number($double) | ||
889 | |includedPriceCode|string | ||
890 | nullable: true | ||
891 | |prices|[ | ||
892 | nullable: trueHotelExtraServicePriceBase{((( | ||
893 | |extraServicePriceCode|string | ||
894 | nullable: true | ||
895 | |displayName|string | ||
896 | nullable: true | ||
897 | |restrictionInfo|string | ||
898 | nullable: true | ||
899 | |additionalInfo|string | ||
900 | nullable: true | ||
901 | |price|number($double) | ||
902 | |extraPrice|number($double) | ||
903 | |currency|string | ||
904 | nullable: true | ||
905 | |||
906 | }] | ||
907 | ))) | ||
908 | |||
909 | }] | ||
910 | ))) | ||
911 | |||
912 | } | ||
913 | ))) | ||
914 | |||
915 | } | ||
916 | {{/success}} |