Skip to content

Commit 2866370

Browse files
authored
Merge pull request #659 from duffelhq/no-jira-address-issues
[No Jira] Address a couple of issues
2 parents c65db0b + 23a5949 commit 2866370

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/booking/OfferRequests/OfferRequestsTypes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ export interface CreateOfferRequest {
158158
* One-way journeys can be expressed using one slice, whereas return trips will need two.
159159
*/
160160
slices: Omit<OfferRequestSlice, 'origin_type' | 'destination_type'>[]
161+
162+
/**
163+
* 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.
165+
*/
166+
max_connections?: 0 | 1 | 2
161167
}
162168

163169
export interface CreateOfferRequestQueryParameters {

src/booking/OfferRequests/mockOfferRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const mockCreateOfferRequest: CreateOfferRequest = {
1818
},
1919
],
2020
cabin_class: 'economy',
21+
max_connections: 1,
2122
}
2223

2324
export const mockOfferRequest: OfferRequest = {

src/booking/Offers/OfferTypes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Airline,
1010
Airport,
1111
PaginationMeta,
12+
DuffelPassengerType,
1213
} from '../../types'
1314

1415
/**
@@ -250,7 +251,7 @@ export interface OfferPassenger {
250251
/**
251252
* The type of the passenger.
252253
*/
253-
type?: 'adult'
254+
type?: DuffelPassengerType
254255

255256
/**
256257
* The passenger's family name. Only `space`, `-`, `'`, and letters from the `ASCII`, `Latin-1 Supplement` and `Latin

0 commit comments

Comments
 (0)