api_model

package
v0.0.0-...-630d023 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AirProducts

type AirProducts struct {
	FareProducts []*FareProduct `json:"fareProducts"`
	Segments     []*Segment     `json:"segments"`
}

type CurrencyPrice

type CurrencyPrice struct {
	TotalFareCents uint32 `json:"totalFareCents"`
}

type FareProduct

type FareProduct struct {
	FareType       string         `json:"fareType"`
	CurrencyPrice  *CurrencyPrice `json:"currencyPrice"`
	SeatsAvailable string         `json:"seatsAvailable"`
}

type ListFlightsResponse

type ListFlightsResponse struct {
	Trips []*Trip `json:"trips"`
}

type LocalDateTime

type LocalDateTime struct {
	time.Time
}

func (*LocalDateTime) UnmarshalJSON

func (l *LocalDateTime) UnmarshalJSON(value []byte) error

type Segment

type Segment struct {
	OriginationAirportCode string        `json:"originationAirportCode"`
	DestinationAirportCode string        `json:"destinationAirportCode"`
	DepartureDateTime      LocalDateTime `json:"departureDateTime"`
	ArrivalDateTime        LocalDateTime `json:"arrivalDateTime"`
}

type Trip

type Trip struct {
	AirProducts []*AirProducts `json:"airProducts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL