Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + type AircraftData struct + Code string + ForceSendFields []string + Kind string + Name string + NullFields []string + func (s *AircraftData) MarshalJSON() ([]byte, error) + type AirportData struct + City string + Code string + ForceSendFields []string + Kind string + Name string + NullFields []string + func (s *AirportData) MarshalJSON() ([]byte, error) + type BagDescriptor struct + CommercialName string + Count int64 + Description []string + ForceSendFields []string + Kind string + NullFields []string + Subcode string + func (s *BagDescriptor) MarshalJSON() ([]byte, error) + type CarrierData struct + Code string + ForceSendFields []string + Kind string + Name string + NullFields []string + func (s *CarrierData) MarshalJSON() ([]byte, error) + type CityData struct + Code string + Country string + ForceSendFields []string + Kind string + Name string + NullFields []string + func (s *CityData) MarshalJSON() ([]byte, error) + type Data struct + Aircraft []*AircraftData + Airport []*AirportData + Carrier []*CarrierData + City []*CityData + ForceSendFields []string + Kind string + NullFields []string + Tax []*TaxData + func (s *Data) MarshalJSON() ([]byte, error) + type FareInfo struct + BasisCode string + Carrier string + Destination string + ForceSendFields []string + Id string + Kind string + NullFields []string + Origin string + Private bool + func (s *FareInfo) MarshalJSON() ([]byte, error) + type FlightInfo struct + Carrier string + ForceSendFields []string + NullFields []string + Number string + func (s *FlightInfo) MarshalJSON() ([]byte, error) + type FreeBaggageAllowance struct + BagDescriptor []*BagDescriptor + ForceSendFields []string + Kilos int64 + KilosPerPiece int64 + Kind string + NullFields []string + Pieces int64 + Pounds int64 + func (s *FreeBaggageAllowance) MarshalJSON() ([]byte, error) + type LegInfo struct + Aircraft string + ArrivalTime string + ChangePlane bool + ConnectionDuration int64 + DepartureTime string + Destination string + DestinationTerminal string + Duration int64 + ForceSendFields []string + Id string + Kind string + Meal string + Mileage int64 + NullFields []string + OnTimePerformance int64 + OperatingDisclosure string + Origin string + OriginTerminal string + Secure bool + func (s *LegInfo) MarshalJSON() ([]byte, error) + type PassengerCounts struct + AdultCount int64 + ChildCount int64 + ForceSendFields []string + InfantInLapCount int64 + InfantInSeatCount int64 + Kind string + NullFields []string + SeniorCount int64 + func (s *PassengerCounts) MarshalJSON() ([]byte, error) + type PricingInfo struct + BaseFareTotal string + Fare []*FareInfo + FareCalculation string + ForceSendFields []string + Kind string + LatestTicketingTime string + NullFields []string + Passengers *PassengerCounts + Ptc string + Refundable bool + SaleFareTotal string + SaleTaxTotal string + SaleTotal string + SegmentPricing []*SegmentPricing + Tax []*TaxInfo + func (s *PricingInfo) MarshalJSON() ([]byte, error) + type SegmentInfo struct + BookingCode string + BookingCodeCount int64 + Cabin string + ConnectionDuration int64 + Duration int64 + Flight *FlightInfo + ForceSendFields []string + Id string + Kind string + Leg []*LegInfo + MarriedSegmentGroup string + NullFields []string + SubjectToGovernmentApproval bool + func (s *SegmentInfo) MarshalJSON() ([]byte, error) + type SegmentPricing struct + FareId string + ForceSendFields []string + FreeBaggageOption []*FreeBaggageAllowance + Kind string + NullFields []string + SegmentId string + func (s *SegmentPricing) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Trips *TripsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SliceInfo struct + Duration int64 + ForceSendFields []string + Kind string + NullFields []string + Segment []*SegmentInfo + func (s *SliceInfo) MarshalJSON() ([]byte, error) + type SliceInput struct + Alliance string + Date string + Destination string + ForceSendFields []string + Kind string + MaxConnectionDuration int64 + MaxStops int64 + NullFields []string + Origin string + PermittedCarrier []string + PermittedDepartureTime *TimeOfDayRange + PreferredCabin string + ProhibitedCarrier []string + func (s *SliceInput) MarshalJSON() ([]byte, error) + type TaxData struct + ForceSendFields []string + Id string + Kind string + Name string + NullFields []string + func (s *TaxData) MarshalJSON() ([]byte, error) + type TaxInfo struct + ChargeType string + Code string + Country string + ForceSendFields []string + Id string + Kind string + NullFields []string + SalePrice string + func (s *TaxInfo) MarshalJSON() ([]byte, error) + type TimeOfDayRange struct + EarliestTime string + ForceSendFields []string + Kind string + LatestTime string + NullFields []string + func (s *TimeOfDayRange) MarshalJSON() ([]byte, error) + type TripOption struct + ForceSendFields []string + Id string + Kind string + NullFields []string + Pricing []*PricingInfo + SaleTotal string + Slice []*SliceInfo + func (s *TripOption) MarshalJSON() ([]byte, error) + type TripOptionsRequest struct + ForceSendFields []string + MaxPrice string + NullFields []string + Passengers *PassengerCounts + Refundable bool + SaleCountry string + Slice []*SliceInput + Solutions int64 + TicketingCountry string + func (s *TripOptionsRequest) MarshalJSON() ([]byte, error) + type TripOptionsResponse struct + Data *Data + ForceSendFields []string + Kind string + NullFields []string + RequestId string + TripOption []*TripOption + func (s *TripOptionsResponse) MarshalJSON() ([]byte, error) + type TripsSearchCall struct + func (c *TripsSearchCall) Context(ctx context.Context) *TripsSearchCall + func (c *TripsSearchCall) Do(opts ...googleapi.CallOption) (*TripsSearchResponse, error) + func (c *TripsSearchCall) Fields(s ...googleapi.Field) *TripsSearchCall + func (c *TripsSearchCall) Header() http.Header + type TripsSearchRequest struct + ForceSendFields []string + NullFields []string + Request *TripOptionsRequest + func (s *TripsSearchRequest) MarshalJSON() ([]byte, error) + type TripsSearchResponse struct + ForceSendFields []string + Kind string + NullFields []string + Trips *TripOptionsResponse + func (s *TripsSearchResponse) MarshalJSON() ([]byte, error) + type TripsService struct + func NewTripsService(s *Service) *TripsService + func (r *TripsService) Search(tripssearchrequest *TripsSearchRequest) *TripsSearchCall