Comments (3)
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.
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.
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)
- CardPayment Component HOT 9
- suggestions function not working HOT 11
- slack test issue
- Suggestion: Get flight fare rules using fare basis code HOT 2
- Rate Limiting HOT 4
- Create Duffel App HOT 1
- `max_connections` is missing from type `CreateOfferRequest` HOT 1
- Should `OfferRequestSlice` `origin` and `destination` be type `Place`? HOT 2
- `OfferPassenger`` type` should be `DuffelPassengerType` not `string` HOT 1
- Missing key in OfferSliceSegment type HOT 2
- return_offers question HOT 2
- Undefined booking response, no errors returned HOT 18
- Reporting a vulnerability HOT 1
- Typescript Types are not aligned with API docs HOT 2
- Version 2.5.2 : Cannot find module 'Client' or its corresponding type declarations HOT 3
- Version 2.5.3: Cannot find module 'types' or its corresponding type declarations. HOT 4
- Type mismatch between documentation and Typescript types HOT 2
- import{URL as s,URLSearchParams as e}from"url" HOT 3
- Issue getting x-request-id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duffel-api-javascript.