Documentation ¶
Index ¶
- type AutoGenerated
- type Book
- type BookCriteria
- type Booking
- type Data
- type DestinationSearcher
- type DestinationSearcherCriteria
- type Error
- type HotelX
- type HotelxResponse
- type OptionQuote
- type Options
- type Parameters
- type Paxes
- type Plugins
- type PluginsType
- type Price
- type Quote
- type QuoteRequest
- type QuoteResponse
- type Reference
- type Search
- type SearchCriteria
- type SearchResponse
- type Service
- type ServiceClient
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoGenerated ¶
type AutoGenerated struct {
Data Data `json:"data"`
}
type BookCriteria ¶
type DestinationSearcher ¶
type HotelX ¶
type HotelX struct { Search Search `json:"search"` DestinationSearcher []DestinationSearcher `json:"destinationSearcher"` Quote Quote `json:"quote"` Book Book `json:"book"` }
type HotelxResponse ¶
type HotelxResponse struct {
Data Data `json:"data"`
}
type OptionQuote ¶
type Parameters ¶
type Plugins ¶
type Plugins struct { Step string `json:"step"` PluginsType []PluginsType `json:"pluginsType"` }
type PluginsType ¶
type PluginsType struct { Type string `json:"type"` Name string `json:"name"` Parameters []Parameters `json:"parameters"` }
type Quote ¶
type Quote struct { OptionQuote OptionQuote `json:"optionQuote"` Errors []Error `json:"errors"` Warnings []Error `json:"warnings"` }
type QuoteRequest ¶
type QuoteRequest struct {
OptionRefId string `json:"optionRefId"`
}
type QuoteResponse ¶
type QuoteResponse struct {
// contains filtered or unexported fields
}
type SearchCriteria ¶
type SearchResponse ¶
type Service ¶
type Service interface { Search(SearchCriteria) (SearchResponse, error) DestinationSearcher(DestinationSearcherCriteria) (string, error) Quote(QuoteRequest) (string, error) Book(BookCriteria) (Booking, error) }
func NewService ¶
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
func (*ServiceClient) Book ¶
func (s *ServiceClient) Book(c BookCriteria) (Booking, error)
func (*ServiceClient) DestinationSearcher ¶
func (s *ServiceClient) DestinationSearcher(c DestinationSearcherCriteria) (string, error)
func (*ServiceClient) Quote ¶
func (s *ServiceClient) Quote(c QuoteRequest) (string, error)
func (*ServiceClient) Search ¶
func (s *ServiceClient) Search(c SearchCriteria) (SearchResponse, error)
Click to show internal directories.
Click to hide internal directories.