Changes for page 3. CalcPackage
Last modified by Giorgi Mdivnishvili on 2024/04/11 17:03
From 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
To 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
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -CalcPackage 1 +3. CalcPackage - Content
-
... ... @@ -27,16 +27,20 @@ 27 27 == Request Body == 28 28 29 29 {{code language="Json"}} 30 - none{30 +{ 31 31 "packageId": "string", 32 32 "extraServicePriceCodes": [ 33 33 "string" 34 - ] 34 + ], 35 + "includeInsurance": true 35 35 } 36 36 {{/code}} 37 37 38 -== (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example == 39 +(% class="wikigeneratedid" id="HRequestBodyexample" %) 40 +(% id="cke_bm_10575S" style="display:none" %) 39 39 42 +== Request Body example == 43 + 40 40 {{code language="Json"}} 41 41 { 42 42 "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", ... ... @@ -61,6 +61,8 @@ 61 61 "totalPrice": 0, 62 62 "agentCommissionPercent": 0, 63 63 "agentCommissionAmount": 0, 68 + "includedExtrasAmount": 0, 69 + "priceDifference": 0, 64 64 "hotel": { 65 65 "hotelPriceId": "string", 66 66 "providerId": 0, ... ... @@ -76,8 +76,8 @@ 76 76 "roomCategoryName": "string", 77 77 "placementTypeName": "string", 78 78 "placementDescription": "string", 79 - "checkInDate": "2023-12-1 4T08:49:36.703Z",80 - "checkOutDate": "2023-12-1 4T08:49:36.703Z",85 + "checkInDate": "2023-12-18T14:09:48.103Z", 86 + "checkOutDate": "2023-12-18T14:09:48.103Z", 81 81 "adults": 0, 82 82 "children": 0, 83 83 "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", ... ... @@ -109,6 +109,80 @@ 109 109 ] 110 110 } 111 111 }, 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 + }, 112 112 "extraServices": [ 113 113 { 114 114 "extraServiceCode": "string", ... ... @@ -129,7 +129,17 @@ 129 129 } 130 130 ] 131 131 } 132 - ] 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" 133 133 } 134 134 } 135 135 {{/code}} ... ... @@ -137,65 +137,7 @@ 137 137 138 138 === Response example === 139 139 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}} 230 +{{code language="Json"}}{{/code}} 199 199 200 200 201 201 === Schema ===