shared

package
v0.0.88 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ParseDateTime

func ParseDateTime(layout string, value string) (*time.Time, error)

func ParseLocalDateTime

func ParseLocalDateTime(layout string, value string) (*time.Time, error)

Types

type Board

type Board int
const (
	BoardAny Board = iota
	BoardWithoutBoard
	BoardWithBreakfast
	BoardHalfBoard
	BoardFullBoard
	BoardAllInclusive
)

type CouponType

type CouponType string
const (
	CouponTypeVoucher   CouponType = "voucher"
	CouponTypePromotion CouponType = "promotion"
)

type Date

type Date struct{ time.Time }

func (Date) MarshalXML

func (d Date) MarshalXML(element *xml.Encoder, start xml.StartElement) error

func (*Date) UnmarshalXML

func (d *Date) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error

type Gender

type Gender string
const (
	GenderUnknown Gender = ""
	GenderMale    Gender = "m"
	GenderFemale  Gender = "f"
)

type HotelFeature

type HotelFeature int
const (
	HotelFeatureGarage HotelFeature = 1 << iota
	HotelFeatureElevatorLift
	HotelFeatureRestaurant
	HotelFeatureGym
	HotelFeatureWellness
	HotelFeatureSpaCuisineHealthFoods
	HotelFeatureContinentalBreakfastLuncheon
	HotelFeatureBreakfastBuffet
	HotelFeatureOutdoorPool
	HotelFeatureIndoorPool
	HotelFeatureBar
	HotelFeatureBarrierFree
	HotelFeatureWlan
	HotelFeatureShuttleService
	HotelFeatureChildcare
	HotelFeatureSmallPetsAllowed
	HotelFeatureBeautyFarm
	HotelFeatureCentralLocation HotelFeature = 2 << iota
	HotelFeatureCoveredParking
	HotelFeatureOpenParking
	HotelFeatureMassages
	HotelFeatureSauna
	HotelFeatureSteamBath
	HotelFeaturePublicBar
	HotelFeatureDogsAllowed
)

type HotelStars

type HotelStars float64
const (
	HotelStarsUndefined HotelStars = 0
	HotelStars1         HotelStars = 1
	HotelStars2         HotelStars = 2
	HotelStars3         HotelStars = 3
	HotelStars3S        HotelStars = 3.5
	HotelStars4         HotelStars = 4
	HotelStars4S        HotelStars = 4.5
	HotelStars5         HotelStars = 5
)

type HotelType

type HotelType int
const (
	HotelTypeUndefined HotelType = 0
	HotelTypeHotel     HotelType = 1 << (iota - 1)
	HotelTypeSkiSchool
	HotelTypeResidence
	HotelTypeBBAndAppartmentsPriv HotelType = 2 << (iota - 1)
	HotelTypeFarmVacation
	HotelTypeMountainInn
	HotelTypeCampingSite
	HotelTypeHolidayHome
	HotelTypeYouthHostel
	HotelTypeGuesthouse
	HotelTypeRefuge
	HotelTypeGarni
	HotelTypeInn
)

type LTSData

type LTSData struct {
	A0Ene LTSHotelStatus             `xml:"A0Ene"`
	A0MTV MemberOfTourismAssociation `xml:"A0MTV"`
	A0Rep LTSHotelRepresentation     `xml:"A0Rep"`
}

type LTSHotelRepresentation

type LTSHotelRepresentation int
const (
	LTSHotelRepresentationUndefined LTSHotelRepresentation = iota
	LTSHotelRepresentationDoNotDisplay
	LTSHotelRepresentationMinimal
	LTSHotelRepresentationComplete
)

type LTSHotelStatus

type LTSHotelStatus int
const (
	LTSHotelStatusUndefined LTSHotelStatus = iota
	LTSHotelActive
	LTSHotelInactive
)

type LocationType

type LocationType string
const (
	// Area = an Italian province or region (e.g. South Tyrol)
	LocationTypeArea LocationType = "ara"
	// Region is an area
	LocationTypeRegion LocationType = "reg"
	// Community = municipality
	LocationTypeCommunity LocationType = "com"
	// Location is a subdivision of a municipality
	LocationTypeLocation LocationType = "cit"
	// VirtualLocation = arbitrary group of one or more locations
	LocationTypeVirtualLocation LocationType = "vir"
)

type MemberOfTourismAssociation

type MemberOfTourismAssociation int
const (
	MemberOfTourismAssociationUndefined MemberOfTourismAssociation = iota
	MemberOfTourismAssociationFalse
	MemberOfTourismAssociationTrue
)

type OfferType

