Changes for page 2. CalcPackage

Last modified by Giorgi Mdivnishvili on 2024/04/12 18:58

From version 11.1
edited by Giorgi Mdivnishvili
on 2024/01/09 12:53
Change comment: There is no comment for this version
To version 6.1
edited by Giorgi Mdivnishvili
on 2023/12/14 16:21
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -2. CalcPackage
1 +CalcPackage
Content
... ... @@ -6,13 +6,13 @@
6 6  
7 7  = Method Description =
8 8  
9 -This method is used to calculate package only hotels, to recheck prices, availability, prices and cancelation policy before book.
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 10  
11 11  
12 12  == Endpoint URL - [POST] ==
13 13  
14 14  {{info}}
15 -[[https:~~/~~/integration.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://integration.kazunion.com/api/OnlyHotelPackages/CalcPackage]]
15 +[[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]]
16 16  {{/info}}
17 17  
18 18  
... ... @@ -200,140 +200,54 @@
200 200  
201 201  === Schema ===
202 202  
203 -{{success}}
203 +{{code language="none"}}
204 204  CalcOnlyHotelPackageResponse{
205 -
206 -|error|boolean
207 -|errorCode|string
208 -nullable: true
209 -|errorDescription|string
210 -nullable: true
211 -|userErrorDescription|string
212 -nullable: true
213 -|package|OnlyHotelPackage{(((
214 -|id|string
215 -nullable: true
216 -|priceCurrency|string
217 -nullable: true
218 -|totalPrice|number($double)
219 -|agentCommissionPercent|number($double)
220 -|agentCommissionAmount|number($double)
221 -|hotel|PackageHotel{(((
222 -|hotelPriceId|string
223 -nullable: true
224 -|providerId|integer($int32)
225 -|hotelName|string
226 -nullable: true
227 -|hotelCode|string
228 -nullable: true
229 -|nigths|integer($int32)
230 -|mealPlan|string
231 -nullable: true
232 -|hotelClass|string
233 -nullable: true
234 -|availabilityType|RoomAvailabilityTypeEnumstringEnum:
235 -[ OnRequest, FreeSale, StopSale ]
236 -|availableRoomsCount|integer($int32)
237 -|fewRooms|boolean
238 -|roomCategoryCode|string
239 -nullable: true
240 -|roomCategoryName|string
241 -nullable: true
242 -|placementTypeName|string
243 -nullable: true
244 -|placementDescription|string
245 -nullable: true
246 -|checkInDate|string($date-time)
247 -|checkOutDate|string($date-time)
248 -|adults|integer($int32)
249 -|children|integer($int32)
250 -|districtUID|string($uuid)
251 -nullable: true
252 -|districtName|string
253 -nullable: true
254 -|cityUID|string($uuid)
255 -nullable: true
256 -|cityName|string
257 -nullable: true
258 -|countryCode|string
259 -nullable: true
260 -|countryName|string
261 -nullable: true
262 -|hasAlcohol|boolean
263 -|hasFreeWifi|boolean
264 -|hasMetro|boolean
265 -|hasPool|boolean
266 -|hasMall|boolean
267 -|cancellationPolicyDescription|string
268 -nullable: true
269 -|cancellationPolicy|CancellationPolicyExchange{(((
270 -|cancellationPolicyCode|string
271 -nullable: true
272 -|noShowChargeValue|number($double)
273 -nullable: true
274 -|noShowChargeValueType|string
275 -nullable: true
276 -|earlyDepartureChargeValue|number($double)
277 -nullable: true
278 -|earlyDepartureChargeValueType|string
279 -nullable: true
280 -|conditions|[
281 -nullable: trueCancellationPolicyConditionExchange{(((
282 -|timeunits|integer($int32)
283 -|timeunitType|string
284 -nullable: true
285 -|timeOffsetTypeName|string
286 -nullable: true
287 -|chargeValue|number($double)
288 -nullable: true
289 -|chargeValueType|string
290 -nullable: true
291 -
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
292 292  }]
293 -)))
294 -
295 -}
296 -)))
297 -
298 -}
299 -)))
300 -|extraServices|[
301 -nullable: trueHotelExtraServiceBase{(((
302 -|extraServiceCode|string
303 -nullable: true
304 -|extraServiceTypeCode|string
305 -nullable: true
306 -|isMandatory|integer($int32)
307 -|extraServiceName|string
308 -nullable: true
309 -|minimalServiceAmount|number($double)
310 -|includedPriceCode|string
311 -nullable: true
312 -|prices|[
313 -nullable: trueHotelExtraServicePriceBase{(((
314 -|extraServicePriceCode|string
315 -nullable: true
316 -|displayName|string
317 -nullable: true
318 -|restrictionInfo|string
319 -nullable: true
320 -|additionalInfo|string
321 -nullable: true
322 -|price|number($double)
323 -|extraPrice|number($double)
324 -|currency|string
325 -nullable: true
326 -
327 327  }]
328 -)))
329 -
330 -}]
331 -)))
332 -
333 333  }
334 -)))
335 -
336 336  }
337 -{{/success}}
338 -
339 -
253 +{{/code}}