-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Ticket_ATCShopperMasterPricerTravelBoardSearch message fo…
…r ATC shopper flow support (#39)
- Loading branch information
Showing
27 changed files
with
962 additions
and
40 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
...us/Client/RequestCreator/Converter/Ticket/ATCShopperMasterPricerTravelBoardSearchConv.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\Ticket; | ||
|
||
use Amadeus\Client\RequestCreator\Converter\BaseConverter; | ||
use Amadeus\Client\RequestOptions\TicketAtcShopperMpTbSearchOptions; | ||
use Amadeus\Client\Struct; | ||
|
||
/** | ||
* ATCShopperMasterPricerTravelBoardSearchConv | ||
* | ||
* @package Amadeus\Client\RequestCreator\Converter\Ticket | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class ATCShopperMasterPricerTravelBoardSearchConv extends BaseConverter | ||
{ | ||
/** | ||
* @param TicketAtcShopperMpTbSearchOptions $requestOptions | ||
* @param int|string $version | ||
* @return Struct\Ticket\AtcShopperMasterPricerTravelBoardSearch | ||
*/ | ||
public function convert($requestOptions, $version) | ||
{ | ||
return new Struct\Ticket\AtcShopperMasterPricerTravelBoardSearch($requestOptions); | ||
} | ||
} |
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
60 changes: 60 additions & 0 deletions
60
src/Amadeus/Client/RequestOptions/Pnr/Element/Commission.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,60 @@ | ||
<?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\Element; | ||
|
||
use Amadeus\Client\RequestOptions\Pnr\Element; | ||
|
||
/** | ||
* Commission - FM element | ||
* | ||
* @package Amadeus\Client\RequestOptions\Pnr\Element | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class Commission extends Element | ||
{ | ||
const PAXTYPE_INFANT_WITHOUT_SEAT = 766; | ||
const PAXTYPE_INFANT_WITH_SEAT = 767; | ||
const PAXTYPE_CABIN_BAGGAGE = "C"; | ||
const PAXTYPE_EXTRA_SEAT = "E"; | ||
const PAXTYPE_GROUP = "G"; | ||
const PAXTYPE_INFANT_NOT_OCCUPYING_A_SEAT = "INF"; | ||
const PAXTYPE_MONTH = "MTH"; | ||
const PAXTYPE_PASSENGER = "PAX"; | ||
const PAXTYPE_YEAR = "YRS"; | ||
|
||
const INDICATOR_COMMISSION = "FM"; | ||
|
||
/** | ||
* Passenger type | ||
* | ||
* Choose from self::PAXTYPE_* | ||
* | ||
* @var string|int | ||
*/ | ||
public $passengerType; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $indicator; | ||
} |
57 changes: 57 additions & 0 deletions
57
src/Amadeus/Client/RequestOptions/Ticket/ReqSegOptions.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,57 @@ | ||
<?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\Ticket; | ||
|
||
use Amadeus\Client\LoadParamsFromArray; | ||
|
||
/** | ||
* Changed ticket requested segments. | ||
* | ||
* | ||
* @package Amadeus\Client\RequestOptions\Ticket | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class ReqSegOptions extends LoadParamsFromArray | ||
{ | ||
const REQUEST_CODE_ADD = "A"; | ||
const REQUEST_CODE_CHANGE_REQUESTED_SEGMENT = "C"; | ||
const REQUEST_CODE_IGNORE_ONEWAYCOMBINEABLE = "I"; | ||
const REQUEST_CODE_KEEP_FLIGHTS = "K"; | ||
const REQUEST_CODE_KEEP_FLIGHTS_AND_FARES = "KF"; | ||
const REQUEST_CODE_IGNORE_OTHER = "O"; | ||
const REQUEST_CODE_REMOVE = "R"; | ||
|
||
/** | ||
* What action to perform | ||
* | ||
* choose from self::REQUEST_CODE_* | ||
* | ||
* @var string | ||
*/ | ||
public $requestCode; | ||
|
||
/** | ||
* @var string[] | ||
*/ | ||
public $connectionLocations = []; | ||
} |
48 changes: 48 additions & 0 deletions
48
src/Amadeus/Client/RequestOptions/TicketAtcShopperMpTbSearchOptions.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\Ticket\ReqSegOptions; | ||
|
||
/** | ||
* Ticket_ATCShopperMasterPricerTravelBoardSearch request options | ||
* | ||
* @package Amadeus\Client\RequestOptions | ||
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com> | ||
*/ | ||
class TicketAtcShopperMpTbSearchOptions extends FareMasterPricerTbSearch | ||
{ | ||
/** | ||
* List of ticket numbers to change | ||
* | ||
* @var string[] | ||
*/ | ||
public $ticketNumbers = []; | ||
|
||
/** | ||
* Changed ticket requested segments. | ||
* | ||
* @var ReqSegOptions[] | ||
*/ | ||
public $requestedSegments = []; | ||
} |
Oops, something went wrong.