models

package
v0.0.0-...-2b9725c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Itinerary

type Itinerary struct {

	// description
	Description string `json:"Description,omitempty"`

	// itinerary ID
	ItineraryID string `json:"ItineraryID,omitempty"`

	// segments
	// Read Only: true
	Segments []*Segment `json:"Segments"`
}

Itinerary itinerary swagger:model itinerary

func (*Itinerary) MarshalBinary

func (m *Itinerary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Itinerary) UnmarshalBinary

func (m *Itinerary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Itinerary) Validate

func (m *Itinerary) Validate(formats strfmt.Registry) error

Validate validates this itinerary

type Segment

type Segment struct {

	// arrival date
	ArrivalDate string `json:"ArrivalDate,omitempty"`

	// arrival time
	ArrivalTime string `json:"ArrivalTime,omitempty"`

	// departure date
	DepartureDate string `json:"DepartureDate,omitempty"`

	// departure time
	DepartureTime string `json:"DepartureTime,omitempty"`

	// destination
	Destination string `json:"Destination,omitempty"`

	// flight number
	FlightNumber string `json:"FlightNumber,omitempty"`

	// operating carrier
	OperatingCarrier string `json:"OperatingCarrier,omitempty"`

	// origin
	Origin string `json:"Origin,omitempty"`

	// segment ID
	SegmentID int64 `json:"SegmentID,omitempty"`
}

Segment segment swagger:model segment

func (*Segment) MarshalBinary

func (m *Segment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Segment) UnmarshalBinary

func (m *Segment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Segment) Validate

func (m *Segment) Validate(formats strfmt.Registry) error

Validate validates this segment

type Version

type Version struct {

	// version
	Version string `json:"Version,omitempty"`
}

Version version swagger:model version

func (*Version) MarshalBinary

func (m *Version) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

func (m *Version) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Version) Validate

func (m *Version) Validate(formats strfmt.Registry) error

Validate validates this version

Jump to

Keyboard shortcuts

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