|
1 | 1 | package com.expediagroup.sdk.rapid.examples; |
2 | 2 |
|
3 | 3 | import com.expediagroup.sdk.rapid.examples.salesprofiles.DefaultRapidPartnerProfile; |
| 4 | +import com.expediagroup.sdk.rapid.examples.scenarios.addelivery.GetAdsScenario; |
4 | 5 | import com.expediagroup.sdk.rapid.examples.scenarios.booking.AsyncSingleRoomBookScenario; |
5 | 6 | import com.expediagroup.sdk.rapid.examples.scenarios.booking.MultiRoomHoldAndResumeBookScenario; |
6 | 7 | import com.expediagroup.sdk.rapid.examples.scenarios.booking.SingleRoomBookScenario; |
7 | 8 | import com.expediagroup.sdk.rapid.examples.scenarios.content.GetPropertyContentInAdditionalLanguageScenario; |
8 | 9 | import com.expediagroup.sdk.rapid.examples.scenarios.content.GetPropertyContentScenario; |
9 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.GetListOfRegionNamesScenario; |
10 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.GetRegionByAncestorIdScenario; |
11 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.GetRegionDetailsAndPropertyIdsScenario; |
12 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.ParseRegionAncestorsScenario; |
13 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.ParseRegionCategoriesScenario; |
14 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.ParseRegionCoordinatesScenario; |
15 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.ParseRegionDescendantsScenario; |
16 | | -import com.expediagroup.sdk.rapid.examples.scenarios.geography.ParseRegionWithMultiPolygonCoordinatesScenario; |
17 | 10 | import com.expediagroup.sdk.rapid.examples.scenarios.managebooking.CancelHeldBookingScenario; |
18 | 11 | import com.expediagroup.sdk.rapid.examples.scenarios.managebooking.ChangeRoomDetailsScenario; |
19 | 12 | import com.expediagroup.sdk.rapid.examples.scenarios.managebooking.DeleteRoomScenario; |
@@ -186,90 +179,19 @@ public static void main(String[] args) throws ExecutionException, InterruptedExc |
186 | 179 | logger.info( |
187 | 180 | "========================== End of Property Content Scenarios ==========================="); |
188 | 181 |
|
189 | | - logger.info( |
190 | | - "============================= Running Geography Scenarios ============================="); |
191 | | - |
192 | | - /* Run Get List of Region Names Scenario using the default profile |
193 | | - This scenario demonstrates the following: |
194 | | - 1. Getting all regions with details in a paginated manner |
195 | | - 2. Filtering region names |
196 | | - */ |
197 | | - GetListOfRegionNamesScenario getListOfRegionNamesScenario = new GetListOfRegionNamesScenario(); |
198 | | - getListOfRegionNamesScenario.setProfile(new DefaultRapidPartnerProfile()); |
199 | | - getListOfRegionNamesScenario.run(); |
200 | | - |
201 | | - /* Run Get Region Name of Region Scenario using the default profile |
202 | | - This scenario demonstrates the following: |
203 | | - 1. Getting region details by region id |
204 | | - 2. Accessing region details |
205 | | - */ |
206 | | - GetRegionDetailsAndPropertyIdsScenario getRegionNameOfRegionScenario = |
207 | | - new GetRegionDetailsAndPropertyIdsScenario(); |
208 | | - getRegionNameOfRegionScenario.setProfile(new DefaultRapidPartnerProfile()); |
209 | | - getRegionNameOfRegionScenario.run(); |
210 | | - |
211 | | - /* Run Get Region By Ancestor Id Scenario using the default profile |
212 | | - This scenario demonstrates the following: |
213 | | - 1. Getting paginated regions details by ancestor id |
214 | | - 2. Accessing region details |
215 | | - */ |
216 | | - GetRegionByAncestorIdScenario getRegionByAncestorIdScenario = |
217 | | - new GetRegionByAncestorIdScenario(); |
218 | | - getRegionByAncestorIdScenario.setProfile(new DefaultRapidPartnerProfile()); |
219 | | - getRegionByAncestorIdScenario.run(); |
220 | | - |
221 | | - /* Run Get Region With MultiPolygon Coordinates Scenario using the default profile |
222 | | - This scenario demonstrates the following: |
223 | | - 1. Getting region details with multipolygon coordinates by region id |
224 | | - 2. Accessing region coordinates of type multipolygon |
225 | | - 3. Accessing every polygon list of coordinates. |
226 | | - */ |
227 | | - ParseRegionWithMultiPolygonCoordinatesScenario parseRegionWithMultiPolygonCoordinatesScenario = |
228 | | - new ParseRegionWithMultiPolygonCoordinatesScenario(); |
229 | | - parseRegionWithMultiPolygonCoordinatesScenario.setProfile(new DefaultRapidPartnerProfile()); |
230 | | - parseRegionWithMultiPolygonCoordinatesScenario.run(); |
231 | | - |
232 | | - /* Run Parse Region Ancestors Scenario using the default profile |
233 | | - This scenario demonstrates the following: |
234 | | - 1. Getting region details with ancestors by region id |
235 | | - 2. Parsing region ancestors |
236 | | - */ |
237 | | - ParseRegionAncestorsScenario parseRegionAncestorsScenario = new ParseRegionAncestorsScenario(); |
238 | | - parseRegionAncestorsScenario.setProfile(new DefaultRapidPartnerProfile()); |
239 | | - parseRegionAncestorsScenario.run(); |
240 | | - |
241 | | - /* Run Parse Region Descendants Scenario using the default profile |
242 | | - This scenario demonstrates the following: |
243 | | - 1. Getting region details with descendants by region id |
244 | | - 2. Parsing region descendants |
245 | | - */ |
246 | | - ParseRegionDescendantsScenario parseRegionDescendantsScenario = |
247 | | - new ParseRegionDescendantsScenario(); |
248 | | - parseRegionDescendantsScenario.setProfile(new DefaultRapidPartnerProfile()); |
249 | | - parseRegionDescendantsScenario.run(); |
250 | | - |
251 | | - /* Run Parse Region Coordinates Scenario using the default profile |
252 | | - This scenario demonstrates the following: |
253 | | - 1. Getting region details with coordinates by region id |
254 | | - 2. Parsing region coordinates |
255 | | - */ |
256 | | - ParseRegionCoordinatesScenario parseRegionCoordinatesScenario = |
257 | | - new ParseRegionCoordinatesScenario(); |
258 | | - parseRegionCoordinatesScenario.setProfile(new DefaultRapidPartnerProfile()); |
259 | | - parseRegionCoordinatesScenario.run(); |
| 182 | + logger.info("============================ Running Ad Delivery Scenarios ============================="); |
260 | 183 |
|
261 | | - /* Run Parse Region Categories Scenario using the default profile |
| 184 | + /* Run Get Ads Scenario using the default profile |
262 | 185 | This scenario demonstrates the following: |
263 | | - 1. Getting region details with property ids by region id |
264 | | - 2. Parsing region categories |
| 186 | + 1. Shopping for properties |
| 187 | + 2. Getting property availability for test property |
| 188 | + 3. Getting sponsored listings for the property |
265 | 189 | */ |
266 | | - ParseRegionCategoriesScenario parseRegionCategoriesScenario = |
267 | | - new ParseRegionCategoriesScenario(); |
268 | | - parseRegionCategoriesScenario.setProfile(new DefaultRapidPartnerProfile()); |
269 | | - parseRegionCategoriesScenario.run(); |
| 190 | + GetAdsScenario getAdsScenario = new GetAdsScenario(); |
| 191 | + getAdsScenario.setProfile(new DefaultRapidPartnerProfile()); |
| 192 | + getAdsScenario.run(); |
270 | 193 |
|
271 | | - logger.info( |
272 | | - "=============================== End of Geography Scenarios ==========================="); |
| 194 | + logger.info("=========================== End of Ad Delivery Scenarios ============================"); |
273 | 195 |
|
274 | 196 | logger.info( |
275 | 197 | "======================================================================================="); |
|
0 commit comments