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
Change comment: There is no comment for this version
To version 4.1
edited by Giorgi Mdivnishvili
on 2023/12/19 18:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -CalcPackage
1 +3. CalcPackage
Content
... ... @@ -27,11 +27,12 @@
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  
... ... @@ -61,6 +61,8 @@
61 61   "totalPrice": 0,
62 62   "agentCommissionPercent": 0,
63 63   "agentCommissionAmount": 0,
65 + "includedExtrasAmount": 0,
66 + "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-14T08:49:36.703Z",
80 - "checkOutDate": "2023-12-14T08:49:36.703Z",
82 + "checkInDate": "2023-12-18T14:09:48.103Z",
83 + "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   },
115 + "flight": {
116 + "id": "string",
117 + "departureDate": "2023-12-18T14:09:48.103Z",
118 + "returnDate": "2023-12-18T14:09:48.103Z",
119 + "departureTicketsLeft": 0,
120 + "returnTicketsLeft": 0,
121 + "departureAvailabilityType": "OnRequest",
122 + "returnAvailabilityType": "OnRequest",
123 + "isTwoWay": true,
124 + "departureSegments": [
125 + {
126 + "airlineCode": "string",
127 + "airlineName": "string",
128 + "flightCode": "string",
129 + "class": "string",
130 + "lugageWeight": 0,
131 + "handLugageWeight": 0,
132 + "departureFlightDate": "2023-12-18T14:09:48.103Z",
133 + "departureCountryName": "string",
134 + "departureCityName": "string",
135 + "departureAirportCode": "string",
136 + "departureAirportName": "string",
137 + "departureTerminalCode": "string",
138 + "arrivalFlightDate": "2023-12-18T14:09:48.103Z",
139 + "arrivalCountryName": "string",
140 + "arrivalCityName": "string",
141 + "arrivalAirportCode": "string",
142 + "arrivalAirportName": "string",
143 + "arrivalTerminalCode": "string",
144 + "flightDuration": "string",
145 + "baggages": [
146 + {
147 + "baggageCode": "string",
148 + "description": "string",
149 + "price": 0,
150 + "currency": "string",
151 + "included": true
152 + }
153 + ]
154 + }
155 + ],
156 + "returnSegments": [
157 + {
158 + "airlineCode": "string",
159 + "airlineName": "string",
160 + "flightCode": "string",
161 + "class": "string",
162 + "lugageWeight": 0,
163 + "handLugageWeight": 0,
164 + "departureFlightDate": "2023-12-18T14:09:48.103Z",
165 + "departureCountryName": "string",
166 + "departureCityName": "string",
167 + "departureAirportCode": "string",
168 + "departureAirportName": "string",
169 + "departureTerminalCode": "string",
170 + "arrivalFlightDate": "2023-12-18T14:09:48.103Z",
171 + "arrivalCountryName": "string",
172 + "arrivalCityName": "string",
173 + "arrivalAirportCode": "string",
174 + "arrivalAirportName": "string",
175 + "arrivalTerminalCode": "string",
176 + "flightDuration": "string",
177 + "baggages": [
178 + {
179 + "baggageCode": "string",
180 + "description": "string",
181 + "price": 0,
182 + "currency": "string",
183 + "included": true
184 + }
185 + ]
186 + }
187 + ]
188 + },
112 112   "extraServices": [
113 113   {
114 114   "extraServiceCode": "string",
... ... @@ -129,7 +129,17 @@
129 129   }
130 130   ]
131 131   }
132 - ]
209 + ],
210 + "insurancePrice": {
211 + "name": "string",
212 + "price": 0,
213 + "priceSurcarge": 0,
214 + "actualStartDate": "2023-12-18T14:09:48.103Z",
215 + "actualEndDate": "2023-12-18T14:09:48.103Z",
216 + "optional": true,
217 + "includedInPackagePrice": true
218 + },
219 + "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}}
227 +{{code language="Json"}}{{/code}}
199 199  
200 200  
201 201  === Schema ===