Skip to content

Commit e544570

Browse files
authored
Merge pull request #1087 from duffelhq/igorp1/tsp-710-include-fare-brands-on-dashboard-v2-order-view
chore: adds missing type
2 parents e59a240 + d58c6d8 commit e544570

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/booking/AirlineInitiatedChanges/mockAirlineInitiatedChanges.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const mockAirlineInitiatedChange: AirlineInitiatedChange = {
55
travel_agent_ticket: null,
66
removed: [
77
{
8+
fare_brand_name: 'Economy Basic',
89
conditions: {
910
change_before_departure: {
1011
penalty_currency: 'GBP',
@@ -140,6 +141,7 @@ export const mockAirlineInitiatedChange: AirlineInitiatedChange = {
140141
available_actions: ['accept', 'cancel', 'change'],
141142
added: [
142143
{
144+
fare_brand_name: 'Economy Basic',
143145
conditions: {
144146
change_before_departure: {
145147
penalty_currency: 'GBP',

src/booking/Orders/OrdersTypes.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,17 @@ export interface OrderSlice {
379379
* The segments - that is, specific flights - that the airline is offering to get the passengers from the origin to the destination
380380
*/
381381
segments: OrderSliceSegment[]
382+
383+
/**
384+
* The name of the fare brand associated with this slice.
385+
* A fare brand specifies the travel conditions you get on your slice made available
386+
* by the airline. e.g. a British Airways Economy Basic fare will only include a hand baggage allowance.
387+
* It is worth noting that the fare brand names are defined by the airlines themselves and therefore they
388+
* are subject to change without any prior notice. We're in the process of adding support for fare_brand_name across
389+
* all our airlines, so for now, this field may be null in some offers.
390+
* This will become a non-nullable attribute in the near future.
391+
*/
392+
fare_brand_name: string | null
382393
}
383394

384395
export interface OrderPaymentStatus {

src/booking/Orders/mockOrders.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const mockOrder: Order = {
5757
cancellation: null,
5858
slices: [
5959
{
60+
fare_brand_name: 'Economy Basic',
6061
segments: [
6162
{
6263
passengers: [
@@ -300,6 +301,7 @@ export const mockOnHoldOrders: Order[] = [
300301
tax_amount: '15.90',
301302
slices: [
302303
{
304+
fare_brand_name: 'Economy Basic',
303305
segments: [
304306
{
305307
passengers: [
@@ -480,6 +482,7 @@ export const mockOnHoldOrders: Order[] = [
480482
tax_amount: '17.50',
481483
slices: [
482484
{
485+
fare_brand_name: 'Economy Basic',
483486
segments: [
484487
{
485488
passengers: [

0 commit comments

Comments
 (0)