-
Notifications
You must be signed in to change notification settings - Fork 191
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
PNR Modification #67
Comments
What this library does is no more than allowing you to perform specific SOAP messages on the Amadeus Web Services. So any message and message feature that has been implemented works just as described in the Amadeus docs. For the scenario you mention, this is perfectly possible. First of all you need configure the client to use a stateful session because you'll need to retain your context between messages. Then you need to retrieve a PNR with the For example, if you want to add a RM (general remark) to a PNR which has been put into context, you just send something like this: use Amadeus\Client\RequestOptions\PnrCreatePnrOptions;
use Amadeus\Client\RequestOptions\Pnr\Element\MiscellaneousRemark;
$addResult = $client->pnrAddMultiElements(
new PnrAddMultiElementsOptions([
'actionCode' => PnrAddMultiElementsOptions::ACTION_END_TRANSACT_RETRIEVE
'elements' => [
new MiscellaneousRemark([
'text' => 'This is a general remark'
])
]
])
); By providing the actionCode Also, by re-retrieving the PNR, you have effectively placed the PNR in context again, ready for further actions on the PNR. Also, after using a stateful session, don't forget to sign out (with the |
thanks but can you give me a example of changing segments |
I don't have any ready samples, but I can tell you how to do it. Basically, unless you're using a specific message like First of all, you need to do a pnrRetrieve(), and find the Segment Tattoo for the segment you want to remove (can be found at Then you do a After that you add the new segment in any way you would otherwise add a new segment. Via |
Hi, Is your question answered? If so, can you please close the issue? |
I just want to point out that in ATC documentation there are 2 notes explaining when to cancel first and then add new segments or when to add new segments (to make sure these are available) and then cancel previous ones 👍 All can be found in ATC Guide and because I already read all of it twice I can say that they explained everything there. |
…A-3026 to master * commit '5c6985293e6576a118907486eab76176b363befa': FA-3026: review comment FA-3026: remove +x from composer.lock FA-3026: fix tests, revert unwanted but commited changes FA-3026: modify remarks parsing to match remark strings with "-" in the value FA-3026: working on remarks to enable handling of more than one traveller
What level of PNR modification does this library supports.
Can i get an example steps for sending messages.
for e.g
Like if i had already generated a pnr and i need to modify so how to proceed ?
The text was updated successfully, but these errors were encountered: