Package com.adyen.model.checkout
Class Airline
- java.lang.Object
-
- com.adyen.model.checkout.Airline
-
public class Airline extends Object
Airline
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AGENCYstatic StringJSON_PROPERTY_BOARDING_FEEstatic StringJSON_PROPERTY_CODEstatic StringJSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEMstatic StringJSON_PROPERTY_CUSTOMER_REFERENCE_NUMBERstatic StringJSON_PROPERTY_DESIGNATOR_CODEstatic StringJSON_PROPERTY_DOCUMENT_TYPEstatic StringJSON_PROPERTY_FLIGHT_DATEstatic StringJSON_PROPERTY_LEGSstatic StringJSON_PROPERTY_PASSENGER_NAMEstatic StringJSON_PROPERTY_PASSENGERSstatic StringJSON_PROPERTY_TICKETstatic StringJSON_PROPERTY_TRAVEL_AGENCY
-
Constructor Summary
Constructors Constructor Description Airline()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AirlineaddLegsItem(Leg legsItem)AirlineaddPassengersItem(Passenger passengersItem)Airlineagency(Agency agency)agencyAirlineboardingFee(Long boardingFee)The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 charactersAirlinecode(String code)The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.AirlinecomputerizedReservationSystem(String computerizedReservationSystem)The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 charactersAirlinecustomerReferenceNumber(String customerReferenceNumber)The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.AirlinedesignatorCode(String designatorCode)The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.AirlinedocumentType(String documentType)A code that identifies the type of item bought.booleanequals(Object o)Return true if this Airline object is equal to o.AirlineflightDate(OffsetDateTime flightDate)The flight departure date.static AirlinefromJson(String jsonString)Create an instance of Airline given an JSON stringAgencygetAgency()Get agencyLonggetBoardingFee()The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 charactersStringgetCode()The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.StringgetComputerizedReservationSystem()The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 charactersStringgetCustomerReferenceNumber()The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.StringgetDesignatorCode()The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.StringgetDocumentType()A code that identifies the type of item bought.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.OffsetDateTimegetFlightDate()The flight departure date.List<Leg>getLegs()Get legsStringgetPassengerName()The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.List<Passenger>getPassengers()Get passengersTicketgetTicket()Get ticketTravelAgencygetTravelAgency()Get travelAgencyinthashCode()AirlineincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.Airlinelegs(List<Leg> legs)legsAirlinepassengerName(String passengerName)The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.Airlinepassengers(List<Passenger> passengers)passengersvoidsetAgency(Agency agency)agencyvoidsetBoardingFee(Long boardingFee)The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 charactersvoidsetCode(String code)The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.voidsetComputerizedReservationSystem(String computerizedReservationSystem)The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 charactersvoidsetCustomerReferenceNumber(String customerReferenceNumber)The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.voidsetDesignatorCode(String designatorCode)The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.voidsetDocumentType(String documentType)A code that identifies the type of item bought.voidsetFlightDate(OffsetDateTime flightDate)The flight departure date.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLegs(List<Leg> legs)legsvoidsetPassengerName(String passengerName)The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.voidsetPassengers(List<Passenger> passengers)passengersvoidsetTicket(Ticket ticket)ticketvoidsetTravelAgency(TravelAgency travelAgency)travelAgencyAirlineticket(Ticket ticket)ticketStringtoJson()Convert an instance of Airline to an JSON stringStringtoString()AirlinetravelAgency(TravelAgency travelAgency)travelAgency
-
-
-
Field Detail
-
JSON_PROPERTY_AGENCY
public static final String JSON_PROPERTY_AGENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BOARDING_FEE
public static final String JSON_PROPERTY_BOARDING_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CODE
public static final String JSON_PROPERTY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM
public static final String JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER
public static final String JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESIGNATOR_CODE
public static final String JSON_PROPERTY_DESIGNATOR_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOCUMENT_TYPE
public static final String JSON_PROPERTY_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FLIGHT_DATE
public static final String JSON_PROPERTY_FLIGHT_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEGS
public static final String JSON_PROPERTY_LEGS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSENGER_NAME
public static final String JSON_PROPERTY_PASSENGER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSENGERS
public static final String JSON_PROPERTY_PASSENGERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TICKET
public static final String JSON_PROPERTY_TICKET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRAVEL_AGENCY
public static final String JSON_PROPERTY_TRAVEL_AGENCY
- See Also:
- Constant Field Values
-
-
Method Detail
-
agency
public Airline agency(Agency agency)
agency- Parameters:
agency-- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getAgency
public Agency getAgency()
Get agency- Returns:
- agency
-
setAgency
public void setAgency(Agency agency)
agency- Parameters:
agency-
-
boardingFee
public Airline boardingFee(Long boardingFee)
The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters- Parameters:
boardingFee- The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getBoardingFee
public Long getBoardingFee()
The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters- Returns:
- boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters
-
setBoardingFee
public void setBoardingFee(Long boardingFee)
The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters- Parameters:
boardingFee- The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters
-
code
public Airline code(String code)
The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Parameters:
code- The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getCode
public String getCode()
The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Returns:
- code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.
-
setCode
public void setCode(String code)
The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Parameters:
code- The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.
-
computerizedReservationSystem
public Airline computerizedReservationSystem(String computerizedReservationSystem)
The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters- Parameters:
computerizedReservationSystem- The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getComputerizedReservationSystem
public String getComputerizedReservationSystem()
The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters- Returns:
- computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters
-
setComputerizedReservationSystem
public void setComputerizedReservationSystem(String computerizedReservationSystem)
The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters- Parameters:
computerizedReservationSystem- The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters
-
customerReferenceNumber
public Airline customerReferenceNumber(String customerReferenceNumber)
The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.- Parameters:
customerReferenceNumber- The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getCustomerReferenceNumber
public String getCustomerReferenceNumber()
The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.- Returns:
- customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.
-
setCustomerReferenceNumber
public void setCustomerReferenceNumber(String customerReferenceNumber)
The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.- Parameters:
customerReferenceNumber- The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces.
-
designatorCode
public Airline designatorCode(String designatorCode)
The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.- Parameters:
designatorCode- The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getDesignatorCode
public String getDesignatorCode()
The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.- Returns:
- designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.
-
setDesignatorCode
public void setDesignatorCode(String designatorCode)
The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.- Parameters:
designatorCode- The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces.
-
documentType
public Airline documentType(String documentType)
A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters- Parameters:
documentType- A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getDocumentType
public String getDocumentType()
A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters- Returns:
- documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters
-
setDocumentType
public void setDocumentType(String documentType)
A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters- Parameters:
documentType- A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters
-
flightDate
public Airline flightDate(OffsetDateTime flightDate)
The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters- Parameters:
flightDate- The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getFlightDate
public OffsetDateTime getFlightDate()
The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters- Returns:
- flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters
-
setFlightDate
public void setFlightDate(OffsetDateTime flightDate)
The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters- Parameters:
flightDate- The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters
-
legs
public Airline legs(List<Leg> legs)
legs- Parameters:
legs-- Returns:
- the current
Airlineinstance, allowing for method chaining
-
passengerName
public Airline passengerName(String passengerName)
The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.- Parameters:
passengerName- The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getPassengerName
public String getPassengerName()
The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.- Returns:
- passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.
-
setPassengerName
public void setPassengerName(String passengerName)
The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.- Parameters:
passengerName- The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros.
-
passengers
public Airline passengers(List<Passenger> passengers)
passengers- Parameters:
passengers-- Returns:
- the current
Airlineinstance, allowing for method chaining
-
setPassengers
public void setPassengers(List<Passenger> passengers)
passengers- Parameters:
passengers-
-
ticket
public Airline ticket(Ticket ticket)
ticket- Parameters:
ticket-- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getTicket
public Ticket getTicket()
Get ticket- Returns:
- ticket
-
setTicket
public void setTicket(Ticket ticket)
ticket- Parameters:
ticket-
-
travelAgency
public Airline travelAgency(TravelAgency travelAgency)
travelAgency- Parameters:
travelAgency-- Returns:
- the current
Airlineinstance, allowing for method chaining
-
getTravelAgency
public TravelAgency getTravelAgency()
Get travelAgency- Returns:
- travelAgency
-
setTravelAgency
public void setTravelAgency(TravelAgency travelAgency)
travelAgency- Parameters:
travelAgency-
-
includeNullValues
public Airline includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this Airline object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static Airline fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Airline given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Airline
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Airline
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Airline to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-