You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor(booking): add CreateOfferRequestPassenger interface
* feat(booking): add private_fares field to CreateOfferRequest interface
* feat(booking): add fare_type field to CreateOfferRequestPassenger interface
* feat(booking): add private_fares field to Offer interface
* fix(booking): update field types to be optional
* test(booking): add test for private fares
// In this case, `offers` won't be in the response, but the offer request's id will still be returned and can be used with the List Offers endpoint to retrieve the offers.
* The cabin that the passengers want to travel in.
147
258
*/
148
259
cabin_class?: CabinClass
149
260
150
261
/**
151
-
* The passengers who want to travel.
152
-
* If you specify an age for a passenger, the type may differ for the same passenger in different offers due to airline's different rules. e.g. one airline may treat a 14 year old as an adult, and another as a young adult.
262
+
* The maximum number of connections within any slice of the offer. For
263
+
* example 0 means a direct flight which will have a single segment within
264
+
* each slice and 1 means a maximum of two segments within each slice of the
265
+
* offer.
153
266
*/
154
-
passengers: Omit<OfferRequestPassenger,'id'>[]
267
+
max_connections?: 0|1|2
155
268
156
269
/**
157
-
* The [slices](https://duffel.com/docs/api/overview/key-principles) that make up this offer request.
158
-
* One-way journeys can be expressed using one slice, whereas return trips will need two.
270
+
* The passengers who want to travel. If you specify an `age` for a passenger,
271
+
* the `type` may differ for the same passenger in different offers due to
272
+
* airline's different rules. E.g. one airline may treat a 14 year old as an
273
+
* adult, and another as a young adult. You may only specify an `age` or a
* The maximum number of connections within any slice of the offer.
164
-
* For example 0 means a direct flight which will have a single segment within each slice and 1 means a maximum of two segments within each slice of the offer.
279
+
* The private fare codes for this Offer Request. You can pass in multiple
280
+
* airlines with their specific private fare codes. The key is the airline's
281
+
* IATA code that provided the private fare code. The `corporate_code` is
282
+
* provided to you by the airline and the `tracking_reference` is to identify
0 commit comments