Class Airline


  • public class Airline
    extends Object
    Airline
    • Constructor Detail

      • Airline

        public Airline()
    • Method Detail

      • agency

        public Airline agency​(Agency agency)
        agency
        Parameters:
        agency -
        Returns:
        the current Airline instance, 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 Airline instance, 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 Airline instance, 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 Airline instance, 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 Airline instance, 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 Airline instance, 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 Airline instance, 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 Airline instance, 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 Airline instance, allowing for method chaining
      • addLegsItem

        public Airline addLegsItem​(Leg legsItem)
      • getLegs

        public List<Leg> getLegs()
        Get legs
        Returns:
        legs
      • setLegs

        public void setLegs​(List<Leg> legs)
        legs
        Parameters:
        legs -
      • 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 Airline instance, 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 Airline instance, allowing for method chaining
      • addPassengersItem

        public Airline addPassengersItem​(Passenger passengersItem)
      • getPassengers

        public List<Passenger> getPassengers()
        Get passengers
        Returns:
        passengers
      • setPassengers

        public void setPassengers​(List<Passenger> passengers)
        passengers
        Parameters:
        passengers -
      • ticket

        public Airline ticket​(Ticket ticket)
        ticket
        Parameters:
        ticket -
        Returns:
        the current Airline instance, 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 Airline instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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