Skip to content

Commit

Permalink
Replace 'tatoo' by 'tattoo'
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Apr 25, 2016
1 parent a6f6057 commit 2d0ed2d
Show file tree
Hide file tree
Showing 26 changed files with 129 additions and 129 deletions.
10 changes: 5 additions & 5 deletions docs/samples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ Cancel the entire itinerary of the PNR in context and do an end transact to save
);
Cancel a PNR element with tatoo number 15 and do an End and Retrieve (ER) to receive the resulting PNR_Reply:
Cancel a PNR element with tattoo number 15 and do an End and Retrieve (ER) to receive the resulting PNR_Reply:

.. code-block:: php
use Amadeus\Client\RequestOptions\PnrCancelOptions;
$cancelReply = $client->pnrCancel(
new PnrCancelOptions([
'elementsByTatoo' => [15],
'elementsByTattoo' => [15],
'actionCode' => PnrCancelOptions::ACTION_END_TRANSACT_RETRIEVE
])
);
Expand All @@ -257,7 +257,7 @@ Same as before, but this time without having a PNR in context (you must provide
$cancelReply = $client->pnrCancel(
new PnrCancelOptions([
'recordLocator' => 'ABC123,
'elementsByTatoo' => [15],
'elementsByTattoo' => [15],
'actionCode' => PnrCancelOptions::ACTION_END_TRANSACT_RETRIEVE
])
);
Expand Down Expand Up @@ -600,15 +600,15 @@ Verify if an offer is still valid:
---------------------
Offer_ConfirmAirOffer
---------------------
Confirm a given AIR offer by providing office reference / tatoo:
Confirm a given AIR offer by providing office reference / tattoo:

.. code-block:: php
use Amadeus\Client\RequestOptions\OfferConfirmAirOptions;
$response = $client->offerConfirmAir(
new OfferConfirmAirOptions([
'tatooNumber' => 1
'tattooNumber' => 1
])
);
Expand Down
6 changes: 3 additions & 3 deletions docs/samples/pnr-create-modify.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Provide mandatory SR DOCS with APIS information for flights to the US *(must be
],
'references' => [
new Reference([
'type' => Reference::TYPE_PASSENGER_TATOO,
'type' => Reference::TYPE_PASSENGER_TATTOO,
'id' => 1
])
]
Expand Down Expand Up @@ -262,7 +262,7 @@ Add a structured billing address element (e.g. ``AB //CY-COMPANY/NA-NAME/A1-LINE
'zipCode' => 'ZIP CODE',
'references' => [
new Reference([
'type' => Reference::TYPE_PASSENGER_TATOO,
'type' => Reference::TYPE_PASSENGER_TATTOO,
'id' => 1
])
]
Expand All @@ -289,7 +289,7 @@ Add a manual Frequent Flyer number (e.g. ``SR FQTV SN-SN 111111111/P2``)
'number' => '111111111',
'references' => [
new Reference([
'type' => Reference::TYPE_PASSENGER_TATOO,
'type' => Reference::TYPE_PASSENGER_TATTOO,
'id' => 2
])
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PricePnrBcFareBasis extends LoadParamsFromArray
public $fareBasisCode;

/**
* The key is the segment tatoo number, the value is the segment type (self::SEGREFTYPE_*)
* The key is the segment tattoo number, the value is the segment type (self::SEGREFTYPE_*)
*
* @var array
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Amadeus/Client/RequestOptions/Offer/PassengerDef.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ class PassengerDef extends LoadParamsFromArray
/**
* @var int
*/
public $passengerTatoo;
public $passengerTattoo;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OfferConfirmAirOptions extends Base
/**
* @var int
*/
public $tatooNumber;
public $tattooNumber;

/**
* @var Offer\PassengerReAssocOptions[]
Expand Down
12 changes: 6 additions & 6 deletions src/Amadeus/Client/RequestOptions/Pnr/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
*/
class Reference extends LoadParamsFromArray
{
const TYPE_PASSENGER_TATOO = "PT";
const TYPE_PASSENGER_TATTOO = "PT";

const TYPE_PASSENGER_REQUEST = "PR";

const TYPE_SEGMENT_TATOO = "ST";
const TYPE_SEGMENT_TATTOO = "ST";

const TYPE_SEGMENT_REQUEST = "SR";

Expand All @@ -48,12 +48,12 @@ class Reference extends LoadParamsFromArray
* 002 Corporate identification number
* D Dominant segment in a marriage
* N Non dominant segment in a marriage
* OT Other element tatoo reference number
* OT Other element tattoo reference number
* PR Passenger Client-request-message-defined ref. nbr
* PT Passenger tatoo reference number
* PT Passenger tattoo reference number
* SR Segment Client-request-message-defined ref. nbr
* SS Segment Tatoo+SubTatoo reference number
* ST Segment Tatoo reference number
* SS Segment Tattoo+SubTattoo reference number
* ST Segment Tattoo reference number
*
* @var
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Amadeus/Client/RequestOptions/PnrCancelOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class PnrCancelOptions extends PnrBase
public $passengers = [];

/**
* All elements by Tatoo number to be removed
* All elements by Tattoo number to be removed
*
* @var int[]
*/
public $elementsByTatoo = [];
public $elementsByTattoo = [];

/**
* Set to true if you want to cancel the entire itinerary of the PNR.
Expand Down
8 changes: 4 additions & 4 deletions src/Amadeus/Client/Struct/Offer/ConfirmAir.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
class ConfirmAir extends BaseWsMessage
{
/**
* Offer tatoo to be confirmed
* Offer tattoo to be confirmed
*
* @var OfferTatoo
* @var OfferTattoo
*/
public $offerTatoo;
public $offerTattoo;

/**
* Group for pax reconciliation between Pax PNR and passenger types prices at offer creation time
Expand All @@ -53,7 +53,7 @@ class ConfirmAir extends BaseWsMessage
public function __construct($options = null)
{
if (!is_null($options)) {
$this->offerTatoo = new OfferTatoo($options->tatooNumber);
$this->offerTattoo = new OfferTattoo($options->tattooNumber);

foreach($options->passengerReassociation as $reAssoc) {
$this->passengerReassociation[] = new PassengerReassociation(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
namespace Amadeus\Client\Struct\Offer;

/**
* OfferTatoo
* OfferTattoo
*
* @package Amadeus\Client\Struct\Offer
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com>
*/
class OfferTatoo
class OfferTattoo
{
/**
* AIR Air segment
Expand Down
6 changes: 3 additions & 3 deletions src/Amadeus/Client/Struct/Offer/PassengerReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ class PassengerReference
public $value;

/**
* @param int $tatoo
* @param int $tattoo
* @param string $type
*/
public function __construct($tatoo, $type)
public function __construct($tattoo, $type)
{
$this->value = $tatoo;
$this->value = $tattoo;
$this->type = $type;
}
}
2 changes: 1 addition & 1 deletion src/Amadeus/Client/Struct/Offer/PaxReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct($paxRefs = null)
if (!is_null($paxRefs)) {
foreach ($paxRefs as $paxRef) {
$this->passengerReference[] = new PassengerReference(
$paxRef->passengerTatoo,
$paxRef->passengerTattoo,
$paxRef->passengerType
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Amadeus/Client/Struct/Offer/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ class Reference
/**
* Offer Other element Tattoo reference number
*/
const TYPE_OFFER_TATOO = "OOT";
const TYPE_OFFER_TATTOO = "OOT";

/**
* @var string
*/
public $type = self::TYPE_OFFER_TATOO;
public $type = self::TYPE_OFFER_TATTOO;

/**
* Identification number.
Expand Down
6 changes: 3 additions & 3 deletions src/Amadeus/Client/Struct/Offer/Verify.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
class Verify extends BaseWsMessage
{
/**
* @var OfferTatoo
* @var OfferTattoo
*/
public $offerTatoo;
public $offerTattoo;

/**
* @param string $referenceNr
* @param string $segmentName
*/
public function __construct($referenceNr, $segmentName)
{
$this->offerTatoo = new OfferTatoo($referenceNr, $segmentName);
$this->offerTattoo = new OfferTattoo($referenceNr, $segmentName);
}
}
Loading

0 comments on commit 2d0ed2d

Please sign in to comment.