-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started implementing PNR_DisplayHistory
- Loading branch information
Showing
19 changed files
with
957 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/Predicate.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
/** | ||
* amadeus-ws-client | ||
* | ||
* Copyright 2015 Amadeus Benelux NV | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @package Amadeus | ||
* @license https://opensource.org/licenses/Apache-2.0 Apache 2.0 | ||
*/ | ||
|
||
namespace Amadeus\Client\RequestOptions\Pnr\DisplayHistory; | ||
|
||
use Amadeus\Client\LoadParamsFromArray; | ||
|
||
/** | ||
* Predicate | ||
* | ||
* @package Amadeus\Client\RequestOptions\Pnr\DisplayHistory | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class Predicate extends LoadParamsFromArray | ||
{ | ||
/** | ||
* Indicates the type of the predicate. | ||
* | ||
* Up to 10 occurrence of Predicate Details can be defined. | ||
* | ||
* @var PredicateDetail[] | ||
*/ | ||
public $details = []; | ||
|
||
/** | ||
* To specify a minimum range | ||
* | ||
* @var int | ||
*/ | ||
public $rangeMin; | ||
|
||
/** | ||
* To specify a maximum range | ||
* | ||
* @var int | ||
*/ | ||
public $rangeMax; | ||
|
||
/** | ||
* To specify the elements to include (or exclude) in the history filtering | ||
* | ||
* @var PredicateType[] | ||
*/ | ||
public $types = []; | ||
|
||
/** | ||
* Retrieve history by free text (up to 199 alphanumeric characters) | ||
* | ||
* @var string | ||
*/ | ||
public $freeText; | ||
} |
70 changes: 70 additions & 0 deletions
70
src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/PredicateDetail.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php | ||
/** | ||
* amadeus-ws-client | ||
* | ||
* Copyright 2015 Amadeus Benelux NV | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @package Amadeus | ||
* @license https://opensource.org/licenses/Apache-2.0 Apache 2.0 | ||
*/ | ||
|
||
namespace Amadeus\Client\RequestOptions\Pnr\DisplayHistory; | ||
|
||
use Amadeus\Client\LoadParamsFromArray; | ||
|
||
/** | ||
* PredicateDetail | ||
* | ||
* @package Amadeus\Client\RequestOptions\Pnr\DisplayHistory | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class PredicateDetail extends LoadParamsFromArray | ||
{ | ||
const OPT_DISCARD_HISTORY_MATCHING_CRITERION = "FIL"; | ||
const OPT_KEEP_HISTORY_MATCHING_CRITERION = "SEL"; | ||
const OPT_FIND_HISTORY_CONTAINING_FREETEXT = "FND"; | ||
const OPT_DISPLAY_HISTORY_BY_ELEMENT_TYPE = "EMS"; | ||
const OPT_DISPLAY_HISTORY_WITH_QUEUEING_UPDATES = "QUE"; | ||
const OPT_DISPLAY_ENVELOPES_CONTAINING_RF_LINE_ONLY = "KRF"; | ||
const OPT_DISPLAY_ELEMENT_NUMBERING_SENT_IN_FEEDS = "FED"; | ||
const OPT_DISPLAY_ALL_TTR_LINES = "TTR"; | ||
const OPT_DISPLAY_ONLY_PNR_UPDATES = "PNR"; | ||
const OPT_DISPLAY_ONLY_ETR_UPDATES = "ETR"; | ||
const OPT_RETURN_FULL_DISPLAY_HISTORY_LINES = "FUL"; | ||
|
||
/** | ||
* Can be used in combination of all values in the Option element. | ||
*/ | ||
const ASSOC_OPT_PREDICATE_TYPE = 0; | ||
|
||
/** | ||
* Can be used only in combination of the "QUE" value in the Option element. | ||
*/ | ||
const ASSOC_OPT_MATCH_QUEUE_UPDATE = 1; | ||
|
||
/** | ||
* self::OPT_* | ||
* | ||
* @var string | ||
*/ | ||
public $option; | ||
|
||
/** | ||
* self::ASSOC_OPT_* | ||
* | ||
* @var int | ||
*/ | ||
public $associatedOption; | ||
} |
117 changes: 117 additions & 0 deletions
117
src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/PredicateType.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?php | ||
/** | ||
* amadeus-ws-client | ||
* | ||
* Copyright 2015 Amadeus Benelux NV | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @package Amadeus | ||
* @license https://opensource.org/licenses/Apache-2.0 Apache 2.0 | ||
*/ | ||
|
||
namespace Amadeus\Client\RequestOptions\Pnr\DisplayHistory; | ||
|
||
use Amadeus\Client\LoadParamsFromArray; | ||
|
||
/** | ||
* PredicateType | ||
* | ||
* @package Amadeus\Client\RequestOptions\Pnr\DisplayHistory | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class PredicateType extends LoadParamsFromArray | ||
{ | ||
const REFQUAL_MARRIAGE_DOMINANT = "D"; | ||
const REFQUAL_MARRIAGE_NON_DOMINANT = "N"; | ||
const REFQUAL_OTHER_TATTOO = "O"; | ||
const REFQUAL_PASSENGER_TATTOO = "PT"; | ||
const REFQUAL_SEGMENT_TATTOO_SUBTATTOO = "SS"; | ||
const REFQUAL_SEGMENT_TATTOO= "ST"; | ||
const REFQUAL_PASSENGER_CLIENT_REQUEST_MESSAGE = "PR"; | ||
const REFQUAL_SEGMENT_CLIENT_REQUEST_MESSAGE = "SR"; | ||
|
||
/** | ||
* Element name, one of the following: | ||
* | ||
* AB Billing address element | ||
* AI Accounting information element | ||
* AIR Air segment | ||
* AM Mailing address element | ||
* AP Phone element | ||
* AQ Address verification element | ||
* ATT Attachment element | ||
* ATX Air Taxi segment | ||
* CAR Manual Car segment | ||
* CCR Car segment | ||
* CRU Cruise segment | ||
* ES Security element | ||
* FA FA fare element | ||
* FB FB fare element | ||
* FD FD fare element | ||
* FE FE fare element | ||
* FER Ferry segment | ||
* FG FG fare element | ||
* FH FH fare element | ||
* FI FI fare element | ||
* FIN Financial Item element | ||
* FK FK fare element | ||
* FM FM fare element | ||
* FN FN fare element | ||
* FO FO fare element | ||
* FP FP fare element | ||
* FS FS fare element | ||
* FT FT fare element | ||
* FV FV fare element | ||
* FY FY fare element | ||
* FZ FZ fare element | ||
* GT Group Name | ||
* HHL Hotel segment | ||
* HTL Manual Hotel segment | ||
* MCO Miscellaneous Charges Order | ||
* MIS Manual Miscellaneous segment | ||
* NM Name element | ||
* OP Option element | ||
* OSI Other Service Information element | ||
* RC RC secured remark element | ||
* RI Invoice remark element | ||
* RM Remark element | ||
* RQ Quality control remark element | ||
* RX RX secured remark element | ||
* SK Keyword element | ||
* SSR Special Service Request element | ||
* ST Seat element | ||
* SUR Surface segment | ||
* TK Ticket element | ||
* TRN Train segment | ||
* TTO Tour Source segment | ||
* TUR Manual Tour segment | ||
* | ||
* @var string | ||
*/ | ||
public $elementName; | ||
|
||
/** | ||
* Identification number | ||
* | ||
* @var integer | ||
*/ | ||
public $reference; | ||
|
||
/** | ||
* self::REFQUAL_* | ||
* | ||
* @var string | ||
*/ | ||
public $referenceQualifier; | ||
} |
Oops, something went wrong.