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 | ||
| 41 | class Client extends Base | ||
| 42 | { | ||
| 43 | /** | ||
| 44 | * Amadeus SOAP header version 1 | ||
| 45 | */ | ||
| 46 | const HEADER_V1 = "1"; | ||
| 47 | /** | ||
| 48 | * Amadeus SOAP header version 2 | ||
| 49 | */ | ||
| 50 | const HEADER_V2 = "2"; | ||
| 51 | /** | ||
| 52 | * Amadeus SOAP header version 4 | ||
| 53 | */ | ||
| 54 | const HEADER_V4 = "4"; | ||
| 55 | |||
| 56 | /** | ||
| 57 | * Version string | ||
| 58 | * | ||
| 59 | * @var string | ||
| 60 | */ | ||
| 61 | const VERSION = "1.9.0"; | ||
| 62 | |||
| 63 | /** | ||
| 64 | * An identifier string for the library (to be used in Received From entries) | ||
| 65 | * | ||
| 66 | * @var string | ||
| 67 | */ | ||
| 68 | const RECEIVED_FROM_IDENTIFIER = "amabnl-amadeus-ws-client"; | ||
| 69 | |||
| 70 | /** | ||
| 71 | * @var string | ||
| 72 | */ | ||
| 73 | protected $lastMessage; | ||
| 74 | |||
| 75 | /** | ||
| 76 | * Set the session as stateful (true) or stateless (false) | ||
| 77 | * | ||
| 78 | * @param bool $newStateful | ||
| 79 | */ | ||
| 80 | 5 | public function setStateful($newStateful) | |
| 84 | |||
| 85 | /** | ||
| 86 | * @return bool | ||
| 87 | */ | ||
| 88 | 15 | public function isStateful() | |
| 92 | |||
| 93 | /** | ||
| 94 | * Get TransactionFlowLink Consumer Id | ||
| 95 | * | ||
| 96 | * @return string|null | ||
| 97 | */ | ||
| 98 | 5 | public function getConsumerId() | |
| 102 | |||
| 103 | /** | ||
| 104 | * Set TransactionFlowLink Consumer Id | ||
| 105 | * | ||
| 106 | * @throws UnsupportedOperationException when used on unsupported WSAP versions | ||
| 107 | * @param string $id | ||
| 108 | * @return void | ||
| 109 | */ | ||
| 110 | 5 | public function setConsumerId($id) | |
| 115 | |||
| 116 | /** | ||
| 117 | * Get the last raw XML message that was sent out | ||
| 118 | * | ||
| 119 | * @return string|null | ||
| 120 | */ | ||
| 121 | 5 | public function getLastRequest() | |
| 125 | |||
| 126 | /** | ||
| 127 | * Get the last raw XML message that was received | ||
| 128 | * | ||
| 129 | * @return string|null | ||
| 130 | */ | ||
| 131 | 5 | public function getLastResponse() | |
| 135 | |||
| 136 | /** | ||
| 137 | * Get the request headers for the last SOAP message that was sent out | ||
| 138 | * | ||
| 139 | * @return string|null | ||
| 140 | */ | ||
| 141 | 5 | public function getLastRequestHeaders() | |
| 145 | |||
| 146 | /** | ||
| 147 | * Get the response headers for the last SOAP message that was received | ||
| 148 | * | ||
| 149 | * @return string|null | ||
| 150 | */ | ||
| 151 | 5 | public function getLastResponseHeaders() | |
| 155 | |||
| 156 | /** | ||
| 157 | * Get session information for authenticated session | ||
| 158 | * | ||
| 159 | * - sessionId | ||
| 160 | * - sequenceNr | ||
| 161 | * - securityToken | ||
| 162 | * | ||
| 163 | * @return array|null | ||
| 164 | */ | ||
| 165 | 5 | public function getSessionData() | |
| 169 | |||
| 170 | /** | ||
| 171 | * Restore a previously used session | ||
| 172 | * | ||
| 173 | * To be used when implementing your own session pooling system on legacy Soap Header 2 applications. | ||
| 174 | * | ||
| 175 | * @param array $sessionData | ||
| 176 | * @return bool | ||
| 177 | */ | ||
| 178 | 5 | public function setSessionData(array $sessionData) | |
| 182 | |||
| 183 | /** | ||
| 184 | * Construct Amadeus Web Services client | ||
| 185 | * | ||
| 186 | * @param Params $params | ||
| 187 | */ | ||
| 188 | 500 | public function __construct(Params $params) | |
| 196 | |||
| 197 | /** | ||
| 198 | * Authenticate. | ||
| 199 | * | ||
| 200 | * Authentication Parameters were provided at construction time (authParams) | ||
| 201 | * | ||
| 202 | * @return Result | ||
| 203 | * @throws Exception | ||
| 204 | */ | ||
| 205 | 10 | public function securityAuthenticate() | |
| 218 | |||
| 219 | /** | ||
| 220 | * Terminate a session - only applicable to non-stateless mode. | ||
| 221 | * | ||
| 222 | * @return Result | ||
| 223 | * @throws Exception | ||
| 224 | */ | ||
| 225 | 5 | public function securitySignOut() | |
| 236 | |||
| 237 | /** | ||
| 238 | * PNR_Retrieve - Retrieve an Amadeus PNR by record locator | ||
| 239 | * | ||
| 240 | * @param RequestOptions\PnrRetrieveOptions $options | ||
| 241 | * @param array $messageOptions (OPTIONAL) | ||
| 242 | * @return Result | ||
| 243 | * @throws Client\InvalidMessageException | ||
| 244 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 245 | * @throws Exception | ||
| 246 | */ | ||
| 247 | 5 | public function pnrRetrieve(RequestOptions\PnrRetrieveOptions $options, $messageOptions = []) | |
| 253 | |||
| 254 | /** | ||
| 255 | * PNR_Split | ||
| 256 | * | ||
| 257 | * @param RequestOptions\PnrSplitOptions $options | ||
| 258 | * @param array $messageOptions (OPTIONAL) | ||
| 259 | * @return Result | ||
| 260 | * @throws Client\InvalidMessageException | ||
| 261 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 262 | * @throws Exception | ||
| 263 | */ | ||
| 264 | 5 | public function pnrSplit( | |
| 272 | |||
| 273 | /** | ||
| 274 | * Create a PNR using PNR_AddMultiElements | ||
| 275 | * | ||
| 276 | * @param RequestOptions\PnrCreatePnrOptions $options | ||
| 277 | * @param array $messageOptions (OPTIONAL) | ||
| 278 | * @return Result | ||
| 279 | * @throws Client\InvalidMessageException | ||
| 280 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 281 | * @throws Exception | ||
| 282 | */ | ||
| 283 | 5 | public function pnrCreatePnr(RequestOptions\PnrCreatePnrOptions $options, $messageOptions = []) | |
| 289 | |||
| 290 | /** | ||
| 291 | * PNR_AddMultiElements - Create a new PNR or update an existing PNR. | ||
| 292 | * | ||
| 293 | * https://webservices.amadeus.com/extranet/viewService.do?id=25&flavourId=1&menuId=functional | ||
| 294 | * | ||
| 295 | * @param RequestOptions\PnrAddMultiElementsOptions $options | ||
| 296 | * @param array $messageOptions (OPTIONAL) | ||
| 297 | * @return Result | ||
| 298 | * @throws Client\InvalidMessageException | ||
| 299 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 300 | * @throws Exception | ||
| 301 | */ | ||
| 302 | 10 | public function pnrAddMultiElements(RequestOptions\PnrAddMultiElementsOptions $options, $messageOptions = []) | |
| 308 | |||
| 309 | /** | ||
| 310 | * PNR_RetrieveAndDisplay - Retrieve an Amadeus PNR by record locator including extra info | ||
| 311 | * | ||
| 312 | * This extra info is info you cannot see in the regular PNR, like Offers. | ||
| 313 | * | ||
| 314 | * https://webservices.amadeus.com/extranet/viewService.do?id=1922&flavourId=1&menuId=functional | ||
| 315 | * | ||
| 316 | * @param RequestOptions\PnrRetrieveAndDisplayOptions $options Amadeus Record Locator for PNR | ||
| 317 | * @param array $messageOptions (OPTIONAL) | ||
| 318 | * @return Result | ||
| 319 | * @throws Client\InvalidMessageException | ||
| 320 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 321 | * @throws Exception | ||
| 322 | **/ | ||
| 323 | 5 | public function pnrRetrieveAndDisplay(RequestOptions\PnrRetrieveAndDisplayOptions $options, $messageOptions = []) | |
| 329 | |||
| 330 | /** | ||
| 331 | * PNR_Cancel | ||
| 332 | * | ||
| 333 | * @param RequestOptions\PnrCancelOptions $options | ||
| 334 | * @param array $messageOptions (OPTIONAL) | ||
| 335 | * @return Result | ||
| 336 | * @throws Client\InvalidMessageException | ||
| 337 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 338 | * @throws Exception | ||
| 339 | */ | ||
| 340 | 5 | public function pnrCancel(RequestOptions\PnrCancelOptions $options, $messageOptions = []) | |
| 346 | |||
| 347 | /** | ||
| 348 | * PNR_DisplayHistory | ||
| 349 | * | ||
| 350 | * @param RequestOptions\PnrDisplayHistoryOptions $options | ||
| 351 | * @param array $messageOptions (OPTIONAL) | ||
| 352 | * @return Result | ||
| 353 | * @throws Client\InvalidMessageException | ||
| 354 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 355 | * @throws Exception | ||
| 356 | */ | ||
| 357 | 5 | public function pnrDisplayHistory(RequestOptions\PnrDisplayHistoryOptions $options, $messageOptions = []) | |
| 363 | |||
| 364 | /** | ||
| 365 | * PNR_TransferOwnership | ||
| 366 | * | ||
| 367 | * @param RequestOptions\PnrTransferOwnershipOptions $options | ||
| 368 | * @param array $messageOptions (OPTIONAL) | ||
| 369 | * @return Result | ||
| 370 | * @throws Client\InvalidMessageException | ||
| 371 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 372 | * @throws Exception | ||
| 373 | */ | ||
| 374 | 5 | public function pnrTransferOwnership(RequestOptions\PnrTransferOwnershipOptions $options, $messageOptions = []) | |
| 380 | |||
| 381 | /** | ||
| 382 | * PNR_NameChange | ||
| 383 | * | ||
| 384 | * @param RequestOptions\PnrNameChangeOptions $options | ||
| 385 | * @param array $messageOptions (OPTIONAL) | ||
| 386 | * @return Result | ||
| 387 | * @throws Client\InvalidMessageException | ||
| 388 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 389 | * @throws Exception | ||
| 390 | */ | ||
| 391 | 5 | public function pnrNameChange(RequestOptions\PnrNameChangeOptions $options, $messageOptions = []) | |
| 397 | |||
| 398 | /** | ||
| 399 | * Queue_List - get a list of all PNR's on a given queue | ||
| 400 | * | ||
| 401 | * https://webservices.amadeus.com/extranet/viewService.do?id=52&flavourId=1&menuId=functional | ||
| 402 | * | ||
| 403 | * @param RequestOptions\QueueListOptions $options | ||
| 404 | * @param array $messageOptions (OPTIONAL) | ||
| 405 | * @return Result | ||
| 406 | * @throws Client\InvalidMessageException | ||
| 407 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 408 | * @throws Exception | ||
| 409 | */ | ||
| 410 | 5 | public function queueList(RequestOptions\QueueListOptions $options, $messageOptions = []) | |
| 416 | |||
| 417 | /** | ||
| 418 | * Queue_PlacePNR - Place a PNR on a given queue | ||
| 419 | * | ||
| 420 | * @param RequestOptions\QueuePlacePnrOptions $options | ||
| 421 | * @param array $messageOptions (OPTIONAL) | ||
| 422 | * @return Result | ||
| 423 | * @throws Client\InvalidMessageException | ||
| 424 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 425 | * @throws Exception | ||
| 426 | */ | ||
| 427 | 5 | public function queuePlacePnr(RequestOptions\QueuePlacePnrOptions $options, $messageOptions = []) | |
| 433 | |||
| 434 | /** | ||
| 435 | * PNR_Ignore - Ignore an Amadeus PNR by record locator | ||
| 436 | * | ||
| 437 | * @param RequestOptions\PnrIgnoreOptions $options | ||
| 438 | * @param array $messageOptions (OPTIONAL) | ||
| 439 | * @return Result | ||
| 440 | * @throws Client\InvalidMessageException | ||
| 441 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 442 | * @throws Exception | ||
| 443 | */ | ||
| 444 | 5 | public function pnrIgnore(RequestOptions\PnrIgnoreOptions $options, $messageOptions = []) | |
| 450 | |||
| 451 | |||
| 452 | /** | ||
| 453 | * Queue_RemoveItem - remove an item (a PNR) from a given queue | ||
| 454 | * | ||
| 455 | * @param RequestOptions\QueueRemoveItemOptions $options | ||
| 456 | * @param array $messageOptions (OPTIONAL) | ||
| 457 | * @return Result | ||
| 458 | * @throws Client\InvalidMessageException | ||
| 459 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 460 | * @throws Exception | ||
| 461 | */ | ||
| 462 | 5 | public function queueRemoveItem(RequestOptions\QueueRemoveItemOptions $options, $messageOptions = []) | |
| 468 | |||
| 469 | /** | ||
| 470 | * Queue_MoveItem - move an item (a PNR) from one queue to another. | ||
| 471 | * | ||
| 472 | * @param RequestOptions\QueueMoveItemOptions $options | ||
| 473 | * @param array $messageOptions (OPTIONAL) | ||
| 474 | * @return Result | ||
| 475 | * @throws Client\InvalidMessageException | ||
| 476 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 477 | * @throws Exception | ||
| 478 | */ | ||
| 479 | 5 | public function queueMoveItem(RequestOptions\QueueMoveItemOptions $options, $messageOptions = []) | |
| 485 | |||
| 486 | /** | ||
| 487 | * Offer_CreateOffer | ||
| 488 | * | ||
| 489 | * @param RequestOptions\OfferCreateOptions $options | ||
| 490 | * @param array $messageOptions (OPTIONAL) | ||
| 491 | * @return Result | ||
| 492 | * @throws Client\InvalidMessageException | ||
| 493 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 494 | * @throws Exception | ||
| 495 | */ | ||
| 496 | 5 | public function offerCreate(RequestOptions\OfferCreateOptions $options, $messageOptions = []) | |
| 502 | |||
| 503 | /** | ||
| 504 | * Offer_VerifyOffer | ||
| 505 | * | ||
| 506 | * To be called in the context of an open PNR | ||
| 507 | * | ||
| 508 | * @param RequestOptions\OfferVerifyOptions $options | ||
| 509 | * @param array $messageOptions (OPTIONAL) | ||
| 510 | * @return Result | ||
| 511 | * @throws Client\InvalidMessageException | ||
| 512 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 513 | * @throws Exception | ||
| 514 | */ | ||
| 515 | 5 | public function offerVerify(RequestOptions\OfferVerifyOptions $options, $messageOptions = []) | |
| 521 | |||
| 522 | /** | ||
| 523 | * Offer_ConfirmAirOffer | ||
| 524 | * | ||
| 525 | * @param RequestOptions\OfferConfirmAirOptions $options | ||
| 526 | * @param array $messageOptions (OPTIONAL) | ||
| 527 | * @return Result | ||
| 528 | * @throws Client\InvalidMessageException | ||
| 529 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 530 | * @throws Exception | ||
| 531 | */ | ||
| 532 | 5 | public function offerConfirmAir(RequestOptions\OfferConfirmAirOptions $options, $messageOptions = []) | |
| 538 | |||
| 539 | /** | ||
| 540 | * Offer_ConfirmHotelOffer | ||
| 541 | * | ||
| 542 | * @param RequestOptions\OfferConfirmHotelOptions $options | ||
| 543 | * @param array $messageOptions (OPTIONAL) | ||
| 544 | * @return Result | ||
| 545 | * @throws Client\InvalidMessageException | ||
| 546 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 547 | * @throws Exception | ||
| 548 | */ | ||
| 549 | 5 | public function offerConfirmHotel(RequestOptions\OfferConfirmHotelOptions $options, $messageOptions = []) | |
| 555 | |||
| 556 | /** | ||
| 557 | * Offer_ConfirmCarOffer | ||
| 558 | * | ||
| 559 | * @param RequestOptions\OfferConfirmCarOptions $options | ||
| 560 | * @param array $messageOptions (OPTIONAL) | ||
| 561 | * @return Result | ||
| 562 | * @throws Client\InvalidMessageException | ||
| 563 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 564 | * @throws Exception | ||
| 565 | */ | ||
| 566 | 5 | public function offerConfirmCar(RequestOptions\OfferConfirmCarOptions $options, $messageOptions = []) | |
| 572 | |||
| 573 | /** | ||
| 574 | * Fare_MasterPricerExpertSearch | ||
| 575 | * | ||
| 576 | * @param RequestOptions\FareMasterPricerExSearchOptions $options | ||
| 577 | * @param array $messageOptions (OPTIONAL) | ||
| 578 | * @return Result | ||
| 579 | * @throws Client\InvalidMessageException | ||
| 580 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 581 | * @throws Exception | ||
| 582 | */ | ||
| 583 | 5 | public function fareMasterPricerExpertSearch( | |
| 584 | RequestOptions\FareMasterPricerExSearchOptions $options, | ||
| 585 | $messageOptions = [] | ||
| 586 |     ) { | ||
| 587 | 5 | $msgName = 'Fare_MasterPricerExpertSearch'; | |
| 588 | |||
| 589 | 5 | return $this->callMessage($msgName, $options, $messageOptions); | |
| 590 | } | ||
| 591 | |||
| 592 | |||
| 593 | /** | ||
| 594 | * Fare_MasterPricerTravelBoardSearch | ||
| 595 | * | ||
| 596 | * @param RequestOptions\FareMasterPricerTbSearch $options | ||
| 597 | * @param array $messageOptions (OPTIONAL) | ||
| 598 | * @return Result | ||
| 599 | * @throws Client\InvalidMessageException | ||
| 600 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 601 | * @throws Exception | ||
| 602 | */ | ||
| 603 | 5 | public function fareMasterPricerTravelBoardSearch( | |
| 611 | |||
| 612 | /** | ||
| 613 | * Fare_MasterPricerCalendar | ||
| 614 | * | ||
| 615 | * @param RequestOptions\FareMasterPricerCalendarOptions $options | ||
| 616 | * @param array $messageOptions (OPTIONAL) | ||
| 617 | * @return Result | ||
| 618 | * @throws Client\InvalidMessageException | ||
| 619 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 620 | * @throws Exception | ||
| 621 | */ | ||
| 622 | 5 | public function fareMasterPricerCalendar( | |
| 630 | |||
| 631 | /** | ||
| 632 | * Fare_PricePnrWithBookingClass | ||
| 633 | * | ||
| 634 | * @param RequestOptions\FarePricePnrWithBookingClassOptions $options | ||
| 635 | * @param array $messageOptions (OPTIONAL) | ||
| 636 | * @return Result | ||
| 637 | * @throws Client\InvalidMessageException | ||
| 638 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 639 | * @throws Exception | ||
| 640 | */ | ||
| 641 | 10 | public function farePricePnrWithBookingClass( | |
| 649 | |||
| 650 | /** | ||
| 651 | * Fare_PricePnrWithLowerFares | ||
| 652 | * | ||
| 653 | * @param RequestOptions\FarePricePnrWithLowerFaresOptions $options | ||
| 654 | * @param array $messageOptions (OPTIONAL) | ||
| 655 | * @return Result | ||
| 656 | * @throws Client\InvalidMessageException | ||
| 657 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 658 | * @throws Exception | ||
| 659 | */ | ||
| 660 | 10 | public function farePricePnrWithLowerFares( | |
| 668 | |||
| 669 | /** | ||
| 670 | * Fare_PricePnrWithLowestFare | ||
| 671 | * | ||
| 672 | * @param RequestOptions\FarePricePnrWithLowestFareOptions $options | ||
| 673 | * @param array $messageOptions (OPTIONAL) | ||
| 674 | * @return Result | ||
| 675 | * @throws Client\InvalidMessageException | ||
| 676 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 677 | * @throws Exception | ||
| 678 | */ | ||
| 679 | 10 | public function farePricePnrWithLowestFare( | |
| 687 | |||
| 688 | /** | ||
| 689 | * Fare_InformativePricingWithoutPNR | ||
| 690 | * | ||
| 691 | * @param RequestOptions\FareInformativePricingWithoutPnrOptions $options | ||
| 692 | * @param array $messageOptions (OPTIONAL) | ||
| 693 | * @return Result | ||
| 694 | * @throws Client\InvalidMessageException | ||
| 695 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 696 | * @throws Exception | ||
| 697 | */ | ||
| 698 | 5 | public function fareInformativePricingWithoutPnr( | |
| 706 | |||
| 707 | /** | ||
| 708 | * Fare_PriceUpsellWithoutPNR | ||
| 709 | * | ||
| 710 | * @param RequestOptions\FarePriceUpsellWithoutPnrOptions $options | ||
| 711 | * @param array $messageOptions (OPTIONAL) | ||
| 712 | * @return Result | ||
| 713 | * @throws Client\InvalidMessageException | ||
| 714 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 715 | * @throws Exception | ||
| 716 | */ | ||
| 717 | 5 | public function farePriceUpsellWithoutPnr( | |
| 725 | |||
| 726 | /** | ||
| 727 | * Fare_GetFareFamilyDescription | ||
| 728 | * | ||
| 729 | * @param RequestOptions\FareGetFareFamilyDescriptionOptions $options | ||
| 730 | * @param array $messageOptions (OPTIONAL) | ||
| 731 | * @return Result | ||
| 732 | * @throws Client\InvalidMessageException | ||
| 733 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 734 | * @throws Exception | ||
| 735 | */ | ||
| 736 | 5 | public function fareGetFareFamilyDescription( | |
| 744 | |||
| 745 | /** | ||
| 746 | * Fare_InformativeBestPricingWithoutPNR | ||
| 747 | * | ||
| 748 | * @param RequestOptions\FareInformativeBestPricingWithoutPnrOptions $options | ||
| 749 | * @param array $messageOptions (OPTIONAL) | ||
| 750 | * @return Result | ||
| 751 | * @throws Client\InvalidMessageException | ||
| 752 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 753 | 5 | * @throws Exception | |
| 754 | */ | ||
| 755 | 5 | public function fareInformativeBestPricingWithoutPnr( | |
| 763 | |||
| 764 | /** | ||
| 765 | * Fare_CheckRules | ||
| 766 | * | ||
| 767 | * @param RequestOptions\FareCheckRulesOptions $options | ||
| 768 | * @param array $messageOptions (OPTIONAL) | ||
| 769 | * @return Result | ||
| 770 | 5 | * @throws Client\InvalidMessageException | |
| 771 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 772 | 5 | * @throws Exception | |
| 773 | */ | ||
| 774 | 5 | public function fareCheckRules(RequestOptions\FareCheckRulesOptions $options, $messageOptions = []) | |
| 780 | |||
| 781 | /** | ||
| 782 | * Fare_GetFareRules | ||
| 783 | * | ||
| 784 | * @param RequestOptions\FareGetFareRulesOptions $options | ||
| 785 | * @param array $messageOptions (OPTIONAL) | ||
| 786 | * @return Result | ||
| 787 | 5 | * @throws Client\InvalidMessageException | |
| 788 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 789 | * @throws Exception | ||
| 790 | */ | ||
| 791 | 5 | public function fareGetFareRules(RequestOptions\FareGetFareRulesOptions $options, $messageOptions = []) | |
| 797 | |||
| 798 | /** | ||
| 799 | * Fare_ConvertCurrency | ||
| 800 | * | ||
| 801 | * @param RequestOptions\FareConvertCurrencyOptions $options | ||
| 802 | * @param array $messageOptions (OPTIONAL) | ||
| 803 | * @return Result | ||
| 804 | * @throws Client\InvalidMessageException | ||
| 805 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 806 | 5 | * @throws Exception | |
| 807 | */ | ||
| 808 | public function fareConvertCurrency(RequestOptions\FareConvertCurrencyOptions $options, $messageOptions = []) | ||
| 814 | |||
| 815 | /** | ||
| 816 | * Air_MultiAvailability | ||
| 817 | * | ||
| 818 | * @param RequestOptions\AirMultiAvailabilityOptions $options | ||
| 819 | * @param array $messageOptions (OPTIONAL) | ||
| 820 | * @return Result | ||
| 821 | * @throws Client\InvalidMessageException | ||
| 822 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 823 | * @throws Exception | ||
| 824 | */ | ||
| 825 | 5 | public function airMultiAvailability( | |
| 833 | |||
| 834 | /** | ||
| 835 | * Air_SellFromRecommendation | ||
| 836 | * | ||
| 837 | * @param RequestOptions\AirSellFromRecommendationOptions $options | ||
| 838 | * @param array $messageOptions (OPTIONAL) | ||
| 839 | * @return Result | ||
| 840 | * @throws Client\InvalidMessageException | ||
| 841 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 842 | 5 | * @throws Exception | |
| 843 | */ | ||
| 844 | 5 | public function airSellFromRecommendation( | |
| 852 | |||
| 853 | /** | ||
| 854 | * Air_FlightInfo | ||
| 855 | * | ||
| 856 | * @param RequestOptions\AirFlightInfoOptions $options | ||
| 857 | * @param array $messageOptions (OPTIONAL) | ||
| 858 | * @return Result | ||
| 859 | 5 | * @throws Client\InvalidMessageException | |
| 860 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 861 | 5 | * @throws Exception | |
| 862 | */ | ||
| 863 | 5 | public function airFlightInfo(RequestOptions\AirFlightInfoOptions $options, $messageOptions = []) | |
| 869 | |||
| 870 | /** | ||
| 871 | * Air_RetrieveSeatMap | ||
| 872 | * | ||
| 873 | * @param RequestOptions\AirRetrieveSeatMapOptions $options | ||
| 874 | * @param array $messageOptions (OPTIONAL) | ||
| 875 | * @return Result | ||
| 876 | 5 | * @throws Client\InvalidMessageException | |
| 877 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 878 | 5 | * @throws Exception | |
| 879 | */ | ||
| 880 | 5 | public function airRetrieveSeatMap(RequestOptions\AirRetrieveSeatMapOptions $options, $messageOptions = []) | |
| 886 | |||
| 887 | /** | ||
| 888 | * Air_RebookAirSegment | ||
| 889 | * | ||
| 890 | * @param RequestOptions\AirRebookAirSegmentOptions $options | ||
| 891 | * @param array $messageOptions (OPTIONAL) | ||
| 892 | * @return Result | ||
| 893 | 5 | * @throws Client\InvalidMessageException | |
| 894 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 895 | * @throws Exception | ||
| 896 | */ | ||
| 897 | 5 | public function airRebookAirSegment(RequestOptions\AirRebookAirSegmentOptions $options, $messageOptions = []) | |
| 903 | |||
| 904 | /** | ||
| 905 | * Command_Cryptic | ||
| 906 | * | ||
| 907 | * @param RequestOptions\CommandCrypticOptions $options | ||
| 908 | * @param array $messageOptions (OPTIONAL) | ||
| 909 | * @return Result | ||
| 910 | * @throws Client\InvalidMessageException | ||
| 911 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 912 | 5 | * @throws Exception | |
| 913 | */ | ||
| 914 | public function commandCryptic(RequestOptions\CommandCrypticOptions $options, $messageOptions = []) | ||
| 920 | |||
| 921 | /** | ||
| 922 | * MiniRule_GetFromPricingRec | ||
| 923 | * | ||
| 924 | * @param RequestOptions\MiniRuleGetFromPricingRecOptions $options | ||
| 925 | * @param array $messageOptions (OPTIONAL) | ||
| 926 | * @return Result | ||
| 927 | * @throws Client\InvalidMessageException | ||
| 928 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 929 | * @throws Exception | ||
| 930 | */ | ||
| 931 | 5 | public function miniRuleGetFromPricingRec( | |
| 939 | |||
| 940 | /** | ||
| 941 | * MiniRule_GetFromPricing | ||
| 942 | * | ||
| 943 | * @param RequestOptions\MiniRuleGetFromPricingOptions $options | ||
| 944 | * @param array $messageOptions (OPTIONAL) | ||
| 945 | * @return Result | ||
| 946 | * @throws Client\InvalidMessageException | ||
| 947 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 948 | * @throws Exception | ||
| 949 | */ | ||
| 950 | 5 | public function miniRuleGetFromPricing( | |
| 958 | |||
| 959 | /** | ||
| 960 | * MiniRule_GetFromETicket | ||
| 961 | * | ||
| 962 | * @param RequestOptions\MiniRuleGetFromETicketOptions $options | ||
| 963 | * @param array $messageOptions (OPTIONAL) | ||
| 964 | * @return Result | ||
| 965 | * @throws Client\InvalidMessageException | ||
| 966 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 967 | 5 | * @throws Exception | |
| 968 | */ | ||
| 969 | 5 | public function miniRuleGetFromETicket( | |
| 977 | |||
| 978 | /** | ||
| 979 | * Info_EncodeDecodeCity | ||
| 980 | * | ||
| 981 | * @param RequestOptions\InfoEncodeDecodeCityOptions $options | ||
| 982 | * @param array $messageOptions (OPTIONAL) | ||
| 983 | * @return Result | ||
| 984 | * @throws Client\InvalidMessageException | ||
| 985 | 5 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | |
| 986 | * @throws Exception | ||
| 987 | */ | ||
| 988 | public function infoEncodeDecodeCity(RequestOptions\InfoEncodeDecodeCityOptions $options, $messageOptions = []) | ||
| 994 | |||
| 995 | /** | ||
| 996 | * PointOfRef_Search | ||
| 997 | * | ||
| 998 | * @param RequestOptions\PointOfRefSearchOptions $options | ||
| 999 | * @param array $messageOptions (OPTIONAL) | ||
| 1000 | * @return Result | ||
| 1001 | * @throws Client\InvalidMessageException | ||
| 1002 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1003 | * @throws Exception | ||
| 1004 | 5 | */ | |
| 1005 | public function pointOfRefSearch(RequestOptions\PointOfRefSearchOptions $options, $messageOptions = []) | ||
| 1011 | |||
| 1012 | |||
| 1013 | /** | ||
| 1014 | * Ticket_CreateTSTFromPricing | ||
| 1015 | * | ||
| 1016 | * @param RequestOptions\TicketCreateTstFromPricingOptions $options | ||
| 1017 | * @param array $messageOptions (OPTIONAL) | ||
| 1018 | * @return Result | ||
| 1019 | * @throws Client\InvalidMessageException | ||
| 1020 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1021 | * @throws Exception | ||
| 1022 | */ | ||
| 1023 | 5 | public function ticketCreateTSTFromPricing( | |
| 1031 | |||
| 1032 | /** | ||
| 1033 | * Ticket_CreateTSMFromPricing | ||
| 1034 | * | ||
| 1035 | * @param RequestOptions\TicketCreateTsmFromPricingOptions $options | ||
| 1036 | * @param array $messageOptions (OPTIONAL) | ||
| 1037 | * @return Result | ||
| 1038 | * @throws Client\InvalidMessageException | ||
| 1039 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1040 | * @throws Exception | ||
| 1041 | */ | ||
| 1042 | 5 | public function ticketCreateTSMFromPricing( | |
| 1050 | |||
| 1051 | /** | ||
| 1052 | * Ticket_CreateTSMFareElement | ||
| 1053 | * | ||
| 1054 | * @param RequestOptions\TicketCreateTsmFareElOptions $options | ||
| 1055 | * @param array $messageOptions (OPTIONAL) | ||
| 1056 | * @return Result | ||
| 1057 | * @throws Client\InvalidMessageException | ||
| 1058 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1059 | * @throws Exception | ||
| 1060 | */ | ||
| 1061 | 5 | public function ticketCreateTSMFareElement( | |
| 1069 | |||
| 1070 | /** | ||
| 1071 | * Ticket_CreateTASF | ||
| 1072 | * | ||
| 1073 | * @param RequestOptions\TicketCreateTasfOptions $options | ||
| 1074 | * @param array $messageOptions (OPTIONAL) | ||
| 1075 | * @return Result | ||
| 1076 | * @throws Client\InvalidMessageException | ||
| 1077 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1078 | 5 | * @throws Exception | |
| 1079 | */ | ||
| 1080 | 5 | public function ticketCreateTASF( | |
| 1088 | |||
| 1089 | /** | ||
| 1090 | * Ticket_DeleteTST | ||
| 1091 | * | ||
| 1092 | * @param RequestOptions\TicketDeleteTstOptions $options | ||
| 1093 | * @param array $messageOptions (OPTIONAL) | ||
| 1094 | * @return Result | ||
| 1095 | 5 | * @throws Client\InvalidMessageException | |
| 1096 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1097 | 5 | * @throws Exception | |
| 1098 | */ | ||
| 1099 | 5 | public function ticketDeleteTST(RequestOptions\TicketDeleteTstOptions $options, $messageOptions = []) | |
| 1105 | |||
| 1106 | /** | ||
| 1107 | * Ticket_DeleteTSMP | ||
| 1108 | * | ||
| 1109 | * @param RequestOptions\TicketDeleteTsmpOptions $options | ||
| 1110 | * @param array $messageOptions (OPTIONAL) | ||
| 1111 | * @return Result | ||
| 1112 | 5 | * @throws Client\InvalidMessageException | |
| 1113 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1114 | 5 | * @throws Exception | |
| 1115 | */ | ||
| 1116 | 5 | public function ticketDeleteTSMP(RequestOptions\TicketDeleteTsmpOptions $options, $messageOptions = []) | |
| 1122 | |||
| 1123 | /** | ||
| 1124 | * Ticket_DisplayTST | ||
| 1125 | * | ||
| 1126 | * @param RequestOptions\TicketDisplayTstOptions $options | ||
| 1127 | * @param array $messageOptions (OPTIONAL) | ||
| 1128 | * @return Result | ||
| 1129 | 5 | * @throws Client\InvalidMessageException | |
| 1130 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1131 | * @throws Exception | ||
| 1132 | */ | ||
| 1133 | 5 | public function ticketDisplayTST(RequestOptions\TicketDisplayTstOptions $options, $messageOptions = []) | |
| 1139 | |||
| 1140 | /** | ||
| 1141 | * Ticket_DisplayTSMP | ||
| 1142 | * | ||
| 1143 | * @param RequestOptions\TicketDisplayTsmpOptions $options | ||
| 1144 | * @param array $messageOptions (OPTIONAL) | ||
| 1145 | * @return Result | ||
| 1146 | * @throws Client\InvalidMessageException | ||
| 1147 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1148 | 5 | * @throws Exception | |
| 1149 | */ | ||
| 1150 | public function ticketDisplayTSMP(RequestOptions\TicketDisplayTsmpOptions $options, $messageOptions = []) | ||
| 1156 | |||
| 1157 | /** | ||
| 1158 | * Ticket_RetrieveListOfTSM | ||
| 1159 | * | ||
| 1160 | * @param RequestOptions\TicketRetrieveListOfTSMOptions $options | ||
| 1161 | * @param array $messageOptions (OPTIONAL) | ||
| 1162 | * @return Result | ||
| 1163 | * @throws Client\InvalidMessageException | ||
| 1164 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1165 | * @throws Exception | ||
| 1166 | */ | ||
| 1167 | 5 | public function ticketRetrieveListOfTSM( | |
| 1175 | |||
| 1176 | /** | ||
| 1177 | * Ticket_DisplayTSMFareElement | ||
| 1178 | * | ||
| 1179 | * @param RequestOptions\TicketDisplayTsmFareElOptions $options | ||
| 1180 | * @param array $messageOptions (OPTIONAL) | ||
| 1181 | * @return Result | ||
| 1182 | * @throws Client\InvalidMessageException | ||
| 1183 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1184 | * @throws Exception | ||
| 1185 | */ | ||
| 1186 | 5 | public function ticketDisplayTSMFareElement( | |
| 1194 | |||
| 1195 | /** | ||
| 1196 | * Ticket_CheckEligibility | ||
| 1197 | * | ||
| 1198 | * @param RequestOptions\TicketCheckEligibilityOptions $options | ||
| 1199 | * @param array $messageOptions (OPTIONAL) | ||
| 1200 | * @return Result | ||
| 1201 | * @throws Client\InvalidMessageException | ||
| 1202 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1203 | * @throws Exception | ||
| 1204 | */ | ||
| 1205 | 5 | public function ticketCheckEligibility( | |
| 1213 | |||
| 1214 | /** | ||
| 1215 | * Ticket_ATCShopperMasterPricerTravelBoardSearch | ||
| 1216 | * | ||
| 1217 | * @param RequestOptions\TicketAtcShopperMpTbSearchOptions $options | ||
| 1218 | * @param array $messageOptions (OPTIONAL) | ||
| 1219 | * @return Result | ||
| 1220 | * @throws Client\InvalidMessageException | ||
| 1221 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1222 | * @throws Exception | ||
| 1223 | */ | ||
| 1224 | 5 | public function ticketAtcShopperMasterPricerTravelBoardSearch( | |
| 1232 | |||
| 1233 | /** | ||
| 1234 | * Ticket_RepricePNRWithBookingClass | ||
| 1235 | * | ||
| 1236 | * @param RequestOptions\TicketRepricePnrWithBookingClassOptions $options | ||
| 1237 | * @param array $messageOptions (OPTIONAL) | ||
| 1238 | * @return Result | ||
| 1239 | * @throws Client\InvalidMessageException | ||
| 1240 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1241 | * @throws Exception | ||
| 1242 | */ | ||
| 1243 | 5 | public function ticketRepricePnrWithBookingClass( | |
| 1251 | |||
| 1252 | /** | ||
| 1253 | * Ticket_CancelDocument | ||
| 1254 | * | ||
| 1255 | * @param RequestOptions\TicketCancelDocumentOptions $options | ||
| 1256 | * @param array $messageOptions (OPTIONAL) | ||
| 1257 | * @return Result | ||
| 1258 | * @throws Client\InvalidMessageException | ||
| 1259 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1260 | * @throws Exception | ||
| 1261 | */ | ||
| 1262 | 5 | public function ticketCancelDocument( | |
| 1270 | |||
| 1271 | /** | ||
| 1272 | * Ticket_ReissueConfirmedPricing | ||
| 1273 | * | ||
| 1274 | * @param RequestOptions\TicketReissueConfirmedPricingOptions $options | ||
| 1275 | * @param array $messageOptions (OPTIONAL) | ||
| 1276 | * @return Result | ||
| 1277 | * @throws Client\InvalidMessageException | ||
| 1278 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1279 | 5 | * @throws Exception | |
| 1280 | */ | ||
| 1281 | 5 | public function ticketReissueConfirmedPricing( | |
| 1289 | |||
| 1290 | /** | ||
| 1291 | * Ticket_ProcessEDoc | ||
| 1292 | * | ||
| 1293 | * @param RequestOptions\TicketProcessEDocOptions $options | ||
| 1294 | * @param array $messageOptions (OPTIONAL) | ||
| 1295 | * @return Result | ||
| 1296 | 5 | * @throws Client\InvalidMessageException | |
| 1297 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1298 | * @throws Exception | ||
| 1299 | */ | ||
| 1300 | 5 | public function ticketProcessEDoc(RequestOptions\TicketProcessEDocOptions $options, $messageOptions = []) | |
| 1306 | |||
| 1307 | /** | ||
| 1308 | * Ticket_ProcessETicket | ||
| 1309 | * | ||
| 1310 | * @param RequestOptions\TicketProcessETicketOptions $options | ||
| 1311 | * @param array $messageOptions (OPTIONAL) | ||
| 1312 | * @return Result | ||
| 1313 | * @throws Client\InvalidMessageException | ||
| 1314 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1315 | 5 | * @throws Exception | |
| 1316 | */ | ||
| 1317 | public function ticketProcessETicket(RequestOptions\TicketProcessETicketOptions $options, $messageOptions = []) | ||
| 1323 | |||
| 1324 | /** | ||
| 1325 | * DocIssuance_IssueTicket | ||
| 1326 | * | ||
| 1327 | * @param RequestOptions\DocIssuanceIssueTicketOptions $options | ||
| 1328 | * @param array $messageOptions (OPTIONAL) | ||
| 1329 | * @return Result | ||
| 1330 | * @throws Client\InvalidMessageException | ||
| 1331 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1332 | * @throws Exception | ||
| 1333 | */ | ||
| 1334 | 10 | public function docIssuanceIssueTicket( | |
| 1342 | |||
| 1343 | /** | ||
| 1344 | * DocIssuance_IssueMiscellaneousDocuments | ||
| 1345 | * | ||
| 1346 | * @param RequestOptions\DocIssuanceIssueMiscDocOptions $options | ||
| 1347 | * @param array $messageOptions (OPTIONAL) | ||
| 1348 | * @return Result | ||
| 1349 | * @throws Client\InvalidMessageException | ||
| 1350 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1351 | * @throws Exception | ||
| 1352 | */ | ||
| 1353 | 5 | public function docIssuanceIssueMiscellaneousDocuments( | |
| 1361 | |||
| 1362 | /** | ||
| 1363 | * DocIssuance_IssueCombined | ||
| 1364 | * | ||
| 1365 | * @param RequestOptions\DocIssuanceIssueCombinedOptions $options | ||
| 1366 | * @param array $messageOptions (OPTIONAL) | ||
| 1367 | * @return Result | ||
| 1368 | * @throws Client\InvalidMessageException | ||
| 1369 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1370 | * @throws Exception | ||
| 1371 | */ | ||
| 1372 | 5 | public function docIssuanceIssueCombined( | |
| 1380 | |||
| 1381 | /** | ||
| 1382 | * DocRefund_InitRefund | ||
| 1383 | * | ||
| 1384 | * @param RequestOptions\DocRefundInitRefundOptions $options | ||
| 1385 | * @param array $messageOptions (OPTIONAL) | ||
| 1386 | * @return Result | ||
| 1387 | * @throws Client\InvalidMessageException | ||
| 1388 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1389 | * @throws Exception | ||
| 1390 | */ | ||
| 1391 | 5 | public function docRefundInitRefund( | |
| 1399 | |||
| 1400 | /** | ||
| 1401 | * DocRefund_IgnoreRefund | ||
| 1402 | * | ||
| 1403 | * @param RequestOptions\DocRefundIgnoreRefundOptions $options | ||
| 1404 | * @param array $messageOptions (OPTIONAL) | ||
| 1405 | * @return Result | ||
| 1406 | * @throws Client\InvalidMessageException | ||
| 1407 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1408 | * @throws Exception | ||
| 1409 | */ | ||
| 1410 | 5 | public function docRefundIgnoreRefund( | |
| 1418 | |||
| 1419 | /** | ||
| 1420 | * DocRefund_UpdateRefund | ||
| 1421 | * | ||
| 1422 | * @param RequestOptions\DocRefundUpdateRefundOptions $options | ||
| 1423 | * @param array $messageOptions (OPTIONAL) | ||
| 1424 | * @return Result | ||
| 1425 | * @throws Client\InvalidMessageException | ||
| 1426 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1427 | * @throws Exception | ||
| 1428 | */ | ||
| 1429 | 5 | public function docRefundUpdateRefund( | |
| 1437 | |||
| 1438 | /** | ||
| 1439 | * DocRefund_ProcessRefund | ||
| 1440 | * | ||
| 1441 | * @param RequestOptions\DocRefundProcessRefundOptions $options | ||
| 1442 | * @param array $messageOptions (OPTIONAL) | ||
| 1443 | * @return Result | ||
| 1444 | * @throws Client\InvalidMessageException | ||
| 1445 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1446 | * @throws Exception | ||
| 1447 | */ | ||
| 1448 | 5 | public function docRefundProcessRefund( | |
| 1456 | |||
| 1457 | /** | ||
| 1458 | * Ticket_InitRefund | ||
| 1459 | * | ||
| 1460 | * @param RequestOptions\TicketInitRefundOptions $options | ||
| 1461 | * @param array $messageOptions (OPTIONAL) | ||
| 1462 | * @return Result | ||
| 1463 | * @throws Client\InvalidMessageException | ||
| 1464 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1465 | * @throws Exception | ||
| 1466 | */ | ||
| 1467 | 5 | public function ticketInitRefund( | |
| 1475 | |||
| 1476 | /** | ||
| 1477 | * Ticket_IgnoreRefund | ||
| 1478 | * | ||
| 1479 | * @param RequestOptions\TicketIgnoreRefundOptions $options | ||
| 1480 | * @param array $messageOptions (OPTIONAL) | ||
| 1481 | * @return Result | ||
| 1482 | * @throws Client\InvalidMessageException | ||
| 1483 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1484 | * @throws Exception | ||
| 1485 | */ | ||
| 1486 | 5 | public function ticketIgnoreRefund( | |
| 1494 | |||
| 1495 | /** | ||
| 1496 | * Ticket_ProcessRefund | ||
| 1497 | * | ||
| 1498 | * @param RequestOptions\TicketProcessRefundOptions $options | ||
| 1499 | * @param array $messageOptions (OPTIONAL) | ||
| 1500 | * @return Result | ||
| 1501 | * @throws Client\InvalidMessageException | ||
| 1502 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1503 | * @throws Exception | ||
| 1504 | 5 | */ | |
| 1505 | public function ticketProcessRefund( | ||
| 1513 | |||
| 1514 | /** | ||
| 1515 | * FOP_CreateFormOfPayment | ||
| 1516 | * | ||
| 1517 | * @param RequestOptions\FopCreateFopOptions $options | ||
| 1518 | * @param array $messageOptions (OPTIONAL) | ||
| 1519 | * @return Result | ||
| 1520 | * @throws Client\InvalidMessageException | ||
| 1521 | 5 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | |
| 1522 | * @throws Exception | ||
| 1523 | */ | ||
| 1524 | public function fopCreateFormOfPayment(RequestOptions\FopCreateFopOptions $options, $messageOptions = []) | ||
| 1530 | |||
| 1531 | |||
| 1532 | /** | ||
| 1533 | * FOP_CreateFormOfPayment | ||
| 1534 | * | ||
| 1535 | * @param RequestOptions\FopValidateFopOptions $options | ||
| 1536 | * @param array $messageOptions (OPTIONAL) | ||
| 1537 | * @return Result | ||
| 1538 | * @throws Client\InvalidMessageException | ||
| 1539 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1540 | 5 | * @throws Exception | |
| 1541 | */ | ||
| 1542 | public function fopValidateFOP(RequestOptions\FopValidateFopOptions $options, $messageOptions = []) | ||
| 1548 | |||
| 1549 | /** | ||
| 1550 | * PriceXplorer_ExtremeSearch | ||
| 1551 | * | ||
| 1552 | * @param RequestOptions\PriceXplorerExtremeSearchOptions $options | ||
| 1553 | * @param array $messageOptions (OPTIONAL) | ||
| 1554 | * @return Result | ||
| 1555 | * @throws Client\InvalidMessageException | ||
| 1556 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1557 | * @throws Exception | ||
| 1558 | */ | ||
| 1559 | 5 | public function priceXplorerExtremeSearch( | |
| 1567 | |||
| 1568 | /** | ||
| 1569 | * SalesReports_DisplayQueryReport | ||
| 1570 | * | ||
| 1571 | * @param RequestOptions\SalesReportsDisplayQueryReportOptions $options | ||
| 1572 | * @param array $messageOptions (OPTIONAL) | ||
| 1573 | * @return Result | ||
| 1574 | * @throws Client\InvalidMessageException | ||
| 1575 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1576 | * @throws Exception | ||
| 1577 | */ | ||
| 1578 | 5 | public function salesReportsDisplayQueryReport( | |
| 1586 | |||
| 1587 | /** | ||
| 1588 | * Service_IntegratedPricing | ||
| 1589 | * | ||
| 1590 | * @param RequestOptions\ServiceIntegratedPricingOptions $options | ||
| 1591 | * @param array $messageOptions (OPTIONAL) | ||
| 1592 | * @return Result | ||
| 1593 | * @throws Client\InvalidMessageException | ||
| 1594 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1595 | * @throws Exception | ||
| 1596 | */ | ||
| 1597 | 5 | public function serviceIntegratedPricing( | |
| 1605 | |||
| 1606 | /** | ||
| 1607 | * Service_IntegratedCatalogue | ||
| 1608 | * | ||
| 1609 | * @param RequestOptions\ServiceIntegratedCatalogueOptions $options | ||
| 1610 | * @param array $messageOptions (OPTIONAL) | ||
| 1611 | * @return Result | ||
| 1612 | * @throws Client\InvalidMessageException | ||
| 1613 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1614 | * @throws Exception | ||
| 1615 | */ | ||
| 1616 | 5 | public function serviceIntegratedCatalogue( | |
| 1624 | |||
| 1625 | /** | ||
| 1626 | * Service_BookPriceService | ||
| 1627 | * | ||
| 1628 | * @param RequestOptions\ServiceBookPriceServiceOptions $options | ||
| 1629 | * @param array $messageOptions (OPTIONAL) | ||
| 1630 | * @return Result | ||
| 1631 | * @throws Client\InvalidMessageException | ||
| 1632 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1633 | * @throws Exception | ||
| 1634 | */ | ||
| 1635 | public function serviceBookPriceService( | ||
| 1643 | |||
| 1644 | 420 | /** | |
| 1645 | * SalesReports_DisplayorSummarizedReport | ||
| 1646 | 420 | * | |
| 1647 | 420 | * @param RequestOptions\SalesReportsDisplayDailyOrSummarizedReportOptions $options | |
| 1648 | 420 | * @param array $messageOptions (OPTIONAL) | |
| 1649 | 420 | * @return Result | |
| 1650 | 168 | * @throws Client\InvalidMessageException | |
| 1651 | 168 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | |
| 1652 | 168 | * @throws Exception | |
| 1653 | 168 | */ | |
| 1654 | public function salesReportsDisplayDailyOrSummarizedReport( | ||
| 1662 | 2 | ||
| 1663 | /** | ||
| 1664 | 420 | * SalesReports_DisplayNetRemitReport | |
| 1665 | * | ||
| 1666 | * @param RequestOptions\SalesReportsDisplayNetRemitReportOptions $options | ||
| 1667 | * @param array $messageOptions (OPTIONAL) | ||
| 1668 | * @return Result | ||
| 1669 | * @throws Client\InvalidMessageException | ||
| 1670 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1671 | * @throws Exception | ||
| 1672 | */ | ||
| 1673 | public function salesReportsDisplayNetRemitReport( | ||
| 1681 | |||
| 1682 | 450 | /** | |
| 1683 | 450 | * Service_StandaloneCatalogue | |
| 1684 | 180 | * | |
| 1685 | * @param RequestOptions\ServiceStandaloneCatalogueOptions $options | ||
| 1686 | 450 | * @param array $messageOptions | |
| 1687 | 5 | * (OPTIONAL) | |
| 1688 | 2 | * @return Result | |
| 1689 | * @throws Client\InvalidMessageException | ||
| 1690 | 450 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | |
| 1691 | 15 | * @throws Exception | |
| 1692 | 6 | */ | |
| 1693 | public function serviceStandaloneCatalogue(RequestOptions\ServiceStandaloneCatalogueOptions $options, $messageOptions = []) | ||
| 1699 | |||
| 1700 | /** | ||
| 1701 | * Call a message with the given parameters | ||
| 1702 | * | ||
| 1703 | * @param string $messageName | ||
| 1704 | * @param RequestOptions\RequestOptionsInterface $options | ||
| 1705 | * @param array $messageOptions | ||
| 1706 | * @param bool $endSession | ||
| 1707 | * @return Result | ||
| 1708 | * @throws Client\Exception | ||
| 1709 | * @throws Client\Struct\InvalidArgumentException | ||
| 1710 | * @throws Client\InvalidMessageException | ||
| 1711 | * @throws Client\RequestCreator\MessageVersionUnsupportedException | ||
| 1712 | * @throws \RuntimeException | ||
| 1713 | * @throws \InvalidArgumentException | ||
| 1714 | */ | ||
| 1715 | protected function callMessage($messageName, $options, $messageOptions, $endSession = false) | ||
| 1741 | |||
| 1742 | /** | ||
| 1743 | * Make message options | ||
| 1744 | * | ||
| 1745 | * Message options are meta options when sending a message to the amadeus web services | ||
| 1746 | * - 'endSession' (if stateful) : should we end the current session after sending this call? | ||
| 1747 | * - 'returnXml' : Should we return the XML string in the Result::responseXml property? | ||
| 1748 | * (this overrides the default setting returnXml in the Amadeus\Client\Params for a single message) | ||
| 1749 | * | ||
| 1750 | * @param array $incoming The Message options chosen by the caller - if any. | ||
| 1751 | * @param bool $endSession Switch if you want to terminate the current session after making the call. | ||
| 1752 | * @return array | ||
| 1753 | */ | ||
| 1754 | protected function makeMessageOptions(array $incoming, $endSession = false) | ||
| 1771 | } | ||
| 1772 |