Changes for page 3. CalcPackage

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

From version 2.1
edited by Giorgi Mdivnishvili
on 2023/12/18 18:09
Change comment: There is no comment for this version
To version 6.1
edited by Giorgi Mdivnishvili
on 2023/12/26 17:01
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -CalcPackage
1 +3. CalcPackage
Content
... ... @@ -27,22 +27,43 @@
27 27  == Request Body ==
28 28  
29 29  {{code language="Json"}}
30 -none{
30 +{
31 31   "packageId": "string",
32 32   "extraServicePriceCodes": [
33 33   "string"
34 - ]
34 + ],
35 + "flightPassengers": [
36 + {
37 + "id": "string",
38 + "selectedForwardBaggageCode": "string",
39 + "selectedBackwardBaggageCode": "string"
40 + }
41 + ],
42 + "includeInsurance": true,
43 + "refreshPrices": true
35 35  }
36 36  {{/code}}
37 37  
38 -== (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example ==
47 +(% class="wikigeneratedid" id="HRequestBodyexample" %)
48 +(% id="cke_bm_10575S" style="display:none" %)
39 39  
50 +== Request Body example ==
51 +
40 40  {{code language="Json"}}
41 41  {
42 - "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
54 + "packageId": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57",
43 43   "extraServicePriceCodes": [
44 44  
45 - ]
57 + ],
58 + "flightPassengers": [
59 + {
60 + "id": "42779531011000004-A1",
61 + "selectedForwardBaggageCode": "",
62 + "selectedBackwardBaggageCode": ""
63 + }
64 + ],
65 + "includeInsurance": true,
66 + "refreshPrices": true
46 46  }
47 47  {{/code}}
48 48  
... ... @@ -56,11 +56,14 @@
56 56   "errorDescription": "string",
57 57   "userErrorDescription": "string",
58 58   "package": {
80 + "cacheKey": "string",
59 59   "id": "string",
60 60   "priceCurrency": "string",
61 61   "totalPrice": 0,
62 62   "agentCommissionPercent": 0,
63 63   "agentCommissionAmount": 0,
86 + "includedExtrasAmount": 0,
87 + "priceDifference": 0,
64 64   "hotel": {
65 65   "hotelPriceId": "string",
66 66   "providerId": 0,
... ... @@ -76,8 +76,8 @@
76 76   "roomCategoryName": "string",
77 77   "placementTypeName": "string",
78 78   "placementDescription": "string",
79 - "checkInDate": "2023-12-14T08:49:36.703Z",
80 - "checkOutDate": "2023-12-14T08:49:36.703Z",
103 + "checkInDate": "2023-12-26T12:55:59.433Z",
104 + "checkOutDate": "2023-12-26T12:55:59.433Z",
81 81   "adults": 0,
82 82   "children": 0,
83 83   "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
... ... @@ -109,6 +109,90 @@
109 109   ]
110 110   }
111 111   },
136 + "flight": {
137 + "id": "string",
138 + "departureDate": "2023-12-26T12:55:59.433Z",
139 + "returnDate": "2023-12-26T12:55:59.433Z",
140 + "departureTicketsLeft": 0,
141 + "returnTicketsLeft": 0,
142 + "departureAvailabilityType": "OnRequest",
143 + "returnAvailabilityType": "OnRequest",
144 + "isTwoWay": true,
145 + "sameBaggageForAll": true,
146 + "totalBaggage": true,
147 + "departureSegments": [
148 + {
149 + "airlineCode": "string",
150 + "airlineName": "string",
151 + "flightCode": "string",
152 + "class": "string",
153 + "lugageWeight": 0,
154 + "handLugageWeight": 0,
155 + "departureFlightDate": "2023-12-26T12:55:59.433Z",
156 + "departureCountryName": "string",
157 + "departureCityName": "string",
158 + "departureAirportCode": "string",
159 + "departureAirportName": "string",
160 + "departureTerminalCode": "string",
161 + "arrivalFlightDate": "2023-12-26T12:55:59.433Z",
162 + "arrivalCountryName": "string",
163 + "arrivalCityName": "string",
164 + "arrivalAirportCode": "string",
165 + "arrivalAirportName": "string",
166 + "arrivalTerminalCode": "string",
167 + "flightDuration": "string"
168 + }
169 + ],
170 + "returnSegments": [
171 + {
172 + "airlineCode": "string",
173 + "airlineName": "string",
174 + "flightCode": "string",
175 + "class": "string",
176 + "lugageWeight": 0,
177 + "handLugageWeight": 0,
178 + "departureFlightDate": "2023-12-26T12:55:59.433Z",
179 + "departureCountryName": "string",
180 + "departureCityName": "string",
181 + "departureAirportCode": "string",
182 + "departureAirportName": "string",
183 + "departureTerminalCode": "string",
184 + "arrivalFlightDate": "2023-12-26T12:55:59.433Z",
185 + "arrivalCountryName": "string",
186 + "arrivalCityName": "string",
187 + "arrivalAirportCode": "string",
188 + "arrivalAirportName": "string",
189 + "arrivalTerminalCode": "string",
190 + "flightDuration": "string"
191 + }
192 + ],
193 + "passengers": [
194 + {
195 + "id": "string",
196 + "isAdult": true,
197 + "selectedForwardBaggageCode": "string",
198 + "selectedBackwardBaggageCode": "string",
199 + "forwardBaggages": [
200 + {
201 + "baggageCode": "string",
202 + "description": "string",
203 + "price": 0,
204 + "currency": "string",
205 + "included": true
206 + }
207 + ],
208 + "backwardBaggages": [
209 + {
210 + "baggageCode": "string",
211 + "description": "string",
212 + "price": 0,
213 + "currency": "string",
214 + "included": true
215 + }
216 + ]
217 + }
218 + ]
219 + },
112 112   "extraServices": [
113 113   {
114 114   "extraServiceCode": "string",
... ... @@ -129,8 +129,192 @@
129 129   }
130 130   ]
131 131   }
132 - ]
133 - }
240 + ],
241 + "insurancePrice": {
242 + "name": "string",
243 + "price": 0,
244 + "priceSurcarge": 0,
245 + "actualStartDate": "2023-12-26T12:55:59.433Z",
246 + "actualEndDate": "2023-12-26T12:55:59.433Z",
247 + "optional": true,
248 + "includedInPackagePrice": true
249 + }
250 + },
251 + "altPackages": [
252 + {
253 + "cacheKey": "string",
254 + "id": "string",
255 + "priceCurrency": "string",
256 + "totalPrice": 0,
257 + "agentCommissionPercent": 0,
258 + "agentCommissionAmount": 0,
259 + "includedExtrasAmount": 0,
260 + "priceDifference": 0,
261 + "hotel": {
262 + "hotelPriceId": "string",
263 + "providerId": 0,
264 + "hotelName": "string",
265 + "hotelCode": "string",
266 + "nigths": 0,
267 + "mealPlan": "string",
268 + "hotelClass": "string",
269 + "availabilityType": "OnRequest",
270 + "availableRoomsCount": 0,
271 + "fewRooms": true,
272 + "roomCategoryCode": "string",
273 + "roomCategoryName": "string",
274 + "placementTypeName": "string",
275 + "placementDescription": "string",
276 + "checkInDate": "2023-12-26T12:55:59.433Z",
277 + "checkOutDate": "2023-12-26T12:55:59.433Z",
278 + "adults": 0,
279 + "children": 0,
280 + "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
281 + "districtName": "string",
282 + "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
283 + "cityName": "string",
284 + "countryCode": "string",
285 + "countryName": "string",
286 + "hasAlcohol": true,
287 + "hasFreeWifi": true,
288 + "hasMetro": true,
289 + "hasPool": true,
290 + "hasMall": true,
291 + "cancellationPolicyDescription": "string",
292 + "cancellationPolicy": {
293 + "cancellationPolicyCode": "string",
294 + "noShowChargeValue": 0,
295 + "noShowChargeValueType": "string",
296 + "earlyDepartureChargeValue": 0,
297 + "earlyDepartureChargeValueType": "string",
298 + "conditions": [
299 + {
300 + "timeunits": 0,
301 + "timeunitType": "string",
302 + "timeOffsetTypeName": "string",
303 + "chargeValue": 0,
304 + "chargeValueType": "string"
305 + }
306 + ]
307 + }
308 + },
309 + "flight": {
310 + "id": "string",
311 + "departureDate": "2023-12-26T12:55:59.433Z",
312 + "returnDate": "2023-12-26T12:55:59.433Z",
313 + "departureTicketsLeft": 0,
314 + "returnTicketsLeft": 0,
315 + "departureAvailabilityType": "OnRequest",
316 + "returnAvailabilityType": "OnRequest",
317 + "isTwoWay": true,
318 + "sameBaggageForAll": true,
319 + "totalBaggage": true,
320 + "departureSegments": [
321 + {
322 + "airlineCode": "string",
323 + "airlineName": "string",
324 + "flightCode": "string",
325 + "class": "string",
326 + "lugageWeight": 0,
327 + "handLugageWeight": 0,
328 + "departureFlightDate": "2023-12-26T12:55:59.433Z",
329 + "departureCountryName": "string",
330 + "departureCityName": "string",
331 + "departureAirportCode": "string",
332 + "departureAirportName": "string",
333 + "departureTerminalCode": "string",
334 + "arrivalFlightDate": "2023-12-26T12:55:59.433Z",
335 + "arrivalCountryName": "string",
336 + "arrivalCityName": "string",
337 + "arrivalAirportCode": "string",
338 + "arrivalAirportName": "string",
339 + "arrivalTerminalCode": "string",
340 + "flightDuration": "string"
341 + }
342 + ],
343 + "returnSegments": [
344 + {
345 + "airlineCode": "string",
346 + "airlineName": "string",
347 + "flightCode": "string",
348 + "class": "string",
349 + "lugageWeight": 0,
350 + "handLugageWeight": 0,
351 + "departureFlightDate": "2023-12-26T12:55:59.433Z",
352 + "departureCountryName": "string",
353 + "departureCityName": "string",
354 + "departureAirportCode": "string",
355 + "departureAirportName": "string",
356 + "departureTerminalCode": "string",
357 + "arrivalFlightDate": "2023-12-26T12:55:59.433Z",
358 + "arrivalCountryName": "string",
359 + "arrivalCityName": "string",
360 + "arrivalAirportCode": "string",
361 + "arrivalAirportName": "string",
362 + "arrivalTerminalCode": "string",
363 + "flightDuration": "string"
364 + }
365 + ],
366 + "passengers": [
367 + {
368 + "id": "string",
369 + "isAdult": true,
370 + "selectedForwardBaggageCode": "string",
371 + "selectedBackwardBaggageCode": "string",
372 + "forwardBaggages": [
373 + {
374 + "baggageCode": "string",
375 + "description": "string",
376 + "price": 0,
377 + "currency": "string",
378 + "included": true
379 + }
380 + ],
381 + "backwardBaggages": [
382 + {
383 + "baggageCode": "string",
384 + "description": "string",
385 + "price": 0,
386 + "currency": "string",
387 + "included": true
388 + }
389 + ]
390 + }
391 + ]
392 + },
393 + "extraServices": [
394 + {
395 + "extraServiceCode": "string",
396 + "extraServiceTypeCode": "string",
397 + "isMandatory": 0,
398 + "extraServiceName": "string",
399 + "minimalServiceAmount": 0,
400 + "includedPriceCode": "string",
401 + "prices": [
402 + {
403 + "extraServicePriceCode": "string",
404 + "displayName": "string",
405 + "restrictionInfo": "string",
406 + "additionalInfo": "string",
407 + "price": 0,
408 + "extraPrice": 0,
409 + "currency": "string"
410 + }
411 + ]
412 + }
413 + ],
414 + "insurancePrice": {
415 + "name": "string",
416 + "price": 0,
417 + "priceSurcarge": 0,
418 + "actualStartDate": "2023-12-26T12:55:59.433Z",
419 + "actualEndDate": "2023-12-26T12:55:59.433Z",
420 + "optional": true,
421 + "includedInPackagePrice": true
422 + }
423 + }
424 + ],
425 + "refreshPriceResult": "Success"
134 134  }
135 135  {{/code}}
136 136  
... ... @@ -137,65 +137,7 @@
137 137  
138 138  === Response example ===
139 139  
140 -{{code language="Json"}}
141 -{
142 - "package": {
143 - "id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
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": []
195 - },
196 - "error": false
197 -}
198 -{{/code}}
432 +{{code language="Json"}}{{/code}}
199 199  
200 200  
201 201  === Schema ===
... ... @@ -336,4 +336,3 @@
336 336  }
337 337  {{/success}}
338 338  
339 -