-
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.
Implemented PriceXplorer_ExtremeSearch extra unittests on MasterPrice…
…rTravelBoardSearch
- Loading branch information
Showing
37 changed files
with
2,356 additions
and
3 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
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
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
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
172 changes: 172 additions & 0 deletions
172
src/Amadeus/Client/RequestOptions/PriceXplorerExtremeSearchOptions.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,172 @@ | ||
<?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; | ||
|
||
/** | ||
* PriceXplorerExtremeSearchOptions | ||
* | ||
* @package Amadeus\Client\RequestOptions | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class PriceXplorerExtremeSearchOptions extends Base | ||
{ | ||
const CURRENCY_EURO = "EUR"; | ||
|
||
const AGGR_DEST = 'D'; | ||
|
||
const AGGR_DEST_WEEK = 'DW'; | ||
|
||
const AGGR_DEST_WEEK_DEPART = 'DWDP'; | ||
|
||
const AGGR_DEST_WEEK_DEPART_STAY = 'DWDPS'; | ||
|
||
const AGGR_COUNTRY = 'C'; | ||
|
||
/** | ||
* Departure location - airport or city code | ||
* | ||
* @var string | ||
*/ | ||
public $origin; | ||
|
||
/** | ||
* Destination locations - array of airport or city codes | ||
* | ||
* @var array | ||
*/ | ||
public $destinations = []; | ||
|
||
/** | ||
* Destination countries - array of country codes | ||
* | ||
* @var array | ||
*/ | ||
public $destinationCountries = []; | ||
|
||
/** | ||
* Currency for max/min budget options | ||
* | ||
* @var string | ||
*/ | ||
public $currency; | ||
|
||
/** | ||
* Maximum budget, expressed in $this->currency currency. | ||
* | ||
* @var int | ||
*/ | ||
public $maxBudget; | ||
|
||
/** | ||
* Minimum budget, expressed in $this->currency currency. | ||
* | ||
* @var int | ||
*/ | ||
public $minBudget; | ||
|
||
/** | ||
* Earliest possible departure date. | ||
* | ||
* @var \DateTime | ||
*/ | ||
public $earliestDepartureDate; | ||
|
||
/** | ||
* Latest possible departure date. | ||
* | ||
* @var \DateTime | ||
*/ | ||
public $latestDepartureDate; | ||
|
||
/** | ||
* (Consecutive) departure days of week for outbound flight | ||
* | ||
* 1: Monday | ||
* 2: Tuesday | ||
* 3: Wednesday | ||
* 4: Thursday | ||
* 5: Friday | ||
* 6: Saturday | ||
* 7: Sunday | ||
* | ||
* @var array | ||
*/ | ||
public $departureDaysOutbound = []; | ||
|
||
/** | ||
* (Consecutive) departure days of week for inbound flight | ||
* | ||
* 1: Monday | ||
* 2: Tuesday | ||
* 3: Wednesday | ||
* 4: Thursday | ||
* 5: Friday | ||
* 6: Saturday | ||
* 7: Sunday | ||
* | ||
* @var array | ||
*/ | ||
public $departureDaysInbound = []; | ||
|
||
/** | ||
* Stay Duration in days | ||
* | ||
* @var int | ||
*/ | ||
public $stayDurationDays; | ||
|
||
/** | ||
* Flexibility of Stay Duration in days | ||
* | ||
* @var int | ||
*/ | ||
public $stayDurationFlexibilityDays; | ||
|
||
/** | ||
* Set to True to return cheapest overall price | ||
* | ||
* @var boolean | ||
*/ | ||
public $returnCheapestOverall = false; | ||
|
||
/** | ||
* Set to True to return cheapest nonstop price | ||
* | ||
* @var boolean | ||
*/ | ||
public $returnCheapestNonStop = false; | ||
|
||
/** | ||
* Price result aggregation option - use one of the self::AGGR_* constants | ||
* | ||
* @var string | ||
*/ | ||
public $resultAggregationOption; | ||
|
||
/** | ||
* Which Office ID to use when finding prices | ||
* | ||
* @var string Amadeus Office ID | ||
*/ | ||
public $searchOffice; | ||
} |
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
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,42 @@ | ||
<?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\Struct\PriceXplorer; | ||
|
||
/** | ||
* Structure class for the AirlineInfo message part for PriceXplorer_* messages | ||
* | ||
* @package Amadeus\Client\Struct\PriceXplorer | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class AirlineInfo | ||
{ | ||
/** | ||
* @var mixed | ||
*/ | ||
public $attributeInfo; | ||
|
||
/** | ||
* @var mixed | ||
*/ | ||
public $airlineDetails; | ||
} |
Oops, something went wrong.