Coder Social home page Coder Social logo

Comments (3)

dnabeast avatar dnabeast commented on August 16, 2024

I'm not sure if this is important but it's using MultiAvailability16.
The messageBody has a qualifiedConnectionOption which is an empty array.
It's also has a connectionOption that has my connection details within.
I'm wondering if the connection options are supposed to be contained with the qualifiedConnectionOption at that point.

from amadeus-ws-client.

dnabeast avatar dnabeast commented on August 16, 2024

I think there might be a bug in the way the initial multiple excluded connections were implemented.
When entering included connections it seems it understands a first connection and a second one. Meaning that you want this order of connections (so you don't double back)

The test for excluded connections seems to imply that the default behaviour is to exclude the first location followed by any optional second location.

This does not seem to exclude a second location unless the first location comes first.

In my particular problem I wanted flights to only connect via AKL in New Zealand. I had to exclude all the other airports.

This can be done in XML but what it required was a list of first locations.

I've written a hack for myself to use but I'm thinking about doing a pull request to patch this. The only problem is that It will required a new way of entering first locations and/or second ones. Obviously backwards compatibility is important but with MultiAvailability16 I think it doesn't work anyway.

from amadeus-ws-client.

DerMika avatar DerMika commented on August 16, 2024

Hello,

I would suggest adding one or more new properties to be used solely by MultiAvailability 16+ messages, and keep the old behaviour for older messages (unless someone there are issues with those too).

I assume you've seen the examples in the code of how the library can deal with differences in message versions? (example: https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/RequestCreator/Converter/Fare/PricePNRWithBookingClassConv.php#L44)

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.