Skip to content

Commit

Permalink
Started implementing PNR_DisplayHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Aug 11, 2016
1 parent 653b3f4 commit 85d412d
Show file tree
Hide file tree
Showing 19 changed files with 957 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# amadeus-ws-client: PHP client for the Amadeus GDS SOAP Web Service interface

[![Build Status](https://travis-ci.org/amabnl/amadeus-ws-client.svg?branch=develop)](https://travis-ci.org/amabnl/amadeus-ws-client) [![Coverage Status](https://coveralls.io/repos/github/amabnl/amadeus-ws-client/badge.svg?branch=develop)](https://coveralls.io/github/amabnl/amadeus-ws-client?branch=develop)
[![Build Status](https://travis-ci.org/amabnl/amadeus-ws-client.svg?branch=develop)](https://travis-ci.org/amabnl/amadeus-ws-client) [![Coverage Status](https://coveralls.io/repos/github/amabnl/amadeus-ws-client/badge.svg?branch=develop)](https://coveralls.io/github/amabnl/amadeus-ws-client?branch=develop) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/amabnl/amadeus-ws-client/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/amabnl/amadeus-ws-client/?branch=develop)

This client library provides access to the Amadeus GDS SOAP Web Service interface.

Expand Down
15 changes: 8 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/Amadeus/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,6 @@ public function priceXplorerExtremeSearch(RequestOptions\PriceXplorerExtremeSear
* - ... ?
*
* @param array $incoming The Message options chosen by the caller - if any.
* @param bool $asString Switch if the response should be returned as a string (true) or a PHP object (false).
* @param bool $endSession Switch if you want to terminate the current session after making the call.
* @return array
*/
Expand Down
71 changes: 71 additions & 0 deletions src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/Predicate.php
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;
}
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 src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/PredicateType.php
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;
}
Loading

0 comments on commit 85d412d

Please sign in to comment.