Insights

public final class Insights

Container for insights response.

Parameters

cheapestOfferId

Container for insights response.

averageCheapestPrice
medianCheapestPrice
searchComparisonCount

Number of searches compared to build the insights information for the given search.

percentageOfFaresHigher

Percentage value that defines where the cheapest fare of the current search result stand comparing the prices for similar searches for nearby dates.

priceTrend

Shows how the price trends

pastPerDayMedianCheapestPrices

List of median of cheapest prices for the specifc search criteria for last 21 days. List will be in the order starting from 21 days ago till yesterday.

message

Shows a custom message in the respective language corresponding to the locale requested.

Constructors

Link copied to clipboard
public Insights Insights(String cheapestOfferId, FlightsV3Money averageCheapestPrice, FlightsV3Money medianCheapestPrice, Integer searchComparisonCount, Integer percentageOfFaresHigher, Insights.PriceTrend priceTrend, List<String> pastPerDayMedianCheapestPrices, String message)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum PriceTrend extends Enum<Insights.PriceTrend>

Shows how the price trends Values: TRENDING_UP,TRENDING_DOWN,NEUTRAL

Properties

Link copied to clipboard
@NotNull()
@Valid()
private final FlightsV3Money averageCheapestPrice
Link copied to clipboard
@NotNull()
@Valid()
private final String cheapestOfferId
Link copied to clipboard
@NotNull()
@Valid()
private final FlightsV3Money medianCheapestPrice
Link copied to clipboard
@Valid()
private final String message
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public final static Insights.Builder builder()
Link copied to clipboard
Link copied to clipboard
public final String getCheapestOfferId()
Link copied to clipboard
Link copied to clipboard
public final String getMessage()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Insights.Builder toBuilder()