Changes for page 3. CalcPackage
Last modified by Giorgi Mdivnishvili on 2024/04/11 17:03
From version 5.1
edited by Giorgi Mdivnishvili
on 2023/12/26 09:08
on 2023/12/26 09:08
Change comment:
There is no comment for this version
To version 2.1
edited by Giorgi Mdivnishvili
on 2023/12/18 18:09
on 2023/12/18 18:09
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 - 3.CalcPackage1 +CalcPackage - Content
-
... ... @@ -27,20 +27,16 @@ 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 - "includeInsurance": true 34 + ] 36 36 } 37 37 {{/code}} 38 38 39 -(% class="wikigeneratedid" id="HRequestBodyexample" %) 40 -(% id="cke_bm_10575S" style="display:none" %) 38 +== (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example == 41 41 42 -== Request Body example == 43 - 44 44 {{code language="Json"}} 45 45 { 46 46 "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", ... ... @@ -65,8 +65,6 @@ 65 65 "totalPrice": 0, 66 66 "agentCommissionPercent": 0, 67 67 "agentCommissionAmount": 0, 68 - "includedExtrasAmount": 0, 69 - "priceDifference": 0, 70 70 "hotel": { 71 71 "hotelPriceId": "string", 72 72 "providerId": 0, ... ... @@ -82,8 +82,8 @@ 82 82 "roomCategoryName": "string", 83 83 "placementTypeName": "string", 84 84 "placementDescription": "string", 85 - "checkInDate": "2023-12-1 8T14:09:48.103Z",86 - "checkOutDate": "2023-12-1 8T14:09:48.103Z",79 + "checkInDate": "2023-12-14T08:49:36.703Z", 80 + "checkOutDate": "2023-12-14T08:49:36.703Z", 87 87 "adults": 0, 88 88 "children": 0, 89 89 "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", ... ... @@ -115,80 +115,6 @@ 115 115 ] 116 116 } 117 117 }, 118 - "flight": { 119 - "id": "string", 120 - "departureDate": "2023-12-18T14:09:48.103Z", 121 - "returnDate": "2023-12-18T14:09:48.103Z", 122 - "departureTicketsLeft": 0, 123 - "returnTicketsLeft": 0, 124 - "departureAvailabilityType": "OnRequest", 125 - "returnAvailabilityType": "OnRequest", 126 - "isTwoWay": true, 127 - "departureSegments": [ 128 - { 129 - "airlineCode": "string", 130 - "airlineName": "string", 131 - "flightCode": "string", 132 - "class": "string", 133 - "lugageWeight": 0, 134 - "handLugageWeight": 0, 135 - "departureFlightDate": "2023-12-18T14:09:48.103Z", 136 - "departureCountryName": "string", 137 - "departureCityName": "string", 138 - "departureAirportCode": "string", 139 - "departureAirportName": "string", 140 - "departureTerminalCode": "string", 141 - "arrivalFlightDate": "2023-12-18T14:09:48.103Z", 142 - "arrivalCountryName": "string", 143 - "arrivalCityName": "string", 144 - "arrivalAirportCode": "string", 145 - "arrivalAirportName": "string", 146 - "arrivalTerminalCode": "string", 147 - "flightDuration": "string", 148 - "baggages": [ 149 - { 150 - "baggageCode": "string", 151 - "description": "string", 152 - "price": 0, 153 - "currency": "string", 154 - "included": true 155 - } 156 - ] 157 - } 158 - ], 159 - "returnSegments": [ 160 - { 161 - "airlineCode": "string", 162 - "airlineName": "string", 163 - "flightCode": "string", 164 - "class": "string", 165 - "lugageWeight": 0, 166 - "handLugageWeight": 0, 167 - "departureFlightDate": "2023-12-18T14:09:48.103Z", 168 - "departureCountryName": "string", 169 - "departureCityName": "string", 170 - "departureAirportCode": "string", 171 - "departureAirportName": "string", 172 - "departureTerminalCode": "string", 173 - "arrivalFlightDate": "2023-12-18T14:09:48.103Z", 174 - "arrivalCountryName": "string", 175 - "arrivalCityName": "string", 176 - "arrivalAirportCode": "string", 177 - "arrivalAirportName": "string", 178 - "arrivalTerminalCode": "string", 179 - "flightDuration": "string", 180 - "baggages": [ 181 - { 182 - "baggageCode": "string", 183 - "description": "string", 184 - "price": 0, 185 - "currency": "string", 186 - "included": true 187 - } 188 - ] 189 - } 190 - ] 191 - }, 192 192 "extraServices": [ 193 193 { 194 194 "extraServiceCode": "string", ... ... @@ -209,17 +209,7 @@ 209 209 } 210 210 ] 211 211 } 212 - ], 213 - "insurancePrice": { 214 - "name": "string", 215 - "price": 0, 216 - "priceSurcarge": 0, 217 - "actualStartDate": "2023-12-18T14:09:48.103Z", 218 - "actualEndDate": "2023-12-18T14:09:48.103Z", 219 - "optional": true, 220 - "includedInPackagePrice": true 221 - }, 222 - "cacheKey": "string" 132 + ] 223 223 } 224 224 } 225 225 {{/code}} ... ... @@ -227,7 +227,65 @@ 227 227 228 228 === Response example === 229 229 230 -{{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}} 231 231 232 232 233 233 === Schema ===