Class FlightLegDetails
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.requests.FlightLegDetails
-
public final class FlightLegDetails extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlightLegDetails.FlightLegDetailsBuilder
-
Constructor Summary
Constructors Constructor Description FlightLegDetails()FlightLegDetails(java.lang.String flightNumber, java.lang.String carrierCode, java.lang.String classOfTravelling, java.lang.String departureAirport, java.time.Instant departureDate, java.lang.String departureTime, java.lang.String arrivalAirport, java.lang.String stopOverCode, java.lang.String fareBasisCode)Creates a newFlightLegDetailsinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlightLegDetails.FlightLegDetailsBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetArrivalAirport()The IATA 3-letter airport code of the destination airport.java.lang.StringgetCarrierCode()The IATA 2-letter accounting code (PAX) that identifies the carrier.java.lang.StringgetClassOfTravelling()A one-letter travel class identifier.java.lang.StringgetDepartureAirport()The IATA three-letter airport code of the departure airport.java.time.InstantgetDepartureDate()The date of the scheduled take off.java.lang.StringgetDepartureTime()The time of the scheduled take off.java.lang.StringgetFareBasisCode()The fare basis code, alphanumeric.java.lang.StringgetFlightNumber()The flight identifier.java.lang.StringgetStopOverCode()A one-letter code that indicates whether the passenger is entitled to make a stopover.inthashCode()voidsetArrivalAirport(java.lang.String arrivalAirport)The IATA 3-letter airport code of the destination airport.voidsetCarrierCode(java.lang.String carrierCode)The IATA 2-letter accounting code (PAX) that identifies the carrier.voidsetClassOfTravelling(java.lang.String classOfTravelling)A one-letter travel class identifier.voidsetDepartureAirport(java.lang.String departureAirport)The IATA three-letter airport code of the departure airport.voidsetDepartureDate(java.time.Instant departureDate)The date of the scheduled take off.voidsetDepartureTime(java.lang.String departureTime)The time of the scheduled take off.voidsetFareBasisCode(java.lang.String fareBasisCode)The fare basis code, alphanumeric.voidsetFlightNumber(java.lang.String flightNumber)The flight identifier.voidsetStopOverCode(java.lang.String stopOverCode)A one-letter code that indicates whether the passenger is entitled to make a stopover.java.lang.StringtoString()
-
-
-
Constructor Detail
-
FlightLegDetails
public FlightLegDetails()
-
FlightLegDetails
public FlightLegDetails(java.lang.String flightNumber, java.lang.String carrierCode, java.lang.String classOfTravelling, java.lang.String departureAirport, java.time.Instant departureDate, java.lang.String departureTime, java.lang.String arrivalAirport, java.lang.String stopOverCode, java.lang.String fareBasisCode)Creates a newFlightLegDetailsinstance.- Parameters:
flightNumber- The flight identifier.carrierCode- The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details.classOfTravelling- A one-letter travel class identifier. The following are common: F = First class, J = Business class, Y = Economy class, W = Premium economy.departureAirport- The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details.departureDate- The date of the scheduled take off.departureTime- The time of the scheduled take off.arrivalAirport- The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details.stopOverCode- A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not.fareBasisCode- The fare basis code, alphanumeric.
-
-
Method Detail
-
builder
public static FlightLegDetails.FlightLegDetailsBuilder builder()
-
getFlightNumber
public java.lang.String getFlightNumber()
The flight identifier.
-
getCarrierCode
public java.lang.String getCarrierCode()
The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details.
-
getClassOfTravelling
public java.lang.String getClassOfTravelling()
A one-letter travel class identifier. The following are common: F = First class, J = Business class, Y = Economy class, W = Premium economy.
-
getDepartureAirport
public java.lang.String getDepartureAirport()
The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details.
-
getDepartureDate
public java.time.Instant getDepartureDate()
The date of the scheduled take off.
-
getDepartureTime
public java.lang.String getDepartureTime()
The time of the scheduled take off.
-
getArrivalAirport
public java.lang.String getArrivalAirport()
The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details.
-
getStopOverCode
public java.lang.String getStopOverCode()
A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not.
-
getFareBasisCode
public java.lang.String getFareBasisCode()
The fare basis code, alphanumeric.
-
setFlightNumber
public void setFlightNumber(java.lang.String flightNumber)
The flight identifier.
-
setCarrierCode
public void setCarrierCode(java.lang.String carrierCode)
The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details.
-
setClassOfTravelling
public void setClassOfTravelling(java.lang.String classOfTravelling)
A one-letter travel class identifier. The following are common: F = First class, J = Business class, Y = Economy class, W = Premium economy.
-
setDepartureAirport
public void setDepartureAirport(java.lang.String departureAirport)
The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details.
-
setDepartureDate
public void setDepartureDate(java.time.Instant departureDate)
The date of the scheduled take off.
-
setDepartureTime
public void setDepartureTime(java.lang.String departureTime)
The time of the scheduled take off.
-
setArrivalAirport
public void setArrivalAirport(java.lang.String arrivalAirport)
The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details.
-
setStopOverCode
public void setStopOverCode(java.lang.String stopOverCode)
A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not.
-
setFareBasisCode
public void setFareBasisCode(java.lang.String fareBasisCode)
The fare basis code, alphanumeric.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-