Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket_processEdoc start of implementation #135

Merged
merged 1 commit into from
Dec 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/Amadeus/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,19 @@ public function ticketReissueConfirmedPricing(
return $this->callMessage($msgName, $options, $messageOptions);
}

/**
* Ticket_ProcessEDoc
*
* @param RequestOptions\ticketProcessEdoc $options
* @param array $messageOptions (OPTIONAL)
* @return Result
*/
public function ticketProcessEdoc(RequestOptions\ticketProcessEdoc $options, $messageOptions = [])
{
$msgName = 'Ticket_ProcessEDoc';
return $this->callMessage($msgName, $options, $messageOptions);
}

/**
* DocIssuance_IssueTicket
*
Expand Down
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\RequestCreator\Converter\Ticket;

use Amadeus\Client\RequestCreator\Converter\BaseConverter;
use Amadeus\Client\RequestOptions\TicketProcessEdoc;
use Amadeus\Client\Struct;

/**
* Ticket_ProcessEDoc Request converter
*
* @package Amadeus\Client\RequestCreator\Converter\Ticket
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class ProcessEDocConv extends BaseConverter
{
/**
* @param TicketProcessEDocOptions $requestOptions
* @param int|string $version
* @return Struct\Ticket\EDoc\ProcessEDoc
*/


public function convert($requestOptions, $version)
{
return new Struct\Ticket\EDoc\ProcessEDoc($requestOptions);
}
}
49 changes: 49 additions & 0 deletions src/Amadeus/Client/RequestOptions/TicketProcessEdoc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?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;

/**
* TicketDisplayTstOptions
*
* @package Amadeus\Client\RequestOptions
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class TicketProcessEdoc extends Base
{
const ETKT = "131";

/**
* the ticket number returned from amadeus
*
*@var string
*/
public $ticketNumber;


/**
* to set the doc type for exmaple it takes 131 which means ETKT
*
*@var int
*/
public $messageFunction;
}
51 changes: 51 additions & 0 deletions src/Amadeus/Client/Struct/Ticket/EDoc/DocDetails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?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\Ticket\EDoc;

use Amadeus\Client\RequestOptions\TicketProcessEdoc;

/**
* DocDetails
*
* @package Amadeus\Client\Struct\Ticket\EDoc
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class DocDetails
{
/**
*
* @var string
*/
public $number;

/**
* DocDetails constructor.
*
* @param string $option
*/
public function __construct($option)
{
$this->number = $option;
}
}
47 changes: 47 additions & 0 deletions src/Amadeus/Client/Struct/Ticket/EDoc/DocInfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?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\Ticket\EDoc;

/**
* DocInfo
*
* @package Amadeus\Client\Struct\Ticket\EDoc
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class DocInfo
{
/**
* @var DocDetails
*/
public $documentDetails;

/**
* DocInfo constructor.
*
* @param string $option
*/
public function __construct($option)
{
$this->documentDetails = new DocDetails($option);
}
}
49 changes: 49 additions & 0 deletions src/Amadeus/Client/Struct/Ticket/EDoc/InfoGroup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?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\Ticket\EDoc;

use Amadeus\Client\RequestOptions\TicketProcessEdoc;

/**
* InfoGroup
*
* @package Amadeus\Client\Struct\Ticket\EDoc
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class InfoGroup
{
/**
* @var DocInfo
*/
public $docInfo;

/**
* InfoGroup constructor.
*
* @param string $option [which it the ticketnumber]
*/
public function __construct($option)
{
$this->docInfo = new DocInfo($option);
}
}
51 changes: 51 additions & 0 deletions src/Amadeus/Client/Struct/Ticket/EDoc/MessageFunctionDetails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?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\Ticket\EDoc;

use Amadeus\Client\RequestOptions\TicketProcessEdoc;

/**
* DocDetails
*
* @package Amadeus\Client\Struct\Ticket\EDoc
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class MessageFunctionDetails
{
/**
*
* @var string
*/
public $messageFunction;

/**
* DocDetails constructor.
*
* @param string $option
*/
public function __construct($option)
{
$this->messageFunction = $option;
}
}
47 changes: 47 additions & 0 deletions src/Amadeus/Client/Struct/Ticket/EDoc/MsgActionDetails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?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\Ticket\EDoc;

/**
* DocInfo
*
* @package Amadeus\Client\Struct\Ticket\EDoc
* @author Farah Hourani <farahhourani94@gmail.com>
*/
class MsgActionDetails
{
/**
* @var MessageFunctionDetails
*/
public $messageFunctionDetails;

/**
* MsgActionDetails constructor.
*
* @param string $option
*/
public function __construct($option)
{
$this->messageFunctionDetails = new MessageFunctionDetails($option);
}
}
Loading