Changes for page 2. CalcPackage

Last modified by Giorgi Mdivnishvili on 2024/01/09 12:57

From version 2.1
edited by Giorgi Mdivnishvili
on 2023/12/14 17:37
Change comment: There is no comment for this version
To version 8.1
edited by Giorgi Mdivnishvili
on 2023/12/26 16:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -CalcPackage
1 +2. CalcPackage
Content
... ... @@ -12,7 +12,7 @@
12 12  == Endpoint URL - [POST] ==
13 13  
14 14  {{info}}
15 -[[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]]
15 +[[https:~~/~~/online-api.kazunion.com/api/OnlyAviaPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyAviaPackages/CalcPackage]]
16 16  {{/info}}
17 17  
18 18  
... ... @@ -27,11 +27,8 @@
27 27  == Request Body ==
28 28  
29 29  {{code language="Json"}}
30 -none{
31 - "packageId": "string",
32 - "extraServicePriceCodes": [
33 - "string"
34 - ]
30 +{
31 + "packageId": "string"
35 35  }
36 36  {{/code}}
37 37  
... ... @@ -39,10 +39,7 @@
39 39  
40 40  {{code language="Json"}}
41 41  {
42 - "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
43 - "extraServicePriceCodes": [
44 -
45 - ]
39 + "packageId": "onlyavia:8df9ae18-dcb3-46bf-b493-4a14f8483e9b:2693f089-1032-42c0-bf85-f1d7a4e91848"
46 46  }
47 47  {{/code}}
48 48  
... ... @@ -59,77 +59,80 @@
59 59   "id": "string",
60 60   "priceCurrency": "string",
61 61   "totalPrice": 0,
62 - "agentCommissionPercent": 0,
63 - "agentCommissionAmount": 0,
64 - "hotel": {
65 - "hotelPriceId": "string",
66 - "providerId": 0,
67 - "hotelName": "string",
68 - "hotelCode": "string",
69 - "nigths": 0,
70 - "mealPlan": "string",
71 - "hotelClass": "string",
72 - "availabilityType": "OnRequest",
73 - "availableRoomsCount": 0,
74 - "fewRooms": true,
75 - "roomCategoryCode": "string",
76 - "roomCategoryName": "string",
77 - "placementTypeName": "string",
78 - "placementDescription": "string",
79 - "checkInDate": "2023-12-14T08:49:36.703Z",
80 - "checkOutDate": "2023-12-14T08:49:36.703Z",
81 - "adults": 0,
82 - "children": 0,
83 - "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
84 - "districtName": "string",
85 - "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
86 - "cityName": "string",
87 - "countryCode": "string",
88 - "countryName": "string",
89 - "hasAlcohol": true,
90 - "hasFreeWifi": true,
91 - "hasMetro": true,
92 - "hasPool": true,
93 - "hasMall": true,
94 - "cancellationPolicyDescription": "string",
95 - "cancellationPolicy": {
96 - "cancellationPolicyCode": "string",
97 - "noShowChargeValue": 0,
98 - "noShowChargeValueType": "string",
99 - "earlyDepartureChargeValue": 0,
100 - "earlyDepartureChargeValueType": "string",
101 - "conditions": [
102 - {
103 - "timeunits": 0,
104 - "timeunitType": "string",
105 - "timeOffsetTypeName": "string",
106 - "chargeValue": 0,
107 - "chargeValueType": "string"
108 - }
109 - ]
110 - }
111 - },
112 - "extraServices": [
113 - {
114 - "extraServiceCode": "string",
115 - "extraServiceTypeCode": "string",
116 - "isMandatory": 0,
117 - "extraServiceName": "string",
118 - "minimalServiceAmount": 0,
119 - "includedPriceCode": "string",
120 - "prices": [
121 - {
122 - "extraServicePriceCode": "string",
123 - "displayName": "string",
124 - "restrictionInfo": "string",
125 - "additionalInfo": "string",
126 - "price": 0,
127 - "extraPrice": 0,
128 - "currency": "string"
129 - }
130 - ]
131 - }
132 - ]
56 + "flight": {
57 + "id": "string",
58 + "departureDate": "2023-12-14T13:38:04.073Z",
59 + "returnDate": "2023-12-14T13:38:04.073Z",
60 + "departureTicketsLeft": 0,
61 + "returnTicketsLeft": 0,
62 + "departureAvailabilityType": "OnRequest",
63 + "returnAvailabilityType": "OnRequest",
64 + "isTwoWay": true,
65 + "departureSegments": [
66 + {
67 + "airlineCode": "string",
68 + "airlineName": "string",
69 + "flightCode": "string",
70 + "class": "string",
71 + "lugageWeight": 0,
72 + "handLugageWeight": 0,
73 + "departureFlightDate": "2023-12-14T13:38:04.073Z",
74 + "departureCountryName": "string",
75 + "departureCityName": "string",
76 + "departureAirportCode": "string",
77 + "departureAirportName": "string",
78 + "departureTerminalCode": "string",
79 + "arrivalFlightDate": "2023-12-14T13:38:04.073Z",
80 + "arrivalCountryName": "string",
81 + "arrivalCityName": "string",
82 + "arrivalAirportCode": "string",
83 + "arrivalAirportName": "string",
84 + "arrivalTerminalCode": "string",
85 + "flightDuration": "string",
86 + "baggages": [
87 + {
88 + "baggageCode": "string",
89 + "description": "string",
90 + "price": 0,
91 + "currency": "string",
92 + "included": true
93 + }
94 + ]
95 + }
96 + ],
97 + "returnSegments": [
98 + {
99 + "airlineCode": "string",
100 + "airlineName": "string",
101 + "flightCode": "string",
102 + "class": "string",
103 + "lugageWeight": 0,
104 + "handLugageWeight": 0,
105 + "departureFlightDate": "2023-12-14T13:38:04.073Z",
106 + "departureCountryName": "string",
107 + "departureCityName": "string",
108 + "departureAirportCode": "string",
109 + "departureAirportName": "string",
110 + "departureTerminalCode": "string",
111 + "arrivalFlightDate": "2023-12-14T13:38:04.073Z",
112 + "arrivalCountryName": "string",
113 + "arrivalCityName": "string",
114 + "arrivalAirportCode": "string",
115 + "arrivalAirportName": "string",
116 + "arrivalTerminalCode": "string",
117 + "flightDuration": "string",
118 + "baggages": [
119 + {
120 + "baggageCode": "string",
121 + "description": "string",
122 + "price": 0,
123 + "currency": "string",
124 + "included": true
125 + }
126 + ]
127 + }
128 + ]
129 + }
133 133   }
134 134  }
135 135  {{/code}}
... ... @@ -140,59 +140,95 @@
140 140  {{code language="Json"}}
141 141  {
142 142   "package": {
143 - "id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
140 + "id": "onlyavia:8df9ae18-dcb3-46bf-b493-4a14f8483e9b:2693f089-1032-42c0-bf85-f1d7a4e91848",
144 144   "priceCurrency": "USD",
145 - "totalPrice": 381.70,
146 - "agentCommissionPercent": 0.00,
147 - "agentCommissionAmount": 0.00,
148 - "hotel": {
149 - "hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73",
150 - "providerId": 13,
151 - "hotelName": "Golden Tulip Al Barsha Hotel",
152 - "hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961",
153 - "nigths": 4,
154 - "mealPlan": "RO",
155 - "hotelClass": "4",
156 - "availabilityType": "FreeSale",
157 - "availableRoomsCount": 0,
158 - "fewRooms": true,
159 - "roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb",
160 - "roomCategoryName": "Superior Twin",
161 - "placementTypeName": "SNGL + CHILD(6-11.99)sharing",
162 - "checkInDate": "2024-02-17T08:00:00.000Z",
163 - "checkOutDate": "2024-02-21T08:00:00.000Z",
164 - "adults": 1,
165 - "children": 1,
166 - "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e",
167 - "districtName": "Al Barsha",
168 - "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
169 - "cityName": "Dubai",
170 - "countryCode": "AE",
171 - "countryName": "United Arab Emirates",
172 - "hasAlcohol": true,
173 - "hasFreeWifi": true,
174 - "hasMetro": false,
175 - "hasPool": true,
176 - "hasMall": false,
177 - "cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %",
178 - "cancellationPolicy": {
179 - "noShowChargeValue": 100.00,
180 - "noShowChargeValueType": "%",
181 - "earlyDepartureChargeValue": 100.00,
182 - "earlyDepartureChargeValueType": "%",
183 - "conditions": [
184 - {
185 - "timeunits": 15,
186 - "timeunitType": "Day",
187 - "timeOffsetTypeName": "Before Arrival",
188 - "chargeValue": 100.00,
189 - "chargeValueType": "%"
190 - }
191 - ]
192 - }
193 - },
194 - "extraServices": []
142 + "totalPrice": 230.00,
143 + "flight": {
144 + "id": "2693f089-1032-42c0-bf85-f1d7a4e91848",
145 + "departureDate": "2023-12-28T20:00:00.000Z",
146 + "returnDate": "2023-12-30T20:00:00.000Z",
147 + "departureTicketsLeft": 1,
148 + "returnTicketsLeft": 24,
149 + "departureAvailabilityType": "FewPlaces",
150 + "returnAvailabilityType": "FreeSale",
151 + "isTwoWay": true,
152 + "sameBaggageForAll": false,
153 + "totalBaggage": false,
154 + "departureSegments": [
155 + {
156 + "airlineCode": "KC",
157 + "airlineName": "Air Astana.",
158 + "flightCode": "KC899",
159 + "class": "econom",
160 + "lugageWeight": 20,
161 + "handLugageWeight": 6,
162 + "departureFlightDate": "2023-12-28T20:00:00.000Z",
163 + "departureCountryName": "Kazakhstan",
164 + "departureCityName": "Almaty",
165 + "departureAirportCode": "ALA",
166 + "departureAirportName": "Almaty Intl Airport",
167 + "departureTerminalCode": "ALA",
168 + "arrivalFlightDate": "2023-12-28T20:00:00.000Z",
169 + "arrivalCountryName": "United Arab Emirates",
170 + "arrivalCityName": "Dubai",
171 + "arrivalAirportCode": "DXB",
172 + "arrivalAirportName": "Dubai Intl Airport",
173 + "arrivalTerminalCode": "DXB1",
174 + "flightDuration": "0h 55m"
175 + }
176 + ],
177 + "returnSegments": [
178 + {
179 + "airlineCode": "KC",
180 + "airlineName": "Air Astana.",
181 + "flightCode": "KC900",
182 + "class": "econom",
183 + "lugageWeight": 20,
184 + "handLugageWeight": 6,
185 + "departureFlightDate": "2023-12-30T20:00:00.000Z",
186 + "departureCountryName": "United Arab Emirates",
187 + "departureCityName": "Dubai",
188 + "departureAirportCode": "DXB",
189 + "departureAirportName": "Dubai Intl Airport",
190 + "departureTerminalCode": "DXB1",
191 + "arrivalFlightDate": "2023-12-29T20:00:00.000Z",
192 + "arrivalCountryName": "Kazakhstan",
193 + "arrivalCityName": "Almaty",
194 + "arrivalAirportCode": "ALA",
195 + "arrivalAirportName": "Almaty Intl Airport",
196 + "arrivalTerminalCode": "ALA",
197 + "flightDuration": "-45m"
198 + }
199 + ],
200 + "passengers": [
201 + {
202 + "id": "42777149001000012-A1",
203 + "isAdult": true,
204 + "selectedForwardBaggageCode": "INCLUDED",
205 + "selectedBackwardBaggageCode": "INCLUDED",
206 + "forwardBaggages": [
207 + {
208 + "baggageCode": "INCLUDED",
209 + "description": "20 KG INCLUDED",
210 + "price": 0.0,
211 + "currency": "USD",
212 + "included": true
213 + }
214 + ],
215 + "backwardBaggages": [
216 + {
217 + "baggageCode": "INCLUDED",
218 + "description": "20 KG INCLUDED",
219 + "price": 0.0,
220 + "currency": "USD",
221 + "included": true
222 + }
223 + ]
224 + }
225 + ]
226 + }
195 195   },
228 + "refreshPriceResult": "Success",
196 196   "error": false
197 197  }
198 198  {{/code}}
... ... @@ -200,54 +200,146 @@
200 200  
201 201  === Schema ===
202 202  
203 -{{code language="none"}}
204 -CalcOnlyHotelPackageResponse{
205 -error boolean
206 -errorCode string
207 -nullable: true
208 -errorDescription string
209 -nullable: true
210 -userErrorDescription string
211 -nullable: true
212 -package OnlyHotelPackage{
213 -id string
214 -nullable: true
215 -priceCurrency string
216 -nullable: true
217 -totalPrice number($double)
218 -agentCommissionPercent number($double)
219 -agentCommissionAmount number($double)
220 -hotel PackageHotel{...}
221 -extraServices [
222 -nullable: true
223 -HotelExtraServiceBase{
224 -extraServiceCode string
225 -nullable: true
226 -extraServiceTypeCode string
227 -nullable: true
228 -isMandatory integer($int32)
229 -extraServiceName string
230 -nullable: true
231 -minimalServiceAmount number($double)
232 -includedPriceCode string
233 -nullable: true
234 -prices [
235 -nullable: true
236 -HotelExtraServicePriceBase{
237 -extraServicePriceCode string
238 -nullable: true
239 -displayName string
240 -nullable: true
241 -restrictionInfo string
242 -nullable: true
243 -additionalInfo string
244 -nullable: true
245 -price number($double)
246 -extraPrice number($double)
247 -currency string
248 -nullable: true
236 +{{success}}
237 +CalcOnlyAviaPackageResponse{
238 +
239 +|error|boolean
240 +|errorCode|string
241 +nullable: true
242 +|errorDescription|string
243 +nullable: true
244 +|userErrorDescription|string
245 +nullable: true
246 +|package|OnlyAviaPackage{(((
247 +|id|string
248 +nullable: true
249 +|priceCurrency|string
250 +nullable: true
251 +|totalPrice|number($double)
252 +|flight|PackageFlight{(((
253 +|id|string
254 +nullable: true
255 +|departureDate|string($date-time)
256 +|returnDate|string($date-time)
257 +nullable: true
258 +|departureTicketsLeft|integer($int32)
259 +|returnTicketsLeft|integer($int32)
260 +|departureAvailabilityType|FlightAvailabilityTypestringEnum:
261 +[ OnRequest, FreeSale, FewPlaces, StopSale ]
262 +|returnAvailabilityType|FlightAvailabilityTypestringEnum:
263 +[ OnRequest, FreeSale, FewPlaces, StopSale ]
264 +|isTwoWay|boolean
265 +|departureSegments|[
266 +nullable: trueFlightSegment{(((
267 +|airlineCode|string
268 +nullable: true
269 +|airlineName|string
270 +nullable: true
271 +|flightCode|string
272 +nullable: true
273 +|class|string
274 +nullable: true
275 +|lugageWeight|number($double)
276 +|handLugageWeight|number($double)
277 +|departureFlightDate|string($date-time)
278 +|departureCountryName|string
279 +nullable: true
280 +|departureCityName|string
281 +nullable: true
282 +|departureAirportCode|string
283 +nullable: true
284 +|departureAirportName|string
285 +nullable: true
286 +|departureTerminalCode|string
287 +nullable: true
288 +|arrivalFlightDate|string($date-time)
289 +|arrivalCountryName|string
290 +nullable: true
291 +|arrivalCityName|string
292 +nullable: true
293 +|arrivalAirportCode|string
294 +nullable: true
295 +|arrivalAirportName|string
296 +nullable: true
297 +|arrivalTerminalCode|string
298 +nullable: true
299 +|flightDuration|string
300 +nullable: true
301 +|baggages|[
302 +nullable: trueBaggage{(((
303 +|baggageCode|string
304 +nullable: true
305 +|description|string
306 +nullable: true
307 +|price|number($double)
308 +|currency|string
309 +nullable: true
310 +|included|boolean
311 +
249 249  }]
313 +)))
314 +
250 250  }]
316 +)))
317 +|returnSegments|[
318 +nullable: trueFlightSegment{(((
319 +|airlineCode|string
320 +nullable: true
321 +|airlineName|string
322 +nullable: true
323 +|flightCode|string
324 +nullable: true
325 +|class|string
326 +nullable: true
327 +|lugageWeight|number($double)
328 +|handLugageWeight|number($double)
329 +|departureFlightDate|string($date-time)
330 +|departureCountryName|string
331 +nullable: true
332 +|departureCityName|string
333 +nullable: true
334 +|departureAirportCode|string
335 +nullable: true
336 +|departureAirportName|string
337 +nullable: true
338 +|departureTerminalCode|string
339 +nullable: true
340 +|arrivalFlightDate|string($date-time)
341 +|arrivalCountryName|string
342 +nullable: true
343 +|arrivalCityName|string
344 +nullable: true
345 +|arrivalAirportCode|string
346 +nullable: true
347 +|arrivalAirportName|string
348 +nullable: true
349 +|arrivalTerminalCode|string
350 +nullable: true
351 +|flightDuration|string
352 +nullable: true
353 +|baggages|[
354 +nullable: trueBaggage{(((
355 +|baggageCode|string
356 +nullable: true
357 +|description|string
358 +nullable: true
359 +|price|number($double)
360 +|currency|string
361 +nullable: true
362 +|included|boolean
363 +
364 +}]
365 +)))
366 +
367 +}]
368 +)))
369 +
251 251  }
371 +)))
372 +
252 252  }
253 -{{/code}}
374 +)))
375 +
376 +}
377 +{{/success}}
378 +