-
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
RF element added many times #68
Comments
Well, the first problem I see now is backwards compatibility. Removing this now will cause things to break - because I know some people depend on it. |
Then maybe "receivedFrom" => IgnoreElement() ? This way we could check while creating request to not include received from. Or there could be another param |
Did this issue cause you problems with your certification? Does Amadeus ask that you change this? |
I'll have to think about the best way to solve this. |
Yes, we are doing ATC and LCC certification and while checking traces from LCC booking I got this info:
|
Ok, so maybe we could change the automagic of it to only add an RF when the actioncode is any kind of save action? I don't think that would result in a BC break. |
But... The problem I see with that solution is that you don't know if an RF was added manually in a previous PNR_AddMultiElements while the PNR was still in context. |
Plus, I can imagine using PNR_AddMultiElements while changing existing PNR, which would add RF element again. I understand the point of making API as easy to use for new users but it won't fly in certification 🏅 |
So what I'm thinking of now - for backwards compatibility - is a second parameter when calling the message: $client->pnrAddMultiElements($admultiopt, ['noAutoRf' => true]); And then we can decide for version 2.0 of we want to continue the automatic adding of RF elements or if the user of the library is completely responsible for it. |
Ok, I've implemented a fix to override the automatic addition of an RF element when doing a |
Thanks a lot! 🎉 |
Hey, I see from the code that RF element is being added automatically.
amadeus-ws-client/src/Amadeus/Client/RequestCreator/Converter/PNR/AddMultiElementsConv.php
Line 46 in c16cd0d
However, if you use AddMultiElements many times, then it should only be added once, thus I would suggest to allow users to specify when to send it and not add it automatically as you do it only on PNR creation.
I got warning from Amadeus when we do new certification that it should only be sent once.
What do you think? I can prepare PR for it.
The text was updated successfully, but these errors were encountered: