Wiki source code of 2. GetOtherFlights

Last modified by Giorgi Mdivnishvili on 2024/04/11 17:06

Hide last authors
Giorgi Mdivnishvili 1.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
Giorgi Mdivnishvili 2.1 2
3
Giorgi Mdivnishvili 1.1 4 {{toc/}}
5 {{/box}}
6
Giorgi Mdivnishvili 2.1 7 = Method Description =
Giorgi Mdivnishvili 1.1 8
Giorgi Mdivnishvili 15.1 9 After searching available tour packages according to your preferences, it's possible to choose alternate flight options. with this method it's possible to in same dates find alternative flights options.
Giorgi Mdivnishvili 1.1 10
Giorgi Mdivnishvili 14.1 11 The system enables users to initiate a detailed evaluation workflow for the selected package. This evaluation includes:
Giorgi Mdivnishvili 1.1 12
Giorgi Mdivnishvili 14.1 13 1. **Data Retrieval**: Automated fetching of extensive details related to the selected package, ensuring a complete dataset is available for user review.
14 1. **Price Recalculation**: Implementation of dynamic pricing algorithms to recalculate the cost of the package in real-time, considering current availability, user preferences, and potential discounts.
15 1. **Variant Exploration**: Activation of mechanisms to navigate and assess alternative package variations, offering users a breadth of options based on predefined criteria such as duration, included amenities, and price points.
16 1. **Condition Assessment**: Provision of a detailed parsing and presentation layer for the terms and conditions associated with the package, enabling users to programmatically understand obligations, benefits, and limitations.
17
18 This functionality is designed to support an informed decision-making process by providing a comprehensive, algorithm-driven analysis of each package from a technical and user-centric standpoint.
19
20
Giorgi Mdivnishvili 2.1 21 == Endpoint URL - [POST] ==
Giorgi Mdivnishvili 1.1 22
Giorgi Mdivnishvili 2.1 23 {{info}}
Giorgi Mdivnishvili 12.1 24 [[https:~~/~~/integration.kazunion.com/api/TourPackages/GetOtherFlights>>https://integration.kazunion.com/api/TourPackages/GetOtherFlights]]
Giorgi Mdivnishvili 2.1 25 {{/info}}
Giorgi Mdivnishvili 1.1 26
Giorgi Mdivnishvili 2.1 27 == Request Parameters ==
Giorgi Mdivnishvili 1.1 28
Giorgi Mdivnishvili 2.1 29 (% class="box infomessage" %)
30 (((
31 None 
32 )))
Giorgi Mdivnishvili 1.1 33
34
Giorgi Mdivnishvili 2.1 35 == Request Body ==
Giorgi Mdivnishvili 1.1 36
Giorgi Mdivnishvili 2.1 37 {{code language="Json"}}
38 {
Giorgi Mdivnishvili 3.1 39 "package": {
40 "id": "string",
41 "priceCurrency": "string",
42 "totalPrice": 0,
43 "agentCommissionPercent": 0,
44 "agentCommissionAmount": 0,
45 "includedExtrasAmount": 0,
46 "priceDifference": 0,
47 "hotel": {
48 "hotelPriceId": "string",
49 "providerId": 0,
50 "hotelName": "string",
51 "hotelCode": "string",
52 "nigths": 0,
53 "mealPlan": "string",
54 "hotelClass": "string",
55 "availabilityType": "OnRequest",
56 "availableRoomsCount": 0,
57 "fewRooms": true,
58 "roomCategoryCode": "string",
59 "roomCategoryName": "string",
60 "placementTypeName": "string",
61 "placementDescription": "string",
62 "checkInDate": "2023-12-18T14:03:07.553Z",
63 "checkOutDate": "2023-12-18T14:03:07.553Z",
64 "adults": 0,
65 "children": 0,
66 "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
67 "districtName": "string",
68 "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
69 "cityName": "string",
70 "countryCode": "string",
71 "countryName": "string",
72 "hasAlcohol": true,
73 "hasFreeWifi": true,
74 "hasMetro": true,
75 "hasPool": true,
76 "hasMall": true,
77 "cancellationPolicyDescription": "string",
78 "cancellationPolicy": {
79 "cancellationPolicyCode": "string",
80 "noShowChargeValue": 0,
81 "noShowChargeValueType": "string",
82 "earlyDepartureChargeValue": 0,
83 "earlyDepartureChargeValueType": "string",
84 "conditions": [
85 {
86 "timeunits": 0,
87 "timeunitType": "string",
88 "timeOffsetTypeName": "string",
89 "chargeValue": 0,
90 "chargeValueType": "string"
91 }
92 ]
93 }
94 },
95 "flight": {
96 "id": "string",
97 "departureDate": "2023-12-18T14:03:07.553Z",
98 "returnDate": "2023-12-18T14:03:07.553Z",
99 "departureTicketsLeft": 0,
100 "returnTicketsLeft": 0,
101 "departureAvailabilityType": "OnRequest",
102 "returnAvailabilityType": "OnRequest",
103 "isTwoWay": true,
104 "departureSegments": [
105 {
106 "airlineCode": "string",
107 "airlineName": "string",
108 "flightCode": "string",
109 "class": "string",
110 "lugageWeight": 0,
111 "handLugageWeight": 0,
112 "departureFlightDate": "2023-12-18T14:03:07.553Z",
113 "departureCountryName": "string",
114 "departureCityName": "string",
115 "departureAirportCode": "string",
116 "departureAirportName": "string",
117 "departureTerminalCode": "string",
118 "arrivalFlightDate": "2023-12-18T14:03:07.553Z",
119 "arrivalCountryName": "string",
120 "arrivalCityName": "string",
121 "arrivalAirportCode": "string",
122 "arrivalAirportName": "string",
123 "arrivalTerminalCode": "string",
124 "flightDuration": "string",
125 "baggages": [
126 {
127 "baggageCode": "string",
128 "description": "string",
129 "price": 0,
130 "currency": "string",
131 "included": true
132 }
133 ]
134 }
135 ],
136 "returnSegments": [
137 {
138 "airlineCode": "string",
139 "airlineName": "string",
140 "flightCode": "string",
141 "class": "string",
142 "lugageWeight": 0,
143 "handLugageWeight": 0,
144 "departureFlightDate": "2023-12-18T14:03:07.553Z",
145 "departureCountryName": "string",
146 "departureCityName": "string",
147 "departureAirportCode": "string",
148 "departureAirportName": "string",
149 "departureTerminalCode": "string",
150 "arrivalFlightDate": "2023-12-18T14:03:07.553Z",
151 "arrivalCountryName": "string",
152 "arrivalCityName": "string",
153 "arrivalAirportCode": "string",
154 "arrivalAirportName": "string",
155 "arrivalTerminalCode": "string",
156 "flightDuration": "string",
157 "baggages": [
158 {
159 "baggageCode": "string",
160 "description": "string",
161 "price": 0,
162 "currency": "string",
163 "included": true
164 }
165 ]
166 }
167 ]
168 },
169 "extraServices": [
170 {
171 "extraServiceCode": "string",
172 "extraServiceTypeCode": "string",
173 "isMandatory": 0,
174 "extraServiceName": "string",
175 "minimalServiceAmount": 0,
176 "includedPriceCode": "string",
177 "prices": [
178 {
179 "extraServicePriceCode": "string",
180 "displayName": "string",
181 "restrictionInfo": "string",
182 "additionalInfo": "string",
183 "price": 0,
184 "extraPrice": 0,
185 "currency": "string"
186 }
187 ]
188 }
189 ],
190 "insurancePrice": {
191 "name": "string",
192 "price": 0,
193 "priceSurcarge": 0,
194 "actualStartDate": "2023-12-18T14:03:07.553Z",
195 "actualEndDate": "2023-12-18T14:03:07.553Z",
196 "optional": true,
197 "includedInPackagePrice": true
198 },
199 "cacheKey": "string"
200 }
Giorgi Mdivnishvili 2.1 201 }
202 {{/code}}
Giorgi Mdivnishvili 1.1 203
204
Giorgi Mdivnishvili 2.1 205 == Response Body ==
Giorgi Mdivnishvili 1.1 206
Giorgi Mdivnishvili 2.1 207 {{code language="json"}}
208 {
209 "packages": [
210 {
211 "id": "string",
212 "priceCurrency": "string",
213 "totalPrice": 0,
214 "agentCommissionPercent": 0,
215 "agentCommissionAmount": 0,
216 "includedExtrasAmount": 0,
217 "priceDifference": 0,
218 "hotel": {
219 "hotelPriceId": "string",
220 "providerId": 0,
221 "hotelName": "string",
222 "hotelCode": "string",
223 "nigths": 0,
224 "mealPlan": "string",
225 "hotelClass": "string",
226 "availabilityType": "OnRequest",
227 "availableRoomsCount": 0,
228 "fewRooms": true,
229 "roomCategoryCode": "string",
230 "roomCategoryName": "string",
231 "placementTypeName": "string",
232 "placementDescription": "string",
Giorgi Mdivnishvili 4.1 233 "checkInDate": "2023-12-18T14:03:10.148Z",
234 "checkOutDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 235 "adults": 0,
236 "children": 0,
237 "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
238 "districtName": "string",
239 "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
240 "cityName": "string",
241 "countryCode": "string",
242 "countryName": "string",
243 "hasAlcohol": true,
244 "hasFreeWifi": true,
245 "hasMetro": true,
246 "hasPool": true,
247 "hasMall": true,
248 "cancellationPolicyDescription": "string",
249 "cancellationPolicy": {
250 "cancellationPolicyCode": "string",
251 "noShowChargeValue": 0,
252 "noShowChargeValueType": "string",
253 "earlyDepartureChargeValue": 0,
254 "earlyDepartureChargeValueType": "string",
255 "conditions": [
256 {
257 "timeunits": 0,
258 "timeunitType": "string",
259 "timeOffsetTypeName": "string",
260 "chargeValue": 0,
261 "chargeValueType": "string"
262 }
263 ]
264 }
265 },
266 "flight": {
267 "id": "string",
Giorgi Mdivnishvili 4.1 268 "departureDate": "2023-12-18T14:03:10.148Z",
269 "returnDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 270 "departureTicketsLeft": 0,
271 "returnTicketsLeft": 0,
272 "departureAvailabilityType": "OnRequest",
273 "returnAvailabilityType": "OnRequest",
274 "isTwoWay": true,
275 "departureSegments": [
276 {
277 "airlineCode": "string",
278 "airlineName": "string",
279 "flightCode": "string",
280 "class": "string",
281 "lugageWeight": 0,
282 "handLugageWeight": 0,
Giorgi Mdivnishvili 4.1 283 "departureFlightDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 284 "departureCountryName": "string",
285 "departureCityName": "string",
286 "departureAirportCode": "string",
287 "departureAirportName": "string",
288 "departureTerminalCode": "string",
Giorgi Mdivnishvili 4.1 289 "arrivalFlightDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 290 "arrivalCountryName": "string",
291 "arrivalCityName": "string",
292 "arrivalAirportCode": "string",
293 "arrivalAirportName": "string",
294 "arrivalTerminalCode": "string",
295 "flightDuration": "string",
296 "baggages": [
297 {
298 "baggageCode": "string",
299 "description": "string",
300 "price": 0,
301 "currency": "string",
302 "included": true
303 }
304 ]
305 }
306 ],
307 "returnSegments": [
308 {
309 "airlineCode": "string",
310 "airlineName": "string",
311 "flightCode": "string",
312 "class": "string",
313 "lugageWeight": 0,
314 "handLugageWeight": 0,
Giorgi Mdivnishvili 4.1 315 "departureFlightDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 316 "departureCountryName": "string",
317 "departureCityName": "string",
318 "departureAirportCode": "string",
319 "departureAirportName": "string",
320 "departureTerminalCode": "string",
Giorgi Mdivnishvili 4.1 321 "arrivalFlightDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 322 "arrivalCountryName": "string",
323 "arrivalCityName": "string",
324 "arrivalAirportCode": "string",
325 "arrivalAirportName": "string",
326 "arrivalTerminalCode": "string",
327 "flightDuration": "string",
328 "baggages": [
329 {
330 "baggageCode": "string",
331 "description": "string",
332 "price": 0,
333 "currency": "string",
334 "included": true
335 }
336 ]
337 }
338 ]
339 },
340 "extraServices": [
341 {
342 "extraServiceCode": "string",
343 "extraServiceTypeCode": "string",
344 "isMandatory": 0,
345 "extraServiceName": "string",
346 "minimalServiceAmount": 0,
347 "includedPriceCode": "string",
348 "prices": [
349 {
350 "extraServicePriceCode": "string",
351 "displayName": "string",
352 "restrictionInfo": "string",
353 "additionalInfo": "string",
354 "price": 0,
355 "extraPrice": 0,
356 "currency": "string"
357 }
358 ]
359 }
360 ],
361 "insurancePrice": {
362 "name": "string",
363 "price": 0,
364 "priceSurcarge": 0,
Giorgi Mdivnishvili 4.1 365 "actualStartDate": "2023-12-18T14:03:10.148Z",
366 "actualEndDate": "2023-12-18T14:03:10.148Z",
Giorgi Mdivnishvili 2.1 367 "optional": true,
368 "includedInPackagePrice": true
Giorgi Mdivnishvili 4.1 369 },
370 "cacheKey": "string"
Giorgi Mdivnishvili 2.1 371 }
Giorgi Mdivnishvili 4.1 372 ]
Giorgi Mdivnishvili 2.1 373 }
374 {{/code}}
Giorgi Mdivnishvili 1.1 375
376
Giorgi Mdivnishvili 2.1 377 === example ===
378
379 {{code language="Json"}}
380 X
381 {{/code}}
382
383
384 === Schema ===
385
386 {{success}}
Giorgi Mdivnishvili 4.1 387 GetOtherFlightsResponse{
Giorgi Mdivnishvili 2.1 388
389 |packages|[
390 nullable: trueTourPackage{(((
391 |id|string
392 nullable: true
393 |priceCurrency|string
394 nullable: true
395 |totalPrice|number($double)
396 |agentCommissionPercent|number($double)
397 |agentCommissionAmount|number($double)
398 |includedExtrasAmount|number($double)
399 |priceDifference|number($double)
400 |hotel|PackageHotel{(((
401 |hotelPriceId|string
402 nullable: true
403 |providerId|integer($int32)
404 |hotelName|string
405 nullable: true
406 |hotelCode|string
407 nullable: true
408 |nigths|integer($int32)
409 |mealPlan|string
410 nullable: true
411 |hotelClass|string
412 nullable: true
413 |availabilityType|RoomAvailabilityTypeEnumstringEnum:
414 [ OnRequest, FreeSale, StopSale ]
415 |availableRoomsCount|integer($int32)
416 |fewRooms|boolean
417 |roomCategoryCode|string
418 nullable: true
419 |roomCategoryName|string
420 nullable: true
421 |placementTypeName|string
422 nullable: true
423 |placementDescription|string
424 nullable: true
425 |checkInDate|string($date-time)
426 |checkOutDate|string($date-time)
427 |adults|integer($int32)
428 |children|integer($int32)
429 |districtUID|string($uuid)
430 nullable: true
431 |districtName|string
432 nullable: true
433 |cityUID|string($uuid)
434 nullable: true
435 |cityName|string
436 nullable: true
437 |countryCode|string
438 nullable: true
439 |countryName|string
440 nullable: true
441 |hasAlcohol|boolean
442 |hasFreeWifi|boolean
443 |hasMetro|boolean
444 |hasPool|boolean
445 |hasMall|boolean
446 |cancellationPolicyDescription|string
447 nullable: true
448 |cancellationPolicy|CancellationPolicyExchange{(((
449 |cancellationPolicyCode|string
450 nullable: true
451 |noShowChargeValue|number($double)
452 nullable: true
453 |noShowChargeValueType|string
454 nullable: true
455 |earlyDepartureChargeValue|number($double)
456 nullable: true
457 |earlyDepartureChargeValueType|string
458 nullable: true
459 |conditions|[
460 nullable: trueCancellationPolicyConditionExchange{(((
461 |timeunits|integer($int32)
462 |timeunitType|string
463 nullable: true
464 |timeOffsetTypeName|string
465 nullable: true
466 |chargeValue|number($double)
467 nullable: true
468 |chargeValueType|string
469 nullable: true
470
471 }]
472 )))
473
474 }
475 )))
476
477 }
478 )))
479 |flight|PackageFlight{(((
480 |id|string
481 nullable: true
482 |departureDate|string($date-time)
483 |returnDate|string($date-time)
484 nullable: true
485 |departureTicketsLeft|integer($int32)
486 |returnTicketsLeft|integer($int32)
487 |departureAvailabilityType|FlightAvailabilityTypestringEnum:
488 [ OnRequest, FreeSale, FewPlaces, StopSale ]
489 |returnAvailabilityType|FlightAvailabilityTypestringEnum:
490 [ OnRequest, FreeSale, FewPlaces, StopSale ]
491 |isTwoWay|boolean
492 |departureSegments|[
493 nullable: trueFlightSegment{(((
494 |airlineCode|string
495 nullable: true
496 |airlineName|string
497 nullable: true
498 |flightCode|string
499 nullable: true
500 |class|string
501 nullable: true
502 |lugageWeight|number($double)
503 |handLugageWeight|number($double)
504 |departureFlightDate|string($date-time)
505 |departureCountryName|string
506 nullable: true
507 |departureCityName|string
508 nullable: true
509 |departureAirportCode|string
510 nullable: true
511 |departureAirportName|string
512 nullable: true
513 |departureTerminalCode|string
514 nullable: true
515 |arrivalFlightDate|string($date-time)
516 |arrivalCountryName|string
517 nullable: true
518 |arrivalCityName|string
519 nullable: true
520 |arrivalAirportCode|string
521 nullable: true
522 |arrivalAirportName|string
523 nullable: true
524 |arrivalTerminalCode|string
525 nullable: true
526 |flightDuration|string
527 nullable: true
528 |baggages|[
529 nullable: trueBaggage{(((
530 |baggageCode|string
531 nullable: true
532 |description|string
533 nullable: true
534 |price|number($double)
535 |currency|string
536 nullable: true
537 |included|boolean
538
539 }]
540 )))
541
542 }]
543 )))
544 |returnSegments|[
545 nullable: trueFlightSegment{(((
546 |airlineCode|string
547 nullable: true
548 |airlineName|string
549 nullable: true
550 |flightCode|string
551 nullable: true
552 |class|string
553 nullable: true
554 |lugageWeight|number($double)
555 |handLugageWeight|number($double)
556 |departureFlightDate|string($date-time)
557 |departureCountryName|string
558 nullable: true
559 |departureCityName|string
560 nullable: true
561 |departureAirportCode|string
562 nullable: true
563 |departureAirportName|string
564 nullable: true
565 |departureTerminalCode|string
566 nullable: true
567 |arrivalFlightDate|string($date-time)
568 |arrivalCountryName|string
569 nullable: true
570 |arrivalCityName|string
571 nullable: true
572 |arrivalAirportCode|string
573 nullable: true
574 |arrivalAirportName|string
575 nullable: true
576 |arrivalTerminalCode|string
577 nullable: true
578 |flightDuration|string
579 nullable: true
580 |baggages|[
581 nullable: trueBaggage{(((
582 |baggageCode|string
583 nullable: true
584 |description|string
585 nullable: true
586 |price|number($double)
587 |currency|string
588 nullable: true
589 |included|boolean
590
591 }]
592 )))
593
594 }]
595 )))
596
597 }
598 )))
599 |extraServices|[
600 nullable: trueHotelExtraServiceBase{(((
601 |extraServiceCode|string
602 nullable: true
603 |extraServiceTypeCode|string
604 nullable: true
605 |isMandatory|integer($int32)
606 |extraServiceName|string
607 nullable: true
608 |minimalServiceAmount|number($double)
609 |includedPriceCode|string
610 nullable: true
611 |prices|[
612 nullable: trueHotelExtraServicePriceBase{(((
613 |extraServicePriceCode|string
614 nullable: true
615 |displayName|string
616 nullable: true
617 |restrictionInfo|string
618 nullable: true
619 |additionalInfo|string
620 nullable: true
621 |price|number($double)
622 |extraPrice|number($double)
623 |currency|string
624 nullable: true
625
626 }]
627 )))
628
629 }]
630 )))
631 |insurancePrice|InsurancePrice{(((
632 |name|string
633 nullable: true
634 |price|number($double)
635 |priceSurcarge|number($double)
636 |actualStartDate|string($date-time)
637 |actualEndDate|string($date-time)
638 |optional|boolean
639 |includedInPackagePrice|boolean
640
641 }
642 )))
Giorgi Mdivnishvili 4.1 643 |cacheKey|string
644 nullable: true
Giorgi Mdivnishvili 2.1 645
646 }]
647 )))
648
649 }
650 {{/success}}
651
Giorgi Mdivnishvili 4.1 652