Documentation
¶
Index ¶
- Constants
- type Acknowledgement
- type Address
- type BasicPropertyInfo
- type Comment
- type Commission
- type CommissionPayableAmount
- type CompanyInfo
- type CompanyName
- type CountryName
- type Customer
- type Email
- type Gender
- type GuestCount
- type HotelReadRequest
- type HotelReservation
- type HotelReservationID
- type ListItem
- type NotifReportRQ
- type NotifReportRS
- type PersonName
- type Phone
- type PhoneTechType
- type Profile
- type ProfileType
- type ReadRQ
- type ReadValidator
- type Remark
- type ResGlobalInfo
- type ResIDType
- type ResRatePlan
- type ResRetrieveRS
- type ResRetrieveValidator
- type ResRetrieveValidatorFunc
- type ResRoomType
- type ResStatus
- type RoomStay
- type SelectionCriteria
- type SpecialRequest
- type StartDateWindow
- type StateProv
- type Text
- type TimeSpan
- type Total
- type UniqueID
- type UniqueIDType
Constants ¶
View Source
const (
ProfileTypeTravelAgent = 4
)
View Source
const (
ResIDTypeInternetBroker = 13
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acknowledgement ¶
type Acknowledgement struct {
UniqueID UniqueID `xml:"UniqueID"`
}
type Address ¶
type Address struct {
Language string `xml:"Language,attr,omitempty"`
Remark Remark `xml:"Remark,attr,omitempty"`
AddressLine *string `xml:"AddressLine,omitempty"`
CityName *string `xml:"CityName,omitempty"`
PostalCode *string `xml:"PostalCode,omitempty"`
StateProv *StateProv `xml:"StateProv,omitempty"`
CountryName *CountryName `xml:"CountryName,omitempty"`
}
type BasicPropertyInfo ¶
type Commission ¶
type Commission struct {
Percent *int `xml:"Percent,attr"`
CommissionPayableAmount *CommissionPayableAmount `xml:"CommissionPayableAmount"`
}
type CommissionPayableAmount ¶
type CompanyInfo ¶
type CompanyInfo struct {
CompanyName CompanyName `xml:"CompanyName"`
AddressInfo *Address `xml:"AddressInfo"`
TelephoneInfo *Phone `xml:"TelephoneInfo"`
Email *Email `xml:"Email"`
}
type CompanyName ¶
type CountryName ¶
type CountryName struct {
Code string `xml:"Code,attr"`
}
type GuestCount ¶
type HotelReadRequest ¶
type HotelReadRequest struct {
HotelCode string `xml:"HotelCode,attr"`
SelectionCriteria *SelectionCriteria `xml:"SelectionCriteria,omitempty"`
}
type HotelReservation ¶
type HotelReservation struct {
CreateDateTime time.Time `xml:"CreateDateTime,attr"`
ResStatus ResStatus `xml:"ResStatus,attr"`
UniqueID UniqueID `xml:"UniqueID"`
RoomStays *[]RoomStay `xml:"RoomStays>RoomStay"`
Customer *Customer `xml:"ResGuests>ResGuest>Profiles>ProfileInfo>Profile>Customer"`
ResGlobalInfo *ResGlobalInfo `xml:"ResGlobalInfo"`
}
type HotelReservationID ¶
type NotifReportRQ ¶
type NotifReportRQ struct {
XMLName xml.Name `xml:"http://www.opentravel.org/OTA/2003/05 OTA_NotifReportRQ"`
Version string `xml:"Version,attr"`
Success common.Success `xml:"Success"`
Warnings *[]common.Warning `xml:"Warnings>Warning"`
HotelReservations []Acknowledgement `xml:"NotifDetails>HotelNotifReport>HotelReservations>HotelReservation"`
}
type NotifReportRS ¶
type PersonName ¶
type Phone ¶
type Phone struct {
PhoneTechType PhoneTechType `xml:"PhoneTechType,attr"`
PhoneNumber string `xml:"PhoneNumber,attr"`
}
type PhoneTechType ¶
type PhoneTechType string
const ( PhoneTechTypeVoice PhoneTechType = "1" PhoneTechTypeFax PhoneTechType = "3" PhoneTechTypeMobile PhoneTechType = "5" )
type Profile ¶
type Profile struct {
ProfileType ProfileType `xml:"ProfileType,attr"`
CompanyInfo CompanyInfo `xml:"CompanyInfo"`
}
type ProfileType ¶
type ProfileType int
type ReadRQ ¶
type ReadRQ struct {
XMLName xml.Name `xml:"http://www.opentravel.org/OTA/2003/05 OTA_ReadRQ"`
Version string `xml:"Version,attr"`
HotelReadRequest HotelReadRequest `xml:"ReadRequests>HotelReadRequest"`
}
type ReadValidator ¶
type ReadValidator struct{}
func (ReadValidator) Validate ¶
func (v ReadValidator) Validate(r ReadRQ) error
type ResGlobalInfo ¶
type ResGlobalInfo struct {
Comments *[]Comment `xml:"Comments>Comment"`
SpecialRequests *[]SpecialRequest `xml:"SpecialRequests>SpecialRequest"`
CancelPenalty *string `xml:"CancelPenalties>CancelPenalty>PenaltyDescription>Text"`
HotelReservationID *HotelReservationID `xml:"HotelReservationIDs>HotelReservationID"`
Profile *Profile `xml:"Profiles>ProfileInfo>Profile"`
BasicPropertyInfo BasicPropertyInfo `xml:"BasicPropertyInfo"`
}
type ResRatePlan ¶
type ResRatePlan struct {
RatePlanCode string `xml:"RatePlanCode,attr,omitempty"`
Commission *Commission `xml:"Commission"`
MealsIncluded *rateplans.MealsIncluded `xml:"MealsIncluded"`
}
type ResRetrieveRS ¶
type ResRetrieveValidator ¶
type ResRetrieveValidator struct {
// contains filtered or unexported fields
}
func NewResRetrieveValidator ¶
func NewResRetrieveValidator(opts ...ResRetrieveValidatorFunc) ResRetrieveValidator
func (ResRetrieveValidator) Validate ¶
func (v ResRetrieveValidator) Validate(r ResRetrieveRS) error
type ResRetrieveValidatorFunc ¶
type ResRetrieveValidatorFunc func(*ResRetrieveValidator)
func WithRoomTypeCodes ¶
func WithRoomTypeCodes(mapping map[string]struct{}) ResRetrieveValidatorFunc
type ResRoomType ¶
type RoomStay ¶
type RoomStay struct {
RoomType *ResRoomType `xml:"RoomTypes>RoomType"`
RatePlan *ResRatePlan `xml:"RatePlans>RatePlan"`
GuestCounts []GuestCount `xml:"GuestCounts>GuestCount"`
TimeSpan TimeSpan `xml:"TimeSpan"`
Total *Total `xml:"Total"`
}
type SelectionCriteria ¶
type SpecialRequest ¶
type StartDateWindow ¶
type UniqueID ¶
type UniqueID struct {
Type UniqueIDType `xml:"Type,attr"`
ID string `xml:"ID,attr"`
}
type UniqueIDType ¶
type UniqueIDType int
const ( UniqueIDTypeReservation UniqueIDType = 14 UniqueIDTypeCancellation UniqueIDType = 15 )
Click to show internal directories.
Click to hide internal directories.