Giter VIP home page Giter VIP logo

Comments (3)

igorp1 avatar igorp1 commented on August 21, 2024 1

Hey @godoyLeonardo! Sorry for the delayed response here. That's a tough one, thanks for sharing that context! We'd need to dig pretty deep to see what ID caused the mismatch. They will change for every offer and they are specific the combination of passenger and segment. Could I recumbent you to try out using our ancillaries component to generate your order creation payload?

from duffel-api-javascript.

godoyLeonardo avatar godoyLeonardo commented on August 21, 2024

Hey @godoyLeonardo! Sorry for the delayed response here. That's a tough one, thanks for sharing that context! We'd need to dig pretty deep to see what ID caused the mismatch. They will change for every offer and they are specific the combination of passenger and segment. Could I recumbent you to try out using our ancillaries component to generate your order creation payload?

Hey! no worries.

At the moment the bug is apparently gone, it only lasted a couple of days and disappeared after I reported it through Slack.

On the other hand, the component looks quite useful, at least for the seat selection part. Is it expected to be used for other services in the future?

And as far as baggage is concerned, we are already managing it through our own interface, so there are no major problems in that aspect. The only "detail" that I have not been told if you have solved, is the possibility of combining different baggage quantities and services in the same order for the same passenger. This was not possible a few weeks ago as I reported on issue #704.

from duffel-api-javascript.

igorp1 avatar igorp1 commented on August 21, 2024

At the moment the bug is apparently gone, it only lasted a couple of days and disappeared after I reported it through Slack.

I'm glad it's fixed! And yep, feel free to reach out on Slack too, if you ever get blocked on things.

Is it expected to be used for other services in the future?

Absolutely! We've set it up in a way that makes it super easy to add new ancillaries. We'll be adding our protection product to it very soon. And to opt into it, all you need to. do it specify which services you'd like to display (note the services attribute).

is the possibility of combining different baggage quantities and services in the same order for the same passenger.

There are constraints around service quantities. You'll find that each of the offer.available_services includes a maximum_quantity.Also note that services are specific to particular segments and passengers, that's given by the lists segment_ids and passenger_ids. Finally, baggage services will have types, you cannot include 2 services of the same type for a given passenger/segment. So as long as these constraints are respected, you should be able to create an order with any combination of services. Does that make sense? For example...

If an offer has the following services:
 
ase_1 -> 15kg checked
ase_2 -> 23kg checked
ase_3 -> 10kg  carryon

The only valid combinations are: 

[], [ase_1], [ase_2], [ase_3], [ase1, ase_3], [ase_2, ase_3]

I'm gonna close this one up for now. But, of course, please let us know here or on slack if there's anything else we can answer or help with :)

from duffel-api-javascript.

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.