-
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
New Request Ticket_CancelDocument missing - how to contribute #93
Comments
Hi, that would be wonderful! I wrote a quick explanation of how to add a new message to the library in this comment. That comment is about If you have any questions or run into any problems, I'd be happy to help. |
Also, It's OK to not implement all possible features of a message, as long as the request options class is written in such a way that missing features can be added later on without breaking backwards compatibility. But of course, it's even better if you implement all possible features for which there is an example in the Amadeus Web Services extranet guide. |
When I was first implementing new messages I just went to commit where @DerMika implemented one endpoint and followed his steps. Last time I have implemented You can take a look at the PR here |
Hi @DerMika @bimusiek whenever when we are creating new request how to identify which paramaters will be dynamic and how to pass those. |
So, in For example, let's look at the implementation of Each message call in This Request Options object will be used to generate a message You need a Request Converter Usually, the Converter does nothing more than handing the Request Options object to the Structure object, but when different versions of messages require a different message structure, the converter handles this. Now you will see that the PHP properties of Now you just need to add extra code inside When you've done all that, you should be able to start testing the message. Be aware that the responses will always have status UNKNOWN until you implement a Response Handler. Then there are a few more steps to be done:
So, to answer your questions: how to identify which paramaters will be dynamic What I usually do is examine the Amadeus Extranet page for this message and identify the different options available for a given message, and provide properties in my Request Options object to fill in each option that is available in the documentation (or just the ones you want to implement at first). For our example: I have identified 2 options available in Ticket_CreateTSTFromPricing which I want to implement:
So that's why I built the how to pass those I think the above explanation should explain how the Struct object receives Request Options should get you started to work this out. The I hope my answer is useful... If not, let me know. |
Were you able to implement this message? Any problems you've encountered? |
This message is now implemented on the You can test it by switching your |
…in-read-product-status-array to master * commit 'e32654099e869969914cd97a119c60ee8c1aaed3': - fixing issue where related-product-status can be an array instead of string (noticed on booking with tix already issued)
Hi @DerMika
Ticket_CancelDocument is missing in the library.
Can you please let us know what steps we should follow to add this in this library.
We will like to contribute this for the library
Thanks
The text was updated successfully, but these errors were encountered: