Changes for page 3. CalcPackage

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

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

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -3. CalcPackage
1 +CalcPackage
Content
... ... @@ -27,43 +27,22 @@
27 27  == Request Body ==
28 28  
29 29  {{code language="Json"}}
30 -{
30 +none{
31 31   "packageId": "string",
32 32   "extraServicePriceCodes": [
33 33   "string"
34 - ],
35 - "flightPassengers": [
36 - {
37 - "id": "string",
38 - "selectedForwardBaggageCode": "string",
39 - "selectedBackwardBaggageCode": "string"
40 - }
41 - ],
42 - "includeInsurance": true,
43 - "refreshPrices": true
34 + ]
44 44  }
45 45  {{/code}}
46 46  
47 -(% class="wikigeneratedid" id="HRequestBodyexample" %)
48 -(% id="cke_bm_10575S" style="display:none" %)
38 +== (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example ==
49 49  
50 -== Request Body example ==
51 -
52 52  {{code language="Json"}}
53 53  {
54 - "packageId": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57",
42 + "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
55 55   "extraServicePriceCodes": [
56 56  
57 - ],
58 - "flightPassengers": [
59 - {
60 - "id": "42779531011000004-A1",
61 - "selectedForwardBaggageCode": "",
62 - "selectedBackwardBaggageCode": ""
63 - }
64 - ],
65 - "includeInsurance": true,
66 - "refreshPrices": true
45 + ]
67 67  }
68 68  {{/code}}
69 69  
... ... @@ -77,14 +77,11 @@
77 77   "errorDescription": "string",
78 78   "userErrorDescription": "string",
79 79   "package": {
80 - "cacheKey": "string",
81 81   "id": "string",
82 82   "priceCurrency": "string",
83 83   "totalPrice": 0,
84 84   "agentCommissionPercent": 0,
85 85   "agentCommissionAmount": 0,
86 - "includedExtrasAmount": 0,
87 - "priceDifference": 0,
88 88   "hotel": {
89 89   "hotelPriceId": "string",
90 90   "providerId": 0,
... ... @@ -100,8 +100,8 @@
100 100   "roomCategoryName": "string",
101 101   "placementTypeName": "string",
102 102   "placementDescription": "string",
103 - "checkInDate": "2023-12-26T12:55:59.433Z",
104 - "checkOutDate": "2023-12-26T12:55:59.433Z",
79 + "checkInDate": "2023-12-14T08:49:36.703Z",
80 + "checkOutDate": "2023-12-14T08:49:36.703Z",
105 105   "adults": 0,
106 106   "children": 0,
107 107   "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
... ... @@ -133,90 +133,6 @@
133 133   ]
134 134   }
135 135   },
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 - },
220 220   "extraServices": [
221 221   {
222 222   "extraServiceCode": "string",
... ... @@ -237,192 +237,8 @@
237 237   }
238 238   ]
239 239   }
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"
132 + ]
133 + }
426 426  }
427 427  {{/code}}
428 428  
... ... @@ -429,7 +429,65 @@
429 429  
430 430  === Response example ===
431 431  
432 -{{code language="Json"}}{{/code}}
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}}
433 433  
434 434  
435 435  === Schema ===
... ... @@ -570,3 +570,4 @@
570 570  }
571 571  {{/success}}
572 572  
339 +