Skip to content

Commit

Permalink
fix: adds missing fare_type to OfferPassenger
Browse files Browse the repository at this point in the history
  • Loading branch information
igorp1 committed Sep 6, 2024
1 parent 2ba3bc8 commit 24d73b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/booking/Offers/OfferTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
Airline,
Airport,
CabinClass,
CreateOfferRequestPassengerFareType,
DuffelPassengerType,
FlightsConditions,
LoyaltyProgrammeAccount,
Expand Down Expand Up @@ -368,6 +369,12 @@ export interface OfferPassenger {
* Optionally providing one has been deprecated.
*/
id: string

/**
* The fare type of the passenger
* Example: "contract_bulk"
*/
fare_type: CreateOfferRequestPassengerFareType | null
}

export interface OfferSlice {
Expand Down
1 change: 1 addition & 0 deletions src/booking/Offers/mockOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export const mockOffer: Offer = {
airline_iata_code: 'BA',
},
],
fare_type: null,
},
],
passenger_identity_documents_required: false,
Expand Down
1 change: 1 addition & 0 deletions src/booking/Offers/mockPartialOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export const mockPartialOffer: Offer = {
airline_iata_code: 'BA',
},
],
fare_type: null,
},
],
passenger_identity_documents_required: false,
Expand Down

0 comments on commit 24d73b2

Please sign in to comment.