Documentation ¶
Index ¶
- Variables
- type Address
- type Bool
- type Company
- type Coupon
- type Credentials
- type Data
- type Details
- type Direction
- type ExtraPrice
- type Form
- type Guest
- type Header
- type HotelDetails
- type IDOfChannel
- type LTSBookable
- type Logging
- type Method
- type ObjectFilter
- type OfferDetails
- type Options
- type Order
- type OrderField
- type Paging
- type Payment
- type PriceListDetails
- type Rateplan
- type Request
- type RestrictionsVersion
- type Room
- type RoomDetails
- type Root
- type Search
- type SearchAvailability
- type SearchDistance
- type SearchHotel
- type SearchLocation
- type SearchOffer
- type SearchPriceList
- type SearchSpecial
- type SpecialDetails
- type Stars
- type StornoReason
- type Tracking
- type Validity
Constants ¶
This section is empty.
Variables ¶
View Source
var Directions = []Direction{ DirectionAsc, DirectionDesc, }
View Source
var HotelDetailsList = []HotelDetails{ HotelDetailsBasicInfo, HotelDetailsThemes, HotelDetailsHotelFacilities, HotelDetailsShortDescription, HotelDetailsFullDescription, HotelDetailsGeographicInformation, HotelDetailsCoordinates, HotelDetailsAddress, HotelDetailsContacts, HotelDetailsPaymentOptionsForOnlineBooking, HotelDetailsPaymentOptionsAtHotel, HotelDetailsLogo, HotelDetailsHeaderImages, HotelDetailsGallery, HotelDetailsHotelMatching, HotelDetailsGeographicalInformationAsText, HotelDetailsHotelNavigatorData, HotelDetailsDetailedHotelFacilities, HotelDetailsLTSSpecificParameters, HotelDetailsSalesPoint, HotelDetailsCheckInOut, HotelDetailsSourceData, HotelDetailsBoardData, HotelDetailsCouponServiceData, HotelDetailsRoomTypes, }
View Source
var IDOfChannels = []IDOfChannel{ IDOfChannelHGV, IDOfChannelLTS, IDOfChannelBookingCom, IDOfChannelHotelDe, IDOfChannelExpediaCom, IDOfChannelHrsCom, IDOfChannelLTSPOS, IDOfChannelGoogle, }
View Source
var LTSBookables = []LTSBookable{ LTSBookableOverridenByIgnoreBookability, LTSBookableOnlyBookableLTSOffers, LTSBookableOnlyNonBookableLTSOffers, }
View Source
var Languages = []language.Tag{ language.German, language.Italian, language.English, language.Spanish, language.French, language.Russian, language.Danish, }
View Source
var Methods = []Method{ MethodGetHotelList, MethodGetSpecialList, MethodGetRoomList, MethodGetPriceList, MethodGetRoomAvailability, MethodPrepareBooking, MethodGetBooking, MethodCancelBooking, MethodCreateInquiry, MethodGetUserSources, MethodGetLocationList, MethodGetMasterpackagesList, MethodGetThemeList, MethodValidateCoupon, }
View Source
var ObjectFilters = []ObjectFilter{ ObjectFilterPriceList, ObjectFilterPackage, ObjectFilterSpecial, ObjectFilterDiscountOrSurcharge, }
View Source
var OfferDetailsList = []OfferDetails{ OfferDetailsBasicInfo, OfferDetailsRoomCode, OfferDetailsRoomTitle, OfferDetailsPriceDetails, OfferDetailsRoomImages, OfferDetailsRoomFacilitiesFilter, OfferDetailsRoomDescription, OfferDetailsIncludedServices, OfferDetailsAdditionalServices, OfferDetailsRoomFacilitiesDetails, OfferDetailsPriceImages, OfferDetailsThemes, OfferDetailsRoomFeatures, OfferDetailsCancelPolicies, OfferDetailsPaymentTerms, }
View Source
var OrderFields = []OrderField{ OrderFieldDate, OrderFieldRand, OrderFieldStars, OrderFieldName, }
View Source
var PriceListDetailsList = []PriceListDetails{ PriceListDetailsBaseData, PriceListDetailsHeadlines, PriceListDetailsSeasons, }
View Source
var RoomDetailsList = []RoomDetails{ RoomDetailsBasicInfo, RoomDetailsTitle, RoomDetailsRoomImages, RoomDetailsRoomFacilitiesFilter, RoomDetailsRoomDescription, RoomDetailsRoomFacilitiesDetails, RoomDetailsRoomFeatures, RoomDetailsRoomNumbers, }
View Source
var SpecialDetailsList = []SpecialDetails{ SpecialDetailsBasicInfo, SpecialDetailsTitle, SpecialDetailsDescriptions, SpecialDetailsSeasons, SpecialDetailsImages, SpecialDetailsThemes, SpecialDetailsIncludedServices, SpecialDetailsHotelIncludedServices, SpecialDetailsHotelMandatoryServices, }
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool bool
The boolean type for request data. This must be used instead of the standard "bool". Maps to 0/1 (which MSS expects) instead of "true"/"false"
func (Bool) MarshalXML ¶
type Coupon ¶
type Coupon struct { Code string `xml:"coupon_code"` Type shared.CouponType `xml:"coupon_type"` }
type Credentials ¶
type Data ¶
type Data struct { Guest *Guest `xml:"guest"` Company *Company `xml:"company"` Payment *Payment `xml:"payment"` Note string `xml:"note"` Details *Details `xml:"details"` Form *Form `xml:"form"` Tracking *Tracking `xml:"tracking"` Insurance Bool `xml:"insurance"` StornoReason StornoReason `xml:"storno_reason"` StornoReasonText string `xml:"storno_reason_text"` }
type Details ¶
type Details struct { ExtraPrices []ExtraPrice `xml:"extra_price"` Coupon *Coupon `xml:"coupon"` }
type ExtraPrice ¶
type Header ¶
type Header struct { Credentials Credentials `xml:"credentials"` Method Method `xml:"method"` Paging *Paging `xml:"paging"` ResultID string `xml:"result_id"` }
type HotelDetails ¶
type HotelDetails int
const ( HotelDetailsBasicInfo HotelDetails = 1 << iota HotelDetailsThemes HotelDetailsHotelFacilities HotelDetailsShortDescription HotelDetailsFullDescription HotelDetailsGeographicInformation HotelDetailsCoordinates HotelDetailsAddress HotelDetailsContacts HotelDetailsPaymentOptionsForOnlineBooking HotelDetailsPaymentOptionsAtHotel HotelDetailsLogo HotelDetailsHeaderImages HotelDetailsGallery HotelDetailsHotelMatching HotelDetailsGeographicalInformationAsText HotelDetailsDetailedHotelFacilities HotelDetailsLTSSpecificParameters HotelDetailsSalesPoint HotelDetailsCheckInOut HotelDetailsSourceData HotelDetailsBoardData HotelDetails = 2 << iota HotelDetailsCouponServiceData HotelDetailsRoomTypes HotelDetails = 8 << iota )
type IDOfChannel ¶
type IDOfChannel string
const ( IDOfChannelHGV IDOfChannel = "hgv" IDOfChannelLTS IDOfChannel = "lts" IDOfChannelBookingCom IDOfChannel = "bok" IDOfChannelHotelDe IDOfChannel = "htl" IDOfChannelExpediaCom IDOfChannel = "exp" IDOfChannelHrsCom IDOfChannel = "hrs" IDOfChannelLTSPOS IDOfChannel = "pos" IDOfChannelGoogle IDOfChannel = "gog" )
type LTSBookable ¶
type LTSBookable int
const ( LTSBookableOverridenByIgnoreBookability LTSBookable = iota LTSBookableOnlyBookableLTSOffers LTSBookableOnlyNonBookableLTSOffers )
type Method ¶
type Method string
const ( MethodGetHotelList Method = "getHotelList" MethodGetSpecialList Method = "getSpecialList" MethodGetRoomList Method = "getRoomList" MethodGetPriceList Method = "getPriceList" MethodGetRoomAvailability Method = "getRoomAvailability" MethodPrepareBooking Method = "prepareBooking" MethodGetBooking Method = "getBooking" MethodCancelBooking Method = "cancelBooking" MethodCreateInquiry Method = "createInquiry" MethodGetUserSources Method = "getUserSources" MethodGetLocationList Method = "getLocationList" MethodGetMasterpackagesList Method = "getMasterpackagesList" MethodGetThemeList Method = "getThemeList" MethodValidateCoupon Method = "validateCoupon" )
type ObjectFilter ¶
type ObjectFilter int
const ( ObjectFilterPriceList ObjectFilter = iota ObjectFilterPackage ObjectFilterSpecial ObjectFilterDiscountOrSurcharge ObjectFilter = 4 )
type OfferDetails ¶
type OfferDetails int
const ( OfferDetailsBasicInfo OfferDetails = 1 OfferDetailsRoomCode OfferDetails = 4 OfferDetailsRoomTitle OfferDetails = 8 OfferDetailsPriceDetails OfferDetails = 16 OfferDetailsRoomImages OfferDetails = 32 OfferDetailsRoomFacilitiesFilter OfferDetails = 64 OfferDetailsRoomDescription OfferDetails = 256 OfferDetailsIncludedServices OfferDetails = 1024 OfferDetailsAdditionalServices OfferDetails = 2048 OfferDetailsRoomFacilitiesDetails OfferDetails = 4096 OfferDetailsPriceImages OfferDetails = 8192 OfferDetailsThemes OfferDetails = 16384 OfferDetailsRoomFeatures OfferDetails = 32768 OfferDetailsCancelPolicies OfferDetails = 262144 OfferDetailsPaymentTerms OfferDetails = 1048576 )
type Options ¶
type Options struct { HotelDetails HotelDetails `xml:"hotel_details"` OfferDetails OfferDetails `xml:"offer_details"` RoomDetails RoomDetails `xml:"room_details"` SpecialDetails SpecialDetails `xml:"special_details"` PictureDate *shared.Date `xml:"picture_date"` LTSBookable LTSBookable `xml:"lts_bookable"` GetAvailability Bool `xml:"get_availability"` GetRestrictions RestrictionsVersion `xml:"get_restrictions"` GetRoomdetails Bool `xml:"get_roomdetails"` GetMasterpackages Bool `xml:"get_masterpackages"` BasePrice Bool `xml:"base_price"` PriceListDetails PriceListDetails `xml:"pricelist_details"` OnlySubscribedHotels Bool `xml:"only_subscribed_hotels"` OnlyAvailable Bool `xml:"only_available"` CheckRestrictions Bool `xml:"check_restrictions"` }
type Order ¶
type Order struct { Field OrderField `xml:"field"` Dir Direction `xml:"dir"` }
type OrderField ¶
type OrderField string
const ( OrderFieldDate OrderField = "date" OrderFieldRand OrderField = "rand" OrderFieldStars OrderField = "stars" OrderFieldName OrderField = "name" )
type Payment ¶
type Payment struct { Method shared.PaymentMethod `xml:"method"` Invoice Bool `xml:"invoice"` }
type PriceListDetails ¶
type PriceListDetails int
const ( PriceListDetailsBaseData PriceListDetails = 1 PriceListDetailsHeadlines PriceListDetails = 8 PriceListDetailsSeasons PriceListDetails = 4194304 )
type RestrictionsVersion ¶
type RestrictionsVersion string
const RestrictionsVersion2 RestrictionsVersion = "v2"
The old v1 is not supported by this library.
type RoomDetails ¶
type RoomDetails int
const ( RoomDetailsBasicInfo RoomDetails = 4 RoomDetailsTitle RoomDetails = 8 RoomDetailsRoomImages RoomDetails = 32 RoomDetailsRoomFacilitiesFilter RoomDetails = 64 RoomDetailsRoomDescription RoomDetails = 256 RoomDetailsRoomFacilitiesDetails RoomDetails = 4096 RoomDetailsRoomFeatures RoomDetails = 32768 RoomDetailsRoomNumbers RoomDetails = 65536 )
type Search ¶
type Search struct { Lang language.Tag `xml:"lang"` ResultID string `xml:"result_id"` Agent string `xml:"agent"` IDs []int `xml:"id"` Hotel *SearchHotel `xml:"search_hotel"` Location *SearchLocation `xml:"search_location"` Distance *SearchDistance `xml:"search_distance"` Offer *SearchOffer `xml:"search_offer"` LTS *shared.LTSData `xml:"search_lts"` Special *SearchSpecial `xml:"search_special"` Availability *SearchAvailability `xml:"search_availability"` PriceList *SearchPriceList `xml:"search_pricelist"` In []int `xml:"in"` IDOfChannel IDOfChannel `xml:"id_ofchannel,omitempty"` TransactionID string `xml:"transaction_id"` BookingID int `xml:"booking_id"` GuestEmail string `xml:"guest_email"` RootID int `xml:"root_id"` ExternalID int `xml:"external_id"` Type shared.LocationType `xml:"typ"` CouponCode string `xml:"coupon_code"` CouponType *shared.CouponType `xml:"coupon_type"` TotalPrice float64 `xml:"total_price"` Arrival *shared.Date `xml:"arrival"` Departure *shared.Date `xml:"departure"` StornoID string `xml:"storno_id"` }
type SearchAvailability ¶
type SearchDistance ¶
type SearchHotel ¶
type SearchLocation ¶
type SearchOffer ¶
type SearchOffer struct { Arrival *shared.Date `xml:"arrival"` Departure *shared.Date `xml:"departure"` Service shared.Board `xml:"service"` Feature int `xml:"feature,omitempty"` ChannelIDs []string `xml:"channel_id"` Rooms []Room `xml:"room"` Type shared.OfferType `xml:"typ"` Rateplan *Rateplan `xml:"rateplan"` }
type SearchPriceList ¶
type SearchSpecial ¶
type SearchSpecial struct { OfferIDs []int `xml:"offer_id"` DateFrom *shared.Date `xml:"date_from"` DateTo *shared.Date `xml:"date_to"` Themes []shared.ThemeID `xml:"theme"` POIIDs []int `xml:"poi_id"` POICats []int `xml:"poi_cat"` Validity *Validity `xml:"validity"` Type shared.SpecialType `xml:"typ"` Premium shared.SpecialPremium `xml:"premium"` Status int `xml:"status"` }
type SpecialDetails ¶
type SpecialDetails int
const ( SpecialDetailsBasicInfo SpecialDetails = 1 << iota SpecialDetailsTitle SpecialDetailsDescriptions SpecialDetailsSeasons SpecialDetailsImages SpecialDetailsThemes SpecialDetailsIncludedServices SpecialDetailsHotelIncludedServices SpecialDetailsHotelMandatoryServices )
type Stars ¶
type Stars struct { Min shared.HotelStars `xml:"min"` Max shared.HotelStars `xml:"max"` }
type StornoReason ¶
type StornoReason int
const ( StornoReasonUnknown StornoReason = iota StornoReasonPropertyRequestedCancellation StornoReasonGuestChoseAnotherDestination StornoReasonGuestChoseAnotherProperty StornoReasonOther StornoReason = 99 )
Click to show internal directories.
Click to hide internal directories.