Documentation
¶
Index ¶
Constants ¶
View Source
const ResponseFormatJson = "JSON"
View Source
const SortOrderDefault = "Default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Destination ¶
type GoGlobalService ¶
type GoGlobalService interface {
GetDestinations(context.Context, Credentials) ([]*Destination, error)
GetHotels(context.Context, Credentials) ([]*Hotel, error)
Search(context.Context, Credentials, models.HotelSearchRequest) ([]models.HotelSearchResponseItem, error)
BookingValuation(context.Context, Credentials, models.BookValuationRequest) (models.BookValuationResponse, error)
BookingInsert(context.Context, Credentials, models.BookingInsertRequest) (models.BookingInsertResponse, error)
BookingStatus(context.Context, Credentials, models.BookingStatusRequest) (models.BookingStatusResponse, error)
BookingSearch(context.Context, Credentials, models.BookingSearchRequest) (models.BookingSearchResponse, error)
AdvBookingSearch(context.Context, Credentials, models.AdvBookingSearchRequest) (models.AdvBookingSearchResponse, error)
BookingCancel(context.Context, Credentials, models.BookingCancelRequest) (models.BookingCancelResponse, error)
VoucherDetails(context.Context, Credentials, models.VoucherDetailsRequest) (models.VoucherDetailsResponse, error)
BookingInfoForAmendment(context.Context, Credentials, models.BookingInfoForAmendmentRequest) (models.BookingInfoForAmendmentResponse, error)
BookingAmendment(context.Context, Credentials, models.BookingAmendmentRequest) error
HotelInfo(context.Context, Credentials, models.HotelInfoRequest) (models.HotelInfoResponse, error)
PriceBreakdown(context.Context, Credentials, models.PriceBreakdownRequest) (models.PriceBreakdownResponse, error)
}
func NewGoGlobalService ¶
func NewGoGlobalService( apiUrl string, client HttpClient, ) GoGlobalService
type Hotel ¶
type Hotel struct {
CountryId int64 `csv:"CountryId"`
Country string `csv:"Country"`
IsoCode string `csv:"IsoCode"`
CityId int64 `csv:"CityId"`
City string `csv:"City"`
HotelID int64 `csv:"HotelID"`
Name string `csv:"Name"`
Address string `csv:"Address"`
Phone string `csv:"Phone"`
Fax string `csv:"Fax"`
Stars string `csv:"Stars"`
StarsID int64 `csv:"StarsID"`
Longitude float64 `csv:"Longitude"`
Latitude float64 `csv:"Latitude"`
IsApartment bool `csv:"IsApartment"`
GiataCode string `csv:"GiataCode"`
}
Click to show internal directories.
Click to hide internal directories.