Changes for page 2. CalcPackage
Last modified by Giorgi Mdivnishvili on 2024/04/12 18:58
From version 9.1
edited by Giorgi Mdivnishvili
on 2023/12/19 18:04
on 2023/12/19 18:04
Change comment:
There is no comment for this version
To version 3.1
edited by Giorgi Mdivnishvili
on 2023/12/14 12:46
on 2023/12/14 12:46
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 2.CalcPackage1 +CalcPackage - Content
-
... ... @@ -9,7 +9,7 @@ 9 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 -== Endpoint URL - [ POST] ==12 +== Endpoint URL - [GET] == 13 13 14 14 {{info}} 15 15 [[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]] ... ... @@ -47,91 +47,30 @@ 47 47 {{/code}} 48 48 49 49 50 -== Response == 50 +== Response == 51 51 52 52 {{code language="json"}} 53 -{ 54 - "error": true, 55 - "errorCode": "string", 56 - "errorDescription": "string", 57 - "userErrorDescription": "string", 58 - "package": { 59 - "id": "string", 60 - "priceCurrency": "string", 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 - ] 53 +[ 54 + { 55 + "hotelCode": "string", 56 + "hotelName": "string", 57 + "hotelClass": "string", 58 + "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", 59 + "countryCode": "string", 60 + "countryName": "string", 61 + "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", 62 + "cityName": "string", 63 + "districtName": "string", 64 + "hotelType": "CityHotel", 65 + "latitude": "string", 66 + "longitude": "string", 67 + "hasAlcohol": true, 68 + "hasFreeWifi": true, 69 + "hasMetro": true, 70 + "hasPool": true, 71 + "hasMall": true 133 133 } 134 - }73 +] 135 135 {{/code}} 136 136 137 137 ... ... @@ -200,140 +200,37 @@ 200 200 201 201 === Schema === 202 202 203 -{{success}} 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 - 142 +{{code language="none"}} 143 +[Hotel{ 144 +hotelCode string 145 +nullable: true 146 +hotelName string 147 +nullable: true 148 +hotelClass string 149 +nullable: true 150 +cityUID string($uuid) 151 +nullable: true 152 +countryCode string 153 +nullable: true 154 +countryName string 155 +nullable: true 156 +districtUID string($uuid) 157 +nullable: true 158 +cityName string 159 +nullable: true 160 +districtName string 161 +nullable: true 162 +hotelType HotelTypeEnumstring 163 +Enum: 164 +[ CityHotel, BeachHotel, SecondLineBeach ] 165 +latitude string 166 +nullable: true 167 +longitude string 168 +nullable: true 169 +hasAlcohol boolean 170 +hasFreeWifi boolean 171 +hasMetro boolean 172 +hasPool boolean 173 +hasMall boolean 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 -}] 328 -))) 329 - 330 -}] 331 -))) 332 - 333 -} 334 -))) 335 - 336 -} 337 -{{/success}} 338 - 339 - 175 +{{/code}}