inventory

package
v0.0.0-...-dd43e55 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amenity

type Amenity struct {
	RoomAmenityCode int `xml:"RoomAmenityCode,attr"`
}

type GuestRoom

type GuestRoom struct {
	Code                   string                 `xml:"Code,attr"`
	MinOccupancy           int                    `xml:"MinOccupancy,attr"`
	MaxOccupancy           int                    `xml:"MaxOccupancy,attr"`
	MaxChildOccupancy      int                    `xml:"MaxChildOccupancy,attr,omitempty"`
	OldCode                string                 `xml:"ID,attr,omitempty"`
	TypeRoom               TypeRoom               `xml:"TypeRoom"`
	Amenities              *[]Amenity             `xml:"Amenities>Amenity"`
	MultimediaDescriptions MultimediaDescriptions `xml:"MultimediaDescriptions>MultimediaDescription"`
}

func (GuestRoom) MinFull

func (g GuestRoom) MinFull() int

type HotelDescriptiveContent

type HotelDescriptiveContent struct {
	HotelCode  string      `xml:"HotelCode,attr"`
	HotelName  string      `xml:"HotelName,attr"`
	AreaID     int         `xml:"AreaID,attr,omitempty"`
	GuestRooms []GuestRoom `xml:"FacilityInfo>GuestRooms>GuestRoom"`
}

type HotelDescriptiveContentNotifRQ

type HotelDescriptiveContentNotifRQ struct {
	XMLName                 xml.Name                `xml:"http://www.opentravel.org/OTA/2003/05 OTA_HotelDescriptiveContentNotifRQ"`
	Version                 string                  `xml:"Version,attr"`
	HotelDescriptiveContent HotelDescriptiveContent `xml:"HotelDescriptiveContents>HotelDescriptiveContent"`
}

func (HotelDescriptiveContentNotifRQ) HotelCode

func (h HotelDescriptiveContentNotifRQ) HotelCode() string

type HotelDescriptiveContentNotifRS

type HotelDescriptiveContentNotifRS struct {
	common.Response

	XMLName xml.Name `xml:"http://www.opentravel.org/OTA/2003/05 OTA_HotelDescriptiveContentNotifRS"`
	Version string   `xml:"Version,attr"`
}

type HotelDescriptiveContentNotifValidator

type HotelDescriptiveContentNotifValidator struct {
	// contains filtered or unexported fields
}

func (HotelDescriptiveContentNotifValidator) Validate

type ImageFormat

type ImageFormat struct {
	CopyrightNotice string     `xml:"CopyrightNotice,attr,omitempty"`
	URL             common.URL `xml:"URL"`
}

type ImageItem

type ImageItem struct {
	Category     int                  `xml:"Category,attr"`
	ImageFormat  ImageFormat          `xml:"ImageFormat"`
	Descriptions []common.Description `xml:"Description,omitempty"`
}

type InformationType

type InformationType int
const (
	InformationTypeDescription InformationType = 1
	InformationTypePictures    InformationType = 23
	InformationTypeLongName    InformationType = 25
)

type MultimediaDescription

type MultimediaDescription struct {
	InfoCode   InformationType       `xml:"InfoCode,attr"`
	TextItems  *[]common.Description `xml:"TextItems>TextItem>Description"`
	ImageItems *[]ImageItem          `xml:"ImageItems>ImageItem"`
}

type MultimediaDescriptions

type MultimediaDescriptions []MultimediaDescription

func (MultimediaDescriptions) Descriptions

func (mds MultimediaDescriptions) Descriptions() []common.Description

func (MultimediaDescriptions) LongNames

func (mds MultimediaDescriptions) LongNames() []common.Description

func (MultimediaDescriptions) Pictures

func (mds MultimediaDescriptions) Pictures() []ImageItem

type TypeRoom

type TypeRoom struct {
	StandardOccupancy      int    `xml:"StandardOccupancy,attr"`
	RoomClassificationCode int    `xml:"RoomClassificationCode,attr"`
	RoomType               int    `xml:"RoomType,attr,omitempty"`
	Size                   int    `xml:"Size,attr,omitempty"`
	RoomID                 string `xml:"RoomID,attr,omitempty"`
}

Jump to

Keyboard shortcuts

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