import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AirlineLeg, AirlineLeg$Outbound } from "./airlineleg.js"; import { AirlinePassenger, AirlinePassenger$Outbound } from "./airlinepassenger.js"; export declare const TicketDeliveryMethod: { readonly Electronic: "electronic"; readonly Other: "other"; }; export type TicketDeliveryMethod = OpenEnum; /** * Information about an airline travel. */ export type Airline = { /** * The unique identifier of the reservation in the global distribution system. */ bookingCode?: string | null | undefined; /** * Indicates whether the cardholder is traveling. */ isCardholderTraveling?: boolean | null | undefined; /** * The address of the place/agency that issued the ticket. */ issuedAddress?: string | null | undefined; /** * The date that the ticket was last issued in the airline reservation system. */ issuedAt?: Date | null | undefined; /** * For airline aggregators, three-character IATA code of the airline issuing the ticket. */ issuingCarrierCode?: string | null | undefined; /** * For airline aggregators, name of the airline issuing the ticket. */ issuingCarrierName?: string | null | undefined; /** * For airline aggregators, two-character IATA code of the airline issuing the ticket. */ issuingIataDesignator?: string | null | undefined; /** * For airline aggregators, three-character ICAO code of the airline issuing the ticket. */ issuingIcaoCode?: string | null | undefined; /** * An array of separate trip segments. Each leg contains detailed itinerary information. */ legs?: Array | null | undefined; /** * The Passenger Name Record (PNR) in the airline reservation system. */ passengerNameRecord?: string | null | undefined; /** * An array of the travelling passengers. */ passengers?: Array | null | undefined; /** * The name of the reservation system. */ reservationSystem?: string | null | undefined; /** * Indicates whether the ticket is restricted (refundable). */ restrictedTicket?: boolean | null | undefined; /** * The delivery method of the ticket. */ ticketDeliveryMethod?: TicketDeliveryMethod | null | undefined; /** * The airline's unique ticket number. */ ticketNumber?: string | null | undefined; /** * The IATA travel agency code. */ travelAgencyCode?: string | null | undefined; /** * The reference number of the invoice that was issued by the travel agency. */ travelAgencyInvoiceNumber?: string | null | undefined; /** * The name of the travel agency. */ travelAgencyName?: string | null | undefined; /** * The name of the travel agency plan. */ travelAgencyPlanName?: string | null | undefined; }; /** @internal */ export declare const TicketDeliveryMethod$inboundSchema: z.ZodType; /** @internal */ export declare const TicketDeliveryMethod$outboundSchema: z.ZodType; /** @internal */ export declare const Airline$inboundSchema: z.ZodType; /** @internal */ export type Airline$Outbound = { booking_code?: string | null | undefined; is_cardholder_traveling?: boolean | null | undefined; issued_address?: string | null | undefined; issued_at?: string | null | undefined; issuing_carrier_code?: string | null | undefined; issuing_carrier_name?: string | null | undefined; issuing_iata_designator?: string | null | undefined; issuing_icao_code?: string | null | undefined; legs?: Array | null | undefined; passenger_name_record?: string | null | undefined; passengers?: Array | null | undefined; reservation_system?: string | null | undefined; restricted_ticket?: boolean | null | undefined; ticket_delivery_method?: string | null | undefined; ticket_number?: string | null | undefined; travel_agency_code?: string | null | undefined; travel_agency_invoice_number?: string | null | undefined; travel_agency_name?: string | null | undefined; travel_agency_plan_name?: string | null | undefined; }; /** @internal */ export declare const Airline$outboundSchema: z.ZodType; export declare function airlineToJSON(airline: Airline): string; export declare function airlineFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=airline.d.ts.map