Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
11 changes: 11 additions & 0 deletions src/booking/Orders/OrdersTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions src/booking/Orders/mockOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const mockOrder: Order = {
cancellation: null,
slices: [
{
fare_brand_name: 'Economy Basic',
segments: [
{
passengers: [
Expand Down Expand Up @@ -300,6 +301,7 @@ export const mockOnHoldOrders: Order[] = [
tax_amount: '15.90',
slices: [
{
fare_brand_name: 'Economy Basic',
segments: [
{
passengers: [
Expand Down Expand Up @@ -480,6 +482,7 @@ export const mockOnHoldOrders: Order[] = [
tax_amount: '17.50',
slices: [
{
fare_brand_name: 'Economy Basic',
segments: [
{
passengers: [
Expand Down