diff --git a/src/booking/AirlineInitiatedChanges/mockAirlineInitiatedChanges.ts b/src/booking/AirlineInitiatedChanges/mockAirlineInitiatedChanges.ts index 657eadea..0ed452e9 100644 --- a/src/booking/AirlineInitiatedChanges/mockAirlineInitiatedChanges.ts +++ b/src/booking/AirlineInitiatedChanges/mockAirlineInitiatedChanges.ts @@ -5,6 +5,7 @@ export const mockAirlineInitiatedChange: AirlineInitiatedChange = { travel_agent_ticket: null, removed: [ { + fare_brand_name: 'Economy Basic', conditions: { change_before_departure: { penalty_currency: 'GBP', @@ -140,6 +141,7 @@ export const mockAirlineInitiatedChange: AirlineInitiatedChange = { available_actions: ['accept', 'cancel', 'change'], added: [ { + fare_brand_name: 'Economy Basic', conditions: { change_before_departure: { penalty_currency: 'GBP', diff --git a/src/booking/Orders/OrdersTypes.ts b/src/booking/Orders/OrdersTypes.ts index 29d13a06..992c3bbf 100644 --- a/src/booking/Orders/OrdersTypes.ts +++ b/src/booking/Orders/OrdersTypes.ts @@ -379,6 +379,17 @@ export interface OrderSlice { * The segments - that is, specific flights - that the airline is offering to get the passengers from the origin to the destination */ segments: OrderSliceSegment[] + + /** + * The name of the fare brand associated with this slice. + * A fare brand specifies the travel conditions you get on your slice made available + * by the airline. e.g. a British Airways Economy Basic fare will only include a hand baggage allowance. + * It is worth noting that the fare brand names are defined by the airlines themselves and therefore they + * are subject to change without any prior notice. We're in the process of adding support for fare_brand_name across + * all our airlines, so for now, this field may be null in some offers. + * This will become a non-nullable attribute in the near future. + */ + fare_brand_name: string | null } export interface OrderPaymentStatus { diff --git a/src/booking/Orders/mockOrders.ts b/src/booking/Orders/mockOrders.ts index 9a8ce932..49ec6c1e 100644 --- a/src/booking/Orders/mockOrders.ts +++ b/src/booking/Orders/mockOrders.ts @@ -57,6 +57,7 @@ export const mockOrder: Order = { cancellation: null, slices: [ { + fare_brand_name: 'Economy Basic', segments: [ { passengers: [ @@ -300,6 +301,7 @@ export const mockOnHoldOrders: Order[] = [ tax_amount: '15.90', slices: [ { + fare_brand_name: 'Economy Basic', segments: [ { passengers: [ @@ -480,6 +482,7 @@ export const mockOnHoldOrders: Order[] = [ tax_amount: '17.50', slices: [ { + fare_brand_name: 'Economy Basic', segments: [ { passengers: [