Skip to content

Commit

Permalink
Implemented more options for Fare_MasterPricerTravelBoardSearch (fixes
Browse files Browse the repository at this point in the history
…#20), Implemented message Ticket_DisplayTST
  • Loading branch information
DerMika committed Sep 21, 2016
1 parent 270ab78 commit 1e59ec6
Show file tree
Hide file tree
Showing 42 changed files with 2,196 additions and 74 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Release 1.1.0 (unreleased)

* Fare_MasterPricerTravelBoardSearch: added new request options (https://github.com/amabnl/amadeus-ws-client/issues/20):
- Preferred/excluded/... airlines option 'airlineOptions'.
- Itinerary date: support for Date range +/- 1 day.
- Itinerary date: Specify date & time of segment as departure or arrival date & time.
- Itinerary date: deprecated 'date' and 'time' properties, replaced by unified 'dateTime' property.
- Support for flight options such as direct flight, non-stop flight, etc.
- Support for Cabin Mode (Mandatory, Major, Recommended) when specifying a cabin code.
- Support for Fare Options such as Published Fares, Unifares, Electronic/Paper ticketing, ...
- Support for "Price to beat" feature.
* Implemented Ticket_DisplayTST

# Release 1.0.0 (18 September 2016)

* PNR_AddMultiElements: support for adding OSI elements to a PNR.
* Implemented Ticket_DeleteTST
* Updated docs for 1.0.0 release.
* Released version 1: now following [semantic versioning](http://semver.org/).

Expand Down Expand Up @@ -50,4 +64,4 @@ The library will now also convert `\SoapFault` exceptions to a FATAL result stat

# UNSTABLE

The library's API will be unstable until we release the first version.
The library's API will be unstable until we release the first version.
2 changes: 1 addition & 1 deletion docs/list-of-supported-messages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ This is the list of messages that are at least partially supported at this time:
- Air_RetrieveSeatMap
- DocIssuance_IssueTicket
- Ticket_CreateTSTFromPricing
- Ticket_DisplayTST
- Ticket_DeleteTST
- Offer_VerifyOffer
- Offer_ConfirmAirOffer
Expand Down Expand Up @@ -54,7 +55,6 @@ On the to-do list / work in progress:
- Offer_CreateOffer
- MiniRule_GetFromPricing
- FOP_CreateFormOfPayment
- Ticket_DisplayTST
- Ticket_CreateTSMFromPricing
- Media_GetMedia
- Service_IntegratedPricing
Expand Down
32 changes: 29 additions & 3 deletions docs/samples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,18 @@ Make a simple Masterpricer availability & fare search:
'departureLocation' => new MPLocation(['city' => 'BRU']),
'arrivalLocation' => new MPLocation(['city' => 'LON']),
'date' => new MPDate([
'date' => new \DateTime('2017-01-15T00:00:00+0000', new \DateTimeZone('UTC'))
'dateTime' => new \DateTime('2017-01-15T00:00:00+0000', new \DateTimeZone('UTC'))
])
])
]
]);
$recommendations = $client->fareMasterPricerTravelBoardSearch($opt);
`More examples of MasterPricer messages <samples/masterpricertravelboard.rst>`_


-----------------------------
Fare_PricePNRWithBookingClass
-----------------------------
Expand Down Expand Up @@ -734,7 +738,7 @@ Delete the TST with number 2:
$deleteTstResult = $client->ticketDeleteTST(
new TicketDeleteTstOptions([
'deleteMode' => TicketDeleteTstOptions::DELETE_MODE_SELECTIVE,
'tstNumber' => 1
'tstNumber' => 2
])
);
Expand All @@ -743,8 +747,30 @@ Delete the TST with number 2:
Ticket_DisplayTST
-----------------

View the TST's of a PNR:
View all TST's of a PNR:

.. code-block:: php
use Amadeus\Client\RequestOptions\TicketDisplayTstOptions;
$deleteTstResult = $client->ticketDisplayTST(
new TicketDisplayTstOptions([
'displayMode' => TicketDisplayTstOptions::MODE_ALL
])
);
Display TST number 2:

.. code-block:: php
use Amadeus\Client\RequestOptions\TicketDisplayTstOptions;
$deleteTstResult = $client->ticketDisplayTST(
new TicketDisplayTstOptions([
'displayMode' => TicketDisplayTstOptions::MODE_SELECTIVE,
'tstNumbers' => [2]
])
);
***********
DocIssuance
Expand Down
Loading

0 comments on commit 1e59ec6

Please sign in to comment.