Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type AccessFilterInput
- type AddOn
- type AddOns
- type AuditData
- type Bed
- type BookableOptionSearch
- type BusinessRulesInput
- type BusinessRulesType
- type CancelPenalty
- type CancelPenaltyType
- type CancelPolicy
- type Candidate
- type ChargeType
- type ComplexityRoot
- type Config
- type ConfigurationInput
- type CriteriaSearch
- type DirectiveRoot
- type DurationType
- type Error
- type Exchange
- type FilterInput
- type HotelCriteriaSearchInput
- type HotelOptionSearch
- type HotelSearch
- type HotelSettingsInput
- type HotelXAccessInput
- type HotelXFilterPluginTypeInput
- type HotelXFilterSearchInput
- type HotelXPluginFilterInput
- type HotelXQuery
- type HotelXSupplierInput
- type Markup
- type MarkupRuleType
- type Occupancy
- type ParameterInput
- type Pax
- type PaxInput
- type PaymentType
- type PluginStepInput
- type PluginStepType
- type PluginType
- type PluginsInput
- type Price
- type PriceBreakdown
- type PriceType
- type Priceable
- type Promotion
- type QueryResolver
- type RatePlan
- type RateRulesFilterInput
- type RateRulesType
- type Resolver
- type ResolverRoot
- type Resort
- type Response
- type Room
- type RoomCriteria
- type RoomInput
- type RoomPrice
- type Rule
- type Search
- type ServiceStatus
- type ServiceType
- type SettingsBaseInput
- type Stat
- type StatAccess
- type StatPlugin
- type StatTransaction
- type StatsRequest
- type StatusType
- type Supplement
- type SupplementType
- type Surcharge
- type Transactions
- type UnitTimeType
- type UrlsInput
- type Warning
Constants ¶
This section is empty.
Variables ¶
View Source
var AllBusinessRulesType = []BusinessRulesType{ BusinessRulesTypeCheaperAmount, BusinessRulesTypeRoomType, }
View Source
var AllCancelPenaltyType = []CancelPenaltyType{ CancelPenaltyTypeNights, CancelPenaltyTypePercent, CancelPenaltyTypeImport, }
View Source
var AllChargeType = []ChargeType{ ChargeTypeInclude, ChargeTypeExclude, }
View Source
var AllDurationType = []DurationType{ DurationTypeRange, DurationTypeOpen, }
View Source
var AllMarkupRuleType = []MarkupRuleType{ MarkupRuleTypePercent, MarkupRuleTypeImport, }
View Source
var AllPaymentType = []PaymentType{ PaymentTypeMerchant, PaymentTypeDirect, PaymentTypeCardBooking, PaymentTypeCardCheckIn, }
View Source
var AllPluginStepType = []PluginStepType{ PluginStepTypeRequest, PluginStepTypeRequestAccess, PluginStepTypeResponseOption, PluginStepTypeResponseAccess, PluginStepTypeResponse, }
View Source
var AllPluginType = []PluginType{ PluginTypePreStep, PluginTypeHotelMap, PluginTypeBoardMap, PluginTypeRoomMap, PluginTypeCurrencyConversion, PluginTypeMarkup, PluginTypeAggregation, PluginTypePostStep, }
View Source
var AllPriceType = []PriceType{ PriceTypeGross, PriceTypeNet, PriceTypeAmount, }
View Source
var AllRateRulesType = []RateRulesType{ RateRulesTypePackage, RateRulesTypeOlder55, RateRulesTypeOlder60, RateRulesTypeOlder65, RateRulesTypeCanaryResident, RateRulesTypeBalearicResident, RateRulesTypeLargeFamily, RateRulesTypeHoneymoon, RateRulesTypePublicServant, RateRulesTypeUnemployed, RateRulesTypeNormal, RateRulesTypeNonRefundable, }
View Source
var AllServiceType = []ServiceType{ ServiceTypeSkiPass, }
View Source
var AllStatusType = []StatusType{ StatusTypeOk, StatusTypeRq, }
View Source
var AllSupplementType = []SupplementType{ SupplementTypeSkiPass, SupplementTypeLessons, SupplementTypeMeals, SupplementTypeEquipment, SupplementTypeTicket, SupplementTypeTransfers, SupplementTypeGala, SupplementTypeActivity, }
View Source
var AllUnitTimeType = []UnitTimeType{ UnitTimeTypeDay, UnitTimeTypeHour, }
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AccessFilterInput ¶
type AuditData ¶
type AuditData struct { Transactions []Transactions `json:"transactions"` TimeStamp string `json:"timeStamp"` ProcessTime float64 `json:"processTime"` }
type BookableOptionSearch ¶
type BookableOptionSearch interface {
IsBookableOptionSearch()
}
type BusinessRulesInput ¶
type BusinessRulesInput struct { OptionsQuota *int `json:"optionsQuota"` BusinessRulesType *BusinessRulesType `json:"businessRulesType"` }
type BusinessRulesType ¶
type BusinessRulesType string
const ( BusinessRulesTypeCheaperAmount BusinessRulesType = "CHEAPER_AMOUNT" BusinessRulesTypeRoomType BusinessRulesType = "ROOM_TYPE" )
func (BusinessRulesType) IsValid ¶
func (e BusinessRulesType) IsValid() bool
func (BusinessRulesType) MarshalGQL ¶
func (e BusinessRulesType) MarshalGQL(w io.Writer)
func (BusinessRulesType) String ¶
func (e BusinessRulesType) String() string
func (*BusinessRulesType) UnmarshalGQL ¶
func (e *BusinessRulesType) UnmarshalGQL(v interface{}) error
type CancelPenalty ¶
type CancelPenalty struct { HoursBefore int `json:"hoursBefore"` PenaltyType CancelPenaltyType `json:"penaltyType"` Currency string `json:"currency"` Value float64 `json:"value"` }
type CancelPenaltyType ¶
type CancelPenaltyType string
const ( CancelPenaltyTypeNights CancelPenaltyType = "NIGHTS" CancelPenaltyTypePercent CancelPenaltyType = "PERCENT" CancelPenaltyTypeImport CancelPenaltyType = "IMPORT" )
func (CancelPenaltyType) IsValid ¶
func (e CancelPenaltyType) IsValid() bool
func (CancelPenaltyType) MarshalGQL ¶
func (e CancelPenaltyType) MarshalGQL(w io.Writer)
func (CancelPenaltyType) String ¶
func (e CancelPenaltyType) String() string
func (*CancelPenaltyType) UnmarshalGQL ¶
func (e *CancelPenaltyType) UnmarshalGQL(v interface{}) error
type CancelPolicy ¶
type CancelPolicy struct { Refundable bool `json:"refundable"` CancelPenalties []CancelPenalty `json:"cancelPenalties"` }
type ChargeType ¶
type ChargeType string
const ( ChargeTypeInclude ChargeType = "INCLUDE" ChargeTypeExclude ChargeType = "EXCLUDE" )
func (ChargeType) IsValid ¶
func (e ChargeType) IsValid() bool
func (ChargeType) MarshalGQL ¶
func (e ChargeType) MarshalGQL(w io.Writer)
func (ChargeType) String ¶
func (e ChargeType) String() string
func (*ChargeType) UnmarshalGQL ¶
func (e *ChargeType) UnmarshalGQL(v interface{}) error
type ComplexityRoot ¶
type ComplexityRoot struct { AddOn struct { Key func(childComplexity int) int Value func(childComplexity int) int } AddOns struct { Distribute func(childComplexity int) int Distribution func(childComplexity int) int } AuditData struct { ProcessTime func(childComplexity int) int TimeStamp func(childComplexity int) int Transactions func(childComplexity int) int } Bed struct { Count func(childComplexity int) int Description func(childComplexity int) int Shared func(childComplexity int) int Type func(childComplexity int) int } CancelPenalty struct { Currency func(childComplexity int) int HoursBefore func(childComplexity int) int PenaltyType func(childComplexity int) int Value func(childComplexity int) int } CancelPolicy struct { CancelPenalties func(childComplexity int) int Refundable func(childComplexity int) int } CriteriaSearch struct { CheckIn func(childComplexity int) int CheckOut func(childComplexity int) int Currency func(childComplexity int) int Hotels func(childComplexity int) int Language func(childComplexity int) int Market func(childComplexity int) int Nationality func(childComplexity int) int Occupancies func(childComplexity int) int } Error struct { Code func(childComplexity int) int Description func(childComplexity int) int Type func(childComplexity int) int } Exchange struct { Currency func(childComplexity int) int Rate func(childComplexity int) int } HotelOptionSearch struct { AccessCode func(childComplexity int) int AddOns func(childComplexity int) int BoardCode func(childComplexity int) int BoardCodeSupplier func(childComplexity int) int CancelPolicy func(childComplexity int) int HotelCode func(childComplexity int) int HotelCodeSupplier func(childComplexity int) int HotelName func(childComplexity int) int ID func(childComplexity int) int Market func(childComplexity int) int Occupancies func(childComplexity int) int PaymentType func(childComplexity int) int Price func(childComplexity int) int RateRules func(childComplexity int) int Remarks func(childComplexity int) int Rooms func(childComplexity int) int Status func(childComplexity int) int Supplements func(childComplexity int) int SupplierCode func(childComplexity int) int Surcharges func(childComplexity int) int Token func(childComplexity int) int } HotelSearch struct { AuditData func(childComplexity int) int Context func(childComplexity int) int Errors func(childComplexity int) int Options func(childComplexity int) int RequestCriteria func(childComplexity int) int Stats func(childComplexity int, token string) int Warnings func(childComplexity int) int } HotelXQuery struct { Search func(childComplexity int) int SearchStatusService func(childComplexity int) int } Markup struct { Binding func(childComplexity int) int Channel func(childComplexity int) int Currency func(childComplexity int) int Exchange func(childComplexity int) int Gross func(childComplexity int) int Net func(childComplexity int) int Rules func(childComplexity int) int } Occupancy struct { ID func(childComplexity int) int Paxes func(childComplexity int) int } Pax struct { Age func(childComplexity int) int } Price struct { Binding func(childComplexity int) int Currency func(childComplexity int) int Exchange func(childComplexity int) int Gross func(childComplexity int) int Markups func(childComplexity int) int Net func(childComplexity int) int } PriceBreakdown struct { EffectiveDate func(childComplexity int) int ExpireDate func(childComplexity int) int Price func(childComplexity int) int } Promotion struct { Code func(childComplexity int) int EffectiveDate func(childComplexity int) int ExpireDate func(childComplexity int) int Name func(childComplexity int) int } Query struct { HotelX func(childComplexity int) int } RatePlan struct { Code func(childComplexity int) int EffectiveDate func(childComplexity int) int ExpireDate func(childComplexity int) int Name func(childComplexity int) int } Resort struct { Code func(childComplexity int) int Description func(childComplexity int) int Name func(childComplexity int) int } Room struct { Beds func(childComplexity int) int Code func(childComplexity int) int Description func(childComplexity int) int OccupancyRefID func(childComplexity int) int Promotions func(childComplexity int) int RatePlans func(childComplexity int) int Refundable func(childComplexity int) int RoomPrice func(childComplexity int) int Units func(childComplexity int) int } RoomCriteria struct { Paxes func(childComplexity int) int } RoomPrice struct { Breakdown func(childComplexity int) int Price func(childComplexity int) int } Rule struct { ID func(childComplexity int) int Name func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int } Search struct { Hotel func(childComplexity int, token *string, criteria *HotelCriteriaSearchInput, settings *HotelSettingsInput, filter *FilterInput) int } ServiceStatus struct { Code func(childComplexity int) int Description func(childComplexity int) int Type func(childComplexity int) int } Stat struct { Duration func(childComplexity int) int End func(childComplexity int) int Start func(childComplexity int) int } StatAccess struct { Cities func(childComplexity int) int Hotels func(childComplexity int) int Name func(childComplexity int) int Plugins func(childComplexity int) int RequestAccess func(childComplexity int) int ResponseAccess func(childComplexity int) int StaticConfiguration func(childComplexity int) int Total func(childComplexity int) int Transactions func(childComplexity int) int Zones func(childComplexity int) int } StatPlugin struct { Name func(childComplexity int) int Total func(childComplexity int) int } StatTransaction struct { BuildRequest func(childComplexity int) int ParseResponse func(childComplexity int) int Reference func(childComplexity int) int Total func(childComplexity int) int WorkerCommunication func(childComplexity int) int } StatsRequest struct { Accesses func(childComplexity int) int Cities func(childComplexity int) int Configuration func(childComplexity int) int DockerID func(childComplexity int) int Hotels func(childComplexity int) int Process func(childComplexity int) int Request func(childComplexity int) int RequestPlugin func(childComplexity int) int Response func(childComplexity int) int ResponsePlugin func(childComplexity int) int Total func(childComplexity int) int Validation func(childComplexity int) int Zones func(childComplexity int) int } Supplement struct { ChargeType func(childComplexity int) int Code func(childComplexity int) int Description func(childComplexity int) int DurationType func(childComplexity int) int EffectiveDate func(childComplexity int) int ExpireDate func(childComplexity int) int Mandatory func(childComplexity int) int Name func(childComplexity int) int Price func(childComplexity int) int Quantity func(childComplexity int) int Resort func(childComplexity int) int SupplementType func(childComplexity int) int Unit func(childComplexity int) int } Surcharge struct { ChargeType func(childComplexity int) int Description func(childComplexity int) int Mandatory func(childComplexity int) int Price func(childComplexity int) int } Transactions struct { Request func(childComplexity int) int Response func(childComplexity int) int TimeStamp func(childComplexity int) int } Warning struct { Code func(childComplexity int) int Description func(childComplexity int) int Type func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ConfigurationInput ¶
type ConfigurationInput struct { Username *string `json:"username"` Password *string `json:"password"` Urls UrlsInput `json:"urls"` Parameters []ParameterInput `json:"parameters"` Markets []string `json:"markets"` RateRules []RateRulesType `json:"rateRules"` }
type CriteriaSearch ¶
type CriteriaSearch struct { CheckIn string `json:"checkIn"` CheckOut string `json:"checkOut"` Hotels []string `json:"hotels"` Occupancies []RoomCriteria `json:"occupancies"` Language *string `json:"language"` Currency *string `json:"currency"` Nationality *string `json:"nationality"` Market string `json:"market"` }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type DurationType ¶
type DurationType string
const ( DurationTypeRange DurationType = "RANGE" DurationTypeOpen DurationType = "OPEN" )
func (DurationType) IsValid ¶
func (e DurationType) IsValid() bool
func (DurationType) MarshalGQL ¶
func (e DurationType) MarshalGQL(w io.Writer)
func (DurationType) String ¶
func (e DurationType) String() string
func (*DurationType) UnmarshalGQL ¶
func (e *DurationType) UnmarshalGQL(v interface{}) error
type FilterInput ¶
type FilterInput struct { Access *AccessFilterInput `json:"access"` RateRules *RateRulesFilterInput `json:"rateRules"` }
type HotelCriteriaSearchInput ¶
type HotelCriteriaSearchInput struct { CheckIn string `json:"checkIn"` CheckOut string `json:"checkOut"` Hotels []string `json:"hotels"` Destinations []string `json:"destinations"` Occupancies []RoomInput `json:"occupancies"` Language *string `json:"language"` Currency *string `json:"currency"` Nationality *string `json:"nationality"` Market *string `json:"market"` }
type HotelOptionSearch ¶
type HotelOptionSearch struct { SupplierCode string `json:"supplierCode"` AccessCode string `json:"accessCode"` Market string `json:"market"` HotelCode string `json:"hotelCode"` HotelCodeSupplier string `json:"hotelCodeSupplier"` HotelName *string `json:"hotelName"` BoardCode string `json:"boardCode"` BoardCodeSupplier string `json:"boardCodeSupplier"` PaymentType PaymentType `json:"paymentType"` Status StatusType `json:"status"` Occupancies []Occupancy `json:"occupancies"` Rooms []Room `json:"rooms"` Price Price `json:"price"` Supplements []*Supplement `json:"supplements"` Surcharges []Surcharge `json:"surcharges"` RateRules []RateRulesType `json:"rateRules"` CancelPolicy *CancelPolicy `json:"cancelPolicy"` Remarks *string `json:"remarks"` AddOns *AddOns `json:"addOns"` Token string `json:"token"` ID string `json:"id"` }
func (HotelOptionSearch) IsBookableOptionSearch ¶
func (HotelOptionSearch) IsBookableOptionSearch()
type HotelSearch ¶
type HotelSearch struct { Context *string `json:"context"` Stats *StatsRequest `json:"stats"` AuditData *AuditData `json:"auditData"` RequestCriteria *CriteriaSearch `json:"requestCriteria"` Options []HotelOptionSearch `json:"options"` Errors []Error `json:"errors"` Warnings []Warning `json:"warnings"` }
func (HotelSearch) IsResponse ¶
func (HotelSearch) IsResponse()
type HotelSettingsInput ¶
type HotelSettingsInput struct { Context *string `json:"context"` UseContext *bool `json:"useContext"` ConnectUser *string `json:"connectUser"` Client *string `json:"client"` Group *string `json:"group"` Timeout *int `json:"timeout"` AuditTransactions *bool `json:"auditTransactions"` BusinessRules *BusinessRulesInput `json:"businessRules"` Suppliers []HotelXSupplierInput `json:"suppliers"` Plugins []PluginStepInput `json:"plugins"` TestMode *bool `json:"testMode"` ClientTokens []string `json:"clientTokens"` }
type HotelXAccessInput ¶
type HotelXAccessInput struct { AccessID string `json:"accessId"` Configuration *ConfigurationInput `json:"configuration"` Settings *SettingsBaseInput `json:"settings"` }
type HotelXFilterPluginTypeInput ¶
type HotelXFilterPluginTypeInput struct { Step PluginStepType `json:"step"` Type string `json:"type"` Name string `json:"name"` }
type HotelXFilterSearchInput ¶
type HotelXFilterSearchInput struct { Access *AccessFilterInput `json:"access"` RateRules *RateRulesFilterInput `json:"rateRules"` Plugin *HotelXPluginFilterInput `json:"plugin"` }
type HotelXPluginFilterInput ¶
type HotelXPluginFilterInput struct { Includes []HotelXFilterPluginTypeInput `json:"includes"` Excludes []HotelXFilterPluginTypeInput `json:"excludes"` }
type HotelXQuery ¶
type HotelXQuery struct { Search *HotelSearch `json:"search"` SearchStatusService ServiceStatus `json:"searchStatusService"` }
type HotelXSupplierInput ¶
type HotelXSupplierInput struct { Settings *SettingsBaseInput `json:"settings"` Code string `json:"code"` Accesses []HotelXAccessInput `json:"accesses"` }
type Markup ¶
type Markup struct { Channel *string `json:"channel"` Currency string `json:"currency"` Binding bool `json:"binding"` Net float64 `json:"net"` Gross *float64 `json:"gross"` Exchange Exchange `json:"exchange"` Rules []Rule `json:"rules"` }
func (Markup) IsPriceable ¶
func (Markup) IsPriceable()
type MarkupRuleType ¶
type MarkupRuleType string
const ( MarkupRuleTypePercent MarkupRuleType = "PERCENT" MarkupRuleTypeImport MarkupRuleType = "IMPORT" )
func (MarkupRuleType) IsValid ¶
func (e MarkupRuleType) IsValid() bool
func (MarkupRuleType) MarshalGQL ¶
func (e MarkupRuleType) MarshalGQL(w io.Writer)
func (MarkupRuleType) String ¶
func (e MarkupRuleType) String() string
func (*MarkupRuleType) UnmarshalGQL ¶
func (e *MarkupRuleType) UnmarshalGQL(v interface{}) error
type ParameterInput ¶
type PaymentType ¶
type PaymentType string
const ( PaymentTypeMerchant PaymentType = "MERCHANT" PaymentTypeDirect PaymentType = "DIRECT" PaymentTypeCardBooking PaymentType = "CARD_BOOKING" PaymentTypeCardCheckIn PaymentType = "CARD_CHECK_IN" )
func (PaymentType) IsValid ¶
func (e PaymentType) IsValid() bool
func (PaymentType) MarshalGQL ¶
func (e PaymentType) MarshalGQL(w io.Writer)
func (PaymentType) String ¶
func (e PaymentType) String() string
func (*PaymentType) UnmarshalGQL ¶
func (e *PaymentType) UnmarshalGQL(v interface{}) error
type PluginStepInput ¶
type PluginStepInput struct { Step PluginStepType `json:"step"` PluginsType []PluginsInput `json:"pluginsType"` }
type PluginStepType ¶
type PluginStepType string
const ( PluginStepTypeRequest PluginStepType = "REQUEST" PluginStepTypeRequestAccess PluginStepType = "REQUEST_ACCESS" PluginStepTypeResponseOption PluginStepType = "RESPONSE_OPTION" PluginStepTypeResponseAccess PluginStepType = "RESPONSE_ACCESS" PluginStepTypeResponse PluginStepType = "RESPONSE" )
func (PluginStepType) IsValid ¶
func (e PluginStepType) IsValid() bool
func (PluginStepType) MarshalGQL ¶
func (e PluginStepType) MarshalGQL(w io.Writer)
func (PluginStepType) String ¶
func (e PluginStepType) String() string
func (*PluginStepType) UnmarshalGQL ¶
func (e *PluginStepType) UnmarshalGQL(v interface{}) error
type PluginType ¶
type PluginType string
const ( PluginTypePreStep PluginType = "PRE_STEP" PluginTypeHotelMap PluginType = "HOTEL_MAP" PluginTypeBoardMap PluginType = "BOARD_MAP" PluginTypeRoomMap PluginType = "ROOM_MAP" PluginTypeCurrencyConversion PluginType = "CURRENCY_CONVERSION" PluginTypeMarkup PluginType = "MARKUP" PluginTypeAggregation PluginType = "AGGREGATION" PluginTypePostStep PluginType = "POST_STEP" )
func (PluginType) IsValid ¶
func (e PluginType) IsValid() bool
func (PluginType) MarshalGQL ¶
func (e PluginType) MarshalGQL(w io.Writer)
func (PluginType) String ¶
func (e PluginType) String() string
func (*PluginType) UnmarshalGQL ¶
func (e *PluginType) UnmarshalGQL(v interface{}) error
type PluginsInput ¶
type PluginsInput struct { Type PluginType `json:"type"` Name string `json:"name"` Parameters []ParameterInput `json:"parameters"` }
type Price ¶
type Price struct { Currency string `json:"currency"` Binding bool `json:"binding"` Net float64 `json:"net"` Gross *float64 `json:"gross"` Exchange Exchange `json:"exchange"` Markups []Markup `json:"markups"` }
func (Price) IsPriceable ¶
func (Price) IsPriceable()
type PriceBreakdown ¶
type PriceType ¶
type PriceType string
func (PriceType) MarshalGQL ¶
func (*PriceType) UnmarshalGQL ¶
type QueryResolver ¶
type QueryResolver interface {
HotelX(ctx context.Context) (*HotelXQuery, error)
}
type RateRulesFilterInput ¶
type RateRulesFilterInput struct { Includes []RateRulesType `json:"includes"` Excludes []RateRulesType `json:"excludes"` }
type RateRulesType ¶
type RateRulesType string
const ( RateRulesTypePackage RateRulesType = "PACKAGE" RateRulesTypeOlder55 RateRulesType = "OLDER55" RateRulesTypeOlder60 RateRulesType = "OLDER60" RateRulesTypeOlder65 RateRulesType = "OLDER65" RateRulesTypeCanaryResident RateRulesType = "CANARY_RESIDENT" RateRulesTypeBalearicResident RateRulesType = "BALEARIC_RESIDENT" RateRulesTypeLargeFamily RateRulesType = "LARGE_FAMILY" RateRulesTypeHoneymoon RateRulesType = "HONEYMOON" RateRulesTypePublicServant RateRulesType = "PUBLIC_SERVANT" RateRulesTypeUnemployed RateRulesType = "UNEMPLOYED" RateRulesTypeNormal RateRulesType = "NORMAL" RateRulesTypeNonRefundable RateRulesType = "NON_REFUNDABLE" )
func (RateRulesType) IsValid ¶
func (e RateRulesType) IsValid() bool
func (RateRulesType) MarshalGQL ¶
func (e RateRulesType) MarshalGQL(w io.Writer)
func (RateRulesType) String ¶
func (e RateRulesType) String() string
func (*RateRulesType) UnmarshalGQL ¶
func (e *RateRulesType) UnmarshalGQL(v interface{}) error
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
type Room ¶
type Room struct { OccupancyRefID int `json:"occupancyRefId"` Code string `json:"code"` Description *string `json:"description"` Refundable *bool `json:"refundable"` Units *int `json:"units"` RoomPrice RoomPrice `json:"roomPrice"` Beds []Bed `json:"beds"` RatePlans []RatePlan `json:"ratePlans"` Promotions []Promotion `json:"promotions"` }
type RoomCriteria ¶
type RoomCriteria struct {
Paxes []Pax `json:"paxes"`
}
type RoomPrice ¶
type RoomPrice struct { Price Price `json:"price"` Breakdown []PriceBreakdown `json:"breakdown"` }
type Rule ¶
type Rule struct { ID string `json:"id"` Name *string `json:"name"` Type MarkupRuleType `json:"type"` Value float64 `json:"value"` }
type Search ¶
type Search struct {
Hotel *HotelSearch `json:"hotel"`
}
type ServiceStatus ¶
type ServiceType ¶
type ServiceType string
const (
ServiceTypeSkiPass ServiceType = "SKI_PASS"
)
func (ServiceType) IsValid ¶
func (e ServiceType) IsValid() bool
func (ServiceType) MarshalGQL ¶
func (e ServiceType) MarshalGQL(w io.Writer)
func (ServiceType) String ¶
func (e ServiceType) String() string
func (*ServiceType) UnmarshalGQL ¶
func (e *ServiceType) UnmarshalGQL(v interface{}) error
type SettingsBaseInput ¶
type SettingsBaseInput struct { Timeout *int `json:"timeout"` AuditTransactions *bool `json:"auditTransactions"` BusinessRules *BusinessRulesInput `json:"businessRules"` Currency *string `json:"currency"` }
type StatAccess ¶
type StatAccess struct { Name string `json:"name"` Total Stat `json:"total"` StaticConfiguration *Stat `json:"staticConfiguration"` Hotels int `json:"hotels"` Zones int `json:"zones"` Cities int `json:"cities"` RequestAccess *StatPlugin `json:"requestAccess"` ResponseAccess *StatPlugin `json:"responseAccess"` Transactions []StatTransaction `json:"transactions"` Plugins []StatPlugin `json:"plugins"` }
type StatPlugin ¶
type StatTransaction ¶
type StatsRequest ¶
type StatsRequest struct { Total Stat `json:"total"` Validation Stat `json:"validation"` Process Stat `json:"process"` Configuration Stat `json:"configuration"` Request Stat `json:"request"` Response Stat `json:"response"` RequestPlugin *StatPlugin `json:"requestPlugin"` ResponsePlugin *StatPlugin `json:"responsePlugin"` Hotels int `json:"hotels"` Zones int `json:"zones"` Cities int `json:"cities"` DockerID string `json:"dockerID"` Accesses []StatAccess `json:"Accesses"` }
type StatusType ¶
type StatusType string
const ( StatusTypeOk StatusType = "OK" StatusTypeRq StatusType = "RQ" )
func (StatusType) IsValid ¶
func (e StatusType) IsValid() bool
func (StatusType) MarshalGQL ¶
func (e StatusType) MarshalGQL(w io.Writer)
func (StatusType) String ¶
func (e StatusType) String() string
func (*StatusType) UnmarshalGQL ¶
func (e *StatusType) UnmarshalGQL(v interface{}) error
type Supplement ¶
type Supplement struct { Code string `json:"code"` Name *string `json:"name"` Description *string `json:"description"` SupplementType SupplementType `json:"supplementType"` ChargeType ChargeType `json:"chargeType"` Mandatory bool `json:"mandatory"` DurationType *DurationType `json:"durationType"` Quantity *int `json:"quantity"` Unit *UnitTimeType `json:"unit"` EffectiveDate *string `json:"effectiveDate"` ExpireDate *string `json:"expireDate"` Resort *Resort `json:"resort"` Price *Price `json:"price"` }
type SupplementType ¶
type SupplementType string
const ( SupplementTypeSkiPass SupplementType = "SKI_PASS" SupplementTypeLessons SupplementType = "LESSONS" SupplementTypeMeals SupplementType = "MEALS" SupplementTypeEquipment SupplementType = "EQUIPMENT" SupplementTypeTicket SupplementType = "TICKET" SupplementTypeTransfers SupplementType = "TRANSFERS" SupplementTypeGala SupplementType = "GALA" SupplementTypeActivity SupplementType = "ACTIVITY" )
func (SupplementType) IsValid ¶
func (e SupplementType) IsValid() bool
func (SupplementType) MarshalGQL ¶
func (e SupplementType) MarshalGQL(w io.Writer)
func (SupplementType) String ¶
func (e SupplementType) String() string
func (*SupplementType) UnmarshalGQL ¶
func (e *SupplementType) UnmarshalGQL(v interface{}) error
type Surcharge ¶
type Surcharge struct { ChargeType ChargeType `json:"chargeType"` Mandatory bool `json:"mandatory"` Price Price `json:"price"` Description *string `json:"description"` }
type Transactions ¶
type UnitTimeType ¶
type UnitTimeType string
const ( UnitTimeTypeDay UnitTimeType = "DAY" UnitTimeTypeHour UnitTimeType = "HOUR" )
func (UnitTimeType) IsValid ¶
func (e UnitTimeType) IsValid() bool
func (UnitTimeType) MarshalGQL ¶
func (e UnitTimeType) MarshalGQL(w io.Writer)
func (UnitTimeType) String ¶
func (e UnitTimeType) String() string
func (*UnitTimeType) UnmarshalGQL ¶
func (e *UnitTimeType) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.