Complex classes like Client often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Client, and based on these observations, apply Extract Interface, too.
| 1 | <?php | ||
| 40 | class Client extends Base | ||
| 41 | { | ||
| 42 | /** | ||
| 43 | * Amadeus SOAP header version 1 | ||
| 44 | */ | ||
| 45 | const HEADER_V1 = "1"; | ||
| 46 | /** | ||
| 47 | * Amadeus SOAP header version 2 | ||
| 48 | */ | ||
| 49 | const HEADER_V2 = "2"; | ||
| 50 | /** | ||
| 51 | * Amadeus SOAP header version 4 | ||
| 52 | */ | ||
| 53 | const HEADER_V4 = "4"; | ||
| 54 | |||
| 55 | /** | ||
| 56 | * Version string | ||
| 57 | * | ||
| 58 | * @var string | ||
| 59 | */ | ||
| 60 | const VERSION = "1.7.0-dev"; | ||
| 61 | |||
| 62 | /** | ||
| 63 | * An identifier string for the library (to be used in Received From entries) | ||
| 64 | * | ||
| 65 | * @var string | ||
| 66 | */ | ||
| 67 | const RECEIVED_FROM_IDENTIFIER = "amabnl-amadeus-ws-client"; | ||
| 68 | |||
| 69 | /** | ||
| 70 | * @var string | ||
| 71 | */ | ||
| 72 | protected $lastMessage; | ||
| 73 | |||
| 74 | /** | ||
| 75 | * Set the session as stateful (true) or stateless (false) | ||
| 76 | * | ||
| 77 | * @param bool $newStateful | ||
| 78 | */ | ||
| 79 | 4 | public function setStateful($newStateful) | |
| 80 |     { | ||
| 81 | 4 | $this->sessionHandler->setStateful($newStateful); | |
| 82 | 4 | } | |
| 83 | |||
| 84 | /** | ||
| 85 | * @return bool | ||
| 86 | */ | ||
| 87 | 12 | public function isStateful() | |
| 88 |     { | ||
| 89 | 12 | return $this->sessionHandler->isStateful(); | |
| 90 | } | ||
| 91 | |||
| 92 | /** | ||
| 93 | * Get the last raw XML message that was sent out | ||
| 94 | * | ||
| 95 | * @return string|null | ||
| 96 | */ | ||
| 97 | 4 | public function getLastRequest() | |
| 98 |     { | ||
| 99 | 4 | return $this->sessionHandler->getLastRequest($this->lastMessage); | |
| 100 | } | ||
| 101 | |||
| 102 | /** | ||
| 103 | * Get the last raw XML message that was received | ||
| 104 | * | ||
| 105 | * @return string|null | ||
| 106 | */ | ||
| 107 | 4 | public function getLastResponse() | |
| 108 |     { | ||
| 109 | 4 | return $this->sessionHandler->getLastResponse($this->lastMessage); | |
| 110 | } | ||
| 111 | |||
| 112 | /** | ||
| 113 | * Get the request headers for the last SOAP message that was sent out | ||
| 114 | * | ||
| 115 | * @return string|null | ||
| 116 | */ | ||
| 117 | 4 | public function getLastRequestHeaders() | |
| 118 |     { | ||
| 119 | 4 | return $this->sessionHandler->getLastRequestHeaders($this->lastMessage); | |
| 120 | } | ||
| 121 | |||
| 122 | /** | ||
| 123 | * Get the response headers for the last SOAP message that was received | ||
| 124 | * | ||
| 125 | * @return string|null | ||
| 126 | */ | ||
| 127 | 4 | public function getLastResponseHeaders() | |
| 128 |     { | ||
| 129 | 4 | return $this->sessionHandler->getLastResponseHeaders($this->lastMessage); | |
| 130 | } | ||
| 131 | |||
| 132 | /** | ||
| 133 | * Get session information for authenticated session | ||
| 134 | * | ||
| 135 | * - sessionId | ||
| 136 | * - sequenceNr | ||
| 137 | * - securityToken | ||
| 138 | * | ||
| 139 | * @return array|null | ||
| 140 | */ | ||
| 141 | 4 | public function getSessionData() | |
| 142 |     { | ||
| 143 | 4 | return $this->sessionHandler->getSessionData(); | |
| 144 | } | ||
| 145 | |||
| 146 | /** | ||
| 147 | * Restore a previously used session | ||
| 148 | * | ||
| 149 | * To be used when implementing your own session pooling system on legacy Soap Header 2 applications. | ||
| 150 | * | ||
| 151 | * @param array $sessionData | ||
| 152 | * @return bool | ||
| 153 | */ | ||
| 154 | 4 | public function setSessionData(array $sessionData) | |
| 155 |     { | ||
| 156 | 4 | return $this->sessionHandler->setSessionData($sessionData); | |
| 157 | } | ||
| 158 | |||
| 159 | /** | ||
| 160 | * Construct Amadeus Web Services client | ||
| 161 | * | ||
| 162 | * @param Params $params | ||
| 163 | */ | ||
| 164 | 372 | public function __construct(Params $params) | |
| 165 |     { | ||
| 166 | 372 | $this->loadClientParams( | |
| 167 | 372 | $params, | |
| 168 | 372 | self::RECEIVED_FROM_IDENTIFIER, | |
| 169 | 186 | self::VERSION | |
| 170 | 186 | ); | |
| 171 | 368 | } | |
| 172 | |||
| 173 | /** | ||
| 174 | * Authenticate. | ||
| 175 | * | ||
| 176 | * Authentication Parameters were provided at construction time (authParams) | ||
| 177 | * | ||
| 178 | * @return Result | ||
| 179 | * @throws Exception | ||
| 180 | */ | ||
| 181 | 8 | public function securityAuthenticate() | |
| 182 |     { | ||
| 183 | 8 | $msgName = 'Security_Authenticate'; | |
| 184 | |||
| 185 | 8 | return $this->callMessage( | |
| 186 | 8 | $msgName, | |
| 187 | 8 | new RequestOptions\SecurityAuthenticateOptions( | |
| 188 | 8 | $this->authParams | |
| 189 | 4 | ), | |
| 190 | 8 | [], | |
| 191 | 4 | false | |
| 192 | 4 | ); | |
| 193 | } | ||
| 194 | |||
| 195 | /** | ||
| 196 | * Terminate a session - only applicable to non-stateless mode. | ||
| 197 | * | ||
| 198 | * @return Result | ||
| 199 | * @throws Exception | ||
| 200 | */ | ||
| 201 | 4 | public function securitySignOut() | |
| 202 |     { | ||
| 203 | 4 | $msgName = 'Security_SignOut'; | |
| 204 | |||
| 205 | 4 | return $this->callMessage( | |
| 206 | 4 | $msgName, | |
| 207 | 4 | new RequestOptions\SecuritySignOutOptions(), | |
| 208 | 4 | [], | |
| 209 | 2 | true | |
| 210 | 2 | ); | |
| 211 | } | ||
| 212 | |||
| 213 | /** | ||
| 214 | * PNR_Retrieve - Retrieve an Amadeus PNR by record locator | ||
| 215 | * | ||
| 216 | * @param RequestOptions\PnrRetrieveOptions $options | ||
| 217 | * @param array $messageOptions (OPTIONAL) | ||
| 218 | * @return Result | ||
| 219 | * @throws Client\InvalidMessageException | ||
| 220 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 221 | * @throws Exception | ||
| 222 | */ | ||
| 223 | 4 | public function pnrRetrieve(RequestOptions\PnrRetrieveOptions $options, $messageOptions = []) | |
| 224 |     { | ||
| 225 | 4 | $msgName = 'PNR_Retrieve'; | |
| 226 | |||
| 227 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 228 | } | ||
| 229 | |||
| 230 | /** | ||
| 231 | * PNR_Split | ||
| 232 | * | ||
| 233 | * @param RequestOptions\PnrSplitOptions $options | ||
| 234 | * @param array $messageOptions (OPTIONAL) | ||
| 235 | * @return Result | ||
| 236 | * @throws Client\InvalidMessageException | ||
| 237 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 238 | * @throws Exception | ||
| 239 | */ | ||
| 240 | 4 | public function pnrSplit( | |
| 241 | RequestOptions\PnrSplitOptions $options, | ||
| 242 | $messageOptions = [] | ||
| 243 |     ) { | ||
| 244 | 4 | $msgName = 'PNR_Split'; | |
| 245 | |||
| 246 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 247 | } | ||
| 248 | |||
| 249 | /** | ||
| 250 | * Create a PNR using PNR_AddMultiElements | ||
| 251 | * | ||
| 252 | * @param RequestOptions\PnrCreatePnrOptions $options | ||
| 253 | * @param array $messageOptions (OPTIONAL) | ||
| 254 | * @return Result | ||
| 255 | * @throws Client\InvalidMessageException | ||
| 256 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 257 | * @throws Exception | ||
| 258 | */ | ||
| 259 | 4 | public function pnrCreatePnr(RequestOptions\PnrCreatePnrOptions $options, $messageOptions = []) | |
| 260 |     { | ||
| 261 | 4 | $msgName = 'PNR_AddMultiElements'; | |
| 262 | |||
| 263 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 264 | } | ||
| 265 | |||
| 266 | /** | ||
| 267 | * PNR_AddMultiElements - Create a new PNR or update an existing PNR. | ||
| 268 | * | ||
| 269 | * https://webservices.amadeus.com/extranet/viewService.do?id=25&flavourId=1&menuId=functional | ||
| 270 | * | ||
| 271 | * @param RequestOptions\PnrAddMultiElementsOptions $options | ||
| 272 | * @param array $messageOptions (OPTIONAL) | ||
| 273 | * @return Result | ||
| 274 | * @throws Client\InvalidMessageException | ||
| 275 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 276 | * @throws Exception | ||
| 277 | */ | ||
| 278 | 8 | public function pnrAddMultiElements(RequestOptions\PnrAddMultiElementsOptions $options, $messageOptions = []) | |
| 279 |     { | ||
| 280 | 8 | $msgName = 'PNR_AddMultiElements'; | |
| 281 | |||
| 282 | 8 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 283 | } | ||
| 284 | |||
| 285 | /** | ||
| 286 | * PNR_RetrieveAndDisplay - Retrieve an Amadeus PNR by record locator including extra info | ||
| 287 | * | ||
| 288 | * This extra info is info you cannot see in the regular PNR, like Offers. | ||
| 289 | * | ||
| 290 | * https://webservices.amadeus.com/extranet/viewService.do?id=1922&flavourId=1&menuId=functional | ||
| 291 | * | ||
| 292 | * @param RequestOptions\PnrRetrieveAndDisplayOptions $options Amadeus Record Locator for PNR | ||
| 293 | * @param array $messageOptions (OPTIONAL) | ||
| 294 | * @return Result | ||
| 295 | * @throws Client\InvalidMessageException | ||
| 296 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 297 | * @throws Exception | ||
| 298 | **/ | ||
| 299 | 4 | public function pnrRetrieveAndDisplay(RequestOptions\PnrRetrieveAndDisplayOptions $options, $messageOptions = []) | |
| 300 |     { | ||
| 301 | 4 | $msgName = 'PNR_RetrieveAndDisplay'; | |
| 302 | |||
| 303 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 304 | } | ||
| 305 | |||
| 306 | /** | ||
| 307 | * PNR_Cancel | ||
| 308 | * | ||
| 309 | * @param RequestOptions\PnrCancelOptions $options | ||
| 310 | * @param array $messageOptions (OPTIONAL) | ||
| 311 | * @return Result | ||
| 312 | * @throws Client\InvalidMessageException | ||
| 313 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 314 | * @throws Exception | ||
| 315 | */ | ||
| 316 | 4 | public function pnrCancel(RequestOptions\PnrCancelOptions $options, $messageOptions = []) | |
| 317 |     { | ||
| 318 | 4 | $msgName = 'PNR_Cancel'; | |
| 319 | |||
| 320 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 321 | } | ||
| 322 | |||
| 323 | /** | ||
| 324 | * PNR_DisplayHistory | ||
| 325 | * | ||
| 326 | * @param RequestOptions\PnrDisplayHistoryOptions $options | ||
| 327 | * @param array $messageOptions (OPTIONAL) | ||
| 328 | * @return Result | ||
| 329 | * @throws Client\InvalidMessageException | ||
| 330 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 331 | * @throws Exception | ||
| 332 | */ | ||
| 333 | 4 | public function pnrDisplayHistory(RequestOptions\PnrDisplayHistoryOptions $options, $messageOptions = []) | |
| 334 |     { | ||
| 335 | 4 | $msgName = 'PNR_DisplayHistory'; | |
| 336 | |||
| 337 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 338 | } | ||
| 339 | |||
| 340 | /** | ||
| 341 | * PNR_TransferOwnership | ||
| 342 | * | ||
| 343 | * @param RequestOptions\PnrTransferOwnershipOptions $options | ||
| 344 | * @param array $messageOptions (OPTIONAL) | ||
| 345 | * @return Result | ||
| 346 | * @throws Client\InvalidMessageException | ||
| 347 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 348 | * @throws Exception | ||
| 349 | */ | ||
| 350 | 4 | public function pnrTransferOwnership(RequestOptions\PnrTransferOwnershipOptions $options, $messageOptions = []) | |
| 356 | |||
| 357 | /** | ||
| 358 | * PNR_NameChange | ||
| 359 | * | ||
| 360 | * @param RequestOptions\PnrNameChangeOptions $options | ||
| 361 | * @param array $messageOptions (OPTIONAL) | ||
| 362 | * @return Result | ||
| 363 | * @throws Client\InvalidMessageException | ||
| 364 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 365 | * @throws Exception | ||
| 366 | */ | ||
| 367 | 4 | public function pnrNameChange(RequestOptions\PnrNameChangeOptions $options, $messageOptions = []) | |
| 368 |     { | ||
| 369 | 4 | $msgName = 'PNR_NameChange'; | |
| 370 | |||
| 371 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 372 | } | ||
| 373 | |||
| 374 | /** | ||
| 375 | * Queue_List - get a list of all PNR's on a given queue | ||
| 376 | * | ||
| 377 | * https://webservices.amadeus.com/extranet/viewService.do?id=52&flavourId=1&menuId=functional | ||
| 378 | * | ||
| 379 | * @param RequestOptions\QueueListOptions $options | ||
| 380 | * @param array $messageOptions (OPTIONAL) | ||
| 381 | * @return Result | ||
| 382 | * @throws Client\InvalidMessageException | ||
| 383 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 384 | * @throws Exception | ||
| 385 | */ | ||
| 386 | 4 | public function queueList(RequestOptions\QueueListOptions $options, $messageOptions = []) | |
| 387 |     { | ||
| 388 | 4 | $msgName = 'Queue_List'; | |
| 389 | |||
| 390 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 391 | } | ||
| 392 | |||
| 393 | /** | ||
| 394 | * Queue_PlacePNR - Place a PNR on a given queue | ||
| 395 | * | ||
| 396 | * @param RequestOptions\QueuePlacePnrOptions $options | ||
| 397 | * @param array $messageOptions (OPTIONAL) | ||
| 398 | * @return Result | ||
| 399 | * @throws Client\InvalidMessageException | ||
| 400 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 401 | * @throws Exception | ||
| 402 | */ | ||
| 403 | 4 | public function queuePlacePnr(RequestOptions\QueuePlacePnrOptions $options, $messageOptions = []) | |
| 409 | |||
| 410 | /** | ||
| 411 | * Queue_RemoveItem - remove an item (a PNR) from a given queue | ||
| 412 | * | ||
| 413 | * @param RequestOptions\QueueRemoveItemOptions $options | ||
| 414 | * @param array $messageOptions (OPTIONAL) | ||
| 415 | * @return Result | ||
| 416 | * @throws Client\InvalidMessageException | ||
| 417 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 418 | * @throws Exception | ||
| 419 | */ | ||
| 420 | 4 | public function queueRemoveItem(RequestOptions\QueueRemoveItemOptions $options, $messageOptions = []) | |
| 421 |     { | ||
| 422 | 4 | $msgName = 'Queue_RemoveItem'; | |
| 423 | |||
| 424 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 425 | } | ||
| 426 | |||
| 427 | /** | ||
| 428 | * Queue_MoveItem - move an item (a PNR) from one queue to another. | ||
| 429 | * | ||
| 430 | * @param RequestOptions\QueueMoveItemOptions $options | ||
| 431 | * @param array $messageOptions (OPTIONAL) | ||
| 432 | * @return Result | ||
| 433 | * @throws Client\InvalidMessageException | ||
| 434 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 435 | * @throws Exception | ||
| 436 | */ | ||
| 437 | 4 | public function queueMoveItem(RequestOptions\QueueMoveItemOptions $options, $messageOptions = []) | |
| 443 | |||
| 444 | /** | ||
| 445 | * Offer_CreateOffer | ||
| 446 | * | ||
| 447 | * @param RequestOptions\OfferCreateOptions $options | ||
| 448 | * @param array $messageOptions (OPTIONAL) | ||
| 449 | * @return Result | ||
| 450 | * @throws Client\InvalidMessageException | ||
| 451 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 452 | * @throws Exception | ||
| 453 | */ | ||
| 454 | 4 | public function offerCreate(RequestOptions\OfferCreateOptions $options, $messageOptions = []) | |
| 455 |     { | ||
| 456 | 4 | $msgName = 'Offer_CreateOffer'; | |
| 457 | |||
| 458 | 4 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 459 | } | ||
| 460 | |||
| 461 | /** | ||
| 462 | * Offer_VerifyOffer | ||
| 463 | * | ||
| 464 | * To be called in the context of an open PNR | ||
| 465 | * | ||
| 466 | * @param RequestOptions\OfferVerifyOptions $options | ||
| 467 | * @param array $messageOptions (OPTIONAL) | ||
| 468 | * @return Result | ||
| 469 | * @throws Client\InvalidMessageException | ||
| 470 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 471 | * @throws Exception | ||
| 472 | */ | ||
| 473 | 4 | public function offerVerify(RequestOptions\OfferVerifyOptions $options, $messageOptions = []) | |
| 479 | |||
| 480 | /** | ||
| 481 | * Offer_ConfirmAirOffer | ||
| 482 | * | ||
| 483 | * @param RequestOptions\OfferConfirmAirOptions $options | ||
| 484 | * @param array $messageOptions (OPTIONAL) | ||
| 485 | * @return Result | ||
| 486 | * @throws Client\InvalidMessageException | ||
| 487 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 488 | * @throws Exception | ||
| 489 | */ | ||
| 490 | 4 | public function offerConfirmAir(RequestOptions\OfferConfirmAirOptions $options, $messageOptions = []) | |
| 496 | |||
| 497 | /** | ||
| 498 | * Offer_ConfirmHotelOffer | ||
| 499 | * | ||
| 500 | * @param RequestOptions\OfferConfirmHotelOptions $options | ||
| 501 | * @param array $messageOptions (OPTIONAL) | ||
| 502 | * @return Result | ||
| 503 | * @throws Client\InvalidMessageException | ||
| 504 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 505 | * @throws Exception | ||
| 506 | */ | ||
| 507 | 4 | public function offerConfirmHotel(RequestOptions\OfferConfirmHotelOptions $options, $messageOptions = []) | |
| 513 | |||
| 514 | /** | ||
| 515 | * Offer_ConfirmCarOffer | ||
| 516 | * | ||
| 517 | * @param RequestOptions\OfferConfirmCarOptions $options | ||
| 518 | * @param array $messageOptions (OPTIONAL) | ||
| 519 | * @return Result | ||
| 520 | * @throws Client\InvalidMessageException | ||
| 521 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 522 | * @throws Exception | ||
| 523 | */ | ||
| 524 | 4 | public function offerConfirmCar(RequestOptions\OfferConfirmCarOptions $options, $messageOptions = []) | |
| 530 | |||
| 531 | /** | ||
| 532 | * Fare_MasterPricerTravelBoardSearch | ||
| 533 | * | ||
| 534 | * @param RequestOptions\FareMasterPricerTbSearch $options | ||
| 535 | * @param array $messageOptions (OPTIONAL) | ||
| 536 | * @return Result | ||
| 537 | * @throws Client\InvalidMessageException | ||
| 538 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 539 | * @throws Exception | ||
| 540 | */ | ||
| 541 | 4 | public function fareMasterPricerTravelBoardSearch( | |
| 549 | |||
| 550 | /** | ||
| 551 | * Fare_MasterPricerCalendar | ||
| 552 | * | ||
| 553 | * @param RequestOptions\FareMasterPricerCalendarOptions $options | ||
| 554 | * @param array $messageOptions (OPTIONAL) | ||
| 555 | * @return Result | ||
| 556 | * @throws Client\InvalidMessageException | ||
| 557 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 558 | * @throws Exception | ||
| 559 | */ | ||
| 560 | 4 | public function fareMasterPricerCalendar( | |
| 568 | |||
| 569 | /** | ||
| 570 | * Fare_PricePnrWithBookingClass | ||
| 571 | * | ||
| 572 | * @param RequestOptions\FarePricePnrWithBookingClassOptions $options | ||
| 573 | * @param array $messageOptions (OPTIONAL) | ||
| 574 | * @return Result | ||
| 575 | * @throws Client\InvalidMessageException | ||
| 576 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 577 | * @throws Exception | ||
| 578 | */ | ||
| 579 | 8 | public function farePricePnrWithBookingClass( | |
| 587 | |||
| 588 | /** | ||
| 589 | * Fare_PricePnrWithLowerFares | ||
| 590 | * | ||
| 591 | * @param RequestOptions\FarePricePnrWithLowerFaresOptions $options | ||
| 592 | * @param array $messageOptions (OPTIONAL) | ||
| 593 | * @return Result | ||
| 594 | * @throws Client\InvalidMessageException | ||
| 595 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 596 | * @throws Exception | ||
| 597 | */ | ||
| 598 | 8 | public function farePricePnrWithLowerFares( | |
| 606 | |||
| 607 | /** | ||
| 608 | * Fare_PricePnrWithLowestFare | ||
| 609 | * | ||
| 610 | * @param RequestOptions\FarePricePnrWithLowestFareOptions $options | ||
| 611 | * @param array $messageOptions (OPTIONAL) | ||
| 612 | * @return Result | ||
| 613 | * @throws Client\InvalidMessageException | ||
| 614 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 615 | * @throws Exception | ||
| 616 | */ | ||
| 617 | 8 | public function farePricePnrWithLowestFare( | |
| 625 | |||
| 626 | /** | ||
| 627 | * Fare_InformativePricingWithoutPNR | ||
| 628 | * | ||
| 629 | * @param RequestOptions\FareInformativePricingWithoutPnrOptions $options | ||
| 630 | * @param array $messageOptions (OPTIONAL) | ||
| 631 | * @return Result | ||
| 632 | * @throws Client\InvalidMessageException | ||
| 633 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 634 | * @throws Exception | ||
| 635 | */ | ||
| 636 | 4 | public function fareInformativePricingWithoutPnr( | |
| 644 | |||
| 645 | /** | ||
| 646 | * Fare_InformativeBestPricingWithoutPNR | ||
| 647 | * | ||
| 648 | * @param RequestOptions\FareInformativeBestPricingWithoutPnrOptions $options | ||
| 649 | * @param array $messageOptions (OPTIONAL) | ||
| 650 | * @return Result | ||
| 651 | * @throws Client\InvalidMessageException | ||
| 652 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 653 | * @throws Exception | ||
| 654 | */ | ||
| 655 | 4 | public function fareInformativeBestPricingWithoutPnr( | |
| 663 | |||
| 664 | /** | ||
| 665 | * Fare_CheckRules | ||
| 666 | * | ||
| 667 | * @param RequestOptions\FareCheckRulesOptions $options | ||
| 668 | * @param array $messageOptions (OPTIONAL) | ||
| 669 | * @return Result | ||
| 670 | * @throws Client\InvalidMessageException | ||
| 671 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 672 | * @throws Exception | ||
| 673 | */ | ||
| 674 | 4 | public function fareCheckRules(RequestOptions\FareCheckRulesOptions $options, $messageOptions = []) | |
| 680 | |||
| 681 | /** | ||
| 682 | * Fare_GetFareRules | ||
| 683 | * | ||
| 684 | * @param RequestOptions\FareGetFareRulesOptions $options | ||
| 685 | * @param array $messageOptions (OPTIONAL) | ||
| 686 | * @return Result | ||
| 687 | * @throws Client\InvalidMessageException | ||
| 688 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 689 | * @throws Exception | ||
| 690 | */ | ||
| 691 | 4 | public function fareGetFareRules(RequestOptions\FareGetFareRulesOptions $options, $messageOptions = []) | |
| 697 | |||
| 698 | /** | ||
| 699 | * Fare_ConvertCurrency | ||
| 700 | * | ||
| 701 | * @param RequestOptions\FareConvertCurrencyOptions $options | ||
| 702 | * @param array $messageOptions (OPTIONAL) | ||
| 703 | * @return Result | ||
| 704 | * @throws Client\InvalidMessageException | ||
| 705 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 706 | * @throws Exception | ||
| 707 | */ | ||
| 708 | 4 | public function fareConvertCurrency(RequestOptions\FareConvertCurrencyOptions $options, $messageOptions = []) | |
| 714 | |||
| 715 | /** | ||
| 716 | * Air_MultiAvailability | ||
| 717 | * | ||
| 718 | * @param RequestOptions\AirMultiAvailabilityOptions $options | ||
| 719 | * @param array $messageOptions (OPTIONAL) | ||
| 720 | * @return Result | ||
| 721 | * @throws Client\InvalidMessageException | ||
| 722 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 723 | * @throws Exception | ||
| 724 | */ | ||
| 725 | 4 | public function airMultiAvailability( | |
| 733 | |||
| 734 | /** | ||
| 735 | * Air_SellFromRecommendation | ||
| 736 | * | ||
| 737 | * @param RequestOptions\AirSellFromRecommendationOptions $options | ||
| 738 | * @param array $messageOptions (OPTIONAL) | ||
| 739 | * @return Result | ||
| 740 | * @throws Client\InvalidMessageException | ||
| 741 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 742 | * @throws Exception | ||
| 743 | */ | ||
| 744 | 4 | public function airSellFromRecommendation( | |
| 752 | |||
| 753 | /** | ||
| 754 | * Air_FlightInfo | ||
| 755 | * | ||
| 756 | * @param RequestOptions\AirFlightInfoOptions $options | ||
| 757 | * @param array $messageOptions (OPTIONAL) | ||
| 758 | * @return Result | ||
| 759 | * @throws Client\InvalidMessageException | ||
| 760 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 761 | * @throws Exception | ||
| 762 | */ | ||
| 763 | 4 | public function airFlightInfo(RequestOptions\AirFlightInfoOptions $options, $messageOptions = []) | |
| 769 | |||
| 770 | /** | ||
| 771 | * Air_RetrieveSeatMap | ||
| 772 | * | ||
| 773 | * @param RequestOptions\AirRetrieveSeatMapOptions $options | ||
| 774 | * @param array $messageOptions (OPTIONAL) | ||
| 775 | * @return Result | ||
| 776 | * @throws Client\InvalidMessageException | ||
| 777 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 778 | * @throws Exception | ||
| 779 | */ | ||
| 780 | 4 | public function airRetrieveSeatMap(RequestOptions\AirRetrieveSeatMapOptions $options, $messageOptions = []) | |
| 786 | |||
| 787 | /** | ||
| 788 | * Air_RebookAirSegment | ||
| 789 | * | ||
| 790 | * @param RequestOptions\AirRebookAirSegmentOptions $options | ||
| 791 | * @param array $messageOptions (OPTIONAL) | ||
| 792 | * @return Result | ||
| 793 | * @throws Client\InvalidMessageException | ||
| 794 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 795 | * @throws Exception | ||
| 796 | */ | ||
| 797 | 4 | public function airRebookAirSegment(RequestOptions\AirRebookAirSegmentOptions $options, $messageOptions = []) | |
| 803 | |||
| 804 | /** | ||
| 805 | * Command_Cryptic | ||
| 806 | * | ||
| 807 | * @param RequestOptions\CommandCrypticOptions $options | ||
| 808 | * @param array $messageOptions (OPTIONAL) | ||
| 809 | * @return Result | ||
| 810 | * @throws Client\InvalidMessageException | ||
| 811 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 812 | * @throws Exception | ||
| 813 | */ | ||
| 814 | 4 | public function commandCryptic(RequestOptions\CommandCrypticOptions $options, $messageOptions = []) | |
| 820 | |||
| 821 | /** | ||
| 822 | * MiniRule_GetFromPricingRec | ||
| 823 | * | ||
| 824 | * @param RequestOptions\MiniRuleGetFromPricingRecOptions $options | ||
| 825 | * @param array $messageOptions (OPTIONAL) | ||
| 826 | * @return Result | ||
| 827 | * @throws Client\InvalidMessageException | ||
| 828 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 829 | * @throws Exception | ||
| 830 | */ | ||
| 831 | 4 | public function miniRuleGetFromPricingRec( | |
| 839 | |||
| 840 | /** | ||
| 841 | * MiniRule_GetFromPricing | ||
| 842 | * | ||
| 843 | * @param RequestOptions\MiniRuleGetFromPricingOptions $options | ||
| 844 | * @param array $messageOptions (OPTIONAL) | ||
| 845 | * @return Result | ||
| 846 | * @throws Client\InvalidMessageException | ||
| 847 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 848 | * @throws Exception | ||
| 849 | */ | ||
| 850 | 4 | public function miniRuleGetFromPricing( | |
| 858 | |||
| 859 | /** | ||
| 860 | * MiniRule_GetFromETicket | ||
| 861 | * | ||
| 862 | * @param RequestOptions\MiniRuleGetFromETicketOptions $options | ||
| 863 | * @param array $messageOptions (OPTIONAL) | ||
| 864 | * @return Result | ||
| 865 | * @throws Client\InvalidMessageException | ||
| 866 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 867 | * @throws Exception | ||
| 868 | */ | ||
| 869 | 4 | public function miniRuleGetFromETicket( | |
| 877 | |||
| 878 | /** | ||
| 879 | * Info_EncodeDecodeCity | ||
| 880 | * | ||
| 881 | * @param RequestOptions\InfoEncodeDecodeCityOptions $options | ||
| 882 | * @param array $messageOptions (OPTIONAL) | ||
| 883 | * @return Result | ||
| 884 | * @throws Client\InvalidMessageException | ||
| 885 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 886 | * @throws Exception | ||
| 887 | */ | ||
| 888 | 4 | public function infoEncodeDecodeCity(RequestOptions\InfoEncodeDecodeCityOptions $options, $messageOptions = []) | |
| 894 | |||
| 895 | /** | ||
| 896 | * PointOfRef_Search | ||
| 897 | * | ||
| 898 | * @param RequestOptions\PointOfRefSearchOptions $options | ||
| 899 | * @param array $messageOptions (OPTIONAL) | ||
| 900 | * @return Result | ||
| 901 | * @throws Client\InvalidMessageException | ||
| 902 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 903 | * @throws Exception | ||
| 904 | */ | ||
| 905 | 4 | public function pointOfRefSearch(RequestOptions\PointOfRefSearchOptions $options, $messageOptions = []) | |
| 911 | |||
| 912 | |||
| 913 | /** | ||
| 914 | * Ticket_CreateTSTFromPricing | ||
| 915 | * | ||
| 916 | * @param RequestOptions\TicketCreateTstFromPricingOptions $options | ||
| 917 | * @param array $messageOptions (OPTIONAL) | ||
| 918 | * @return Result | ||
| 919 | * @throws Client\InvalidMessageException | ||
| 920 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 921 | * @throws Exception | ||
| 922 | */ | ||
| 923 | 4 | public function ticketCreateTSTFromPricing( | |
| 931 | |||
| 932 | /** | ||
| 933 | * Ticket_CreateTSMFromPricing | ||
| 934 | * | ||
| 935 | * @param RequestOptions\TicketCreateTsmFromPricingOptions $options | ||
| 936 | * @param array $messageOptions (OPTIONAL) | ||
| 937 | * @return Result | ||
| 938 | * @throws Client\InvalidMessageException | ||
| 939 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 940 | * @throws Exception | ||
| 941 | */ | ||
| 942 | 4 | public function ticketCreateTSMFromPricing( | |
| 950 | |||
| 951 | /** | ||
| 952 | * Ticket_CreateTSMFareElement | ||
| 953 | * | ||
| 954 | * @param RequestOptions\TicketCreateTsmFareElOptions $options | ||
| 955 | * @param array $messageOptions (OPTIONAL) | ||
| 956 | * @return Result | ||
| 957 | * @throws Client\InvalidMessageException | ||
| 958 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 959 | * @throws Exception | ||
| 960 | */ | ||
| 961 | 4 | public function ticketCreateTSMFareElement( | |
| 969 | |||
| 970 | /** | ||
| 971 | * Ticket_DeleteTST | ||
| 972 | * | ||
| 973 | * @param RequestOptions\TicketDeleteTstOptions $options | ||
| 974 | * @param array $messageOptions (OPTIONAL) | ||
| 975 | * @return Result | ||
| 976 | * @throws Client\InvalidMessageException | ||
| 977 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 978 | * @throws Exception | ||
| 979 | */ | ||
| 980 | 4 | public function ticketDeleteTST(RequestOptions\TicketDeleteTstOptions $options, $messageOptions = []) | |
| 986 | |||
| 987 | /** | ||
| 988 | * Ticket_DeleteTSMP | ||
| 989 | * | ||
| 990 | * @param RequestOptions\TicketDeleteTsmpOptions $options | ||
| 991 | * @param array $messageOptions (OPTIONAL) | ||
| 992 | * @return Result | ||
| 993 | * @throws Client\InvalidMessageException | ||
| 994 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 995 | * @throws Exception | ||
| 996 | */ | ||
| 997 | 4 | public function ticketDeleteTSMP(RequestOptions\TicketDeleteTsmpOptions $options, $messageOptions = []) | |
| 1003 | |||
| 1004 | /** | ||
| 1005 | * Ticket_DisplayTST | ||
| 1006 | * | ||
| 1007 | * @param RequestOptions\TicketDisplayTstOptions $options | ||
| 1008 | * @param array $messageOptions (OPTIONAL) | ||
| 1009 | * @return Result | ||
| 1010 | * @throws Client\InvalidMessageException | ||
| 1011 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1012 | * @throws Exception | ||
| 1013 | */ | ||
| 1014 | 4 | public function ticketDisplayTST(RequestOptions\TicketDisplayTstOptions $options, $messageOptions = []) | |
| 1020 | |||
| 1021 | /** | ||
| 1022 | * Ticket_DisplayTSMP | ||
| 1023 | * | ||
| 1024 | * @param RequestOptions\TicketDisplayTsmpOptions $options | ||
| 1025 | * @param array $messageOptions (OPTIONAL) | ||
| 1026 | * @return Result | ||
| 1027 | * @throws Client\InvalidMessageException | ||
| 1028 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1029 | * @throws Exception | ||
| 1030 | */ | ||
| 1031 | 4 | public function ticketDisplayTSMP(RequestOptions\TicketDisplayTsmpOptions $options, $messageOptions = []) | |
| 1037 | |||
| 1038 | /** | ||
| 1039 | * Ticket_DisplayTSMFareElement | ||
| 1040 | * | ||
| 1041 | * @param RequestOptions\TicketDisplayTsmFareElOptions $options | ||
| 1042 | * @param array $messageOptions (OPTIONAL) | ||
| 1043 | * @return Result | ||
| 1044 | * @throws Client\InvalidMessageException | ||
| 1045 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1046 | * @throws Exception | ||
| 1047 | */ | ||
| 1048 | 4 | public function ticketDisplayTSMFareElement( | |
| 1056 | |||
| 1057 | /** | ||
| 1058 | * Ticket_CheckEligibility | ||
| 1059 | * | ||
| 1060 | * @param RequestOptions\TicketCheckEligibilityOptions $options | ||
| 1061 | * @param array $messageOptions (OPTIONAL) | ||
| 1062 | * @return Result | ||
| 1063 | * @throws Client\InvalidMessageException | ||
| 1064 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1065 | * @throws Exception | ||
| 1066 | */ | ||
| 1067 | 4 | public function ticketCheckEligibility( | |
| 1075 | |||
| 1076 | /** | ||
| 1077 | * Ticket_ATCShopperMasterPricerTravelBoardSearch | ||
| 1078 | * | ||
| 1079 | * @param RequestOptions\TicketAtcShopperMpTbSearchOptions $options | ||
| 1080 | * @param array $messageOptions (OPTIONAL) | ||
| 1081 | * @return Result | ||
| 1082 | * @throws Client\InvalidMessageException | ||
| 1083 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1084 | * @throws Exception | ||
| 1085 | */ | ||
| 1086 | 4 | public function ticketAtcShopperMasterPricerTravelBoardSearch( | |
| 1094 | |||
| 1095 | /** | ||
| 1096 | * Ticket_RepricePNRWithBookingClass | ||
| 1097 | * | ||
| 1098 | * @param RequestOptions\TicketRepricePnrWithBookingClassOptions $options | ||
| 1099 | * @param array $messageOptions (OPTIONAL) | ||
| 1100 | * @return Result | ||
| 1101 | * @throws Client\InvalidMessageException | ||
| 1102 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1103 | * @throws Exception | ||
| 1104 | */ | ||
| 1105 | 4 | public function ticketRepricePnrWithBookingClass( | |
| 1113 | |||
| 1114 | /** | ||
| 1115 | * Ticket_CancelDocument | ||
| 1116 | * | ||
| 1117 | * @param RequestOptions\TicketCancelDocumentOptions $options | ||
| 1118 | * @param array $messageOptions (OPTIONAL) | ||
| 1119 | * @return Result | ||
| 1120 | * @throws Client\InvalidMessageException | ||
| 1121 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1122 | * @throws Exception | ||
| 1123 | */ | ||
| 1124 | 4 | public function ticketCancelDocument( | |
| 1132 | |||
| 1133 | /** | ||
| 1134 | * Ticket_ReissueConfirmedPricing | ||
| 1135 | * | ||
| 1136 | * @param RequestOptions\TicketReissueConfirmedPricingOptions $options | ||
| 1137 | * @param array $messageOptions (OPTIONAL) | ||
| 1138 | * @return Result | ||
| 1139 | * @throws Client\InvalidMessageException | ||
| 1140 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1141 | * @throws Exception | ||
| 1142 | */ | ||
| 1143 | 4 | public function ticketReissueConfirmedPricing( | |
| 1151 | |||
| 1152 | /** | ||
| 1153 | * Ticket_ProcessEDoc | ||
| 1154 | * | ||
| 1155 | * @param RequestOptions\TicketProcessEDocOptions $options | ||
| 1156 | * @param array $messageOptions (OPTIONAL) | ||
| 1157 | * @return Result | ||
| 1158 | * @throws Client\InvalidMessageException | ||
| 1159 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1160 | * @throws Exception | ||
| 1161 | */ | ||
| 1162 | 4 | public function ticketProcessEDoc(RequestOptions\TicketProcessEDocOptions $options, $messageOptions = []) | |
| 1167 | |||
| 1168 | /** | ||
| 1169 | * Ticket_ProcessETicket | ||
| 1170 | * | ||
| 1171 | * @param RequestOptions\TicketProcessETicketOptions $options | ||
| 1172 | * @param array $messageOptions (OPTIONAL) | ||
| 1173 | * @return Result | ||
| 1174 | * @throws Client\InvalidMessageException | ||
| 1175 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1176 | * @throws Exception | ||
| 1177 | */ | ||
| 1178 | 4 | public function ticketProcessETicket(RequestOptions\TicketProcessETicketOptions $options, $messageOptions = []) | |
| 1183 | |||
| 1184 | /** | ||
| 1185 | * DocIssuance_IssueTicket | ||
| 1186 | * | ||
| 1187 | * @param RequestOptions\DocIssuanceIssueTicketOptions $options | ||
| 1188 | * @param array $messageOptions (OPTIONAL) | ||
| 1189 | * @return Result | ||
| 1190 | * @throws Client\InvalidMessageException | ||
| 1191 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1192 | * @throws Exception | ||
| 1193 | */ | ||
| 1194 | 4 | public function docIssuanceIssueTicket( | |
| 1202 | |||
| 1203 | /** | ||
| 1204 | * DocIssuance_IssueMiscellaneousDocuments | ||
| 1205 | * | ||
| 1206 | * @param RequestOptions\DocIssuanceIssueMiscDocOptions $options | ||
| 1207 | * @param array $messageOptions (OPTIONAL) | ||
| 1208 | * @return Result | ||
| 1209 | * @throws Client\InvalidMessageException | ||
| 1210 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1211 | * @throws Exception | ||
| 1212 | */ | ||
| 1213 | 4 | public function docIssuanceIssueMiscellaneousDocuments( | |
| 1221 | |||
| 1222 | /** | ||
| 1223 | * DocIssuance_IssueCombined | ||
| 1224 | * | ||
| 1225 | * @param RequestOptions\DocIssuanceIssueCombinedOptions $options | ||
| 1226 | * @param array $messageOptions (OPTIONAL) | ||
| 1227 | * @return Result | ||
| 1228 | * @throws Client\InvalidMessageException | ||
| 1229 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1230 | * @throws Exception | ||
| 1231 | */ | ||
| 1232 | 8 | public function docIssuanceIssueCombined( | |
| 1240 | |||
| 1241 | /** | ||
| 1242 | * DocRefund_InitRefund | ||
| 1243 | * | ||
| 1244 | * @param RequestOptions\DocRefundInitRefundOptions $options | ||
| 1245 | * @param array $messageOptions (OPTIONAL) | ||
| 1246 | * @return Result | ||
| 1247 | * @throws Client\InvalidMessageException | ||
| 1248 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1249 | * @throws Exception | ||
| 1250 | */ | ||
| 1251 | 4 | public function docRefundInitRefund( | |
| 1259 | |||
| 1260 | /** | ||
| 1261 | * DocRefund_IgnoreRefund | ||
| 1262 | * | ||
| 1263 | * @param RequestOptions\DocRefundIgnoreRefundOptions $options | ||
| 1264 | * @param array $messageOptions (OPTIONAL) | ||
| 1265 | * @return Result | ||
| 1266 | * @throws Client\InvalidMessageException | ||
| 1267 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1268 | * @throws Exception | ||
| 1269 | */ | ||
| 1270 | 4 | public function docRefundIgnoreRefund( | |
| 1278 | |||
| 1279 | /** | ||
| 1280 | * DocRefund_UpdateRefund | ||
| 1281 | * | ||
| 1282 | * @param RequestOptions\DocRefundUpdateRefundOptions $options | ||
| 1283 | * @param array $messageOptions (OPTIONAL) | ||
| 1284 | * @return Result | ||
| 1285 | * @throws Client\InvalidMessageException | ||
| 1286 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1287 | * @throws Exception | ||
| 1288 | */ | ||
| 1289 | 4 | public function docRefundUpdateRefund( | |
| 1297 | |||
| 1298 | /** | ||
| 1299 | * DocRefund_ProcessRefund | ||
| 1300 | * | ||
| 1301 | * @param RequestOptions\DocRefundProcessRefundOptions $options | ||
| 1302 | * @param array $messageOptions (OPTIONAL) | ||
| 1303 | * @return Result | ||
| 1304 | * @throws Client\InvalidMessageException | ||
| 1305 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1306 | * @throws Exception | ||
| 1307 | */ | ||
| 1308 | 4 | public function docRefundProcessRefund( | |
| 1316 | /** | ||
| 1317 | * Ticket_InitRefund | ||
| 1318 | * | ||
| 1319 | * @param RequestOptions\TicketInitRefundOptions $options | ||
| 1320 | * @param array $messageOptions (OPTIONAL) | ||
| 1321 | * @return Result | ||
| 1322 | * @throws Client\InvalidMessageException | ||
| 1323 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1324 | * @throws Exception | ||
| 1325 | */ | ||
| 1326 | 4 | public function ticketInitRefund( | |
| 1334 | /** | ||
| 1335 | * Ticket_IgnoreRefund | ||
| 1336 | * | ||
| 1337 | * @param RequestOptions\TicketIgnoreRefundOptions $options | ||
| 1338 | * @param array $messageOptions (OPTIONAL) | ||
| 1339 | * @return Result | ||
| 1340 | * @throws Client\InvalidMessageException | ||
| 1341 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1342 | * @throws Exception | ||
| 1343 | */ | ||
| 1344 | 4 | public function ticketIgnoreRefund( | |
| 1352 | /** | ||
| 1353 | * Ticket_ProcessRefund | ||
| 1354 | * | ||
| 1355 | * @param RequestOptions\TicketProcessRefundOptions $options | ||
| 1356 | * @param array $messageOptions (OPTIONAL) | ||
| 1357 | * @return Result | ||
| 1358 | * @throws Client\InvalidMessageException | ||
| 1359 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1360 | * @throws Exception | ||
| 1361 | */ | ||
| 1362 | 4 | public function ticketProcessRefund( | |
| 1370 | |||
| 1371 | |||
| 1372 | /** | ||
| 1373 | * FOP_CreateFormOfPayment | ||
| 1374 | * | ||
| 1375 | * @param RequestOptions\FopCreateFopOptions $options | ||
| 1376 | * @param array $messageOptions (OPTIONAL) | ||
| 1377 | * @return Result | ||
| 1378 | * @throws Client\InvalidMessageException | ||
| 1379 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1380 | * @throws Exception | ||
| 1381 | */ | ||
| 1382 | 4 | public function fopCreateFormOfPayment(RequestOptions\FopCreateFopOptions $options, $messageOptions = []) | |
| 1388 | |||
| 1389 | |||
| 1390 | /** | ||
| 1391 | * FOP_CreateFormOfPayment | ||
| 1392 | * | ||
| 1393 | * @param RequestOptions\FopValidateFopOptions $options | ||
| 1394 | * @param array $messageOptions (OPTIONAL) | ||
| 1395 | * @return Result | ||
| 1396 | * @throws Client\InvalidMessageException | ||
| 1397 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1398 | * @throws Exception | ||
| 1399 | */ | ||
| 1400 | 4 | public function fopValidateFOP(RequestOptions\FopValidateFopOptions $options, $messageOptions = []) | |
| 1406 | |||
| 1407 | /** | ||
| 1408 | * PriceXplorer_ExtremeSearch | ||
| 1409 | * | ||
| 1410 | * @param RequestOptions\PriceXplorerExtremeSearchOptions $options | ||
| 1411 | * @param array $messageOptions (OPTIONAL) | ||
| 1412 | * @return Result | ||
| 1413 | * @throws Client\InvalidMessageException | ||
| 1414 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1415 | * @throws Exception | ||
| 1416 | */ | ||
| 1417 | 4 | public function priceXplorerExtremeSearch( | |
| 1425 | |||
| 1426 | /** | ||
| 1427 | * SalesReports_DisplayQueryReport | ||
| 1428 | * | ||
| 1429 | * @param RequestOptions\SalesReportsDisplayQueryReportOptions $options | ||
| 1430 | * @param array $messageOptions (OPTIONAL) | ||
| 1431 | * @return Result | ||
| 1432 | * @throws Client\InvalidMessageException | ||
| 1433 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1434 | * @throws Exception | ||
| 1435 | */ | ||
| 1436 | 4 | public function salesReportsDisplayQueryReport( | |
| 1444 | |||
| 1445 | /** | ||
| 1446 | * Service_IntegratedPricing | ||
| 1447 | * | ||
| 1448 | * @param RequestOptions\ServiceIntegratedPricingOptions $options | ||
| 1449 | * @param array $messageOptions (OPTIONAL) | ||
| 1450 | * @return Result | ||
| 1451 | * @throws Client\InvalidMessageException | ||
| 1452 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1453 | * @throws Exception | ||
| 1454 | */ | ||
| 1455 | 4 | public function serviceIntegratedPricing( | |
| 1463 | |||
| 1464 | /** | ||
| 1465 | * Service_IntegratedCatalogue | ||
| 1466 | * | ||
| 1467 | * @param RequestOptions\ServiceIntegratedCatalogueOptions $options | ||
| 1468 | * @param array $messageOptions (OPTIONAL) | ||
| 1469 | * @return Result | ||
| 1470 | * @throws Client\InvalidMessageException | ||
| 1471 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1472 | * @throws Exception | ||
| 1473 | */ | ||
| 1474 | 4 | public function serviceIntegratedCatalogue( | |
| 1482 | |||
| 1483 | /** | ||
| 1484 | * Call a message with the given parameters | ||
| 1485 | * | ||
| 1486 | * @param string $messageName | ||
| 1487 | * @param RequestOptions\RequestOptionsInterface $options | ||
| 1488 | * @param array $messageOptions | ||
| 1489 | * @param bool $endSession | ||
| 1490 | * @return Result | ||
| 1491 | * @throws Client\Exception | ||
| 1492 | * @throws Client\Struct\InvalidArgumentException | ||
| 1493 | * @throws Client\InvalidMessageException | ||
| 1494 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1495 | * @throws \RuntimeException | ||
| 1496 | * @throws \InvalidArgumentException | ||
| 1497 | */ | ||
| 1498 | 312 | protected function callMessage($messageName, $options, $messageOptions, $endSession = false) | |
| 1524 | |||
| 1525 | /** | ||
| 1526 | * Make message options | ||
| 1527 | * | ||
| 1528 | * Message options are meta options when sending a message to the amadeus web services | ||
| 1529 | * - 'endSession' (if stateful) : should we end the current session after sending this call? | ||
| 1530 | * - 'returnXml' : Should we return the XML string in the Result::responseXml property? | ||
| 1531 | * (this overrides the default setting returnXml in the Amadeus\Client\Params for a single message) | ||
| 1532 | * | ||
| 1533 | * @param array $incoming The Message options chosen by the caller - if any. | ||
| 1534 | * @param bool $endSession Switch if you want to terminate the current session after making the call. | ||
| 1535 | * @return array | ||
| 1536 | */ | ||
| 1537 | 336 | protected function makeMessageOptions(array $incoming, $endSession = false) | |
| 1554 | } | ||
| 1555 |