-
Notifications
You must be signed in to change notification settings - Fork 42
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
217 additions
and
48 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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
|
||
/** | ||
* Class AmadeusClientException | ||
* | ||
* @package Sunspikes\Amadeus | ||
*/ | ||
class AmadeusClientException extends \Exception | ||
{ | ||
} |
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,40 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
|
||
/** | ||
* Interface AmadeusCommandInterface | ||
* | ||
* @package Sunspikes\Amadeus | ||
*/ | ||
interface AmadeusCommandInterface | ||
{ | ||
/** | ||
* Execute the API request | ||
* | ||
* @return void | ||
*/ | ||
public function execute(); | ||
|
||
/** | ||
* Build the request parameters | ||
* | ||
* @return array | ||
*/ | ||
public function getParameters(); | ||
|
||
/** | ||
* Get the API method name | ||
* | ||
* @return string | ||
*/ | ||
public function getName(); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Amadeus/AmadeusSoapClient.php → src/AmadeusSoapClient.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 |
---|---|---|
@@ -1,7 +1,20 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
|
||
/** | ||
* Class AmadeusSoapClient | ||
* | ||
* @package Sunspikes\Amadeus | ||
*/ | ||
class AmadeusSoapClient | ||
{ | ||
/** | ||
|
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
19 changes: 18 additions & 1 deletion
19
src/Amadeus/AbstractAmadeusCommand.php → src/Command/AbstractAmadeusCommand.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 |
---|---|---|
@@ -1,7 +1,24 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
use Sunspikes\Amadeus\AmadeusClientException; | ||
use Sunspikes\Amadeus\AmadeusCommandInterface; | ||
use Sunspikes\Amadeus\AmadeusSoapClient; | ||
|
||
/** | ||
* Class AbstractAmadeusCommand | ||
* | ||
* @package Sunspikes\Amadeus\Command | ||
*/ | ||
abstract class AbstractAmadeusCommand implements AmadeusCommandInterface | ||
{ | ||
/** @var AmadeusSoapClient */ | ||
|
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class AirMultiAvailability | ||
|
@@ -46,4 +54,4 @@ public function getName() | |
{ | ||
return 'Air_MultiAvailability'; | ||
} | ||
} | ||
} |
10 changes: 9 additions & 1 deletion
10
src/Amadeus/AirSellFromRecommendation.php → src/Command/AirSellFromRecommendation.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class AirSellFromRecommendation | ||
|
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class CommandCryptic | ||
|
@@ -28,4 +36,4 @@ public function getName() | |
{ | ||
return 'Command_Cryptic'; | ||
} | ||
} | ||
} |
10 changes: 9 additions & 1 deletion
10
...eus/FareMasterPricerTravelBoardSearch.php → ...and/FareMasterPricerTravelBoardSearch.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class FareMasterPricerTravelBoardSearch | ||
|
10 changes: 9 additions & 1 deletion
10
src/Amadeus/FarePricePNRWithBookingClass.php → src/Command/FarePricePNRWithBookingClass.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class FarePricePNRWithBookingClass | ||
|
10 changes: 9 additions & 1 deletion
10
src/Amadeus/PnrAddMultiElements.php → src/Command/PnrAddMultiElements.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class PnrAddMultiElements | ||
|
10 changes: 9 additions & 1 deletion
10
src/Amadeus/PnrAddMultiElementsFinal.php → src/Command/PnrAddMultiElementsFinal.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class PnrAddMultiElementsFinal | ||
|
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class PnrRetrieve | ||
|
10 changes: 9 additions & 1 deletion
10
src/Amadeus/SalesPeriodDetails.php → src/Command/SalesPeriodDetails.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class SalesPeriodDetails | ||
|
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class SecurityAuthenticate | ||
|
@@ -52,4 +60,4 @@ public function getName() | |
{ | ||
return 'Security_Authenticate'; | ||
} | ||
} | ||
} |
10 changes: 9 additions & 1 deletion
10
src/Amadeus/SecuritySignout.php → src/Command/SecuritySignout.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<?php | ||
/* | ||
* Amadeus Flight Booking and Search & Booking API Client | ||
* | ||
* (c) Krishnaprasad MG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sunspikes\Amadeus; | ||
namespace Sunspikes\Amadeus\Command; | ||
|
||
/** | ||
* Class SecuritySignout | ||
|
Oops, something went wrong.