-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: added itinerary price metrics types
- Loading branch information
Showing
7 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/types/amadeus/namespaces/analytics/itinerary-price-metrics.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { ReturnedResponseSuccess } from "../../client/response"; | ||
import { CollectionMetaLink, CurrencyCode, Issue } from "../shared"; | ||
|
||
export interface ItineraryPriceMetric { | ||
type?: string; | ||
origin?: { | ||
iataCode?: string; | ||
}; | ||
destination?: { | ||
iataCode?: string; | ||
}; | ||
departureDate?: string; | ||
transportType?: "FLIGHT"; | ||
currencyCode?: CurrencyCode; | ||
oneWay?: boolean; | ||
priceMetrics?: { | ||
amount?: string; | ||
quartileRanking?: "MINIMUM" | "FIRST" | "MEDIUM" | "THIRD" | "MAXIMUM"; | ||
}[]; | ||
} | ||
|
||
// Types used in class | ||
export type ItineraryPriceMetricsParams = { | ||
originIataCode: string; | ||
destinationIataCode: string; | ||
departureDate: string; | ||
currencyCode?: CurrencyCode; | ||
oneWay?: boolean; | ||
}; | ||
|
||
export type ItineraryPriceMetricsResult = { | ||
warnings?: Issue[]; | ||
data: ItineraryPriceMetric[]; | ||
meta?: CollectionMetaLink; | ||
}; | ||
|
||
export type ItineraryPriceMetricsReturnedResponse = ReturnedResponseSuccess< | ||
ItineraryPriceMetricsResult, | ||
ItineraryPriceMetricsResult["data"] | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters