-
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.
- Loading branch information
Showing
20 changed files
with
938 additions
and
4 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
46 changes: 46 additions & 0 deletions
46
src/Amadeus/Client/RequestCreator/Converter/MiniRule/GetFromRecConv.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,46 @@ | ||
<?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\RequestCreator\Converter\MiniRule; | ||
|
||
use Amadeus\Client\RequestCreator\Converter\BaseConverter; | ||
use Amadeus\Client\RequestOptions\MiniRuleGetFromRecOptions; | ||
use Amadeus\Client\Struct; | ||
|
||
/** | ||
* MiniRule_GetFromRec | ||
* | ||
* @package Amadeus\Client\RequestCreator\Converter\MiniRule | ||
* @author Aleksandr Kalugin <xkalugin@gmail.com> | ||
*/ | ||
class GetFromRecConv extends BaseConverter | ||
{ | ||
/** | ||
* @param MiniRuleGetFromRecOptions $requestOptions | ||
* @param int|string $version | ||
* @return Struct\MiniRule\GetFromRec | ||
*/ | ||
public function convert($requestOptions, $version) | ||
{ | ||
return new Struct\MiniRule\GetFromRec($requestOptions); | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/Amadeus/Client/RequestOptions/MiniRule/FilteringOption.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,55 @@ | ||
<?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\MiniRule; | ||
|
||
use Amadeus\Client\LoadParamsFromArray; | ||
|
||
/** | ||
* MiniRule FilteringSelection | ||
* | ||
* @package Amadeus\Client\RequestOptions\MiniRule | ||
* @author Aleksandr Kalugin <xkalugin@gmail.com> | ||
*/ | ||
class FilteringOption extends LoadParamsFromArray | ||
{ | ||
const TYPE_PAX = 'P'; | ||
|
||
const TYPE_ADULT_PASSENGER = "PA"; | ||
|
||
const TYPE_INFANT_PASSENGER = "PI"; | ||
|
||
const TYPE_SEGMENT = 'S'; | ||
|
||
/** | ||
* self::TYPE_* | ||
* | ||
* @var string | ||
*/ | ||
public $type; | ||
|
||
/** | ||
* @var string|int | ||
*/ | ||
public $value; | ||
} |
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,55 @@ | ||
<?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\MiniRule; | ||
|
||
use Amadeus\Client\LoadParamsFromArray; | ||
|
||
/** | ||
* MiniRule Language | ||
* @package Amadeus\Client\RequestOptions\MiniRule | ||
* @author Aleksandr Kalugin <xkalugin@gmail.com> | ||
*/ | ||
class Language extends LoadParamsFromArray | ||
{ | ||
const LQ_LANGUAGE_NORMALLY_USED = 1; | ||
const LQ_LANGUAGE_UNDERSTOOD = 2; | ||
const LQ_SPOKEN_LANGUAGE = 3; | ||
const LQ_WRITTEN_LANGUAGE = 4; | ||
const LQ_READ_LANGUAGE = 5; | ||
const LQ_FOR_ALL_TYPES_OF_COMMUNICATION = 6; | ||
const LQ_NATIVE_LANGUAGE = 7; | ||
|
||
/** | ||
* self::LQ_* | ||
* | ||
* @var int | ||
*/ | ||
public $qualifier = self::LQ_LANGUAGE_NORMALLY_USED; | ||
|
||
/** | ||
* a two letters code (for example EN) | ||
* | ||
* @var string | ||
*/ | ||
public $code = "EN"; | ||
} |
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
48 changes: 48 additions & 0 deletions
48
src/Amadeus/Client/RequestOptions/MiniRuleGetFromRecOptions.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,48 @@ | ||
<?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; | ||
|
||
use Amadeus\Client\RequestOptions\MiniRule\Language; | ||
|
||
/** | ||
* MiniRule_GetFromRec Request Options | ||
* | ||
* @package Amadeus\Client\RequestOptions | ||
* @author Aleksandr Kalugin <xkalugin@gmail.com> | ||
*/ | ||
class MiniRuleGetFromRecOptions extends Base | ||
{ | ||
/** | ||
* @var null|Language | ||
*/ | ||
public $language = null; | ||
/** | ||
* @var MiniRule\Pricing | ||
*/ | ||
public $pricing = null; | ||
|
||
/** | ||
* @var MiniRule\FilteringOption[] | ||
*/ | ||
public $filteringOptions = []; | ||
} |
Oops, something went wrong.