Changes for page 2. CalcPackage

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

From version 7.1
edited by Giorgi Mdivnishvili
on 2023/12/14 16:22
Change comment: There is no comment for this version
To version 3.1
edited by Giorgi Mdivnishvili
on 2023/12/14 12:46
Change comment: There is no comment for this version

Summary

Details

Page properties
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  
... ... @@ -201,53 +201,36 @@
201 201  === Schema ===
202 202  
203 203  {{code language="none"}}
204 -CalcOnlyHotelPackageResponse{
205 -error boolean
206 -errorCode string
143 +[Hotel{
144 +hotelCode string
207 207  nullable: true
208 -errorDescription string
146 +hotelName string
209 209  nullable: true
210 -userErrorDescription string
148 +hotelClass string
211 211  nullable: true
212 -package OnlyHotelPackage{
213 -id string
150 +cityUID string($uuid)
214 214  nullable: true
215 -priceCurrency string
152 +countryCode string
216 216  nullable: true
217 -totalPrice number($double)
218 -agentCommissionPercent number($double)
219 -agentCommissionAmount number($double)
220 -hotel PackageHotel{...}
221 -extraServices [
154 +countryName string
222 222  nullable: true
223 -HotelExtraServiceBase{
224 -extraServiceCode string
156 +districtUID string($uuid)
225 225  nullable: true
226 -extraServiceTypeCode string
158 +cityName string
227 227  nullable: true
228 -isMandatory integer($int32)
229 -extraServiceName string
160 +districtName string
230 230  nullable: true
231 -minimalServiceAmount number($double)
232 -includedPriceCode string
162 +hotelType HotelTypeEnumstring
163 +Enum:
164 +[ CityHotel, BeachHotel, SecondLineBeach ]
165 +latitude string
233 233  nullable: true
234 -prices [
167 +longitude string
235 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
169 +hasAlcohol boolean
170 +hasFreeWifi boolean
171 +hasMetro boolean
172 +hasPool boolean
173 +hasMall boolean
249 249  }]
250 -}]
251 -}
252 -}
253 253  {{/code}}