Air

public final class Air implements TravelProduct

Parameters

departureTime

Local date and time of departure from original departure location, in ISO-8601 date and time format yyyy-MM-ddTHH:mm:ss.SSSZ.

arrivalTime

Local date and time of arrival to final destination location, in ISO-8601 date and time format yyyy-MM-ddTHH:mm:ss.SSSZ.

airSegments

Additional airline and flight details for each of the trip segments.

flightType

Identifies the type of air trip based on the air destinations.

passengerNameRecord

Airline booking confirmation code for the trip.

globalDistributionSystemType

Associated with Passenger Name Record (PNR).

Constructors

Link copied to clipboard
public Air Air(Amount price, String inventoryType, TravelProduct.InventorySource inventorySource, OffsetDateTime departureTime, OffsetDateTime arrivalTime, List<AirSegment> airSegments, List<String> travelersReferences, Boolean payLater, Boolean refundable, Air.FlightType flightType, String passengerNameRecord, String globalDistributionSystemType)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum FlightType extends Enum<Air.FlightType>

Identifies the type of air trip based on the air destinations. Values: ROUNDTRIP,ONEWAY,MULTIPLE_DESTINATION

Properties

Link copied to clipboard
@Size(min = 1, max = 30)
@NotNull()
@Valid()
private final List<AirSegment> airSegments
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private final Air.FlightType flightType
Link copied to clipboard
@Length(max = 100)
@Valid()
private final String globalDistributionSystemType
Link copied to clipboard
Link copied to clipboard
@Length(max = 30)
@NotNull()
@Valid()
private final String inventoryType
Link copied to clipboard
@Length(max = 100)
@Valid()
private final String passengerNameRecord
Link copied to clipboard
@Valid()
private final Boolean payLater
Link copied to clipboard
@NotNull()
@Valid()
private final Amount price
Link copied to clipboard
@Valid()
private final Boolean refundable
Link copied to clipboard
@Size(min = 1, max = 40)
@Valid()
private final List<String> travelersReferences
Link copied to clipboard
private final TravelProductType type

Functions

Link copied to clipboard
public final static Air.Builder builder()
Link copied to clipboard
public final List<AirSegment> getAirSegments()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Amount getPrice()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Air.Builder toBuilder()