Documentation ¶
Overview ¶
Package flights is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFlightsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFlightsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FlightsClient) error
- func RegisterFlightsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFlightsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FlightsServer) error
- func RegisterFlightsServer(s grpc.ServiceRegistrar, srv FlightsServer)
- type AirportCode
- type Authority
- type BoardingPassRecord
- func (*BoardingPassRecord) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassRecord) GetAdditionalDataItems() *io.DataItems
- func (x *BoardingPassRecord) GetBarcodeAdditionalData() string
- func (x *BoardingPassRecord) GetBarcodePayload() string
- func (x *BoardingPassRecord) GetBeaconMessages() []*io.Beacon
- func (x *BoardingPassRecord) GetBoardingGroup() string
- func (x *BoardingPassRecord) GetBoardingPoint() string
- func (x *BoardingPassRecord) GetBoardingPosition() string
- func (x *BoardingPassRecord) GetCarrierCode() string
- func (x *BoardingPassRecord) GetCarryOnAllowance() string
- func (x *BoardingPassRecord) GetClass() string
- func (x *BoardingPassRecord) GetCompartmentCode() cabincodes.CompartmentCode
- func (x *BoardingPassRecord) GetConditionalItems() *ConditionalItems
- func (x *BoardingPassRecord) GetDepartureDate() *io.Date
- func (x *BoardingPassRecord) GetDeplaningPoint() string
- func (x *BoardingPassRecord) GetFlightNumber() string
- func (x *BoardingPassRecord) GetFooterImage() string
- func (x *BoardingPassRecord) GetFreeBaggageAllowance() string
- func (x *BoardingPassRecord) GetId() string
- func (x *BoardingPassRecord) GetInfantPassId() string
- func (x *BoardingPassRecord) GetLinks() []*io.Link
- func (x *BoardingPassRecord) GetLocationMessages() []*io.GPSLocation
- func (x *BoardingPassRecord) GetMetadata() *io.Metadata
- func (x *BoardingPassRecord) GetOperatingCarrierPNR() string
- func (x *BoardingPassRecord) GetOsi() string
- func (x *BoardingPassRecord) GetPassenger() *Passenger
- func (x *BoardingPassRecord) GetPassengerStatus() PassengerStatus
- func (x *BoardingPassRecord) GetPrivilegeImage() string
- func (x *BoardingPassRecord) GetRelatedPNRs() []string
- func (x *BoardingPassRecord) GetRemarks() string
- func (x *BoardingPassRecord) GetSeatNumber() string
- func (x *BoardingPassRecord) GetSecurityImage() string
- func (x *BoardingPassRecord) GetSequenceNumber() int32
- func (x *BoardingPassRecord) GetSsrCodes() []string
- func (x *BoardingPassRecord) GetTicketLeg() int32
- func (x *BoardingPassRecord) GetTicketNumber() string
- func (*BoardingPassRecord) ProtoMessage()
- func (x *BoardingPassRecord) ProtoReflect() protoreflect.Message
- func (x *BoardingPassRecord) Reset()
- func (x *BoardingPassRecord) String() string
- type BoardingPassRecordRequest
- func (*BoardingPassRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassRecordRequest) GetIndex() *BoardingPassRecordRequestByIndex
- func (x *BoardingPassRecordRequest) GetPassId() *io.Id
- func (m *BoardingPassRecordRequest) GetRequest() isBoardingPassRecordRequest_Request
- func (x *BoardingPassRecordRequest) GetTicketNumber() *BoardingPassRecordRequestByTicketNumber
- func (*BoardingPassRecordRequest) ProtoMessage()
- func (x *BoardingPassRecordRequest) ProtoReflect() protoreflect.Message
- func (x *BoardingPassRecordRequest) Reset()
- func (x *BoardingPassRecordRequest) String() string
- type BoardingPassRecordRequestByIndex
- func (*BoardingPassRecordRequestByIndex) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassRecordRequestByIndex) GetBoardingPoint() string
- func (x *BoardingPassRecordRequestByIndex) GetCarrierCode() string
- func (x *BoardingPassRecordRequestByIndex) GetDepartureDate() *io.Date
- func (x *BoardingPassRecordRequestByIndex) GetFlightNumber() string
- func (x *BoardingPassRecordRequestByIndex) GetSequenceNumber() int32
- func (*BoardingPassRecordRequestByIndex) ProtoMessage()
- func (x *BoardingPassRecordRequestByIndex) ProtoReflect() protoreflect.Message
- func (x *BoardingPassRecordRequestByIndex) Reset()
- func (x *BoardingPassRecordRequestByIndex) String() string
- type BoardingPassRecordRequestByTicketNumber
- func (*BoardingPassRecordRequestByTicketNumber) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassRecordRequestByTicketNumber) GetBoardingPoint() string
- func (x *BoardingPassRecordRequestByTicketNumber) GetTicketLeg() int32
- func (x *BoardingPassRecordRequestByTicketNumber) GetTicketNumber() string
- func (*BoardingPassRecordRequestByTicketNumber) ProtoMessage()
- func (x *BoardingPassRecordRequestByTicketNumber) ProtoReflect() protoreflect.Message
- func (x *BoardingPassRecordRequestByTicketNumber) Reset()
- func (x *BoardingPassRecordRequestByTicketNumber) String() string
- type BoardingPassRecordRequest_Index
- type BoardingPassRecordRequest_PassId
- type BoardingPassRecordRequest_TicketNumber
- type BoardingPassRequest
- func (*BoardingPassRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassRequest) GetFormat() []io.PassBundleFormat
- func (x *BoardingPassRequest) GetIndex() *BoardingPassRecordRequestByIndex
- func (x *BoardingPassRequest) GetPassId() *io.Id
- func (x *BoardingPassRequest) GetPnr() *BoardingPassesForBookingRequest
- func (m *BoardingPassRequest) GetRequest() isBoardingPassRequest_Request
- func (x *BoardingPassRequest) GetTicketNumber() *BoardingPassRecordRequestByTicketNumber
- func (*BoardingPassRequest) ProtoMessage()
- func (x *BoardingPassRequest) ProtoReflect() protoreflect.Message
- func (x *BoardingPassRequest) Reset()
- func (x *BoardingPassRequest) String() string
- type BoardingPassRequest_Index
- type BoardingPassRequest_PassId
- type BoardingPassRequest_Pnr
- type BoardingPassRequest_TicketNumber
- type BoardingPassesForBookingRequest
- func (*BoardingPassesForBookingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassesForBookingRequest) GetBoardingPoint() string
- func (x *BoardingPassesForBookingRequest) GetPnr() string
- func (x *BoardingPassesForBookingRequest) GetTicketLeg() int32
- func (*BoardingPassesForBookingRequest) ProtoMessage()
- func (x *BoardingPassesForBookingRequest) ProtoReflect() protoreflect.Message
- func (x *BoardingPassesForBookingRequest) Reset()
- func (x *BoardingPassesForBookingRequest) String() string
- type BoardingPassesResponse
- func (*BoardingPassesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BoardingPassesResponse) GetBoardingPasses() []*io.PassBundle
- func (*BoardingPassesResponse) ProtoMessage()
- func (x *BoardingPassesResponse) ProtoReflect() protoreflect.Message
- func (x *BoardingPassesResponse) Reset()
- func (x *BoardingPassesResponse) String() string
- type BoardingPolicy
- func (BoardingPolicy) Descriptor() protoreflect.EnumDescriptor
- func (x BoardingPolicy) Enum() *BoardingPolicy
- func (BoardingPolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x BoardingPolicy) Number() protoreflect.EnumNumber
- func (x BoardingPolicy) String() string
- func (BoardingPolicy) Type() protoreflect.EnumType
- type Carrier
- func (*Carrier) Descriptor() ([]byte, []int)deprecated
- func (x *Carrier) GetAirlineName() string
- func (x *Carrier) GetIataAccountingCode() int32
- func (x *Carrier) GetIataCarrierCode() string
- func (x *Carrier) GetIcaoCarrierCode() string
- func (x *Carrier) GetLocalizedAirlineName() *io.LocalizedString
- func (x *Carrier) GetPassTypeIdentifier() string
- func (x *Carrier) GetPrivateKeyId() string
- func (*Carrier) ProtoMessage()
- func (x *Carrier) ProtoReflect() protoreflect.Message
- func (x *Carrier) Reset()
- func (x *Carrier) String() string
- type CarrierCode
- type ConditionalItems
- func (*ConditionalItems) Descriptor() ([]byte, []int)deprecated
- func (x *ConditionalItems) GetBaggageTagNumber() []string
- func (x *ConditionalItems) GetBoardingPassIssuanceSource() Source
- func (x *ConditionalItems) GetBoardingPassIssueDate() *io.Date
- func (x *ConditionalItems) GetBoardingPassIssuer() string
- func (x *ConditionalItems) GetCheckInSource() Source
- func (x *ConditionalItems) GetDocumentType() DocType
- func (x *ConditionalItems) GetFastTrack() FastTrack
- func (x *ConditionalItems) GetIdadIndicator() IDADIndicator
- func (x *ConditionalItems) GetInternationalDocVerification() InternationalDocVerification
- func (x *ConditionalItems) GetPassengerDescription() PassengerDescription
- func (x *ConditionalItems) GetSelecteeIndicator() SelecteeIndicator
- func (*ConditionalItems) ProtoMessage()
- func (x *ConditionalItems) ProtoReflect() protoreflect.Message
- func (x *ConditionalItems) Reset()
- func (x *ConditionalItems) String() string
- type DocType
- type FastTrack
- type Flight
- func (*Flight) Descriptor() ([]byte, []int)deprecated
- func (x *Flight) GetArrivalGate() string
- func (x *Flight) GetArrivalTerminal() string
- func (x *Flight) GetAutoInvalidateAfter() uint32
- func (x *Flight) GetAutoInvalidateCancelledPasses() booldeprecated
- func (x *Flight) GetBaggageBelt() string
- func (x *Flight) GetBarcodeAdditionalData() string
- func (x *Flight) GetBeaconMessages() []*io.Beacon
- func (x *Flight) GetBoardingPoint() string
- func (x *Flight) GetBoardingPolicy() BoardingPolicy
- func (x *Flight) GetBoardingTime() *io.LocalDateTime
- func (x *Flight) GetCarrierCode() string
- func (x *Flight) GetCodeShareFlightNumbers() []string
- func (x *Flight) GetConditionalItems() bool
- func (x *Flight) GetCreateMethod() FlightCreateMode
- func (x *Flight) GetDepartureDate() *io.Date
- func (x *Flight) GetDepartureGate() string
- func (x *Flight) GetDepartureTerminal() string
- func (x *Flight) GetDeplaningPoint() string
- func (x *Flight) GetDesignatorId() string
- func (x *Flight) GetEstimatedArrivalTime() *io.LocalDateTime
- func (x *Flight) GetEstimatedDepartureTime() *io.LocalDateTime
- func (x *Flight) GetFlightNumber() string
- func (x *Flight) GetGateClosingTime() *io.LocalDateTime
- func (x *Flight) GetInvalidateCancelledPasses() io.Toggle
- func (x *Flight) GetLinks() []*io.Link
- func (x *Flight) GetLocationMessages() []*io.GPSLocation
- func (x *Flight) GetMetrics() *io.Metrics
- func (x *Flight) GetOperatingCarrierCode() string
- func (x *Flight) GetOperatingFlightNumber() string
- func (x *Flight) GetPassTemplateId() string
- func (x *Flight) GetScheduledArrivalTime() *io.LocalDateTime
- func (x *Flight) GetScheduledDepartureTime() *io.LocalDateTime
- func (x *Flight) GetSeatingPolicy() SeatClassPolicy
- func (x *Flight) GetStatus() FlightStatus
- func (x *Flight) GetSuspendAutomaticUpdates() bool
- func (*Flight) ProtoMessage()
- func (x *Flight) ProtoReflect() protoreflect.Message
- func (x *Flight) Reset()
- func (x *Flight) String() string
- type FlightAlerts
- func (FlightAlerts) Descriptor() protoreflect.EnumDescriptor
- func (x FlightAlerts) Enum() *FlightAlerts
- func (FlightAlerts) EnumDescriptor() ([]byte, []int)deprecated
- func (x FlightAlerts) Number() protoreflect.EnumNumber
- func (x FlightAlerts) String() string
- func (FlightAlerts) Type() protoreflect.EnumType
- type FlightCreateMode
- func (FlightCreateMode) Descriptor() protoreflect.EnumDescriptor
- func (x FlightCreateMode) Enum() *FlightCreateMode
- func (FlightCreateMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x FlightCreateMode) Number() protoreflect.EnumNumber
- func (x FlightCreateMode) String() string
- func (FlightCreateMode) Type() protoreflect.EnumType
- type FlightDesignator
- func (*FlightDesignator) Descriptor() ([]byte, []int)deprecated
- func (x *FlightDesignator) GetActive() bool
- func (x *FlightDesignator) GetAlerts() []FlightAlerts
- func (x *FlightDesignator) GetArrivalTerminal() string
- func (x *FlightDesignator) GetAutoInvalidateAfter() uint32
- func (x *FlightDesignator) GetAutoInvalidateCancelledPasses() booldeprecated
- func (x *FlightDesignator) GetBarcodeAdditionalData() string
- func (x *FlightDesignator) GetBeaconMessages() []*io.Beacon
- func (x *FlightDesignator) GetBoardingPolicy() BoardingPolicy
- func (x *FlightDesignator) GetCarrierCode() string
- func (x *FlightDesignator) GetCodeShareFlightNumbers() []string
- func (x *FlightDesignator) GetConditionalItems() bool
- func (x *FlightDesignator) GetDefaultLinks() []*io.Link
- func (x *FlightDesignator) GetDepartureTerminal() string
- func (x *FlightDesignator) GetDestination() string
- func (x *FlightDesignator) GetFlightNumber() string
- func (x *FlightDesignator) GetInvalidateCancelledPasses() io.Toggle
- func (x *FlightDesignator) GetLocationMessages() []*io.GPSLocation
- func (x *FlightDesignator) GetOperatingCarrierCode() string
- func (x *FlightDesignator) GetOperatingFlightNumber() string
- func (x *FlightDesignator) GetOrigin() string
- func (x *FlightDesignator) GetPassTemplateId() string
- func (x *FlightDesignator) GetRevision() uint32
- func (x *FlightDesignator) GetSchedule() *FlightSchedule
- func (x *FlightDesignator) GetSeatClassPolicy() SeatClassPolicy
- func (x *FlightDesignator) GetTransitPoints() []string
- func (x *FlightDesignator) GetTransitTerminals() []string
- func (x *FlightDesignator) GetValidFrom() *io.Date
- func (*FlightDesignator) ProtoMessage()
- func (x *FlightDesignator) ProtoReflect() protoreflect.Message
- func (x *FlightDesignator) Reset()
- func (x *FlightDesignator) String() string
- type FlightDesignatorRequest
- func (*FlightDesignatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FlightDesignatorRequest) GetCarrierCode() string
- func (x *FlightDesignatorRequest) GetFlightNumber() string
- func (x *FlightDesignatorRequest) GetRevision() uint32
- func (*FlightDesignatorRequest) ProtoMessage()
- func (x *FlightDesignatorRequest) ProtoReflect() protoreflect.Message
- func (x *FlightDesignatorRequest) Reset()
- func (x *FlightDesignatorRequest) String() string
- type FlightRequest
- func (*FlightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FlightRequest) GetBoardingPoint() string
- func (x *FlightRequest) GetCarrierCode() string
- func (x *FlightRequest) GetDepartureDate() *io.Date
- func (x *FlightRequest) GetDeplaningPoint() string
- func (x *FlightRequest) GetFlightNumber() string
- func (*FlightRequest) ProtoMessage()
- func (x *FlightRequest) ProtoReflect() protoreflect.Message
- func (x *FlightRequest) Reset()
- func (x *FlightRequest) String() string
- type FlightSchedule
- func (*FlightSchedule) Descriptor() ([]byte, []int)deprecated
- func (x *FlightSchedule) GetFriday() *FlightTimes
- func (x *FlightSchedule) GetMonday() *FlightTimes
- func (x *FlightSchedule) GetSaturday() *FlightTimes
- func (x *FlightSchedule) GetSunday() *FlightTimes
- func (x *FlightSchedule) GetThursday() *FlightTimes
- func (x *FlightSchedule) GetTuesday() *FlightTimes
- func (x *FlightSchedule) GetWednesday() *FlightTimes
- func (*FlightSchedule) ProtoMessage()
- func (x *FlightSchedule) ProtoReflect() protoreflect.Message
- func (x *FlightSchedule) Reset()
- func (x *FlightSchedule) String() string
- type FlightStatus
- func (FlightStatus) Descriptor() protoreflect.EnumDescriptor
- func (x FlightStatus) Enum() *FlightStatus
- func (FlightStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x FlightStatus) Number() protoreflect.EnumNumber
- func (x FlightStatus) String() string
- func (FlightStatus) Type() protoreflect.EnumType
- type FlightTimes
- func (*FlightTimes) Descriptor() ([]byte, []int)deprecated
- func (x *FlightTimes) GetBoardingTime() *io.Time
- func (x *FlightTimes) GetGateClosingTime() *io.Time
- func (x *FlightTimes) GetScheduledArrivalTime() *io.Time
- func (x *FlightTimes) GetScheduledDepartureTime() *io.Time
- func (*FlightTimes) ProtoMessage()
- func (x *FlightTimes) ProtoReflect() protoreflect.Message
- func (x *FlightTimes) Reset()
- func (x *FlightTimes) String() string
- type FlightsClient
- type FlightsServer
- type FrequentFlyerInfo
- func (*FrequentFlyerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FrequentFlyerInfo) GetAirlineDesignator() string
- func (x *FrequentFlyerInfo) GetNumber() string
- func (x *FrequentFlyerInfo) GetProgramName() string
- func (x *FrequentFlyerInfo) GetTier() string
- func (*FrequentFlyerInfo) ProtoMessage()
- func (x *FrequentFlyerInfo) ProtoReflect() protoreflect.Message
- func (x *FrequentFlyerInfo) Reset()
- func (x *FrequentFlyerInfo) String() string
- type IDADIndicator
- func (IDADIndicator) Descriptor() protoreflect.EnumDescriptor
- func (x IDADIndicator) Enum() *IDADIndicator
- func (IDADIndicator) EnumDescriptor() ([]byte, []int)deprecated
- func (x IDADIndicator) Number() protoreflect.EnumNumber
- func (x IDADIndicator) String() string
- func (IDADIndicator) Type() protoreflect.EnumType
- type IdentityDetails
- func (*IdentityDetails) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityDetails) GetDateOfBirth() *io.Date
- func (x *IdentityDetails) GetDocumentNumber() string
- func (x *IdentityDetails) GetExpiryDate() *io.Date
- func (x *IdentityDetails) GetGender() io.Gender
- func (x *IdentityDetails) GetIdentityDocument() IdentityDocument
- func (x *IdentityDetails) GetIssuedDate() *io.Date
- func (x *IdentityDetails) GetIssuingCountry() string
- func (x *IdentityDetails) GetNationality() string
- func (*IdentityDetails) ProtoMessage()
- func (x *IdentityDetails) ProtoReflect() protoreflect.Message
- func (x *IdentityDetails) Reset()
- func (x *IdentityDetails) String() string
- type IdentityDocument
- func (IdentityDocument) Descriptor() protoreflect.EnumDescriptor
- func (x IdentityDocument) Enum() *IdentityDocument
- func (IdentityDocument) EnumDescriptor() ([]byte, []int)deprecated
- func (x IdentityDocument) Number() protoreflect.EnumNumber
- func (x IdentityDocument) String() string
- func (IdentityDocument) Type() protoreflect.EnumType
- type Infant
- func (*Infant) Descriptor() ([]byte, []int)deprecated
- func (x *Infant) GetBarcodeAdditionalData() string
- func (x *Infant) GetBarcodePayload() string
- func (x *Infant) GetConditionalItems() *ConditionalItems
- func (x *Infant) GetFooterImage() string
- func (x *Infant) GetIdentityDetails() *IdentityDetails
- func (x *Infant) GetInfantDetails() *io.Person
- func (x *Infant) GetPrivilegeImage() string
- func (x *Infant) GetSecurityImage() string
- func (*Infant) ProtoMessage()
- func (x *Infant) ProtoReflect() protoreflect.Message
- func (x *Infant) Reset()
- func (x *Infant) String() string
- type InternationalDocVerification
- func (InternationalDocVerification) Descriptor() protoreflect.EnumDescriptor
- func (x InternationalDocVerification) Enum() *InternationalDocVerification
- func (InternationalDocVerification) EnumDescriptor() ([]byte, []int)deprecated
- func (x InternationalDocVerification) Number() protoreflect.EnumNumber
- func (x InternationalDocVerification) String() string
- func (InternationalDocVerification) Type() protoreflect.EnumType
- type Passenger
- func (*Passenger) Descriptor() ([]byte, []int)deprecated
- func (x *Passenger) GetFrequentFlyerInfo() *FrequentFlyerInfo
- func (x *Passenger) GetIdentityDetails() *IdentityDetails
- func (x *Passenger) GetInfantDetails() *Infant
- func (x *Passenger) GetKnownTravelerNumber() string
- func (x *Passenger) GetPassengerDetails() *io.Person
- func (x *Passenger) GetWithInfant() bool
- func (*Passenger) ProtoMessage()
- func (x *Passenger) ProtoReflect() protoreflect.Message
- func (x *Passenger) Reset()
- func (x *Passenger) String() string
- type PassengerDescription
- func (PassengerDescription) Descriptor() protoreflect.EnumDescriptor
- func (x PassengerDescription) Enum() *PassengerDescription
- func (PassengerDescription) EnumDescriptor() ([]byte, []int)deprecated
- func (x PassengerDescription) Number() protoreflect.EnumNumber
- func (x PassengerDescription) String() string
- func (PassengerDescription) Type() protoreflect.EnumType
- type PassengerStatus
- func (PassengerStatus) Descriptor() protoreflect.EnumDescriptor
- func (x PassengerStatus) Enum() *PassengerStatus
- func (PassengerStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x PassengerStatus) Number() protoreflect.EnumNumber
- func (x PassengerStatus) String() string
- func (PassengerStatus) Type() protoreflect.EnumType
- type Port
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetAirportName() string
- func (x *Port) GetCityName() string
- func (x *Port) GetCountryCode() string
- func (x *Port) GetIataAirportCode() string
- func (x *Port) GetIcaoAirportCode() string
- func (x *Port) GetLocalizedAirportName() *io.LocalizedString
- func (x *Port) GetLocalizedCityName() *io.LocalizedString
- func (x *Port) GetTimezone() string
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
- type SeatClassPolicy
- func (SeatClassPolicy) Descriptor() protoreflect.EnumDescriptor
- func (x SeatClassPolicy) Enum() *SeatClassPolicy
- func (SeatClassPolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x SeatClassPolicy) Number() protoreflect.EnumNumber
- func (x SeatClassPolicy) String() string
- func (SeatClassPolicy) Type() protoreflect.EnumType
- type SelecteeIndicator
- func (SelecteeIndicator) Descriptor() protoreflect.EnumDescriptor
- func (x SelecteeIndicator) Enum() *SelecteeIndicator
- func (SelecteeIndicator) EnumDescriptor() ([]byte, []int)deprecated
- func (x SelecteeIndicator) Number() protoreflect.EnumNumber
- func (x SelecteeIndicator) String() string
- func (SelecteeIndicator) Type() protoreflect.EnumType
- type Source
- type UnimplementedFlightsServer
- func (UnimplementedFlightsServer) CreateBoardingPass(context.Context, *BoardingPassRecord) (*BoardingPassesResponse, error)
- func (UnimplementedFlightsServer) CreateCarrier(context.Context, *Carrier) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) CreateFlight(context.Context, *Flight) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) CreateFlightDesignator(context.Context, *FlightDesignator) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) CreatePort(context.Context, *Port) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) DeleteBoardingPass(context.Context, *BoardingPassRecordRequest) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) DeleteCarrier(context.Context, *CarrierCode) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) DeleteFlight(context.Context, *FlightRequest) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) DeleteFlightDesignator(context.Context, *FlightDesignatorRequest) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) DeletePort(context.Context, *AirportCode) (*emptypb.Empty, error)
- func (UnimplementedFlightsServer) GetBoardingPass(context.Context, *BoardingPassRequest) (*BoardingPassesResponse, error)
- func (UnimplementedFlightsServer) GetBoardingPassRecord(context.Context, *BoardingPassRecordRequest) (*BoardingPassRecord, error)
- func (UnimplementedFlightsServer) GetCarrier(context.Context, *CarrierCode) (*Carrier, error)
- func (UnimplementedFlightsServer) GetFlight(context.Context, *FlightRequest) (*Flight, error)
- func (UnimplementedFlightsServer) GetFlightDesignator(context.Context, *FlightDesignatorRequest) (*FlightDesignator, error)
- func (UnimplementedFlightsServer) GetPort(context.Context, *AirportCode) (*Port, error)
- func (UnimplementedFlightsServer) UpdateBoardingPass(context.Context, *BoardingPassRecord) (*BoardingPassRecord, error)
- func (UnimplementedFlightsServer) UpdateCarrier(context.Context, *Carrier) (*Carrier, error)
- func (UnimplementedFlightsServer) UpdateFlight(context.Context, *Flight) (*Flight, error)
- func (UnimplementedFlightsServer) UpdateFlightDesignator(context.Context, *FlightDesignator) (*FlightDesignator, error)
- func (UnimplementedFlightsServer) UpdatePort(context.Context, *Port) (*Port, error)
- type UnsafeFlightsServer
Constants ¶
const ( Flights_CreatePort_FullMethodName = "/flights.Flights/createPort" Flights_GetPort_FullMethodName = "/flights.Flights/getPort" Flights_UpdatePort_FullMethodName = "/flights.Flights/updatePort" Flights_DeletePort_FullMethodName = "/flights.Flights/deletePort" Flights_CreateCarrier_FullMethodName = "/flights.Flights/createCarrier" Flights_GetCarrier_FullMethodName = "/flights.Flights/getCarrier" Flights_UpdateCarrier_FullMethodName = "/flights.Flights/updateCarrier" Flights_DeleteCarrier_FullMethodName = "/flights.Flights/deleteCarrier" Flights_CreateFlightDesignator_FullMethodName = "/flights.Flights/createFlightDesignator" Flights_GetFlightDesignator_FullMethodName = "/flights.Flights/getFlightDesignator" Flights_UpdateFlightDesignator_FullMethodName = "/flights.Flights/updateFlightDesignator" Flights_DeleteFlightDesignator_FullMethodName = "/flights.Flights/deleteFlightDesignator" Flights_CreateFlight_FullMethodName = "/flights.Flights/createFlight" Flights_GetFlight_FullMethodName = "/flights.Flights/getFlight" Flights_UpdateFlight_FullMethodName = "/flights.Flights/updateFlight" Flights_DeleteFlight_FullMethodName = "/flights.Flights/deleteFlight" Flights_CreateBoardingPass_FullMethodName = "/flights.Flights/createBoardingPass" Flights_GetBoardingPassRecord_FullMethodName = "/flights.Flights/getBoardingPassRecord" Flights_GetBoardingPass_FullMethodName = "/flights.Flights/getBoardingPass" Flights_UpdateBoardingPass_FullMethodName = "/flights.Flights/updateBoardingPass" Flights_DeleteBoardingPass_FullMethodName = "/flights.Flights/deleteBoardingPass" )
Variables ¶
var ( PassengerStatus_name = map[int32]string{ 0: "ISSUED_NOT_CHECKED_IN", 1: "ISSUED_CHECKED_IN", 2: "BAGGAGE_CHECKED_PASSENGER_NOT_CHECKED_IN", 3: "BAGGAGE_CHECKED_PASSENGER_CHECKED_IN", 4: "PASSENGER_PASSED_SECURITY_CHECK", 5: "PASSENGER_PASSED_GATE", 6: "TRANSIT", 7: "STANDBY", 8: "BOARDING_DATA_REVALIDATION_DONE", 9: "ORIGINAL_BOARDING_LINE_USED_AT_TICKET_ISSUANCE", 10: "UP_OR_DOWN_GRADING_REQUIRED", } PassengerStatus_value = map[string]int32{ "ISSUED_NOT_CHECKED_IN": 0, "ISSUED_CHECKED_IN": 1, "BAGGAGE_CHECKED_PASSENGER_NOT_CHECKED_IN": 2, "BAGGAGE_CHECKED_PASSENGER_CHECKED_IN": 3, "PASSENGER_PASSED_SECURITY_CHECK": 4, "PASSENGER_PASSED_GATE": 5, "TRANSIT": 6, "STANDBY": 7, "BOARDING_DATA_REVALIDATION_DONE": 8, "ORIGINAL_BOARDING_LINE_USED_AT_TICKET_ISSUANCE": 9, "UP_OR_DOWN_GRADING_REQUIRED": 10, } )
Enum value maps for PassengerStatus.
var ( PassengerDescription_name = map[int32]string{ 0: "ADULT", 1: "MALE", 2: "FEMALE", 3: "CHILD", 4: "INFANT", 5: "NO_PASSENGER", 6: "ADULT_WITH_INFANT", 7: "UNACCOMPANIED_MINOR", } PassengerDescription_value = map[string]int32{ "ADULT": 0, "MALE": 1, "FEMALE": 2, "CHILD": 3, "INFANT": 4, "NO_PASSENGER": 5, "ADULT_WITH_INFANT": 6, "UNACCOMPANIED_MINOR": 7, } )
Enum value maps for PassengerDescription.
var ( Source_name = map[int32]string{ 0: "W", 1: "K", 2: "X", 3: "R", 4: "M", 5: "O", 6: "T", 7: "V", } Source_value = map[string]int32{ "W": 0, "K": 1, "X": 2, "R": 3, "M": 4, "O": 5, "T": 6, "V": 7, } )
Enum value maps for Source.
var ( DocType_name = map[int32]string{ 0: "B", 1: "I", } DocType_value = map[string]int32{ "B": 0, "I": 1, } )
Enum value maps for DocType.
var ( InternationalDocVerification_name = map[int32]string{ 0: "NOT_REQUIRED", 1: "REQUIRED", 2: "COMPLETED", } InternationalDocVerification_value = map[string]int32{ "NOT_REQUIRED": 0, "REQUIRED": 1, "COMPLETED": 2, } )
Enum value maps for InternationalDocVerification.
var ( IDADIndicator_name = map[int32]string{ 0: "NONE", 1: "IDN1", 2: "IDN2", 3: "IDB1", 4: "IDB2", 5: "AD", 6: "DG", 7: "DM", 8: "GE", 9: "IG", 10: "RG", 11: "UD", 12: "ID", 13: "IDFS1", 14: "IDFS2", 15: "IDR1", 16: "IDR2", } IDADIndicator_value = map[string]int32{ "NONE": 0, "IDN1": 1, "IDN2": 2, "IDB1": 3, "IDB2": 4, "AD": 5, "DG": 6, "DM": 7, "GE": 8, "IG": 9, "RG": 10, "UD": 11, "ID": 12, "IDFS1": 13, "IDFS2": 14, "IDR1": 15, "IDR2": 16, } )
Enum value maps for IDADIndicator.
var ( SelecteeIndicator_name = map[int32]string{ 0: "NOT_SELECTEE", 1: "SELECTEE", 3: "TSA_PRECHECK", } SelecteeIndicator_value = map[string]int32{ "NOT_SELECTEE": 0, "SELECTEE": 1, "TSA_PRECHECK": 3, } )
Enum value maps for SelecteeIndicator.
var ( FastTrack_name = map[int32]string{ 0: "N", 1: "Y", } FastTrack_value = map[string]int32{ "N": 0, "Y": 1, } )
Enum value maps for FastTrack.
var ( FlightStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "SCHEDULED", 2: "DEPARTED", 3: "INAIR", 4: "LANDED", 5: "ARRIVED", 6: "CANCELLED", 7: "DELAYED", 8: "DEPARTED_DIVERTED", 9: "INAIR_DIVERTED", 10: "ARRIVED_DIVERTED", 11: "DEPARTED_RECOVERY", 12: "INAIR_RECOVERY", 13: "ARRIVED_RECOVERY", } FlightStatus_value = map[string]int32{ "UNKNOWN": 0, "SCHEDULED": 1, "DEPARTED": 2, "INAIR": 3, "LANDED": 4, "ARRIVED": 5, "CANCELLED": 6, "DELAYED": 7, "DEPARTED_DIVERTED": 8, "INAIR_DIVERTED": 9, "ARRIVED_DIVERTED": 10, "DEPARTED_RECOVERY": 11, "INAIR_RECOVERY": 12, "ARRIVED_RECOVERY": 13, } )
Enum value maps for FlightStatus.
var ( FlightCreateMode_name = map[int32]string{ 0: "DO_NOT_USE", 1: "MANUAL", 2: "AUTOMATIC", } FlightCreateMode_value = map[string]int32{ "DO_NOT_USE": 0, "MANUAL": 1, "AUTOMATIC": 2, } )
Enum value maps for FlightCreateMode.
var ( FlightAlerts_name = map[int32]string{ 0: "NO_ALERTS", 1: "ALL_ALERTS", 2: "DEPARTURE_GATE_ALERT", 4: "DEPARTURE_TIME_ALERT", 8: "ARRIVAL_GATE_ALERT", 16: "ARRIVAL_TIME_ALERT", 32: "BAGGAGE_BELT_ALERT", } FlightAlerts_value = map[string]int32{ "NO_ALERTS": 0, "ALL_ALERTS": 1, "DEPARTURE_GATE_ALERT": 2, "DEPARTURE_TIME_ALERT": 4, "ARRIVAL_GATE_ALERT": 8, "ARRIVAL_TIME_ALERT": 16, "BAGGAGE_BELT_ALERT": 32, } )
Enum value maps for FlightAlerts.
var ( BoardingPolicy_name = map[int32]string{ 0: "BOARDING_POLICY_UNSPECIFIED", 1: "ZONE_BASED", 2: "GROUP_BASED", 3: "BOARDING_POLICY_OTHER", } BoardingPolicy_value = map[string]int32{ "BOARDING_POLICY_UNSPECIFIED": 0, "ZONE_BASED": 1, "GROUP_BASED": 2, "BOARDING_POLICY_OTHER": 3, } )
Enum value maps for BoardingPolicy.
var ( SeatClassPolicy_name = map[int32]string{ 0: "SEAT_CLASS_POLICY_UNSPECIFIED", 1: "CABIN_BASED", 2: "CLASS_BASED", 3: "TIER_BASED", 4: "SEAT_CLASS_POLICY_OTHER", } SeatClassPolicy_value = map[string]int32{ "SEAT_CLASS_POLICY_UNSPECIFIED": 0, "CABIN_BASED": 1, "CLASS_BASED": 2, "TIER_BASED": 3, "SEAT_CLASS_POLICY_OTHER": 4, } )
Enum value maps for SeatClassPolicy.
var ( Authority_name = map[int32]string{ 0: "IATA", 1: "ICAO", } Authority_value = map[string]int32{ "IATA": 0, "ICAO": 1, } )
Enum value maps for Authority.
var ( IdentityDocument_name = map[int32]string{ 0: "PASSPORT", 1: "NATIONAL_ID_CARD", 2: "DRIVING_LICENSE", 3: "CREDIT_CARD", 4: "FREQUENT_FLYER_CARD", 5: "OTHER_TRAVEL_DOCUMENT", } IdentityDocument_value = map[string]int32{ "PASSPORT": 0, "NATIONAL_ID_CARD": 1, "DRIVING_LICENSE": 2, "CREDIT_CARD": 3, "FREQUENT_FLYER_CARD": 4, "OTHER_TRAVEL_DOCUMENT": 5, } )
Enum value maps for IdentityDocument.
var File_io_flights_a_rpc_proto protoreflect.FileDescriptor
var File_io_flights_airport_proto protoreflect.FileDescriptor
var File_io_flights_barcode_proto protoreflect.FileDescriptor
var File_io_flights_boarding_pass_proto protoreflect.FileDescriptor
var File_io_flights_carrier_proto protoreflect.FileDescriptor
var File_io_flights_flight_designator_proto protoreflect.FileDescriptor
var File_io_flights_flight_proto protoreflect.FileDescriptor
var File_io_flights_passenger_proto protoreflect.FileDescriptor
var Flights_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flights.Flights", HandlerType: (*FlightsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "createPort", Handler: _Flights_CreatePort_Handler, }, { MethodName: "getPort", Handler: _Flights_GetPort_Handler, }, { MethodName: "updatePort", Handler: _Flights_UpdatePort_Handler, }, { MethodName: "deletePort", Handler: _Flights_DeletePort_Handler, }, { MethodName: "createCarrier", Handler: _Flights_CreateCarrier_Handler, }, { MethodName: "getCarrier", Handler: _Flights_GetCarrier_Handler, }, { MethodName: "updateCarrier", Handler: _Flights_UpdateCarrier_Handler, }, { MethodName: "deleteCarrier", Handler: _Flights_DeleteCarrier_Handler, }, { MethodName: "createFlightDesignator", Handler: _Flights_CreateFlightDesignator_Handler, }, { MethodName: "getFlightDesignator", Handler: _Flights_GetFlightDesignator_Handler, }, { MethodName: "updateFlightDesignator", Handler: _Flights_UpdateFlightDesignator_Handler, }, { MethodName: "deleteFlightDesignator", Handler: _Flights_DeleteFlightDesignator_Handler, }, { MethodName: "createFlight", Handler: _Flights_CreateFlight_Handler, }, { MethodName: "getFlight", Handler: _Flights_GetFlight_Handler, }, { MethodName: "updateFlight", Handler: _Flights_UpdateFlight_Handler, }, { MethodName: "deleteFlight", Handler: _Flights_DeleteFlight_Handler, }, { MethodName: "createBoardingPass", Handler: _Flights_CreateBoardingPass_Handler, }, { MethodName: "getBoardingPassRecord", Handler: _Flights_GetBoardingPassRecord_Handler, }, { MethodName: "getBoardingPass", Handler: _Flights_GetBoardingPass_Handler, }, { MethodName: "updateBoardingPass", Handler: _Flights_UpdateBoardingPass_Handler, }, { MethodName: "deleteBoardingPass", Handler: _Flights_DeleteBoardingPass_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "io/flights/a_rpc.proto", }
Flights_ServiceDesc is the grpc.ServiceDesc for Flights service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFlightsHandler ¶
func RegisterFlightsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFlightsHandler registers the http handlers for service Flights to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFlightsHandlerClient ¶
func RegisterFlightsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FlightsClient) error
RegisterFlightsHandlerClient registers the http handlers for service Flights to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FlightsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FlightsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FlightsClient" to call the correct interceptors.
func RegisterFlightsHandlerFromEndpoint ¶
func RegisterFlightsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFlightsHandlerFromEndpoint is same as RegisterFlightsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFlightsHandlerServer ¶
func RegisterFlightsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FlightsServer) error
RegisterFlightsHandlerServer registers the http handlers for service Flights to "mux". UnaryRPC :call FlightsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFlightsHandlerFromEndpoint instead.
func RegisterFlightsServer ¶
func RegisterFlightsServer(s grpc.ServiceRegistrar, srv FlightsServer)
Types ¶
type AirportCode ¶
type AirportCode struct { // @tag: validate:"required" // The IATA or ICAO airport code. AirportCode string `protobuf:"bytes,1,opt,name=airportCode,proto3" json:"airportCode,omitempty" validate:"required"` // contains filtered or unexported fields }
Airport Request is used for retrieving or deleting a port record.
func (*AirportCode) Descriptor
deprecated
func (*AirportCode) Descriptor() ([]byte, []int)
Deprecated: Use AirportCode.ProtoReflect.Descriptor instead.
func (*AirportCode) GetAirportCode ¶
func (x *AirportCode) GetAirportCode() string
func (*AirportCode) ProtoMessage ¶
func (*AirportCode) ProtoMessage()
func (*AirportCode) ProtoReflect ¶
func (x *AirportCode) ProtoReflect() protoreflect.Message
func (*AirportCode) Reset ¶
func (x *AirportCode) Reset()
func (*AirportCode) String ¶
func (x *AirportCode) String() string
type Authority ¶
type Authority int32
The authority of an identifier (carrier code, airport code, etc.).
func (Authority) Descriptor ¶
func (Authority) Descriptor() protoreflect.EnumDescriptor
func (Authority) EnumDescriptor
deprecated
func (Authority) Number ¶
func (x Authority) Number() protoreflect.EnumNumber
func (Authority) Type ¶
func (Authority) Type() protoreflect.EnumType
type BoardingPassRecord ¶
type BoardingPassRecord struct { // Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable. // @tag: validateCreate"isdefault" validateUpdate="uuidCompressedString" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // PNR code of the carrier operating the flight, independent of code-share, lease or other issues. // @tag: validateGeneric:"required,alphanum,min=5,max=7" OperatingCarrierPNR string `` /* 139-byte string literal not displayed */ // Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique. // @tag: validateGeneric:"omitempty,max=3,dive,alphanum,min=5,max=7" RelatedPNRs []string `` /* 135-byte string literal not displayed */ // Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number. For ticket numbers less than 10 digits, pad with zeros. // @tag: validateGeneric:"omitempty,ticketnum,numeric,len=10|len=13 TicketNumber string `protobuf:"bytes,4,opt,name=ticketNumber,proto3" json:"ticketNumber,omitempty"` // The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2. For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call. // @tag: validateGeneric:"required_with=TicketNumber,max=20" TicketLeg int32 `protobuf:"varint,5,opt,name=ticketLeg,proto3" json:"ticketLeg,omitempty" validateGeneric:"required_with=TicketNumber,max=20"` // 3 letter IATA code or 4 letter ICAO code of the passenger boarding point. // @tag: validateGeneric:"fixedLenAlphaNum=3|fixedLenAlphaNum=4" BoardingPoint string `` /* 135-byte string literal not displayed */ // 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" DeplaningPoint string `` /* 146-byte string literal not displayed */ // The two or three character airline code of the marketing carrier. // @tag: validateGeneric:"required,fixedLenAlphaNum=2|fixedLenAlphaNum=3" CarrierCode string `` /* 140-byte string literal not displayed */ // The flight number of the marketing character (excluding the carrier code). // @tag: validateGeneric:"required,alphanum,max=5" FlightNumber string `protobuf:"bytes,9,opt,name=flightNumber,proto3" json:"flightNumber,omitempty" validateGeneric:"required,alphanum,max=5"` // The date of departure in local airport time. // @tag: validateGeneric:"required" DepartureDate *io.Date `protobuf:"bytes,11,opt,name=departureDate,proto3" json:"departureDate,omitempty" validateGeneric:"required"` // Details of the passenger and any infant. // @tag: validateGeneric:"required" Passenger *Passenger `protobuf:"bytes,12,opt,name=passenger,proto3" json:"passenger,omitempty" validateGeneric:"required"` // Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World". // @tag: validateGeneric:"omitempty" Class string `protobuf:"bytes,13,opt,name=class,proto3" json:"class,omitempty" validateGeneric:"omitempty"` // The compartment code / class of the ticket. // @tag: validateGeneric:"omitempty" CompartmentCode cabincodes.CompartmentCode `` /* 146-byte string literal not displayed */ // The allocated seat number. The text "ANY" or "XXX" can be used where a free seating condition exists. // @tag: validateGeneric:"omitempty,max=5" SeatNumber string `protobuf:"bytes,15,opt,name=seatNumber,proto3" json:"seatNumber,omitempty" validateGeneric:"omitempty,max=5"` // The check in sequence number. // @tag: validateGeneric:"required" SequenceNumber int32 `protobuf:"varint,16,opt,name=sequenceNumber,proto3" json:"sequenceNumber,omitempty" validateGeneric:"required"` // A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding. // @tag: validateGeneric:"omitempty" BoardingGroup string `protobuf:"bytes,17,opt,name=boardingGroup,proto3" json:"boardingGroup,omitempty" validateGeneric:"omitempty"` // An additional field to indicate boarding priority or order. // @tag: validateGeneric:"omitempty" BoardingPosition string `protobuf:"bytes,18,opt,name=boardingPosition,proto3" json:"boardingPosition,omitempty" validateGeneric:"omitempty"` // 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K. // @tag: validateGeneric:"omitempty,baggage,max=3" FreeBaggageAllowance string `` /* 136-byte string literal not displayed */ // 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K. // @tag: validateGeneric:"omitempty,baggage,max=3" CarryOnAllowance string `` /* 128-byte string literal not displayed */ // An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated. // @tag: validateGeneric:"omitempty,dive,alphanum" SsrCodes []string `protobuf:"bytes,21,rep,name=ssrCodes,proto3" json:"ssrCodes,omitempty" validateGeneric:"omitempty,dive,alphanum"` // Other service information that may be relevant to the booking. // @tag: validateGeneric:"omitempty" Osi string `protobuf:"bytes,22,opt,name=osi,proto3" json:"osi,omitempty" validateGeneric:"omitempty"` // Free text booking remarks. // @tag: validateGeneric:"omitempty" Remarks string `protobuf:"bytes,23,opt,name=remarks,proto3" json:"remarks,omitempty" validateGeneric:"omitempty"` // Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'. // @tag: validateGeneric:"omitempty,max=10" PassengerStatus PassengerStatus `` /* 149-byte string literal not displayed */ // Conditional items for the flight segment as described in IATA PSC Resolution 792. ConditionalItems *ConditionalItems `protobuf:"bytes,25,opt,name=conditionalItems,proto3" json:"conditionalItems,omitempty"` // Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated. // @tag: validateGeneric:"omitempty" BarcodePayload string `protobuf:"bytes,26,opt,name=barcodePayload,proto3" json:"barcodePayload,omitempty" validateGeneric:"omitempty"` // Security image id for display above the barcode on a Google Pay pass. // @tag: validateGeneric:"omitempty" SecurityImage string `protobuf:"bytes,27,opt,name=securityImage,proto3" json:"securityImage,omitempty" validateGeneric:"omitempty"` // Privilege image id for display above the barcode on a Google Pay pass. // @tag: validateGeneric:"omitempty" PrivilegeImage string `protobuf:"bytes,28,opt,name=privilegeImage,proto3" json:"privilegeImage,omitempty" validateGeneric:"omitempty"` // @tag: validateGeneric:"omitempty" FooterImage string `protobuf:"bytes,29,opt,name=footerImage,proto3" json:"footerImage,omitempty" validateGeneric:"omitempty"` // A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values. // @tag: validateGeneric:"omitempty,max=10,dive" LocationMessages []*io.GPSLocation `` /* 126-byte string literal not displayed */ // A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values. // @tag: validateGeneric:"omitempty,max=10,dive" BeaconMessages []*io.Beacon `protobuf:"bytes,31,rep,name=beaconMessages,proto3" json:"beaconMessages,omitempty" validateGeneric:"omitempty,max=10,dive"` // A list of links to be appended to the end of each boarding pass. // @tag: validateGeneric:"omitempty,dive" Links []*io.Link `protobuf:"bytes,32,rep,name=links,proto3" json:"links,omitempty" validateGeneric:"omitempty,dive"` // If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the barcode. BarcodeAdditionalData string `protobuf:"bytes,33,opt,name=barcodeAdditionalData,proto3" json:"barcodeAdditionalData,omitempty"` // If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here. // @tag: "validateGeneric:"isdefault" validateUpdate:"omitempty,uuidCompressedString" InfantPassId string `` /* 154-byte string literal not displayed */ // Optional key value pairs to be added in to the flight record // @tag: validateGeneric:"omitempty" AdditionalDataItems *io.DataItems `protobuf:"bytes,35,opt,name=additionalDataItems,proto3" json:"additionalDataItems,omitempty" validateGeneric:"omitempty"` // Pass Metadata // @tag: validateUpdate:"isdefault" Metadata *io.Metadata `protobuf:"bytes,36,opt,name=metadata,proto3" json:"metadata,omitempty" validateUpdate:"isdefault"` // contains filtered or unexported fields }
A Boarding Pass record is unique to an individual passenger journey form a boarding point to a deplaning point. A Carrier and a Flight Designation record must exist. If a Flight record does not already exist, then it will be auto-generated based on the Flight Designation record and other publicly available data.
func (*BoardingPassRecord) Descriptor
deprecated
func (*BoardingPassRecord) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassRecord.ProtoReflect.Descriptor instead.
func (*BoardingPassRecord) GetAdditionalDataItems ¶
func (x *BoardingPassRecord) GetAdditionalDataItems() *io.DataItems
func (*BoardingPassRecord) GetBarcodeAdditionalData ¶
func (x *BoardingPassRecord) GetBarcodeAdditionalData() string
func (*BoardingPassRecord) GetBarcodePayload ¶
func (x *BoardingPassRecord) GetBarcodePayload() string
func (*BoardingPassRecord) GetBeaconMessages ¶
func (x *BoardingPassRecord) GetBeaconMessages() []*io.Beacon
func (*BoardingPassRecord) GetBoardingGroup ¶
func (x *BoardingPassRecord) GetBoardingGroup() string
func (*BoardingPassRecord) GetBoardingPoint ¶
func (x *BoardingPassRecord) GetBoardingPoint() string
func (*BoardingPassRecord) GetBoardingPosition ¶
func (x *BoardingPassRecord) GetBoardingPosition() string
func (*BoardingPassRecord) GetCarrierCode ¶
func (x *BoardingPassRecord) GetCarrierCode() string
func (*BoardingPassRecord) GetCarryOnAllowance ¶
func (x *BoardingPassRecord) GetCarryOnAllowance() string
func (*BoardingPassRecord) GetClass ¶
func (x *BoardingPassRecord) GetClass() string
func (*BoardingPassRecord) GetCompartmentCode ¶
func (x *BoardingPassRecord) GetCompartmentCode() cabincodes.CompartmentCode
func (*BoardingPassRecord) GetConditionalItems ¶
func (x *BoardingPassRecord) GetConditionalItems() *ConditionalItems
func (*BoardingPassRecord) GetDepartureDate ¶
func (x *BoardingPassRecord) GetDepartureDate() *io.Date
func (*BoardingPassRecord) GetDeplaningPoint ¶
func (x *BoardingPassRecord) GetDeplaningPoint() string
func (*BoardingPassRecord) GetFlightNumber ¶
func (x *BoardingPassRecord) GetFlightNumber() string
func (*BoardingPassRecord) GetFooterImage ¶
func (x *BoardingPassRecord) GetFooterImage() string
func (*BoardingPassRecord) GetFreeBaggageAllowance ¶
func (x *BoardingPassRecord) GetFreeBaggageAllowance() string
func (*BoardingPassRecord) GetId ¶
func (x *BoardingPassRecord) GetId() string
func (*BoardingPassRecord) GetInfantPassId ¶
func (x *BoardingPassRecord) GetInfantPassId() string
func (*BoardingPassRecord) GetLinks ¶
func (x *BoardingPassRecord) GetLinks() []*io.Link
func (*BoardingPassRecord) GetLocationMessages ¶
func (x *BoardingPassRecord) GetLocationMessages() []*io.GPSLocation
func (*BoardingPassRecord) GetMetadata ¶
func (x *BoardingPassRecord) GetMetadata() *io.Metadata
func (*BoardingPassRecord) GetOperatingCarrierPNR ¶
func (x *BoardingPassRecord) GetOperatingCarrierPNR() string
func (*BoardingPassRecord) GetOsi ¶
func (x *BoardingPassRecord) GetOsi() string
func (*BoardingPassRecord) GetPassenger ¶
func (x *BoardingPassRecord) GetPassenger() *Passenger
func (*BoardingPassRecord) GetPassengerStatus ¶
func (x *BoardingPassRecord) GetPassengerStatus() PassengerStatus
func (*BoardingPassRecord) GetPrivilegeImage ¶
func (x *BoardingPassRecord) GetPrivilegeImage() string
func (*BoardingPassRecord) GetRelatedPNRs ¶
func (x *BoardingPassRecord) GetRelatedPNRs() []string
func (*BoardingPassRecord) GetRemarks ¶
func (x *BoardingPassRecord) GetRemarks() string
func (*BoardingPassRecord) GetSeatNumber ¶
func (x *BoardingPassRecord) GetSeatNumber() string
func (*BoardingPassRecord) GetSecurityImage ¶
func (x *BoardingPassRecord) GetSecurityImage() string
func (*BoardingPassRecord) GetSequenceNumber ¶
func (x *BoardingPassRecord) GetSequenceNumber() int32
func (*BoardingPassRecord) GetSsrCodes ¶
func (x *BoardingPassRecord) GetSsrCodes() []string
func (*BoardingPassRecord) GetTicketLeg ¶
func (x *BoardingPassRecord) GetTicketLeg() int32
func (*BoardingPassRecord) GetTicketNumber ¶
func (x *BoardingPassRecord) GetTicketNumber() string
func (*BoardingPassRecord) ProtoMessage ¶
func (*BoardingPassRecord) ProtoMessage()
func (*BoardingPassRecord) ProtoReflect ¶
func (x *BoardingPassRecord) ProtoReflect() protoreflect.Message
func (*BoardingPassRecord) Reset ¶
func (x *BoardingPassRecord) Reset()
func (*BoardingPassRecord) String ¶
func (x *BoardingPassRecord) String() string
type BoardingPassRecordRequest ¶
type BoardingPassRecordRequest struct { // Either a ticket number, index or PNR information should be provided. // // Types that are assignable to Request: // // *BoardingPassRecordRequest_TicketNumber // *BoardingPassRecordRequest_Index // *BoardingPassRecordRequest_PassId Request isBoardingPassRecordRequest_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
Used to request a digital boarding pass record by ticket number, index or pass id.
func (*BoardingPassRecordRequest) Descriptor
deprecated
func (*BoardingPassRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassRecordRequest.ProtoReflect.Descriptor instead.
func (*BoardingPassRecordRequest) GetIndex ¶
func (x *BoardingPassRecordRequest) GetIndex() *BoardingPassRecordRequestByIndex
func (*BoardingPassRecordRequest) GetPassId ¶
func (x *BoardingPassRecordRequest) GetPassId() *io.Id
func (*BoardingPassRecordRequest) GetRequest ¶
func (m *BoardingPassRecordRequest) GetRequest() isBoardingPassRecordRequest_Request
func (*BoardingPassRecordRequest) GetTicketNumber ¶
func (x *BoardingPassRecordRequest) GetTicketNumber() *BoardingPassRecordRequestByTicketNumber
func (*BoardingPassRecordRequest) ProtoMessage ¶
func (*BoardingPassRecordRequest) ProtoMessage()
func (*BoardingPassRecordRequest) ProtoReflect ¶
func (x *BoardingPassRecordRequest) ProtoReflect() protoreflect.Message
func (*BoardingPassRecordRequest) Reset ¶
func (x *BoardingPassRecordRequest) Reset()
func (*BoardingPassRecordRequest) String ¶
func (x *BoardingPassRecordRequest) String() string
type BoardingPassRecordRequestByIndex ¶
type BoardingPassRecordRequestByIndex struct { // The two or three character airline code of the marketing carrier. // @tag: validateGeneric:"required,fixedLenAlphaNum=2|fixedLenAlphaNum=3" CarrierCode string `` /* 140-byte string literal not displayed */ // The flight number of the marketing character (excluding the carrier code). // @tag: validateGeneric:"required,alphanum,max=5" FlightNumber string `protobuf:"bytes,2,opt,name=flightNumber,proto3" json:"flightNumber,omitempty" validateGeneric:"required,alphanum,max=5"` // The date of departure in local airport time. // @tag: validateGeneric:"required" DepartureDate *io.Date `protobuf:"bytes,3,opt,name=departureDate,proto3" json:"departureDate,omitempty" validateGeneric:"required"` // 3 letter IATA code or 4 letter ICAO code of the passenger boarding point. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" BoardingPoint string `` /* 144-byte string literal not displayed */ // The check in sequence number. // @tag: validateGeneric:"required" SequenceNumber int32 `protobuf:"varint,5,opt,name=sequenceNumber,proto3" json:"sequenceNumber,omitempty" validateGeneric:"required"` // contains filtered or unexported fields }
Boarding passes are indexed by carrier code, flight number, departure date, boarding point and sequence number. All values are required.
func (*BoardingPassRecordRequestByIndex) Descriptor
deprecated
func (*BoardingPassRecordRequestByIndex) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassRecordRequestByIndex.ProtoReflect.Descriptor instead.
func (*BoardingPassRecordRequestByIndex) GetBoardingPoint ¶
func (x *BoardingPassRecordRequestByIndex) GetBoardingPoint() string
func (*BoardingPassRecordRequestByIndex) GetCarrierCode ¶
func (x *BoardingPassRecordRequestByIndex) GetCarrierCode() string
func (*BoardingPassRecordRequestByIndex) GetDepartureDate ¶
func (x *BoardingPassRecordRequestByIndex) GetDepartureDate() *io.Date
func (*BoardingPassRecordRequestByIndex) GetFlightNumber ¶
func (x *BoardingPassRecordRequestByIndex) GetFlightNumber() string
func (*BoardingPassRecordRequestByIndex) GetSequenceNumber ¶
func (x *BoardingPassRecordRequestByIndex) GetSequenceNumber() int32
func (*BoardingPassRecordRequestByIndex) ProtoMessage ¶
func (*BoardingPassRecordRequestByIndex) ProtoMessage()
func (*BoardingPassRecordRequestByIndex) ProtoReflect ¶
func (x *BoardingPassRecordRequestByIndex) ProtoReflect() protoreflect.Message
func (*BoardingPassRecordRequestByIndex) Reset ¶
func (x *BoardingPassRecordRequestByIndex) Reset()
func (*BoardingPassRecordRequestByIndex) String ¶
func (x *BoardingPassRecordRequestByIndex) String() string
type BoardingPassRecordRequestByTicketNumber ¶
type BoardingPassRecordRequestByTicketNumber struct { // Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number. For ticket numbers less than 10 digits, pad with zeros. // @tag: validateGeneric:"omitempty,ticketnum,numeric,len=10|len=13 TicketNumber string `protobuf:"bytes,1,opt,name=ticketNumber,proto3" json:"ticketNumber,omitempty"` // The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2. For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call. // @tag: validateGeneric:"omitempty" TicketLeg int32 `protobuf:"varint,2,opt,name=ticketLeg,proto3" json:"ticketLeg,omitempty" validateGeneric:"omitempty"` // Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point. // @tag: validateGeneric:"required_without=TicketLeg,fixedLenAlphaNum=3|fixedLenAlphaNum=4|isdefault" BoardingPoint string `` /* 172-byte string literal not displayed */ // contains filtered or unexported fields }
Boarding passes are indexed by ticket number and leg or boarding point. Either a journey leg or boarding point is required.
func (*BoardingPassRecordRequestByTicketNumber) Descriptor
deprecated
func (*BoardingPassRecordRequestByTicketNumber) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassRecordRequestByTicketNumber.ProtoReflect.Descriptor instead.
func (*BoardingPassRecordRequestByTicketNumber) GetBoardingPoint ¶
func (x *BoardingPassRecordRequestByTicketNumber) GetBoardingPoint() string
func (*BoardingPassRecordRequestByTicketNumber) GetTicketLeg ¶
func (x *BoardingPassRecordRequestByTicketNumber) GetTicketLeg() int32
func (*BoardingPassRecordRequestByTicketNumber) GetTicketNumber ¶
func (x *BoardingPassRecordRequestByTicketNumber) GetTicketNumber() string
func (*BoardingPassRecordRequestByTicketNumber) ProtoMessage ¶
func (*BoardingPassRecordRequestByTicketNumber) ProtoMessage()
func (*BoardingPassRecordRequestByTicketNumber) ProtoReflect ¶
func (x *BoardingPassRecordRequestByTicketNumber) ProtoReflect() protoreflect.Message
func (*BoardingPassRecordRequestByTicketNumber) Reset ¶
func (x *BoardingPassRecordRequestByTicketNumber) Reset()
func (*BoardingPassRecordRequestByTicketNumber) String ¶
func (x *BoardingPassRecordRequestByTicketNumber) String() string
type BoardingPassRecordRequest_Index ¶
type BoardingPassRecordRequest_Index struct {
Index *BoardingPassRecordRequestByIndex `protobuf:"bytes,2,opt,name=index,proto3,oneof"`
}
type BoardingPassRecordRequest_TicketNumber ¶
type BoardingPassRecordRequest_TicketNumber struct {
TicketNumber *BoardingPassRecordRequestByTicketNumber `protobuf:"bytes,1,opt,name=ticketNumber,proto3,oneof"`
}
type BoardingPassRequest ¶
type BoardingPassRequest struct { // Either a ticket number, index, PNR information or Pass Id should be provided. // // Types that are assignable to Request: // // *BoardingPassRequest_TicketNumber // *BoardingPassRequest_Index // *BoardingPassRequest_Pnr // *BoardingPassRequest_PassId Request isBoardingPassRequest_Request `protobuf_oneof:"request"` // Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record. Format []io.PassBundleFormat `protobuf:"varint,5,rep,packed,name=format,proto3,enum=io.PassBundleFormat" json:"format,omitempty"` // contains filtered or unexported fields }
Used to request a digital boarding pass by ticket number, index, PassKit ID or PNR.
func (*BoardingPassRequest) Descriptor
deprecated
func (*BoardingPassRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassRequest.ProtoReflect.Descriptor instead.
func (*BoardingPassRequest) GetFormat ¶
func (x *BoardingPassRequest) GetFormat() []io.PassBundleFormat
func (*BoardingPassRequest) GetIndex ¶
func (x *BoardingPassRequest) GetIndex() *BoardingPassRecordRequestByIndex
func (*BoardingPassRequest) GetPassId ¶
func (x *BoardingPassRequest) GetPassId() *io.Id
func (*BoardingPassRequest) GetPnr ¶
func (x *BoardingPassRequest) GetPnr() *BoardingPassesForBookingRequest
func (*BoardingPassRequest) GetRequest ¶
func (m *BoardingPassRequest) GetRequest() isBoardingPassRequest_Request
func (*BoardingPassRequest) GetTicketNumber ¶
func (x *BoardingPassRequest) GetTicketNumber() *BoardingPassRecordRequestByTicketNumber
func (*BoardingPassRequest) ProtoMessage ¶
func (*BoardingPassRequest) ProtoMessage()
func (*BoardingPassRequest) ProtoReflect ¶
func (x *BoardingPassRequest) ProtoReflect() protoreflect.Message
func (*BoardingPassRequest) Reset ¶
func (x *BoardingPassRequest) Reset()
func (*BoardingPassRequest) String ¶
func (x *BoardingPassRequest) String() string
type BoardingPassRequest_Index ¶
type BoardingPassRequest_Index struct {
Index *BoardingPassRecordRequestByIndex `protobuf:"bytes,2,opt,name=index,proto3,oneof"`
}
type BoardingPassRequest_Pnr ¶
type BoardingPassRequest_Pnr struct {
Pnr *BoardingPassesForBookingRequest `protobuf:"bytes,3,opt,name=pnr,proto3,oneof"`
}
type BoardingPassRequest_TicketNumber ¶
type BoardingPassRequest_TicketNumber struct {
TicketNumber *BoardingPassRecordRequestByTicketNumber `protobuf:"bytes,1,opt,name=ticketNumber,proto3,oneof"`
}
type BoardingPassesForBookingRequest ¶
type BoardingPassesForBookingRequest struct { // The master PNR for the booking. // @tag: validateGeneric:"required,alphanum,min=5,max=7" Pnr string `protobuf:"bytes,1,opt,name=pnr,proto3" json:"pnr,omitempty" validateGeneric:"required,alphanum,min=5,max=7"` // Optional. The leg of the ticket. Typically for a return ticket, the outbound leg will be 1 and the return leg will be 2. // @tag: validate:"omitempty" TicketLeg int32 `protobuf:"varint,2,opt,name=ticketLeg,proto3" json:"ticketLeg,omitempty" validate:"omitempty"` // @tag: validateGeneric:"required_without=TicketLeg,fixedLenAlphaNum=3|fixedLenAlphaNum=4|isdefault" // Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point. BoardingPoint string `` /* 172-byte string literal not displayed */ // contains filtered or unexported fields }
Used to request digital boarding pass(es) by booking number. Either a journey leg or boarding point is required.
func (*BoardingPassesForBookingRequest) Descriptor
deprecated
func (*BoardingPassesForBookingRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassesForBookingRequest.ProtoReflect.Descriptor instead.
func (*BoardingPassesForBookingRequest) GetBoardingPoint ¶
func (x *BoardingPassesForBookingRequest) GetBoardingPoint() string
func (*BoardingPassesForBookingRequest) GetPnr ¶
func (x *BoardingPassesForBookingRequest) GetPnr() string
func (*BoardingPassesForBookingRequest) GetTicketLeg ¶
func (x *BoardingPassesForBookingRequest) GetTicketLeg() int32
func (*BoardingPassesForBookingRequest) ProtoMessage ¶
func (*BoardingPassesForBookingRequest) ProtoMessage()
func (*BoardingPassesForBookingRequest) ProtoReflect ¶
func (x *BoardingPassesForBookingRequest) ProtoReflect() protoreflect.Message
func (*BoardingPassesForBookingRequest) Reset ¶
func (x *BoardingPassesForBookingRequest) Reset()
func (*BoardingPassesForBookingRequest) String ¶
func (x *BoardingPassesForBookingRequest) String() string
type BoardingPassesResponse ¶
type BoardingPassesResponse struct { // An array of boarding passes found relating to the PNR. BoardingPasses []*io.PassBundle `protobuf:"bytes,1,rep,name=boardingPasses,proto3" json:"boardingPasses,omitempty"` // contains filtered or unexported fields }
Contains an array of digital boarding passes.
func (*BoardingPassesResponse) Descriptor
deprecated
func (*BoardingPassesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BoardingPassesResponse.ProtoReflect.Descriptor instead.
func (*BoardingPassesResponse) GetBoardingPasses ¶
func (x *BoardingPassesResponse) GetBoardingPasses() []*io.PassBundle
func (*BoardingPassesResponse) ProtoMessage ¶
func (*BoardingPassesResponse) ProtoMessage()
func (*BoardingPassesResponse) ProtoReflect ¶
func (x *BoardingPassesResponse) ProtoReflect() protoreflect.Message
func (*BoardingPassesResponse) Reset ¶
func (x *BoardingPassesResponse) Reset()
func (*BoardingPassesResponse) String ¶
func (x *BoardingPassesResponse) String() string
type BoardingPolicy ¶
type BoardingPolicy int32
The Boarding Policy is used to determine informational labels on the pass.
const ( BoardingPolicy_BOARDING_POLICY_UNSPECIFIED BoardingPolicy = 0 // Boarding is managed by zone. BoardingPolicy_ZONE_BASED BoardingPolicy = 1 // Boarding is managed by group. BoardingPolicy_GROUP_BASED BoardingPolicy = 2 // Another, or No boarding policy is in place. BoardingPolicy_BOARDING_POLICY_OTHER BoardingPolicy = 3 )
func (BoardingPolicy) Descriptor ¶
func (BoardingPolicy) Descriptor() protoreflect.EnumDescriptor
func (BoardingPolicy) Enum ¶
func (x BoardingPolicy) Enum() *BoardingPolicy
func (BoardingPolicy) EnumDescriptor
deprecated
func (BoardingPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use BoardingPolicy.Descriptor instead.
func (BoardingPolicy) Number ¶
func (x BoardingPolicy) Number() protoreflect.EnumNumber
func (BoardingPolicy) String ¶
func (x BoardingPolicy) String() string
func (BoardingPolicy) Type ¶
func (BoardingPolicy) Type() protoreflect.EnumType
type Carrier ¶
type Carrier struct { // The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY. // @tag: validateGeneric:"required_without=IcaoCarrierCode,fixedLenAlphaNum=2" IataCarrierCode string `` /* 153-byte string literal not displayed */ // The ICAO carrier code. Required if an iataCarrierCode is not provided. // @tag: validateGeneric:"required_without=IataCarrierCode,fixedLenAlphaNum=3|isdefault" IcaoCarrierCode string `` /* 163-byte string literal not displayed */ // The IATA accounting code / AWB prefix. If no code has been allocated, enter zero. // @tag: validateGeneric:"numeric,max=999" IataAccountingCode int32 `protobuf:"varint,3,opt,name=iataAccountingCode,proto3" json:"iataAccountingCode,omitempty" validateGeneric:"numeric,max=999"` // The name of the airline. This will be printed below the logo on the Google Pay pass. // @tag: validateGeneric:"required" AirlineName string `protobuf:"bytes,4,opt,name=airlineName,proto3" json:"airlineName,omitempty" validateGeneric:"required"` // The localized airline name, if applicable. LocalizedAirlineName *io.LocalizedString `protobuf:"bytes,5,opt,name=localizedAirlineName,proto3" json:"localizedAirlineName,omitempty"` // If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded. // @tag: validateGeneric:"required" PassTypeIdentifier string `protobuf:"bytes,6,opt,name=passTypeIdentifier,proto3" json:"passTypeIdentifier,omitempty" validateGeneric:"required"` // If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload. PrivateKeyId string `protobuf:"bytes,7,opt,name=privateKeyId,proto3" json:"privateKeyId,omitempty"` // contains filtered or unexported fields }
A carrier record contains details of the carrier. The carrier will be the issuer of the boarding pass and may be used as a marketing or operating carrier.
func (*Carrier) Descriptor
deprecated
func (*Carrier) GetAirlineName ¶
func (*Carrier) GetIataAccountingCode ¶
func (*Carrier) GetIataCarrierCode ¶
func (*Carrier) GetIcaoCarrierCode ¶
func (*Carrier) GetLocalizedAirlineName ¶
func (x *Carrier) GetLocalizedAirlineName() *io.LocalizedString
func (*Carrier) GetPassTypeIdentifier ¶
func (*Carrier) GetPrivateKeyId ¶
func (*Carrier) ProtoMessage ¶
func (*Carrier) ProtoMessage()
func (*Carrier) ProtoReflect ¶
func (x *Carrier) ProtoReflect() protoreflect.Message
type CarrierCode ¶
type CarrierCode struct { // The IATA or ICAO carrier code. CarrierCode string `protobuf:"bytes,1,opt,name=carrierCode,proto3" json:"carrierCode,omitempty"` // contains filtered or unexported fields }
CarrierCode is used for retrieving or deleting a port record.
func (*CarrierCode) Descriptor
deprecated
func (*CarrierCode) Descriptor() ([]byte, []int)
Deprecated: Use CarrierCode.ProtoReflect.Descriptor instead.
func (*CarrierCode) GetCarrierCode ¶
func (x *CarrierCode) GetCarrierCode() string
func (*CarrierCode) ProtoMessage ¶
func (*CarrierCode) ProtoMessage()
func (*CarrierCode) ProtoReflect ¶
func (x *CarrierCode) ProtoReflect() protoreflect.Message
func (*CarrierCode) Reset ¶
func (x *CarrierCode) Reset()
func (*CarrierCode) String ¶
func (x *CarrierCode) String() string
type ConditionalItems ¶
type ConditionalItems struct { // Passenger Status as detailed in IATA PSC Resolution 792 Attachment 'C'. Note: all values other than 0 indicate that the passenger has checked in. // @tag: validateGeneric:"omitempty" PassengerDescription PassengerDescription `` /* 156-byte string literal not displayed */ // Source of checkin as detailed in IATA PSC Resolution 792 Attachment 'C'. // @tag: validateGeneric:"omitempty" CheckInSource Source `` /* 128-byte string literal not displayed */ // Source of boarding pass issuance as detailed in IATA PSC Resolution 792 Attachment 'C'. // @tag: validateGeneric:"omitempty" BoardingPassIssuanceSource Source `` /* 154-byte string literal not displayed */ // Date of boarding pass issuance, local to the boarding point. // @tag: validateGeneric:"omitempty" BoardingPassIssueDate *io.Date `protobuf:"bytes,4,opt,name=boardingPassIssueDate,proto3" json:"boardingPassIssueDate,omitempty" validateGeneric:"omitempty"` // Document type that the barcode represents. // @tag: validateGeneric:"omitempty" DocumentType DocType `` /* 127-byte string literal not displayed */ // IATA or ICAO designator of boarding pass issuer. // @tag: validateGeneric:"omitempty" BoardingPassIssuer string `protobuf:"bytes,6,opt,name=boardingPassIssuer,proto3" json:"boardingPassIssuer,omitempty" validateGeneric:"omitempty"` // This field allows carriers to populate baggage tag numbers and the number of consecutive bags. It contains 13 characters corresponding to the 10 digit bag tag number, as per IATA BCM specifications, Resolution 740 and 3 digits identifying the number of consecutive tags.\n1: leading digit – 0 for interline tag, 1 for fall-back tag, 2 for interline rush tag.\n2-4: carrier numeric code.\n5-10: carrier initial tag number (leading zeros).\n11-13: number of consecutive tags (allows for up to 999 tags).\nUp to 2 additional, non-consecutive tags can be added. // @tag: validateGeneric:"omitempty,dive,numeric" BaggageTagNumber []string `` /* 126-byte string literal not displayed */ // Passenger security status. Note: in practical terms, this is always likely to be NOT_SELECTEE or TSA_PRECHECK since current DHS Pre-Departure Regulations only allow on-site printing of boarding passes. It is mandatory when US travel is involved. // @tag: validateGeneric:"omitempty" SelecteeIndicator SelecteeIndicator `` /* 147-byte string literal not displayed */ // International Documentation Verification status as detailed in IATA PSC Resolution 792 Attachment 'C'. // @tag: validateGeneric:"omitempty" InternationalDocVerification InternationalDocVerification `` /* 180-byte string literal not displayed */ // Industry Discount / Airline Discount codes. See IATA Recommended Practice 1788. // @tag: validateGeneric:"omitempty" IdadIndicator IDADIndicator `` /* 136-byte string literal not displayed */ // Passenger eligibility for Fast-track privileges. // @tag: validateGeneric:"omitempty" FastTrack FastTrack `protobuf:"varint,11,opt,name=fastTrack,proto3,enum=flights.FastTrack" json:"fastTrack,omitempty" validateGeneric:"omitempty"` // contains filtered or unexported fields }
Conditional items for the flight segment as described in IATA PSC Resolution 792. Note: items supplied or derived through other objects (E.g. Frequent Flyer information) are not supplied here.
func (*ConditionalItems) Descriptor
deprecated
func (*ConditionalItems) Descriptor() ([]byte, []int)
Deprecated: Use ConditionalItems.ProtoReflect.Descriptor instead.
func (*ConditionalItems) GetBaggageTagNumber ¶
func (x *ConditionalItems) GetBaggageTagNumber() []string
func (*ConditionalItems) GetBoardingPassIssuanceSource ¶
func (x *ConditionalItems) GetBoardingPassIssuanceSource() Source
func (*ConditionalItems) GetBoardingPassIssueDate ¶
func (x *ConditionalItems) GetBoardingPassIssueDate() *io.Date
func (*ConditionalItems) GetBoardingPassIssuer ¶
func (x *ConditionalItems) GetBoardingPassIssuer() string
func (*ConditionalItems) GetCheckInSource ¶
func (x *ConditionalItems) GetCheckInSource() Source
func (*ConditionalItems) GetDocumentType ¶
func (x *ConditionalItems) GetDocumentType() DocType
func (*ConditionalItems) GetFastTrack ¶
func (x *ConditionalItems) GetFastTrack() FastTrack
func (*ConditionalItems) GetIdadIndicator ¶
func (x *ConditionalItems) GetIdadIndicator() IDADIndicator
func (*ConditionalItems) GetInternationalDocVerification ¶
func (x *ConditionalItems) GetInternationalDocVerification() InternationalDocVerification
func (*ConditionalItems) GetPassengerDescription ¶
func (x *ConditionalItems) GetPassengerDescription() PassengerDescription
func (*ConditionalItems) GetSelecteeIndicator ¶
func (x *ConditionalItems) GetSelecteeIndicator() SelecteeIndicator
func (*ConditionalItems) ProtoMessage ¶
func (*ConditionalItems) ProtoMessage()
func (*ConditionalItems) ProtoReflect ¶
func (x *ConditionalItems) ProtoReflect() protoreflect.Message
func (*ConditionalItems) Reset ¶
func (x *ConditionalItems) Reset()
func (*ConditionalItems) String ¶
func (x *ConditionalItems) String() string
type DocType ¶
type DocType int32
Document type that the barcode represents.
func (DocType) Descriptor ¶
func (DocType) Descriptor() protoreflect.EnumDescriptor
func (DocType) EnumDescriptor
deprecated
func (DocType) Number ¶
func (x DocType) Number() protoreflect.EnumNumber
func (DocType) Type ¶
func (DocType) Type() protoreflect.EnumType
type FastTrack ¶
type FastTrack int32
Passenger eligibility for Fast-track privileges.
func (FastTrack) Descriptor ¶
func (FastTrack) Descriptor() protoreflect.EnumDescriptor
func (FastTrack) EnumDescriptor
deprecated
func (FastTrack) Number ¶
func (x FastTrack) Number() protoreflect.EnumNumber
func (FastTrack) Type ¶
func (FastTrack) Type() protoreflect.EnumType
type Flight ¶
type Flight struct { // The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist. // @tag: validateGeneric:"required,fixedLenAlphaNum=2|fixedLenAlphaNum=3" CarrierCode string `` /* 140-byte string literal not displayed */ // The flight number. // @tag: validateGeneric:"required,alphanum,max=5" FlightNumber string `protobuf:"bytes,2,opt,name=flightNumber,proto3" json:"flightNumber,omitempty" validateGeneric:"required,alphanum,max=5"` // The IATA airport code of the boarding point. Only required is segment is not provided. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" BoardingPoint string `` /* 144-byte string literal not displayed */ // The IATA airport code of the deplaning point. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" DeplaningPoint string `` /* 146-byte string literal not displayed */ // The scheduled date of departure. // @tag: validateGeneric:"required" DepartureDate *io.Date `protobuf:"bytes,5,opt,name=departureDate,proto3" json:"departureDate,omitempty" validateGeneric:"required"` // Departure Terminal. DepartureTerminal string `protobuf:"bytes,6,opt,name=departureTerminal,proto3" json:"departureTerminal,omitempty"` // Arrival Terminal. ArrivalTerminal string `protobuf:"bytes,7,opt,name=arrivalTerminal,proto3" json:"arrivalTerminal,omitempty"` // Departure Gate. DepartureGate string `protobuf:"bytes,8,opt,name=departureGate,proto3" json:"departureGate,omitempty"` // Arrival Gate. ArrivalGate string `protobuf:"bytes,9,opt,name=arrivalGate,proto3" json:"arrivalGate,omitempty"` // The scheduled departure time. If omitted then the departureDate must be specified. // @tag: validateGeneric:"required,ioLocalDate" ScheduledDepartureTime *io.LocalDateTime `` /* 137-byte string literal not displayed */ // The estimated departure time. // @tag: validateGeneric:"omitempty,ioLocalDate" EstimatedDepartureTime *io.LocalDateTime `` /* 138-byte string literal not displayed */ // The boarding time. // @tag: validateGeneric:"omitempty,ioLocalDate" BoardingTime *io.LocalDateTime `protobuf:"bytes,12,opt,name=boardingTime,proto3" json:"boardingTime,omitempty" validateGeneric:"omitempty,ioLocalDate"` // The time the gate will close. // @tag: validateGeneric:"omitempty,ioLocalDate" GateClosingTime *io.LocalDateTime `protobuf:"bytes,13,opt,name=gateClosingTime,proto3" json:"gateClosingTime,omitempty" validateGeneric:"omitempty,ioLocalDate"` // The scheduled arrival time. // @tag: validateGeneric:"omitempty,ioLocalDate" ScheduledArrivalTime *io.LocalDateTime `` /* 134-byte string literal not displayed */ // The estimated arrival time. // @tag: validateGeneric:"omitempty,ioLocalDate" EstimatedArrivalTime *io.LocalDateTime `` /* 134-byte string literal not displayed */ // If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist. // @tag: validateGeneric:"omitempty,required_with=OperatingFlightNumber,fixedLenAlphaNum=2|fixedLenAlphaNum=3" OperatingCarrierCode string `` /* 196-byte string literal not displayed */ // If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier. // @tag: validateGeneric:"required_with=OperatingCarrierCode,alphanum|isdefault,max=5" OperatingFlightNumber string `` /* 174-byte string literal not displayed */ // @tag: validateGeneric:"omitempty,max=10,dive,alphanum|isdefault,max=8" CodeShareFlightNumbers []string `` /* 163-byte string literal not displayed */ // The pass template id. // @tag: validateGeneric:"required,uuidCompressedString" PassTemplateId string `` /* 130-byte string literal not displayed */ // The baggage belt at the destination. BaggageBelt string `protobuf:"bytes,21,opt,name=baggageBelt,proto3" json:"baggageBelt,omitempty"` // Minutes after estimated or scheduled arrival to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours. AutoInvalidateAfter uint32 `protobuf:"varint,22,opt,name=autoInvalidateAfter,proto3" json:"autoInvalidateAfter,omitempty"` // Deprecated: Use InvalidateCancelledPasses. // // Deprecated: Marked as deprecated in io/flights/flight.proto. AutoInvalidateCancelledPasses bool `protobuf:"varint,23,opt,name=autoInvalidateCancelledPasses,proto3" json:"autoInvalidateCancelledPasses,omitempty"` // A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults. // @tag: validateGeneric:"omitempty,dive" validateCreate:"omitempty,dive" validateUpdate:"omitempty,dive" LocationMessages []*io.GPSLocation `` /* 183-byte string literal not displayed */ // A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults. // @tag: validateGeneric:"omitempty,dive" validateCreate:"omitempty,dive" validateUpdate:"omitempty,dive" BeaconMessages []*io.Beacon `` /* 179-byte string literal not displayed */ // A list of links to be appended to the end of each boarding pass. // @tag: validateGeneric:"omitempty,dive" validateCreate:"omitempty,dive" validateUpdate:"omitempty,dive" Links []*io.Link `` /* 161-byte string literal not displayed */ // Suspend automatic updates to all boarding passes for this flight. SuspendAutomaticUpdates bool `protobuf:"varint,27,opt,name=suspendAutomaticUpdates,proto3" json:"suspendAutomaticUpdates,omitempty"` // Used to determine the label printed above the boarding group on the Google Pay pass. // @tag: validate:"omitempty,max=3" BoardingPolicy BoardingPolicy `` /* 138-byte string literal not displayed */ // Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus. // @tag: validate:"omitempty,max=4" SeatingPolicy SeatClassPolicy `` /* 137-byte string literal not displayed */ // The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates. // @tag: validateGeneric:"omitempty,max=13" Status FlightStatus `` /* 128-byte string literal not displayed */ // If PassKit are generating barcodes, include conditional items. Default false. ConditionalItems bool `protobuf:"varint,31,opt,name=ConditionalItems,proto3" json:"ConditionalItems,omitempty"` // If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level. BarcodeAdditionalData string `protobuf:"bytes,32,opt,name=BarcodeAdditionalData,proto3" json:"BarcodeAdditionalData,omitempty"` // Issued, installed, uninstalled and invalidated counts. Metrics are not writable. // @tag: validateGeneric:"isdefault" Metrics *io.Metrics `protobuf:"bytes,33,opt,name=metrics,proto3" json:"metrics,omitempty" validateGeneric:"isdefault"` // How the flight was created Create mode, manually or automatically. // @tag: validateGeneric:"isdefault" CreateMethod FlightCreateMode `` /* 137-byte string literal not displayed */ // For automatically created flights, shows the ID of the designator that bootstrapped the flight record. // @tag: validateGeneric:"isdefault" DesignatorId string `protobuf:"bytes,35,opt,name=designatorId,proto3" json:"designatorId,omitempty" validateGeneric:"isdefault"` // Invalidate passes where either the booking or the flight have been cancelled. Default is ON. InvalidateCancelledPasses io.Toggle `protobuf:"varint,36,opt,name=invalidateCancelledPasses,proto3,enum=io.Toggle" json:"invalidateCancelledPasses,omitempty"` // contains filtered or unexported fields }
func (*Flight) Descriptor
deprecated
func (*Flight) GetArrivalGate ¶
func (*Flight) GetArrivalTerminal ¶
func (*Flight) GetAutoInvalidateAfter ¶
func (*Flight) GetAutoInvalidateCancelledPasses
deprecated
func (*Flight) GetBaggageBelt ¶
func (*Flight) GetBarcodeAdditionalData ¶
func (*Flight) GetBeaconMessages ¶
func (*Flight) GetBoardingPoint ¶
func (*Flight) GetBoardingPolicy ¶
func (x *Flight) GetBoardingPolicy() BoardingPolicy
func (*Flight) GetBoardingTime ¶
func (x *Flight) GetBoardingTime() *io.LocalDateTime
func (*Flight) GetCarrierCode ¶
func (*Flight) GetCodeShareFlightNumbers ¶
func (*Flight) GetConditionalItems ¶
func (*Flight) GetCreateMethod ¶
func (x *Flight) GetCreateMethod() FlightCreateMode
func (*Flight) GetDepartureDate ¶
func (*Flight) GetDepartureGate ¶
func (*Flight) GetDepartureTerminal ¶
func (*Flight) GetDeplaningPoint ¶
func (*Flight) GetDesignatorId ¶
func (*Flight) GetEstimatedArrivalTime ¶
func (x *Flight) GetEstimatedArrivalTime() *io.LocalDateTime
func (*Flight) GetEstimatedDepartureTime ¶
func (x *Flight) GetEstimatedDepartureTime() *io.LocalDateTime
func (*Flight) GetFlightNumber ¶
func (*Flight) GetGateClosingTime ¶
func (x *Flight) GetGateClosingTime() *io.LocalDateTime
func (*Flight) GetInvalidateCancelledPasses ¶
func (*Flight) GetLocationMessages ¶
func (x *Flight) GetLocationMessages() []*io.GPSLocation
func (*Flight) GetMetrics ¶
func (*Flight) GetOperatingCarrierCode ¶
func (*Flight) GetOperatingFlightNumber ¶
func (*Flight) GetPassTemplateId ¶
func (*Flight) GetScheduledArrivalTime ¶
func (x *Flight) GetScheduledArrivalTime() *io.LocalDateTime
func (*Flight) GetScheduledDepartureTime ¶
func (x *Flight) GetScheduledDepartureTime() *io.LocalDateTime
func (*Flight) GetSeatingPolicy ¶
func (x *Flight) GetSeatingPolicy() SeatClassPolicy
func (*Flight) GetStatus ¶
func (x *Flight) GetStatus() FlightStatus
func (*Flight) GetSuspendAutomaticUpdates ¶
func (*Flight) ProtoMessage ¶
func (*Flight) ProtoMessage()
func (*Flight) ProtoReflect ¶
func (x *Flight) ProtoReflect() protoreflect.Message
type FlightAlerts ¶
type FlightAlerts int32
Flight alerts automatically update boarding passes as information becomes available or changes. Note that these services may incur additional usage charges.
const ( // Boarding passes will not automatically update. FlightAlerts_NO_ALERTS FlightAlerts = 0 // Boarding passes will automatically update whenever a change to the departure gate/time, arrival gate/time or baggage belt information is detected. FlightAlerts_ALL_ALERTS FlightAlerts = 1 // Boarding passes will automatically update whenever a change to the departure gate is detected. FlightAlerts_DEPARTURE_GATE_ALERT FlightAlerts = 2 // Boarding passes will automatically update whenever a change to the estimated departure gate is detected. FlightAlerts_DEPARTURE_TIME_ALERT FlightAlerts = 4 // Boarding passes will automatically update whenever a change to the arrival gate is detected. FlightAlerts_ARRIVAL_GATE_ALERT FlightAlerts = 8 // Boarding passes will automatically update whenever a change to the estimated arrival time is detected. FlightAlerts_ARRIVAL_TIME_ALERT FlightAlerts = 16 // Boarding passes will automatically update whenever the baggage collection belt or area is known or changes. FlightAlerts_BAGGAGE_BELT_ALERT FlightAlerts = 32 )
func (FlightAlerts) Descriptor ¶
func (FlightAlerts) Descriptor() protoreflect.EnumDescriptor
func (FlightAlerts) Enum ¶
func (x FlightAlerts) Enum() *FlightAlerts
func (FlightAlerts) EnumDescriptor
deprecated
func (FlightAlerts) EnumDescriptor() ([]byte, []int)
Deprecated: Use FlightAlerts.Descriptor instead.
func (FlightAlerts) Number ¶
func (x FlightAlerts) Number() protoreflect.EnumNumber
func (FlightAlerts) String ¶
func (x FlightAlerts) String() string
func (FlightAlerts) Type ¶
func (FlightAlerts) Type() protoreflect.EnumType
type FlightCreateMode ¶
type FlightCreateMode int32
const ( FlightCreateMode_DO_NOT_USE FlightCreateMode = 0 FlightCreateMode_MANUAL FlightCreateMode = 1 FlightCreateMode_AUTOMATIC FlightCreateMode = 2 )
func (FlightCreateMode) Descriptor ¶
func (FlightCreateMode) Descriptor() protoreflect.EnumDescriptor
func (FlightCreateMode) Enum ¶
func (x FlightCreateMode) Enum() *FlightCreateMode
func (FlightCreateMode) EnumDescriptor
deprecated
func (FlightCreateMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use FlightCreateMode.Descriptor instead.
func (FlightCreateMode) Number ¶
func (x FlightCreateMode) Number() protoreflect.EnumNumber
func (FlightCreateMode) String ¶
func (x FlightCreateMode) String() string
func (FlightCreateMode) Type ¶
func (FlightCreateMode) Type() protoreflect.EnumType
type FlightDesignator ¶
type FlightDesignator struct { // The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist. // @tag: validateGeneric:"required,fixedLenAlphaNum=2|fixedLenAlphaNum=3" CarrierCode string `` /* 140-byte string literal not displayed */ // The flight number. Note this number must match the carrier code. // @tag: validateGeneric:"required,alphanum,max=5" FlightNumber string `protobuf:"bytes,2,opt,name=flightNumber,proto3" json:"flightNumber,omitempty" validateGeneric:"required,alphanum,max=5"` // The date that the record is valid from. If not provided, then the date of submission will be used. ValidFrom *io.Date `protobuf:"bytes,3,opt,name=validFrom,proto3" json:"validFrom,omitempty"` // Multiple designators can be active at a time. Provide a revision to distinguish between versions. // @tag: validateGeneric:"required,min=1" Revision uint32 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty" validateGeneric:"required,min=1"` // Setting to false will prevent further flights to be created against this flight number. Will automatically be set to false if a second designator with a validFrom date before the current date and after this designator's validFrom date is found. Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` // The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record. // @tag: validateGeneric:"required,flight_schedule" Schedule *FlightSchedule `protobuf:"bytes,6,opt,name=schedule,proto3" json:"schedule,omitempty" validateGeneric:"required,flight_schedule"` // If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist. // @tag: validateGeneric:"required_with=OperatingFlightNumber,fixedLenAlphaNum=2|fixedLenAlphaNum=3|isdefault" OperatingCarrierCode string `` /* 195-byte string literal not displayed */ // If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier. // @tag: validateGeneric:"required_with=OperatingCarrierCode,alphanum|isdefault,max=5" OperatingFlightNumber string `` /* 173-byte string literal not displayed */ // @tag: validateGeneric:"omitempty,max=10,dive,alphanum,max=8" CodeShareFlightNumbers []string `` /* 152-byte string literal not displayed */ // The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" Origin string `` /* 131-byte string literal not displayed */ // The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" Destination string `` /* 141-byte string literal not displayed */ // In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port. // @tag: validateGeneric:"omitempty,dive,fixedLenAlphaNum=3|fixedLenAlphaNum=4" TransitPoints []string `` /* 151-byte string literal not displayed */ // The default terminal that the flight departs from. DepartureTerminal string `protobuf:"bytes,13,opt,name=departureTerminal,proto3" json:"departureTerminal,omitempty"` // The default terminal of the final destination. ArrivalTerminal string `protobuf:"bytes,14,opt,name=arrivalTerminal,proto3" json:"arrivalTerminal,omitempty"` // In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points. TransitTerminals []string `protobuf:"bytes,15,rep,name=transitTerminals,proto3" json:"transitTerminals,omitempty"` // The Boarding Policy is used to determine informational labels on the pass. BoardingPolicy BoardingPolicy `protobuf:"varint,16,opt,name=boardingPolicy,proto3,enum=flights.BoardingPolicy" json:"boardingPolicy,omitempty"` // The Seat Class Policy is used to determine informational labels on the pass. SeatClassPolicy SeatClassPolicy `protobuf:"varint,17,opt,name=seatClassPolicy,proto3,enum=flights.SeatClassPolicy" json:"seatClassPolicy,omitempty"` // An array of alerts to subscribe to for the flight. Note that additional charges apply. Alerts []FlightAlerts `protobuf:"varint,18,rep,packed,name=alerts,proto3,enum=flights.FlightAlerts" json:"alerts,omitempty"` // The PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level. // @tag: validateGeneric:"required,uuidCompressedString" PassTemplateId string `` /* 130-byte string literal not displayed */ // Minutes after scheduled arrival time to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours. AutoInvalidateAfter uint32 `protobuf:"varint,20,opt,name=autoInvalidateAfter,proto3" json:"autoInvalidateAfter,omitempty"` // Deprecated: Use InvalidateCancelledPasses. // // Deprecated: Marked as deprecated in io/flights/flight_designator.proto. AutoInvalidateCancelledPasses bool `protobuf:"varint,21,opt,name=autoInvalidateCancelledPasses,proto3" json:"autoInvalidateCancelledPasses,omitempty"` // A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. // @tag: validateGeneric:"omitempty,dive" validateCreate:"omitempty,dive" validateUpdate:"omitempty,dive" LocationMessages []*io.GPSLocation `` /* 183-byte string literal not displayed */ // A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. // @tag: validateGeneric:"omitempty,dive" validateCreate:"omitempty,dive" validateUpdate:"omitempty,dive" BeaconMessages []*io.Beacon `` /* 179-byte string literal not displayed */ // A list of links to be appended to the end of each boarding pass. // @tag: validateGeneric:"omitempty,dive" validateCreate:"omitempty,dive" validateUpdate:"omitempty,dive" DefaultLinks []*io.Link `` /* 175-byte string literal not displayed */ // If PassKit are generating barcodes, include conditional items. Default false. ConditionalItems bool `protobuf:"varint,25,opt,name=ConditionalItems,proto3" json:"ConditionalItems,omitempty"` // If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level. BarcodeAdditionalData string `protobuf:"bytes,26,opt,name=BarcodeAdditionalData,proto3" json:"BarcodeAdditionalData,omitempty"` // Invalidate passes where either the booking or the flight have been cancelled. Default is ON. InvalidateCancelledPasses io.Toggle `protobuf:"varint,27,opt,name=invalidateCancelledPasses,proto3,enum=io.Toggle" json:"invalidateCancelledPasses,omitempty"` // contains filtered or unexported fields }
carrier code and flight number and valid from represent the primary key.
func (*FlightDesignator) Descriptor
deprecated
func (*FlightDesignator) Descriptor() ([]byte, []int)
Deprecated: Use FlightDesignator.ProtoReflect.Descriptor instead.
func (*FlightDesignator) GetActive ¶
func (x *FlightDesignator) GetActive() bool
func (*FlightDesignator) GetAlerts ¶
func (x *FlightDesignator) GetAlerts() []FlightAlerts
func (*FlightDesignator) GetArrivalTerminal ¶
func (x *FlightDesignator) GetArrivalTerminal() string
func (*FlightDesignator) GetAutoInvalidateAfter ¶
func (x *FlightDesignator) GetAutoInvalidateAfter() uint32
func (*FlightDesignator) GetAutoInvalidateCancelledPasses
deprecated
func (x *FlightDesignator) GetAutoInvalidateCancelledPasses() bool
Deprecated: Marked as deprecated in io/flights/flight_designator.proto.
func (*FlightDesignator) GetBarcodeAdditionalData ¶
func (x *FlightDesignator) GetBarcodeAdditionalData() string
func (*FlightDesignator) GetBeaconMessages ¶
func (x *FlightDesignator) GetBeaconMessages() []*io.Beacon
func (*FlightDesignator) GetBoardingPolicy ¶
func (x *FlightDesignator) GetBoardingPolicy() BoardingPolicy
func (*FlightDesignator) GetCarrierCode ¶
func (x *FlightDesignator) GetCarrierCode() string
func (*FlightDesignator) GetCodeShareFlightNumbers ¶
func (x *FlightDesignator) GetCodeShareFlightNumbers() []string
func (*FlightDesignator) GetConditionalItems ¶
func (x *FlightDesignator) GetConditionalItems() bool
func (*FlightDesignator) GetDefaultLinks ¶
func (x *FlightDesignator) GetDefaultLinks() []*io.Link
func (*FlightDesignator) GetDepartureTerminal ¶
func (x *FlightDesignator) GetDepartureTerminal() string
func (*FlightDesignator) GetDestination ¶
func (x *FlightDesignator) GetDestination() string
func (*FlightDesignator) GetFlightNumber ¶
func (x *FlightDesignator) GetFlightNumber() string
func (*FlightDesignator) GetInvalidateCancelledPasses ¶
func (x *FlightDesignator) GetInvalidateCancelledPasses() io.Toggle
func (*FlightDesignator) GetLocationMessages ¶
func (x *FlightDesignator) GetLocationMessages() []*io.GPSLocation
func (*FlightDesignator) GetOperatingCarrierCode ¶
func (x *FlightDesignator) GetOperatingCarrierCode() string
func (*FlightDesignator) GetOperatingFlightNumber ¶
func (x *FlightDesignator) GetOperatingFlightNumber() string
func (*FlightDesignator) GetOrigin ¶
func (x *FlightDesignator) GetOrigin() string
func (*FlightDesignator) GetPassTemplateId ¶
func (x *FlightDesignator) GetPassTemplateId() string
func (*FlightDesignator) GetRevision ¶
func (x *FlightDesignator) GetRevision() uint32
func (*FlightDesignator) GetSchedule ¶
func (x *FlightDesignator) GetSchedule() *FlightSchedule
func (*FlightDesignator) GetSeatClassPolicy ¶
func (x *FlightDesignator) GetSeatClassPolicy() SeatClassPolicy
func (*FlightDesignator) GetTransitPoints ¶
func (x *FlightDesignator) GetTransitPoints() []string
func (*FlightDesignator) GetTransitTerminals ¶
func (x *FlightDesignator) GetTransitTerminals() []string
func (*FlightDesignator) GetValidFrom ¶
func (x *FlightDesignator) GetValidFrom() *io.Date
func (*FlightDesignator) ProtoMessage ¶
func (*FlightDesignator) ProtoMessage()
func (*FlightDesignator) ProtoReflect ¶
func (x *FlightDesignator) ProtoReflect() protoreflect.Message
func (*FlightDesignator) Reset ¶
func (x *FlightDesignator) Reset()
func (*FlightDesignator) String ¶
func (x *FlightDesignator) String() string
type FlightDesignatorRequest ¶
type FlightDesignatorRequest struct { // The IATA or ICAO carrier code for the flight. CarrierCode string `protobuf:"bytes,1,opt,name=carrierCode,proto3" json:"carrierCode,omitempty"` // The flight number. FlightNumber string `protobuf:"bytes,2,opt,name=flightNumber,proto3" json:"flightNumber,omitempty"` // Revision. Each designator record requires a version number. Revision uint32 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*FlightDesignatorRequest) Descriptor
deprecated
func (*FlightDesignatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use FlightDesignatorRequest.ProtoReflect.Descriptor instead.
func (*FlightDesignatorRequest) GetCarrierCode ¶
func (x *FlightDesignatorRequest) GetCarrierCode() string
func (*FlightDesignatorRequest) GetFlightNumber ¶
func (x *FlightDesignatorRequest) GetFlightNumber() string
func (*FlightDesignatorRequest) GetRevision ¶
func (x *FlightDesignatorRequest) GetRevision() uint32
func (*FlightDesignatorRequest) ProtoMessage ¶
func (*FlightDesignatorRequest) ProtoMessage()
func (*FlightDesignatorRequest) ProtoReflect ¶
func (x *FlightDesignatorRequest) ProtoReflect() protoreflect.Message
func (*FlightDesignatorRequest) Reset ¶
func (x *FlightDesignatorRequest) Reset()
func (*FlightDesignatorRequest) String ¶
func (x *FlightDesignatorRequest) String() string
type FlightRequest ¶
type FlightRequest struct { // The 2 character IATA code or 3 character ICAO code. // @tag: validateGeneric:"required,fixedLenAlphaNum=2|fixedLenAlphaNum=3" CarrierCode string `` /* 140-byte string literal not displayed */ // The flight number. // @tag: validateGeneric:"required,alphanum,max=5" FlightNumber string `protobuf:"bytes,2,opt,name=flightNumber,proto3" json:"flightNumber,omitempty" validateGeneric:"required,alphanum,max=5"` // The scheduled date of the flight, stated in the timezone of the boarding point. // @tag: validateGeneric:"required" DepartureDate *io.Date `protobuf:"bytes,3,opt,name=departureDate,proto3" json:"departureDate,omitempty" validateGeneric:"required"` // The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" BoardingPoint string `` /* 144-byte string literal not displayed */ // The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port. // @tag: validateGeneric:"required,fixedLenAlphaNum=3|fixedLenAlphaNum=4" DeplaningPoint string `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
A Flight Request message is used to retrieve or identify an individual flight operation. For direct flights with multiple stops, a segment number or departure point is required.
func (*FlightRequest) Descriptor
deprecated
func (*FlightRequest) Descriptor() ([]byte, []int)
Deprecated: Use FlightRequest.ProtoReflect.Descriptor instead.
func (*FlightRequest) GetBoardingPoint ¶
func (x *FlightRequest) GetBoardingPoint() string
func (*FlightRequest) GetCarrierCode ¶
func (x *FlightRequest) GetCarrierCode() string
func (*FlightRequest) GetDepartureDate ¶
func (x *FlightRequest) GetDepartureDate() *io.Date
func (*FlightRequest) GetDeplaningPoint ¶
func (x *FlightRequest) GetDeplaningPoint() string
func (*FlightRequest) GetFlightNumber ¶
func (x *FlightRequest) GetFlightNumber() string
func (*FlightRequest) ProtoMessage ¶
func (*FlightRequest) ProtoMessage()
func (*FlightRequest) ProtoReflect ¶
func (x *FlightRequest) ProtoReflect() protoreflect.Message
func (*FlightRequest) Reset ¶
func (x *FlightRequest) Reset()
func (*FlightRequest) String ¶
func (x *FlightRequest) String() string
type FlightSchedule ¶
type FlightSchedule struct { // @tag: validateGeneric:"required_without_all=Tuesday Wednesday Thursday Friday Saturday Sunday" Monday *FlightTimes `` /* 154-byte string literal not displayed */ Tuesday *FlightTimes `protobuf:"bytes,2,opt,name=tuesday,proto3" json:"tuesday,omitempty"` Wednesday *FlightTimes `protobuf:"bytes,3,opt,name=wednesday,proto3" json:"wednesday,omitempty"` Thursday *FlightTimes `protobuf:"bytes,4,opt,name=thursday,proto3" json:"thursday,omitempty"` Friday *FlightTimes `protobuf:"bytes,5,opt,name=friday,proto3" json:"friday,omitempty"` Saturday *FlightTimes `protobuf:"bytes,6,opt,name=saturday,proto3" json:"saturday,omitempty"` Sunday *FlightTimes `protobuf:"bytes,7,opt,name=sunday,proto3" json:"sunday,omitempty"` // contains filtered or unexported fields }
If there are no departures on a given day (E.g. flight only operates on Tuesdays and Thursdays), the days with no departures should be nil.
func (*FlightSchedule) Descriptor
deprecated
func (*FlightSchedule) Descriptor() ([]byte, []int)
Deprecated: Use FlightSchedule.ProtoReflect.Descriptor instead.
func (*FlightSchedule) GetFriday ¶
func (x *FlightSchedule) GetFriday() *FlightTimes
func (*FlightSchedule) GetMonday ¶
func (x *FlightSchedule) GetMonday() *FlightTimes
func (*FlightSchedule) GetSaturday ¶
func (x *FlightSchedule) GetSaturday() *FlightTimes
func (*FlightSchedule) GetSunday ¶
func (x *FlightSchedule) GetSunday() *FlightTimes
func (*FlightSchedule) GetThursday ¶
func (x *FlightSchedule) GetThursday() *FlightTimes
func (*FlightSchedule) GetTuesday ¶
func (x *FlightSchedule) GetTuesday() *FlightTimes
func (*FlightSchedule) GetWednesday ¶
func (x *FlightSchedule) GetWednesday() *FlightTimes
func (*FlightSchedule) ProtoMessage ¶
func (*FlightSchedule) ProtoMessage()
func (*FlightSchedule) ProtoReflect ¶
func (x *FlightSchedule) ProtoReflect() protoreflect.Message
func (*FlightSchedule) Reset ¶
func (x *FlightSchedule) Reset()
func (*FlightSchedule) String ¶
func (x *FlightSchedule) String() string
type FlightStatus ¶
type FlightStatus int32
For customers subscribing to automatic updates, the flight status will be automatically updated. Status is also writable for manual updates.
const ( // No status is known, or flight is not yet scheduled. FlightStatus_UNKNOWN FlightStatus = 0 // Flight is scheduled to depart. FlightStatus_SCHEDULED FlightStatus = 1 // Flight has left the departure gate, but may not be airborne yet. FlightStatus_DEPARTED FlightStatus = 2 // Flight is airborne. FlightStatus_INAIR FlightStatus = 3 // Flight has landed, but may not yet be at the arrival gate. FlightStatus_LANDED FlightStatus = 4 // Flight has arrived at the destination gate. FlightStatus_ARRIVED FlightStatus = 5 // Flight has been cancelled. FlightStatus_CANCELLED FlightStatus = 6 // Flight is delayed to depart by at least 15 minutes. FlightStatus_DELAYED FlightStatus = 7 // Flight has been diverted from its scheduled destination and has left the departure gate. FlightStatus_DEPARTED_DIVERTED FlightStatus = 8 // Flight has been diverted from its scheduled destination and is airborne. FlightStatus_INAIR_DIVERTED FlightStatus = 9 // Flight has arrived at a location different to its scheduled destination. FlightStatus_ARRIVED_DIVERTED FlightStatus = 10 // Flight has left its diverted destination en-route to its original destination. FlightStatus_DEPARTED_RECOVERY FlightStatus = 11 // Flight has left its diverted destination airborne en-route to its original destination. FlightStatus_INAIR_RECOVERY FlightStatus = 12 // Flight has landed at is original scheduled destination. FlightStatus_ARRIVED_RECOVERY FlightStatus = 13 )
func (FlightStatus) Descriptor ¶
func (FlightStatus) Descriptor() protoreflect.EnumDescriptor
func (FlightStatus) Enum ¶
func (x FlightStatus) Enum() *FlightStatus
func (FlightStatus) EnumDescriptor
deprecated
func (FlightStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use FlightStatus.Descriptor instead.
func (FlightStatus) Number ¶
func (x FlightStatus) Number() protoreflect.EnumNumber
func (FlightStatus) String ¶
func (x FlightStatus) String() string
func (FlightStatus) Type ¶
func (FlightStatus) Type() protoreflect.EnumType
type FlightTimes ¶
type FlightTimes struct { // The published departure time. // @tag: validateGeneric:"required" ScheduledDepartureTime *io.Time `protobuf:"bytes,1,opt,name=scheduledDepartureTime,proto3" json:"scheduledDepartureTime,omitempty" validateGeneric:"required"` // The published boarding time. BoardingTime *io.Time `protobuf:"bytes,2,opt,name=boardingTime,proto3" json:"boardingTime,omitempty"` // The point after which passengers will be denied boarding. GateClosingTime *io.Time `protobuf:"bytes,3,opt,name=gateClosingTime,proto3" json:"gateClosingTime,omitempty"` // The published, scheduled arrival time. ScheduledArrivalTime *io.Time `protobuf:"bytes,4,opt,name=scheduledArrivalTime,proto3" json:"scheduledArrivalTime,omitempty"` // contains filtered or unexported fields }
func (*FlightTimes) Descriptor
deprecated
func (*FlightTimes) Descriptor() ([]byte, []int)
Deprecated: Use FlightTimes.ProtoReflect.Descriptor instead.
func (*FlightTimes) GetBoardingTime ¶
func (x *FlightTimes) GetBoardingTime() *io.Time
func (*FlightTimes) GetGateClosingTime ¶
func (x *FlightTimes) GetGateClosingTime() *io.Time
func (*FlightTimes) GetScheduledArrivalTime ¶
func (x *FlightTimes) GetScheduledArrivalTime() *io.Time
func (*FlightTimes) GetScheduledDepartureTime ¶
func (x *FlightTimes) GetScheduledDepartureTime() *io.Time
func (*FlightTimes) ProtoMessage ¶
func (*FlightTimes) ProtoMessage()
func (*FlightTimes) ProtoReflect ¶
func (x *FlightTimes) ProtoReflect() protoreflect.Message
func (*FlightTimes) Reset ¶
func (x *FlightTimes) Reset()
func (*FlightTimes) String ¶
func (x *FlightTimes) String() string
type FlightsClient ¶
type FlightsClient interface { // Create an airport record. Optional method allowing the carrier to specify how the airport name is rendered in the pass and the GPS location that will trigger a lock-screen alert. CreatePort(ctx context.Context, in *Port, opts ...grpc.CallOption) (*emptypb.Empty, error) // Retrieve an airport record. The AirportCode is the three character IATA code or 4 character ICAO code. GetPort(ctx context.Context, in *AirportCode, opts ...grpc.CallOption) (*Port, error) // Update an airport record. UpdatePort(ctx context.Context, in *Port, opts ...grpc.CallOption) (*Port, error) // Delete an airport record. Deleting a record will remove any custom data provided. A new Airport record may be automatically created for a flight departing, arriving or transiting an airport which does not have a record, using publicly available data. DeletePort(ctx context.Context, in *AirportCode, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create a carrier record. All Flight Designations and Flights must have a carrier record. CreateCarrier(ctx context.Context, in *Carrier, opts ...grpc.CallOption) (*emptypb.Empty, error) // Retrieve a carrier record. GetCarrier(ctx context.Context, in *CarrierCode, opts ...grpc.CallOption) (*Carrier, error) // Update a carrier record UpdateCarrier(ctx context.Context, in *Carrier, opts ...grpc.CallOption) (*Carrier, error) // Delete a carrier record. DeleteCarrier(ctx context.Context, in *CarrierCode, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create a flight designator record. As much default information as possible should be provided to facilitate the automatic generation of flight records. CreateFlightDesignator(ctx context.Context, in *FlightDesignator, opts ...grpc.CallOption) (*emptypb.Empty, error) // Retrieve a flight designation record. GetFlightDesignator(ctx context.Context, in *FlightDesignatorRequest, opts ...grpc.CallOption) (*FlightDesignator, error) // Update a flight designation record. UpdateFlightDesignator(ctx context.Context, in *FlightDesignator, opts ...grpc.CallOption) (*FlightDesignator, error) // Delete a flight designation record. DeleteFlightDesignator(ctx context.Context, in *FlightDesignatorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create a flight record. In practice, this method is not often used, since flight records can be automatically generated. Any information in the flight record will override information in the carrier and flight designation records. CreateFlight(ctx context.Context, in *Flight, opts ...grpc.CallOption) (*emptypb.Empty, error) // Retrieve a flight record. GetFlight(ctx context.Context, in *FlightRequest, opts ...grpc.CallOption) (*Flight, error) // Update a flight record. UpdateFlight(ctx context.Context, in *Flight, opts ...grpc.CallOption) (*Flight, error) // Delete a flight record. DeleteFlight(ctx context.Context, in *FlightRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create a boarding pass record. Flight related information not present in the boarding pass record will be populated from the flight, flight designator or carrier records. CreateBoardingPass(ctx context.Context, in *BoardingPassRecord, opts ...grpc.CallOption) (*BoardingPassesResponse, error) // Retrieve a boarding pass record. GetBoardingPassRecord(ctx context.Context, in *BoardingPassRecordRequest, opts ...grpc.CallOption) (*BoardingPassRecord, error) // Retrieve digital boarding pass(es) in the requested format by ticket number, index, PNR or id. GetBoardingPass(ctx context.Context, in *BoardingPassRequest, opts ...grpc.CallOption) (*BoardingPassesResponse, error) // Update a boarding pass record. UpdateBoardingPass(ctx context.Context, in *BoardingPassRecord, opts ...grpc.CallOption) (*BoardingPassRecord, error) // Delete a boarding pass record. DeleteBoardingPass(ctx context.Context, in *BoardingPassRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
FlightsClient is the client API for Flights service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFlightsClient ¶
func NewFlightsClient(cc grpc.ClientConnInterface) FlightsClient
type FlightsServer ¶
type FlightsServer interface { // Create an airport record. Optional method allowing the carrier to specify how the airport name is rendered in the pass and the GPS location that will trigger a lock-screen alert. CreatePort(context.Context, *Port) (*emptypb.Empty, error) // Retrieve an airport record. The AirportCode is the three character IATA code or 4 character ICAO code. GetPort(context.Context, *AirportCode) (*Port, error) // Update an airport record. UpdatePort(context.Context, *Port) (*Port, error) // Delete an airport record. Deleting a record will remove any custom data provided. A new Airport record may be automatically created for a flight departing, arriving or transiting an airport which does not have a record, using publicly available data. DeletePort(context.Context, *AirportCode) (*emptypb.Empty, error) // Create a carrier record. All Flight Designations and Flights must have a carrier record. CreateCarrier(context.Context, *Carrier) (*emptypb.Empty, error) // Retrieve a carrier record. GetCarrier(context.Context, *CarrierCode) (*Carrier, error) // Update a carrier record UpdateCarrier(context.Context, *Carrier) (*Carrier, error) // Delete a carrier record. DeleteCarrier(context.Context, *CarrierCode) (*emptypb.Empty, error) // Create a flight designator record. As much default information as possible should be provided to facilitate the automatic generation of flight records. CreateFlightDesignator(context.Context, *FlightDesignator) (*emptypb.Empty, error) // Retrieve a flight designation record. GetFlightDesignator(context.Context, *FlightDesignatorRequest) (*FlightDesignator, error) // Update a flight designation record. UpdateFlightDesignator(context.Context, *FlightDesignator) (*FlightDesignator, error) // Delete a flight designation record. DeleteFlightDesignator(context.Context, *FlightDesignatorRequest) (*emptypb.Empty, error) // Create a flight record. In practice, this method is not often used, since flight records can be automatically generated. Any information in the flight record will override information in the carrier and flight designation records. CreateFlight(context.Context, *Flight) (*emptypb.Empty, error) // Retrieve a flight record. GetFlight(context.Context, *FlightRequest) (*Flight, error) // Update a flight record. UpdateFlight(context.Context, *Flight) (*Flight, error) // Delete a flight record. DeleteFlight(context.Context, *FlightRequest) (*emptypb.Empty, error) // Create a boarding pass record. Flight related information not present in the boarding pass record will be populated from the flight, flight designator or carrier records. CreateBoardingPass(context.Context, *BoardingPassRecord) (*BoardingPassesResponse, error) // Retrieve a boarding pass record. GetBoardingPassRecord(context.Context, *BoardingPassRecordRequest) (*BoardingPassRecord, error) // Retrieve digital boarding pass(es) in the requested format by ticket number, index, PNR or id. GetBoardingPass(context.Context, *BoardingPassRequest) (*BoardingPassesResponse, error) // Update a boarding pass record. UpdateBoardingPass(context.Context, *BoardingPassRecord) (*BoardingPassRecord, error) // Delete a boarding pass record. DeleteBoardingPass(context.Context, *BoardingPassRecordRequest) (*emptypb.Empty, error) }
FlightsServer is the server API for Flights service. All implementations should embed UnimplementedFlightsServer for forward compatibility
type FrequentFlyerInfo ¶
type FrequentFlyerInfo struct { // The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc. // @tag: "validateGeneric:"omitempty" ProgramName string `protobuf:"bytes,1,opt,name=programName,proto3" json:"programName,omitempty" validateGeneric:"omitempty"` // The airline designator of the traveler's frequent flyer program. // @tag: "validateGeneric:"required" AirlineDesignator string `protobuf:"bytes,2,opt,name=airlineDesignator,proto3" json:"airlineDesignator,omitempty" validateGeneric:"required"` // The traveler frequent flyer number. // @tag: "validateGeneric:"required" Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty" validateGeneric:"required"` // An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass. // @tag: "validateGeneric:"omitempty" Tier string `protobuf:"bytes,4,opt,name=tier,proto3" json:"tier,omitempty" validateGeneric:"omitempty"` // contains filtered or unexported fields }
Passenger Frequent Flyer information
func (*FrequentFlyerInfo) Descriptor
deprecated
func (*FrequentFlyerInfo) Descriptor() ([]byte, []int)
Deprecated: Use FrequentFlyerInfo.ProtoReflect.Descriptor instead.
func (*FrequentFlyerInfo) GetAirlineDesignator ¶
func (x *FrequentFlyerInfo) GetAirlineDesignator() string
func (*FrequentFlyerInfo) GetNumber ¶
func (x *FrequentFlyerInfo) GetNumber() string
func (*FrequentFlyerInfo) GetProgramName ¶
func (x *FrequentFlyerInfo) GetProgramName() string
func (*FrequentFlyerInfo) GetTier ¶
func (x *FrequentFlyerInfo) GetTier() string
func (*FrequentFlyerInfo) ProtoMessage ¶
func (*FrequentFlyerInfo) ProtoMessage()
func (*FrequentFlyerInfo) ProtoReflect ¶
func (x *FrequentFlyerInfo) ProtoReflect() protoreflect.Message
func (*FrequentFlyerInfo) Reset ¶
func (x *FrequentFlyerInfo) Reset()
func (*FrequentFlyerInfo) String ¶
func (x *FrequentFlyerInfo) String() string
type IDADIndicator ¶
type IDADIndicator int32
Industry Discount / Airline Discount codes. See IATA Recommended Practice 1788.
const ( // No Industry discount IDADIndicator_NONE IDADIndicator = 0 // Industry discount, other carrier employee/all other eligible persons, firm reservation IDADIndicator_IDN1 IDADIndicator = 1 // Industry discount, other carrier employee/all other eligible persons, space available IDADIndicator_IDN2 IDADIndicator = 2 // Industry discount, other carrier employee travelling on duty, firm reservation IDADIndicator_IDB1 IDADIndicator = 3 // Industry discount, other carrier employee travelling on duty, pace available IDADIndicator_IDB2 IDADIndicator = 4 // Ticket issued pursuant to Resolution 880 IDADIndicator_AD IDADIndicator = 5 // Ticket issued pursuant to Resolution 200g IDADIndicator_DG IDADIndicator = 6 // Discount not covered by industry regulations (for online use only) IDADIndicator_DM IDADIndicator = 7 // Ticket issued pursuant to Resolution 886 IDADIndicator_GE IDADIndicator = 8 // Ticket issued pursuant to Resolution 788 IDADIndicator_IG IDADIndicator = 9 // Ticket issued pursuant to Resolution 888 IDADIndicator_RG IDADIndicator = 10 // Ticket issued pursuant to Resolution 884 IDADIndicator_UD IDADIndicator = 11 // Industry discount ticket - no classification designator IDADIndicator_ID IDADIndicator = 12 // Industry discount, member's own employee travelling on duty, firm reservation IDADIndicator_IDFS1 IDADIndicator = 13 // Industry discount, member's own employee travelling on duty, space available IDADIndicator_IDFS2 IDADIndicator = 14 // Industry discount, member's own employee/dependant, firm reservation IDADIndicator_IDR1 IDADIndicator = 15 // Industry discount, member's own employee/dependant, space available IDADIndicator_IDR2 IDADIndicator = 16 )
func (IDADIndicator) Descriptor ¶
func (IDADIndicator) Descriptor() protoreflect.EnumDescriptor
func (IDADIndicator) Enum ¶
func (x IDADIndicator) Enum() *IDADIndicator
func (IDADIndicator) EnumDescriptor
deprecated
func (IDADIndicator) EnumDescriptor() ([]byte, []int)
Deprecated: Use IDADIndicator.Descriptor instead.
func (IDADIndicator) Number ¶
func (x IDADIndicator) Number() protoreflect.EnumNumber
func (IDADIndicator) String ¶
func (x IDADIndicator) String() string
func (IDADIndicator) Type ¶
func (IDADIndicator) Type() protoreflect.EnumType
type IdentityDetails ¶
type IdentityDetails struct { // Type of document used to validate the traveler's identity. IdentityDocument IdentityDocument `protobuf:"varint,1,opt,name=identityDocument,proto3,enum=flights.IdentityDocument" json:"identityDocument,omitempty"` // The two digit ISO 3166 country code of the country of the travel document issuing authority. IssuingCountry string `protobuf:"bytes,2,opt,name=issuingCountry,proto3" json:"issuingCountry,omitempty"` // The two digit ISO 3166 country code of the traveler's nationality. Nationality string `protobuf:"bytes,3,opt,name=nationality,proto3" json:"nationality,omitempty"` // The number or other unique identifying reference of the traveler's document. DocumentNumber string `protobuf:"bytes,4,opt,name=documentNumber,proto3" json:"documentNumber,omitempty"` // The date of birth as marked on the traveler's identity document. DateOfBirth *io.Date `protobuf:"bytes,5,opt,name=dateOfBirth,proto3" json:"dateOfBirth,omitempty"` // The gender as marked on the traveler's identity document. Gender io.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=io.Gender" json:"gender,omitempty"` // The issue date of the traveler's identity document. IssuedDate *io.Date `protobuf:"bytes,7,opt,name=issuedDate,proto3" json:"issuedDate,omitempty"` // The expiry date of the traveler's identity document. ExpiryDate *io.Date `protobuf:"bytes,8,opt,name=expiryDate,proto3" json:"expiryDate,omitempty"` // contains filtered or unexported fields }
Details of document used to identify the traveler's identity.
func (*IdentityDetails) Descriptor
deprecated
func (*IdentityDetails) Descriptor() ([]byte, []int)
Deprecated: Use IdentityDetails.ProtoReflect.Descriptor instead.
func (*IdentityDetails) GetDateOfBirth ¶
func (x *IdentityDetails) GetDateOfBirth() *io.Date
func (*IdentityDetails) GetDocumentNumber ¶
func (x *IdentityDetails) GetDocumentNumber() string
func (*IdentityDetails) GetExpiryDate ¶
func (x *IdentityDetails) GetExpiryDate() *io.Date
func (*IdentityDetails) GetGender ¶
func (x *IdentityDetails) GetGender() io.Gender
func (*IdentityDetails) GetIdentityDocument ¶
func (x *IdentityDetails) GetIdentityDocument() IdentityDocument
func (*IdentityDetails) GetIssuedDate ¶
func (x *IdentityDetails) GetIssuedDate() *io.Date
func (*IdentityDetails) GetIssuingCountry ¶
func (x *IdentityDetails) GetIssuingCountry() string
func (*IdentityDetails) GetNationality ¶
func (x *IdentityDetails) GetNationality() string
func (*IdentityDetails) ProtoMessage ¶
func (*IdentityDetails) ProtoMessage()
func (*IdentityDetails) ProtoReflect ¶
func (x *IdentityDetails) ProtoReflect() protoreflect.Message
func (*IdentityDetails) Reset ¶
func (x *IdentityDetails) Reset()
func (*IdentityDetails) String ¶
func (x *IdentityDetails) String() string
type IdentityDocument ¶
type IdentityDocument int32
Type of document used to validate the traveler's identity.
const ( // Passport IdentityDocument_PASSPORT IdentityDocument = 0 // National ID card IdentityDocument_NATIONAL_ID_CARD IdentityDocument = 1 // Driving license IdentityDocument_DRIVING_LICENSE IdentityDocument = 2 // Credit card IdentityDocument_CREDIT_CARD IdentityDocument = 3 // Frequent flyer card IdentityDocument_FREQUENT_FLYER_CARD IdentityDocument = 4 // Other travel document IdentityDocument_OTHER_TRAVEL_DOCUMENT IdentityDocument = 5 )
func (IdentityDocument) Descriptor ¶
func (IdentityDocument) Descriptor() protoreflect.EnumDescriptor
func (IdentityDocument) Enum ¶
func (x IdentityDocument) Enum() *IdentityDocument
func (IdentityDocument) EnumDescriptor
deprecated
func (IdentityDocument) EnumDescriptor() ([]byte, []int)
Deprecated: Use IdentityDocument.Descriptor instead.
func (IdentityDocument) Number ¶
func (x IdentityDocument) Number() protoreflect.EnumNumber
func (IdentityDocument) String ¶
func (x IdentityDocument) String() string
func (IdentityDocument) Type ¶
func (IdentityDocument) Type() protoreflect.EnumType
type Infant ¶
type Infant struct { // Personal details of the infant. // @tag: "validateGeneric:"required" InfantDetails *io.Person `protobuf:"bytes,1,opt,name=infantDetails,proto3" json:"infantDetails,omitempty" validateGeneric:"required"` // Optional identity details, only required if need to be rendered on the pass, or for analytics purposes. // @tag: "validateGeneric:"omitempty" IdentityDetails *IdentityDetails `protobuf:"bytes,2,opt,name=identityDetails,proto3" json:"identityDetails,omitempty" validateGeneric:"omitempty"` // The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data. // @tag: "validateGeneric:"omitempty" BarcodePayload string `protobuf:"bytes,3,opt,name=barcodePayload,proto3" json:"barcodePayload,omitempty" validateGeneric:"omitempty"` // Optional conditional items for the infant barcode. Not required if barcode payload is set. // @tag: "validateGeneric:"omitempty" ConditionalItems *ConditionalItems `protobuf:"bytes,4,opt,name=conditionalItems,proto3" json:"conditionalItems,omitempty" validateGeneric:"omitempty"` // Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode. // @tag: "validateGeneric:"omitempty" BarcodeAdditionalData string `protobuf:"bytes,5,opt,name=barcodeAdditionalData,proto3" json:"barcodeAdditionalData,omitempty" validateGeneric:"omitempty"` // Security image id for display above the barcode on a Google Pay pass. // @tag: validateGeneric:"omitempty" SecurityImage string `protobuf:"bytes,6,opt,name=securityImage,proto3" json:"securityImage,omitempty" validateGeneric:"omitempty"` // Privilege image id for display above the barcode on a Google Pay pass. // @tag: validateGeneric:"omitempty" PrivilegeImage string `protobuf:"bytes,7,opt,name=privilegeImage,proto3" json:"privilegeImage,omitempty" validateGeneric:"omitempty"` // @tag: validateGeneric:"omitempty" FooterImage string `protobuf:"bytes,8,opt,name=footerImage,proto3" json:"footerImage,omitempty" validateGeneric:"omitempty"` // contains filtered or unexported fields }
Details of infant under 2 years not occupying a seat.
func (*Infant) Descriptor
deprecated
func (*Infant) GetBarcodeAdditionalData ¶
func (*Infant) GetBarcodePayload ¶
func (*Infant) GetConditionalItems ¶
func (x *Infant) GetConditionalItems() *ConditionalItems
func (*Infant) GetFooterImage ¶
func (*Infant) GetIdentityDetails ¶
func (x *Infant) GetIdentityDetails() *IdentityDetails
func (*Infant) GetInfantDetails ¶
func (*Infant) GetPrivilegeImage ¶
func (*Infant) GetSecurityImage ¶
func (*Infant) ProtoMessage ¶
func (*Infant) ProtoMessage()
func (*Infant) ProtoReflect ¶
func (x *Infant) ProtoReflect() protoreflect.Message
type InternationalDocVerification ¶
type InternationalDocVerification int32
International Documentation Verification.
const ( // No travel document verification required InternationalDocVerification_NOT_REQUIRED InternationalDocVerification = 0 // Travel document verification required before boarding InternationalDocVerification_REQUIRED InternationalDocVerification = 1 // Travel document verification successfully completed InternationalDocVerification_COMPLETED InternationalDocVerification = 2 )
func (InternationalDocVerification) Descriptor ¶
func (InternationalDocVerification) Descriptor() protoreflect.EnumDescriptor
func (InternationalDocVerification) Enum ¶
func (x InternationalDocVerification) Enum() *InternationalDocVerification
func (InternationalDocVerification) EnumDescriptor
deprecated
func (InternationalDocVerification) EnumDescriptor() ([]byte, []int)
Deprecated: Use InternationalDocVerification.Descriptor instead.
func (InternationalDocVerification) Number ¶
func (x InternationalDocVerification) Number() protoreflect.EnumNumber
func (InternationalDocVerification) String ¶
func (x InternationalDocVerification) String() string
func (InternationalDocVerification) Type ¶
func (InternationalDocVerification) Type() protoreflect.EnumType
type Passenger ¶
type Passenger struct { // Personal details of the passenger. // @tag: "validateGeneric:"required" PassengerDetails *io.Person `protobuf:"bytes,1,opt,name=passengerDetails,proto3" json:"passengerDetails,omitempty" validateGeneric:"required"` // Frequent flyer details for th passenger. // @tag: "validateGeneric:"omitempty" FrequentFlyerInfo *FrequentFlyerInfo `protobuf:"bytes,2,opt,name=frequentFlyerInfo,proto3" json:"frequentFlyerInfo,omitempty" validateGeneric:"omitempty"` // Optional identity details, only required if need to be rendered on the pass, or for analytics purposes. // @tag: "validateGeneric:"omitempty" IdentityDetails *IdentityDetails `protobuf:"bytes,3,opt,name=identityDetails,proto3" json:"identityDetails,omitempty" validateGeneric:"omitempty"` // If the passenger is travelling with an infant under 2 years old, not occupying a seat, set to true. // @tag: "validateGeneric:"omitempty" WithInfant bool `protobuf:"varint,4,opt,name=withInfant,proto3" json:"withInfant,omitempty" validateGeneric:"omitempty"` // Details of the infant travelling with the passenger. // @tag: "validateGeneric:"omitempty" InfantDetails *Infant `protobuf:"bytes,5,opt,name=infantDetails,proto3" json:"infantDetails,omitempty" validateGeneric:"omitempty"` // If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here. // @tag: "validateGeneric:"omitempty" KnownTravelerNumber string `protobuf:"bytes,7,opt,name=knownTravelerNumber,proto3" json:"knownTravelerNumber,omitempty" validateGeneric:"omitempty"` // contains filtered or unexported fields }
Details of a passenger and any infant.
func (*Passenger) Descriptor
deprecated
func (*Passenger) GetFrequentFlyerInfo ¶
func (x *Passenger) GetFrequentFlyerInfo() *FrequentFlyerInfo
func (*Passenger) GetIdentityDetails ¶
func (x *Passenger) GetIdentityDetails() *IdentityDetails
func (*Passenger) GetInfantDetails ¶
func (*Passenger) GetKnownTravelerNumber ¶
func (*Passenger) GetPassengerDetails ¶
func (*Passenger) GetWithInfant ¶
func (*Passenger) ProtoMessage ¶
func (*Passenger) ProtoMessage()
func (*Passenger) ProtoReflect ¶
func (x *Passenger) ProtoReflect() protoreflect.Message
type PassengerDescription ¶
type PassengerDescription int32
Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
const ( // Adult PassengerDescription_ADULT PassengerDescription = 0 // Adult male PassengerDescription_MALE PassengerDescription = 1 // Adult female PassengerDescription_FEMALE PassengerDescription = 2 // Child PassengerDescription_CHILD PassengerDescription = 3 // Infant PassengerDescription_INFANT PassengerDescription = 4 // No passenger (cabin baggage) PassengerDescription_NO_PASSENGER PassengerDescription = 5 // Adult travelling with infant PassengerDescription_ADULT_WITH_INFANT PassengerDescription = 6 // Unaccompanied minor PassengerDescription_UNACCOMPANIED_MINOR PassengerDescription = 7 )
func (PassengerDescription) Descriptor ¶
func (PassengerDescription) Descriptor() protoreflect.EnumDescriptor
func (PassengerDescription) Enum ¶
func (x PassengerDescription) Enum() *PassengerDescription
func (PassengerDescription) EnumDescriptor
deprecated
func (PassengerDescription) EnumDescriptor() ([]byte, []int)
Deprecated: Use PassengerDescription.Descriptor instead.
func (PassengerDescription) Number ¶
func (x PassengerDescription) Number() protoreflect.EnumNumber
func (PassengerDescription) String ¶
func (x PassengerDescription) String() string
func (PassengerDescription) Type ¶
func (PassengerDescription) Type() protoreflect.EnumType
type PassengerStatus ¶
type PassengerStatus int32
Passenger Status as detailed in IATA PSC Resolution 792 Attachment 'C'. Note: all values other than 0 indicate that the passenger has checked in.
const ( // Ticket issuance/passenger not checked in PassengerStatus_ISSUED_NOT_CHECKED_IN PassengerStatus = 0 // Ticket issuance/passenger checked in PassengerStatus_ISSUED_CHECKED_IN PassengerStatus = 1 // Baggage checked - passenger not checked in PassengerStatus_BAGGAGE_CHECKED_PASSENGER_NOT_CHECKED_IN PassengerStatus = 2 // Baggage checked - passenger checked in PassengerStatus_BAGGAGE_CHECKED_PASSENGER_CHECKED_IN PassengerStatus = 3 // Passenger passed security check PassengerStatus_PASSENGER_PASSED_SECURITY_CHECK PassengerStatus = 4 // Passenger passed gate and exit (coupon used) PassengerStatus_PASSENGER_PASSED_GATE PassengerStatus = 5 // Transit PassengerStatus_TRANSIT PassengerStatus = 6 // Standby. Seat number not printed on boarding pass at time of check in PassengerStatus_STANDBY PassengerStatus = 7 // Boarding data re-validation done PassengerStatus_BOARDING_DATA_REVALIDATION_DONE PassengerStatus = 8 // Original boarding line used at time of ticket issuance PassengerStatus_ORIGINAL_BOARDING_LINE_USED_AT_TICKET_ISSUANCE PassengerStatus = 9 // Up or down grading required PassengerStatus_UP_OR_DOWN_GRADING_REQUIRED PassengerStatus = 10 )
func (PassengerStatus) Descriptor ¶
func (PassengerStatus) Descriptor() protoreflect.EnumDescriptor
func (PassengerStatus) Enum ¶
func (x PassengerStatus) Enum() *PassengerStatus
func (PassengerStatus) EnumDescriptor
deprecated
func (PassengerStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use PassengerStatus.Descriptor instead.
func (PassengerStatus) Number ¶
func (x PassengerStatus) Number() protoreflect.EnumNumber
func (PassengerStatus) String ¶
func (x PassengerStatus) String() string
func (PassengerStatus) Type ¶
func (PassengerStatus) Type() protoreflect.EnumType
type Port ¶
type Port struct { // The IATA code of the port. At least one of IATA or ICAO airport code is required. // @tag: validateGeneric:"required_without=IcaoAirportCode,fixedLenAlphaNum=3" IataAirportCode string `` /* 153-byte string literal not displayed */ // The IATA code of the port. At least one of IATA or ICAO airport code is required. // @tag: validateGeneric:"required_without=IataAirportCode,fixedLenAlphaNum=4|isdefault" IcaoAirportCode string `` /* 163-byte string literal not displayed */ // The name of the city associated with the airport can be used in back/text fields. // @tag: validateGeneric:"required" CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty" validateGeneric:"required"` // The localized name of the city to be displayed on the boarding pass. LocalizedCityName *io.LocalizedString `protobuf:"bytes,4,opt,name=localizedCityName,proto3" json:"localizedCityName,omitempty"` // The name of the airport to be displayed on the boarding pass above the airport code. // @tag: validateGeneric:"required" AirportName string `protobuf:"bytes,5,opt,name=airportName,proto3" json:"airportName,omitempty" validateGeneric:"required"` // The localized name of the airport to be displayed on the boarding pass above the airport code. LocalizedAirportName *io.LocalizedString `protobuf:"bytes,6,opt,name=localizedAirportName,proto3" json:"localizedAirportName,omitempty"` // The ISO 3166 country code of the port. // @tag: validateGeneric:"required,alpha,len=2" CountryCode string `protobuf:"bytes,7,opt,name=countryCode,proto3" json:"countryCode,omitempty" validateGeneric:"required,alpha,len=2"` // The timezone of the airport in IANA timezone format. This is required to ensure the correct rendering of times and dates in the time local to the port. // @tag: validateGeneric:"required,ianaTimeZone" Timezone string `protobuf:"bytes,8,opt,name=timezone,proto3" json:"timezone,omitempty" validateGeneric:"required,ianaTimeZone"` // contains filtered or unexported fields }
Port is an optional record that allows the carrier to overwrite default airport names and their localizations. A port can represent an origin, destination or transit port of a direct flight with stops. If a port record does not exist, this information will be automatically populated with publicly available data.
func (*Port) Descriptor
deprecated
func (*Port) GetAirportName ¶
func (*Port) GetCityName ¶
func (*Port) GetCountryCode ¶
func (*Port) GetIataAirportCode ¶
func (*Port) GetIcaoAirportCode ¶
func (*Port) GetLocalizedAirportName ¶
func (x *Port) GetLocalizedAirportName() *io.LocalizedString
func (*Port) GetLocalizedCityName ¶
func (x *Port) GetLocalizedCityName() *io.LocalizedString
func (*Port) GetTimezone ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
type SeatClassPolicy ¶
type SeatClassPolicy int32
The Seat Class Policy is used to determine informational labels on the pass.
const ( SeatClassPolicy_SEAT_CLASS_POLICY_UNSPECIFIED SeatClassPolicy = 0 // Seats groups are determined by cabin. "Cabin" will be used as the label on the pass. SeatClassPolicy_CABIN_BASED SeatClassPolicy = 1 // Seats groups are determined by class of travel. "Class" will be used as the label on the pass. SeatClassPolicy_CLASS_BASED SeatClassPolicy = 2 // Seat groups are determined by tier. "Tier" will be used as the label on the pass. SeatClassPolicy_TIER_BASED SeatClassPolicy = 3 // Another, or no seat policy is in place. No label will be used on the pass. SeatClassPolicy_SEAT_CLASS_POLICY_OTHER SeatClassPolicy = 4 )
func (SeatClassPolicy) Descriptor ¶
func (SeatClassPolicy) Descriptor() protoreflect.EnumDescriptor
func (SeatClassPolicy) Enum ¶
func (x SeatClassPolicy) Enum() *SeatClassPolicy
func (SeatClassPolicy) EnumDescriptor
deprecated
func (SeatClassPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use SeatClassPolicy.Descriptor instead.
func (SeatClassPolicy) Number ¶
func (x SeatClassPolicy) Number() protoreflect.EnumNumber
func (SeatClassPolicy) String ¶
func (x SeatClassPolicy) String() string
func (SeatClassPolicy) Type ¶
func (SeatClassPolicy) Type() protoreflect.EnumType
type SelecteeIndicator ¶
type SelecteeIndicator int32
Passenger security status. Note: in practical terms, this is always likely to be NOT_SELECTEE or TSA_PRECHECK since current DHS Pre-Departure Regulations only allow on-site printing of boarding passes. It is mandatory when US travel is involved.
const ( // Not selected for special security screening SelecteeIndicator_NOT_SELECTEE SelecteeIndicator = 0 // Selected for special security screening SelecteeIndicator_SELECTEE SelecteeIndicator = 1 // Passenger eligible for TSA PreCheck® SelecteeIndicator_TSA_PRECHECK SelecteeIndicator = 3 )
func (SelecteeIndicator) Descriptor ¶
func (SelecteeIndicator) Descriptor() protoreflect.EnumDescriptor
func (SelecteeIndicator) Enum ¶
func (x SelecteeIndicator) Enum() *SelecteeIndicator
func (SelecteeIndicator) EnumDescriptor
deprecated
func (SelecteeIndicator) EnumDescriptor() ([]byte, []int)
Deprecated: Use SelecteeIndicator.Descriptor instead.
func (SelecteeIndicator) Number ¶
func (x SelecteeIndicator) Number() protoreflect.EnumNumber
func (SelecteeIndicator) String ¶
func (x SelecteeIndicator) String() string
func (SelecteeIndicator) Type ¶
func (SelecteeIndicator) Type() protoreflect.EnumType
type Source ¶
type Source int32
Source of transaction.
const ( // Web Source_W Source = 0 // Airport Kiosk Source_K Source = 1 // Transfer kiosk Source_X Source = 2 // Remote / off-site kiosk Source_R Source = 3 // Mobile device Source_M Source = 4 // Airport agent Source_O Source = 5 // Town agent Source_T Source = 6 // Third party vendor Source_V Source = 7 )
func (Source) Descriptor ¶
func (Source) Descriptor() protoreflect.EnumDescriptor
func (Source) EnumDescriptor
deprecated
func (Source) Number ¶
func (x Source) Number() protoreflect.EnumNumber
func (Source) Type ¶
func (Source) Type() protoreflect.EnumType
type UnimplementedFlightsServer ¶
type UnimplementedFlightsServer struct { }
UnimplementedFlightsServer should be embedded to have forward compatible implementations.
func (UnimplementedFlightsServer) CreateBoardingPass ¶
func (UnimplementedFlightsServer) CreateBoardingPass(context.Context, *BoardingPassRecord) (*BoardingPassesResponse, error)
func (UnimplementedFlightsServer) CreateCarrier ¶
func (UnimplementedFlightsServer) CreateFlight ¶
func (UnimplementedFlightsServer) CreateFlightDesignator ¶
func (UnimplementedFlightsServer) CreateFlightDesignator(context.Context, *FlightDesignator) (*emptypb.Empty, error)
func (UnimplementedFlightsServer) CreatePort ¶
func (UnimplementedFlightsServer) DeleteBoardingPass ¶
func (UnimplementedFlightsServer) DeleteBoardingPass(context.Context, *BoardingPassRecordRequest) (*emptypb.Empty, error)
func (UnimplementedFlightsServer) DeleteCarrier ¶
func (UnimplementedFlightsServer) DeleteCarrier(context.Context, *CarrierCode) (*emptypb.Empty, error)
func (UnimplementedFlightsServer) DeleteFlight ¶
func (UnimplementedFlightsServer) DeleteFlight(context.Context, *FlightRequest) (*emptypb.Empty, error)
func (UnimplementedFlightsServer) DeleteFlightDesignator ¶
func (UnimplementedFlightsServer) DeleteFlightDesignator(context.Context, *FlightDesignatorRequest) (*emptypb.Empty, error)
func (UnimplementedFlightsServer) DeletePort ¶
func (UnimplementedFlightsServer) DeletePort(context.Context, *AirportCode) (*emptypb.Empty, error)
func (UnimplementedFlightsServer) GetBoardingPass ¶
func (UnimplementedFlightsServer) GetBoardingPass(context.Context, *BoardingPassRequest) (*BoardingPassesResponse, error)
func (UnimplementedFlightsServer) GetBoardingPassRecord ¶
func (UnimplementedFlightsServer) GetBoardingPassRecord(context.Context, *BoardingPassRecordRequest) (*BoardingPassRecord, error)
func (UnimplementedFlightsServer) GetCarrier ¶
func (UnimplementedFlightsServer) GetCarrier(context.Context, *CarrierCode) (*Carrier, error)
func (UnimplementedFlightsServer) GetFlight ¶
func (UnimplementedFlightsServer) GetFlight(context.Context, *FlightRequest) (*Flight, error)
func (UnimplementedFlightsServer) GetFlightDesignator ¶
func (UnimplementedFlightsServer) GetFlightDesignator(context.Context, *FlightDesignatorRequest) (*FlightDesignator, error)
func (UnimplementedFlightsServer) GetPort ¶
func (UnimplementedFlightsServer) GetPort(context.Context, *AirportCode) (*Port, error)
func (UnimplementedFlightsServer) UpdateBoardingPass ¶
func (UnimplementedFlightsServer) UpdateBoardingPass(context.Context, *BoardingPassRecord) (*BoardingPassRecord, error)
func (UnimplementedFlightsServer) UpdateCarrier ¶
func (UnimplementedFlightsServer) UpdateFlight ¶
func (UnimplementedFlightsServer) UpdateFlightDesignator ¶
func (UnimplementedFlightsServer) UpdateFlightDesignator(context.Context, *FlightDesignator) (*FlightDesignator, error)
func (UnimplementedFlightsServer) UpdatePort ¶
type UnsafeFlightsServer ¶
type UnsafeFlightsServer interface {
// contains filtered or unexported methods
}
UnsafeFlightsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FlightsServer will result in compilation errors.