-
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
fareCheckRules #21
Comments
Hi, If you are really talking about Fare Components, then you're talking about the cryptic entry I do not have the structured equivalent of These ( Will you have a need for the |
I'm not sure if this is the cryptic entry. As per Aamdeus provided recommendation workflow to check fare rule, the steps are:
I'm kind of confused with step 2 and 3. |
Ehm. Maybe they mean if your Fare_PricePNRWithBookingClass returns multiple pricings? This can happen when you have adults and children in the same PNR, they will likely get a different fare. EDIT: No, that doesn't make sense with "(with FC reference from step 2)" either. |
One thing I can think of is that they tell you to first request which categories of Fare Rules are available for a given pricing, and then request the rules for those specific categories: First, you do a Fare_CheckRules and request a list of rule categories by doing this: $client->fareCheckRules(
new FareCheckRulesOptions([
'recommendations' => [1],
'categoryList' => true
])
); The response will be something like this: <Fare_CheckRulesReply xmlns="http://xml.amadeus.com/FARQNR_07_1_1A">
<transactionType>
<messageFunctionDetails>
<messageFunction>712</messageFunction>
</messageFunctionDetails>
</transactionType>
<flightDetails>
<nbOfSegments/>
<qualificationFareDetails>
<fareDetails>
<qualifier>ADT</qualifier>
<fareCategory>NIT</fareCategory>
</fareDetails>
<additionalFareDetails>
<fareClass>MNR2MBE</fareClass>
</additionalFareDetails>
</qualificationFareDetails>
<flightErrorCode>
<freeTextQualification>
<textSubjectQualifier>3</textSubjectQualifier>
<informationType>PTC</informationType>
</freeTextQualification>
<freeText>ADULT</freeText>
</flightErrorCode>
<flightErrorCode>
<freeTextQualification>
<textSubjectQualifier>3</textSubjectQualifier>
<informationType>FTC</informationType>
</freeTextQualification>
<freeText>NEGO IIT</freeText>
</flightErrorCode>
<productInfo>
<productDetails>
<bookingClassDetails>
<designator>M</designator>
</bookingClassDetails>
</productDetails>
</productInfo>
<travellerGrp>
<travellerIdentRef>
<referenceDetails>
<type>RU</type>
<value>00M0</value>
</referenceDetails>
</travellerIdentRef>
<fareRulesDetails>
<ruleSectionId>MX</ruleSectionId>
<ruleSectionId>SE</ruleSectionId>
<ruleSectionId>SR</ruleSectionId>
<ruleSectionId>AP</ruleSectionId>
<ruleSectionId>FL</ruleSectionId>
<ruleSectionId>CD</ruleSectionId>
<ruleSectionId>SO</ruleSectionId>
<ruleSectionId>SU</ruleSectionId>
</fareRulesDetails>
</travellerGrp>
</flightDetails>
</Fare_CheckRulesReply> And then you can call Fare_CheckRules again and request the rules for the
Not sure if that is what they mean. If not: do you have an Amadeus support contact which is assigned to assist with your project? |
Yes, that's what they are referring to. |
I will check if there's a bug. Hold on. |
Hi @fayax , I can't reproduce this issue. I'm generating the correct message here and I'm getting the correct response. Maybe it's related to the specific fare you're trying to get info for, maybe it's a setting on the Amadeus Office you're working on. I suggest you contact your Amadeus support contact to help you figure out what's wrong. |
@DerMika Thanks! How can I display the SOAP request? |
If you provide a logger on instantiation it will log each request & response to the logfile. |
Thanks |
I have been discussing this with Amadeus support and they said since I'm getting only FC reference after generic fareCheckRules request, I should send a follow up query with that FC reference. Here is the sample follow up query from them: <Fare_CheckRules>
<msgType>
<messageFunctionDetails>
<messageFunction>712</messageFunction>
</messageFunctionDetails>
</msgType>
<itemNumber>
<itemNumberDetails>
<number>1</number>
</itemNumberDetails>
<itemNumberDetails>
<number>1</number>
<type>FC</type>
</itemNumberDetails>
</itemNumber>
</Fare_CheckRules> How do I send this kind of query? |
This is not yet possible with the current library. I'll push a fix tonight or tomorrow. |
Ok, i've now added support for requesting rules for specific fare components of a pricing request. For an example of how to do this, check the second example here: https://github.com/amabnl/amadeus-ws-client/blob/master/docs/samples.rst#fare-checkrules Please let me know if that fixes your problem! |
Hey @fayax were you able to check if this fix solves your problem? |
Hi, Sorry for the late response. That fix solves the problems. It is working fine now. |
Good to hear, thanks |
…AN-524-search-compare-services-add-profiling to master * commit 'e1ee8d7c994830e44e81083710fbb076960b1070': VAN-524 (fix) | move dependencies from require-dev to require VAN-524 search & compare services - add profiling script | (fix) disabled profiling by default VAN-524 search & compare services - add profiling script | (add) profiling via tideways and appropriate dependencies
I have a doubt on how to get fare components and to check fare rules for FC.
Would be great if you can give an example.
The text was updated successfully, but these errors were encountered: