Skip to content

Commit

Permalink
feat(booking): add stops to OfferSliceSegment (#702)
Browse files Browse the repository at this point in the history
Marking this optional for the time being as this type is shared with `Order` but we haven't implemented this field for `Order` just yet.
  • Loading branch information
go1t authored Mar 20, 2023
1 parent 41dd5bf commit 403f139
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/booking/Offers/OfferTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,38 @@ export interface OfferSliceSegment {
* Additional segment-specific information about the passengers included in the offer (e.g. their baggage allowance and the cabin class they will be travelling in)
*/
passengers: OfferSliceSegmentPassenger[]

/**
* Additional segment-specific information about the stops, if any, included in the segment
*/
stops?: OfferSliceSegmentStop[]
}

export interface OfferSliceSegmentStop {
/**
* Duffel's unique identifier for the Stop
*/
id: string

/**
* The airport at which the Stop happens
*/
airport: Airport

/**
* The ISO 8601 datetime at which the Stop is scheduled to arrive, in the airport's timezone (see destination.timezone)
*/
arrivingAt: string

/**
* The ISO 8601 datetime at which the Stop is scheduled to depart, in the airport's timezone (see origin.timezone)
*/
departingAt: string

/**
* The duration of the Stop, represented as a ISO 8601 duration
*/
duration: string
}

export interface OfferSliceSegmentPassenger {
Expand Down

0 comments on commit 403f139

Please sign in to comment.