type OfferType int
const (
	OfferTypePriceListStandardPrice       OfferType = 10
	OfferTypeBasedOnAgeOfPeople           OfferType = 20
	OfferTypeBasedOnNumberOfPeople        OfferType = 21
	OfferTypeBasedOnStaying               OfferType = 22
	OfferTypeBasedOnDateOfBooking         OfferType = 23
	OfferTypeBasedOnWeekday               OfferType = 24
	OfferTypeNoReference                  OfferType = 25
	OfferTypeSpecialBasedOnAgeOfPeople    OfferType = 50
	OfferTypeSpecialBasedOnNumberOfPeople OfferType = 51
	OfferTypeSpecialBasedOnStaying        OfferType = 52
	OfferTypeSpecialBasedOnDateOfBooking  OfferType = 53
	OfferTypeSpecialBasedOnWeekday        OfferType = 54
	OfferTypeSpecialNoReference           OfferType = 55
)

type PaymentMethod

type PaymentMethod int
const (
	PaymentMethodDepositByCreditCard PaymentMethod = 1 << iota
	PaymentMethodCreditCardAsSecurity
	PaymentMethodDepositByBankTransfer
	PaymentMethodPaymentByCreditCard
	PaymentMethodPaymentByBankTransfer
	PaymentMethodPaymentAtTheHotel
)

type RoomType

type RoomType int
const (
	RoomTypeRoom RoomType = 1 << iota
	RoomTypeApartment
	RoomTypeCampingPitch
)

type SpecialPremium

type SpecialPremium int
const (
	SpecialPremiumVitalpina SpecialPremium = 1 << iota
	SpecialPremiumFamilyHotelsPremium
	SpecialPremiumVinumHotelsPremium
	SpecialPremiumSüdtirolBalancePremium
	SpecialPremiumVitalpinaDurchatmen
	SpecialPremiumVitalpinaWohlfühlen
	SpecialPremiumVitaplinaErnährung
	SpecialPremiumVitaplinaAktiv
	SpecialPremiumVitalpinaPremium
	SpecialPremiumBikehotelsMountainbike
	SpecialPremiumBikehotelsBikeTouringAndEbike
	SpecialPremiumBikehotelsRoadbike
	SpecialPremiumBikehotelsPremium
	SpecialPremiumArchitectureDays
	SpecialPremiumVinumHotels
	SpecialPremiumFamilienHotels
	SpecialPremiumFamilienHotelsNaturdetektivSommer
	SpecialPremiumFamilienHotelsNaturdetektivWinter
)

type SpecialType

type SpecialType int
const (
	SpecialTypePackages SpecialType = 1 << iota
	SpecialTypeSpecials
	SpecialTypeMasterpackages
)

type Theme

type Theme int
const (
	ThemeUndefined Theme = 0
	ThemeFamily    Theme = 1 << (iota - 1)
	ThemeWellness
	ThemeHiking
	ThemeMotorcycle
	ThemeBike
	ThemeGolf
	ThemeRiding
	ThemeRomantic
	ThemeSki
	ThemeMeeting
	ThemeCrossCountrySkiing
	ThemeCulture
	ThemeSnowshoeing
	ThemeSustainabilityLevel1 Theme = 1 << 22 << iota
	ThemeSustainabilityLevel2
	ThemeSustainabilityLevel3
)

type ThemeID

type ThemeID int
const (
	ThemeIDHiking ThemeID = iota + 1
	ThemeIDCyclingMountainbike
	ThemeIDFamily
	ThemeIDWellnessHealth
	ThemeIDFoodAndDrink
	ThemeIDGolf
	ThemeIDCulture
	ThemeIDMotorsport
	ThemeIDCarFreeHolidays
	ThemeIDSkiSnowboard
	ThemeIDSummerActivities
	ThemeIDEvents
	ThemeIDChristmasMarkets
	ThemeIDActiveWinter
	ThemeIDVitalpina
	ThemeIDVitalpinaBreathe
	ThemeIDBikeHotelsEBike
	ThemeIDBikeHotelsFreeride
	ThemeIDBikeHotelsMountainbike ThemeID = iota + 2
	ThemeIDBikeHotelsBikeTours
	ThemeIDBikeHotelsRacingBike
	ThemeIDFamilyHotels
	ThemeIDFamilyHotelsNatureDetective
	ThemeIDFamilyHotel ThemeID = iota + 3
	ThemeIDNatureDetectivSummer
	ThemeIDNatureDetectivWinter
	ThemeIDEcologicHoliday ThemeID = iota + 53
	ThemeIDHorseBackRiding
	ThemeIDLuxuryHoliday
	ThemeIDPetsFriendlyHoliday
	ThemeIDRoadBike
	ThemeIDRomanticHoliday
	ThemeIDWine
	ThemeIDBicycleTouring
	ThemeIDEBike
)

Jump to

Keyboard shortcuts

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