Code Monkey home page Code Monkey logo

Comments (9)

DerMika avatar DerMika commented on June 14, 2024

Are you asking if Amadeus supports it or if my library supports it?

I haven't looked much into fare families yet, so I couldn't yet tell you what Amadeus supports so far. But if you tell me what kind of message you'd like to send with what kind of option, I can implement it - or at least investigate.

from amadeus-ws-client.

bimusiek avatar bimusiek commented on June 14, 2024

They do support them, it is matter of sending it in the request.

<fareFamilies>
    <familyInformation>
        <fareFamilyname>ECO</fareFamilyname>
        <hierarchy>200</hierarchy>
    </familyInformation>
    <familyCriteria>
        <cabinProduct>
            <cabinDesignator>Y</cabinDesignator>
        </cabinProduct>
    </familyCriteria>
</fareFamilies>
<fareFamilies>
<familyInformation>
    <fareFamilyname>BIS</fareFamilyname>
    <hierarchy>100</hierarchy>
</familyInformation>
<familyCriteria>
    <cabinProduct>
        <cabinDesignator>C</cabinDesignator>
    </cabinProduct>
</familyCriteria>
</fareFamilies>

Fare_MasterPricerTravelBoardSearch - AFF - Combining Cabin classes - SOAP 4.0.txt

You could also give me some hints and I could try to imlement it, however I started coding in php only few days ago to implement your lib to translate soap into json for our internal project.

from amadeus-ws-client.

DerMika avatar DerMika commented on June 14, 2024

Ok, I see. For Fare_MasterPricerTravelBoardSearch it could be implemented by providing a new array property fareFamilies in Amadeus\Client\RequestOptions\FareMasterPricerTbSearch - and then in Amadeus\Client\Struct\Fare\MasterPricerTravelBoardSearch we'd have to construct the correct message structure when the fareFamilies property is being used.

But that will only be step one I assume. There is an Amadeus Web Services Implementation Guide for Fare Families which explains the booking process: implementing a booking flow with Fare Families requires more than just adapting the MasterPricer call: See this screenshot from the guide:
farefamiliesscreen

So yeah, I can implement the MasterPricer changes, but it'll take me a little more time to implement all these extra messages. But if I know people are interested in using those messages, I don't mind adding support for them.

from amadeus-ws-client.

DerMika avatar DerMika commented on June 14, 2024

Can you check if you'll be needing all the messages above (or not), so that I can prioritize implementing them?

from amadeus-ws-client.

bimusiek avatar bimusiek commented on June 14, 2024

There are 2 things, what I am talking about I believe is parameterized Fare Families and it is only in MasterPricecTBSearch. What you posted is probably implementation for Airlines fare families.

Also, about Upsell option, I asked our Amadeus contact and they said it is still experimental and the wouldn't recommend it but rather using parameterized Fare Families.

When you send in request content that I posted before, it will return you just more specific recommendations and link them together.

So if you got L class and asked for fare families with parameters, it will return you other fares connected to this recommendation.

from amadeus-ws-client.

bimusiek avatar bimusiek commented on June 14, 2024

@DerMika Thanks for helping with it :) If we would get master search to support it, would be great!

from amadeus-ws-client.

DerMika avatar DerMika commented on June 14, 2024

Ok, thanks for explaining it to me, that saves me some time in researching :)

I'll try to implement the option in the MasterPricer call as soon as possible - probably some time this week.

from amadeus-ws-client.

bimusiek avatar bimusiek commented on June 14, 2024

If you would have some question about parameterized fare families, please shoot :) I read it already few times to see if we can achieve upselling with it 👍
And thanks again!

from amadeus-ws-client.

DerMika avatar DerMika commented on June 14, 2024

Hi @bimusiek

I've now added support for parametrized Fare Families. Please see the samples at https://github.com/amabnl/amadeus-ws-client/blob/master/docs/samples/masterpricertravelboard.rst#parametrized-fare-families

You can test it out by composer-installing dev-master until I release v.1.2.0.

If you encounter any issues with it, feel free to open a new issue!

from amadeus-ws-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.