graphResolver

package
v0.0.0-...-cc58ba3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XoParamPrefix  = "xo_"
	XodParamPrefix = "xod_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOnResolver

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

func (*AddOnResolver) Key

func (r *AddOnResolver) Key() string

func (*AddOnResolver) Value

func (r *AddOnResolver) Value() Json

type AddOnsResolver

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

func (*AddOnsResolver) Distribute

func (r *AddOnsResolver) Distribute() *Json

func (*AddOnsResolver) Distribution

func (r *AddOnsResolver) Distribution() *[]*AddOnResolver

type AddonMap

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

func (*AddonMap) AddParam

func (a *AddonMap) AddParam(addonType string, p domainAccess.Parameter)

type AuditDataResolver

type AuditDataResolver struct {
	AuditData *common.AuditData
}

func (*AuditDataResolver) ProcessTime

func (r *AuditDataResolver) ProcessTime() float64

func (*AuditDataResolver) TimeStamp

func (r *AuditDataResolver) TimeStamp() DateTime

func (*AuditDataResolver) Transactions

func (r *AuditDataResolver) Transactions() []*TransactionsResolver

type BedResolver

type BedResolver struct {
	Bed *domainHotelCommon.Bed
}

func (*BedResolver) Count

func (r *BedResolver) Count() *int32

func (*BedResolver) Description

func (r *BedResolver) Description() *string

func (*BedResolver) Shared

func (r *BedResolver) Shared() *bool

func (*BedResolver) Type

func (r *BedResolver) Type() *string

type CVC

type CVC string

CVC

func (CVC) ImplementsGraphQLType

func (CVC) ImplementsGraphQLType(name string) bool

func (CVC) MarshalJSON

func (cvc CVC) MarshalJSON() ([]byte, error)

func (*CVC) UnmarshalGraphQL

func (cvc *CVC) UnmarshalGraphQL(input interface{}) error

type CancelPenaltyResolver

type CancelPenaltyResolver struct {
	CancelPenalty *domainHotelCommon.CancelPenalty
}

func (*CancelPenaltyResolver) Currency

func (r *CancelPenaltyResolver) Currency() Currency

func (*CancelPenaltyResolver) HoursBefore

func (r *CancelPenaltyResolver) HoursBefore() int32

func (*CancelPenaltyResolver) PenaltyType

func (*CancelPenaltyResolver) Value

func (r *CancelPenaltyResolver) Value() float64

type CancelPolicyResolver

type CancelPolicyResolver struct {
	CancelPolicy *domainHotelCommon.CancelPolicy
}

func (*CancelPolicyResolver) CancelPenalties

func (r *CancelPolicyResolver) CancelPenalties() *[]*CancelPenaltyResolver

func (*CancelPolicyResolver) Refundable

func (r *CancelPolicyResolver) Refundable() bool

type CardNumber

type CardNumber string

CardNumber

func (CardNumber) ImplementsGraphQLType

func (CardNumber) ImplementsGraphQLType(name string) bool

func (CardNumber) MarshalJSON

func (cardNumber CardNumber) MarshalJSON() ([]byte, error)

func (*CardNumber) UnmarshalGraphQL

func (cardNumber *CardNumber) UnmarshalGraphQL(input interface{}) error

type Country

type Country string

Country

func (Country) ImplementsGraphQLType

func (_ Country) ImplementsGraphQLType(name string) bool

func (Country) MarshalJSON

func (country Country) MarshalJSON() ([]byte, error)

func (*Country) UnmarshalGraphQL

func (country *Country) UnmarshalGraphQL(input interface{}) error

type CriteriaRequestResolver

type CriteriaRequestResolver struct {
	Criteria *search.CriteriaSearch
}

func (*CriteriaRequestResolver) CheckIn

func (r *CriteriaRequestResolver) CheckIn() Date

func (*CriteriaRequestResolver) CheckOut

func (r *CriteriaRequestResolver) CheckOut() Date

func (*CriteriaRequestResolver) Currency

func (r *CriteriaRequestResolver) Currency() *Currency

func (*CriteriaRequestResolver) Hotels

func (r *CriteriaRequestResolver) Hotels() []string

func (*CriteriaRequestResolver) Language

func (r *CriteriaRequestResolver) Language() *Language

func (*CriteriaRequestResolver) Market

func (r *CriteriaRequestResolver) Market() string

func (*CriteriaRequestResolver) Nationality

func (r *CriteriaRequestResolver) Nationality() *Country

func (*CriteriaRequestResolver) Occupancies

func (r *CriteriaRequestResolver) Occupancies() []*OccupancyResolver

type Currency

type Currency string

func (Currency) ImplementsGraphQLType

func (_ Currency) ImplementsGraphQLType(name string) bool

func (Currency) MarshalJSON

func (currency Currency) MarshalJSON() ([]byte, error)

func (*Currency) UnmarshalGraphQL

func (currency *Currency) UnmarshalGraphQL(input interface{}) error

type Date

type Date string

func (Date) ImplementsGraphQLType

func (_ Date) ImplementsGraphQLType(name string) bool

func (Date) MarshalJSON

func (date Date) MarshalJSON() ([]byte, error)

func (*Date) UnmarshalGraphQL

func (date *Date) UnmarshalGraphQL(input interface{}) error

type DateTime

type DateTime string

func (DateTime) ImplementsGraphQLType

func (_ DateTime) ImplementsGraphQLType(name string) bool

func (DateTime) MarshalJSON

func (datetime DateTime) MarshalJSON() ([]byte, error)

func (*DateTime) UnmarshalGraphQL

func (datetime *DateTime) UnmarshalGraphQL(input interface{}) error

type ErrorResolver

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

func (*ErrorResolver) Code

func (e *ErrorResolver) Code() string

func (*ErrorResolver) Description

func (e *ErrorResolver) Description() string

func (*ErrorResolver) Type

func (e *ErrorResolver) Type() string

type ExchangeResolver

type ExchangeResolver struct {
	Exchange domainHotelCommon.Exchange
}

func (*ExchangeResolver) Currency

func (r *ExchangeResolver) Currency() Currency

func (*ExchangeResolver) Rate

func (r *ExchangeResolver) Rate() float64

type HotelOptionResolver

type HotelOptionResolver struct {
	Option *domainHotelCommon.Option
	// contains filtered or unexported fields
}

func (*HotelOptionResolver) AccessCode

func (r *HotelOptionResolver) AccessCode() string

func (*HotelOptionResolver) AddOns

func (r *HotelOptionResolver) AddOns() *AddOnsResolver

func (*HotelOptionResolver) BoardCode

func (r *HotelOptionResolver) BoardCode() string

func (*HotelOptionResolver) BoardCodeSupplier

func (r *HotelOptionResolver) BoardCodeSupplier() string

func (*HotelOptionResolver) CancelPolicy

func (r *HotelOptionResolver) CancelPolicy() *CancelPolicyResolver

func (*HotelOptionResolver) HotelCode

func (r *HotelOptionResolver) HotelCode() string

func (*HotelOptionResolver) HotelCodeSupplier

func (r *HotelOptionResolver) HotelCodeSupplier() string

func (*HotelOptionResolver) HotelName

func (r *HotelOptionResolver) HotelName() *string

func (*HotelOptionResolver) Id

func (r *HotelOptionResolver) Id() string

func (*HotelOptionResolver) Market

func (r *HotelOptionResolver) Market() string

func (*HotelOptionResolver) Occupancies

func (r *HotelOptionResolver) Occupancies() []*OccupancyResolver

func (*HotelOptionResolver) PaymentType

func (r *HotelOptionResolver) PaymentType() string

func (*HotelOptionResolver) Price

func (r *HotelOptionResolver) Price() *PriceResolver

func (*HotelOptionResolver) RateRules

func (r *HotelOptionResolver) RateRules() *[]access.RateRulesType

func (*HotelOptionResolver) Remarks

func (r *HotelOptionResolver) Remarks() *string

func (*HotelOptionResolver) Rooms

func (r *HotelOptionResolver) Rooms() []*RoomResolver

func (*HotelOptionResolver) Status

func (*HotelOptionResolver) Supplements

func (r *HotelOptionResolver) Supplements() *[]*SupplementResolver

func (*HotelOptionResolver) SupplierCode

func (r *HotelOptionResolver) SupplierCode() string

func (*HotelOptionResolver) Surcharges

func (r *HotelOptionResolver) Surcharges() *[]*SurchargeResolver

func (*HotelOptionResolver) Token

func (r *HotelOptionResolver) Token() string

type HotelSearchRQ

type HotelSearchRQ struct {
	Token        *string
	Criteria     *search.CriteriaSearch
	Filter       *search.Filter
	FilterSearch *search.FilterSearch
	Settings     *struct {
		Context           *string
		Client            *string
		Group             *string
		Org               string
		Suppliers         *[]domainHotelCommon.Supplier
		Plugins           *[]domainHotelCommon.PluginStep
		TestMode          *bool
		ClientTokens      *[]string
		Timeout           *int
		AuditTransactions *bool
		BusinessRules     *struct {
			OptionsQuota      *int
			BusinessRulesType *string
		}
		Currency *string

		UseContext  *string
		ConnectUser *string
	}
}

type HotelSearchResolver

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

func (*HotelSearchResolver) AuditData

func (r *HotelSearchResolver) AuditData() *AuditDataResolver

func (*HotelSearchResolver) Context

func (r *HotelSearchResolver) Context() *string

GraphQl Resolvers

func (*HotelSearchResolver) Errors

func (r *HotelSearchResolver) Errors() *[]*ErrorResolver

func (*HotelSearchResolver) Options

func (*HotelSearchResolver) RequestCriteria

func (r *HotelSearchResolver) RequestCriteria() *CriteriaRequestResolver

func (*HotelSearchResolver) Stats

func (r *HotelSearchResolver) Stats(args struct{ Token string }) *StatsResolver

func (*HotelSearchResolver) Warnings

func (r *HotelSearchResolver) Warnings() *[]*WarningResolver

type HotelXQueryResolver

type HotelXQueryResolver struct {
	Options []*domainHotelCommon.Option
}

func (*HotelXQueryResolver) Search

func (*HotelXQueryResolver) SearchStatusService

func (r *HotelXQueryResolver) SearchStatusService() *ServiceStatusResolver

type Json

type Json string

func (Json) ImplementsGraphQLType

func (Json) ImplementsGraphQLType(name string) bool

func (Json) MarshalJSON

func (json Json) MarshalJSON() ([]byte, error)

func (*Json) UnmarshalGraphQL

func (json *Json) UnmarshalGraphQL(input interface{}) error

type Language

type Language string

func (Language) ImplementsGraphQLType

func (_ Language) ImplementsGraphQLType(name string) bool

func (Language) MarshalJSON

func (language Language) MarshalJSON() ([]byte, error)

func (*Language) UnmarshalGraphQL

func (language *Language) UnmarshalGraphQL(input interface{}) error

type MarkupResolver

type MarkupResolver struct {
	Markup domainHotelCommon.Markup
}

func (*MarkupResolver) Binding

func (r *MarkupResolver) Binding() bool

func (*MarkupResolver) Channel

func (r *MarkupResolver) Channel() *string

func (*MarkupResolver) Currency

func (r *MarkupResolver) Currency() Currency

func (*MarkupResolver) Exchange

func (r *MarkupResolver) Exchange() *ExchangeResolver

func (*MarkupResolver) Gross

func (r *MarkupResolver) Gross() *float64

func (*MarkupResolver) Net

func (r *MarkupResolver) Net() float64

func (*MarkupResolver) Rules

func (r *MarkupResolver) Rules() []*RuleResolver

type MutationResolver

type MutationResolver struct{}

type OccupancyResolver

type OccupancyResolver struct {
	Occupancy *domainHotelCommon.Occupancy
}

func (*OccupancyResolver) Id

func (r *OccupancyResolver) Id() int32

func (*OccupancyResolver) Paxes

func (r *OccupancyResolver) Paxes() (paxes []*PaxResolver)

type PaxResolver

type PaxResolver struct {
	Pax *domainHotelCommon.Pax
}

func (*PaxResolver) Age

func (r *PaxResolver) Age() int32

type PriceBreakDownResolver

type PriceBreakDownResolver struct {
	PriceBreakDown *domainHotelCommon.PriceBreakDown
}

func (*PriceBreakDownResolver) EffectiveDate

func (r *PriceBreakDownResolver) EffectiveDate() Date

func (*PriceBreakDownResolver) ExpireDate

func (r *PriceBreakDownResolver) ExpireDate() Date

func (*PriceBreakDownResolver) Price

type PriceResolver

type PriceResolver struct {
	Price *domainHotelCommon.Price
}

func (*PriceResolver) Binding

func (r *PriceResolver) Binding() bool

func (*PriceResolver) Currency

func (r *PriceResolver) Currency() Currency

func (*PriceResolver) Exchange

func (r *PriceResolver) Exchange() *ExchangeResolver

func (*PriceResolver) Gross

func (r *PriceResolver) Gross() *float64

func (*PriceResolver) Markups

func (r *PriceResolver) Markups() *[]*MarkupResolver

func (*PriceResolver) Net

func (r *PriceResolver) Net() float64

type PromotionResolver

type PromotionResolver struct {
	Promotion *domainHotelCommon.Promotion
}

func (*PromotionResolver) Code

func (r *PromotionResolver) Code() string

func (*PromotionResolver) EffectiveDate

func (r *PromotionResolver) EffectiveDate() *Date

func (*PromotionResolver) ExpireDate

func (r *PromotionResolver) ExpireDate() *Date

func (*PromotionResolver) Name

func (r *PromotionResolver) Name() *string

type QueryResolver

type QueryResolver struct {
	Options []*domainHotelCommon.Option
}

func (*QueryResolver) HotelX

func (r *QueryResolver) HotelX() *HotelXQueryResolver

func (*QueryResolver) Search

func (r *QueryResolver) Search() *SearchResolver

type RatePlanResolver

type RatePlanResolver struct {
	RatePlan *domainHotelCommon.RatePlan
}

func (*RatePlanResolver) Code

func (r *RatePlanResolver) Code() string

func (*RatePlanResolver) EffectiveDate

func (r *RatePlanResolver) EffectiveDate() *Date

func (*RatePlanResolver) ExpireDate

func (r *RatePlanResolver) ExpireDate() *Date

func (*RatePlanResolver) Name

func (r *RatePlanResolver) Name() *string

type ResortResolver

type ResortResolver struct {
	Resort *domainHotelCommon.Resort
}

func (*ResortResolver) Code

func (r *ResortResolver) Code() string

func (*ResortResolver) Description

func (r *ResortResolver) Description() *string

func (*ResortResolver) Name

func (r *ResortResolver) Name() *string

type RoomPriceResolver

type RoomPriceResolver struct {
	RoomPrice *domainHotelCommon.RoomPrice
}

func (*RoomPriceResolver) Breakdown

func (r *RoomPriceResolver) Breakdown() *[]*PriceBreakDownResolver

func (*RoomPriceResolver) Price

func (r *RoomPriceResolver) Price() *PriceResolver

type RoomResolver

type RoomResolver struct {
	Room *domainHotelCommon.Room
}

func (*RoomResolver) Beds

func (r *RoomResolver) Beds() *[]*BedResolver

func (*RoomResolver) Code

func (r *RoomResolver) Code() string

func (*RoomResolver) Description

func (r *RoomResolver) Description() *string

func (*RoomResolver) OccupancyRefId

func (r *RoomResolver) OccupancyRefId() int32

func (*RoomResolver) Promotions

func (r *RoomResolver) Promotions() *[]*PromotionResolver

func (*RoomResolver) RatePlans

func (r *RoomResolver) RatePlans() *[]*RatePlanResolver

func (*RoomResolver) Refundable

func (r *RoomResolver) Refundable() *bool

func (*RoomResolver) RoomPrice

func (r *RoomResolver) RoomPrice() *RoomPriceResolver

func (*RoomResolver) Units

func (r *RoomResolver) Units() *int32

type RuleResolver

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

func (*RuleResolver) Id

func (r *RuleResolver) Id() string

func (*RuleResolver) Name

func (r *RuleResolver) Name() *string

func (*RuleResolver) Type

func (*RuleResolver) Value

func (r *RuleResolver) Value() float64

type SearchResolver

type SearchResolver struct {
}

func (*SearchResolver) Hotel

type ServiceStatusResolver

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

func (*ServiceStatusResolver) Code

func (e *ServiceStatusResolver) Code() *string

func (*ServiceStatusResolver) Description

func (e *ServiceStatusResolver) Description() *string

func (*ServiceStatusResolver) Type

func (e *ServiceStatusResolver) Type() *string

type StatAccessResolver

type StatAccessResolver struct {
}

func (*StatAccessResolver) Cities

func (r *StatAccessResolver) Cities() int32

func (*StatAccessResolver) Hotels

func (r *StatAccessResolver) Hotels() int32

func (*StatAccessResolver) Name

func (r *StatAccessResolver) Name() string

func (*StatAccessResolver) Plugins

func (r *StatAccessResolver) Plugins() *[]*StatPluginResolver

func (*StatAccessResolver) RequestAccess

func (r *StatAccessResolver) RequestAccess() *StatPluginResolver

func (*StatAccessResolver) ResponseAccess

func (r *StatAccessResolver) ResponseAccess() *StatPluginResolver

func (*StatAccessResolver) StaticConfiguration

func (r *StatAccessResolver) StaticConfiguration() *StatResolver

func (*StatAccessResolver) Total

func (r *StatAccessResolver) Total() *StatResolver

func (*StatAccessResolver) Transactions

func (r *StatAccessResolver) Transactions() []*StatTransactionResolver

func (*StatAccessResolver) Zones

func (r *StatAccessResolver) Zones() int32

type StatPluginResolver

type StatPluginResolver struct{}

func (*StatPluginResolver) Name

func (r *StatPluginResolver) Name() string

func (*StatPluginResolver) Total

func (r *StatPluginResolver) Total() *StatResolver

type StatResolver

type StatResolver struct {
}

func (*StatResolver) Duration

func (r *StatResolver) Duration() *float64

func (*StatResolver) End

func (r *StatResolver) End() DateTime

func (*StatResolver) Start

func (r *StatResolver) Start() DateTime

type StatTransactionResolver

type StatTransactionResolver struct {
}

func (*StatTransactionResolver) BuildRequest

func (r *StatTransactionResolver) BuildRequest() *StatResolver

func (*StatTransactionResolver) ParseResponse

func (r *StatTransactionResolver) ParseResponse() *StatResolver

func (*StatTransactionResolver) Reference

func (r *StatTransactionResolver) Reference() string

func (*StatTransactionResolver) Total

func (*StatTransactionResolver) WorkerCommunication

func (r *StatTransactionResolver) WorkerCommunication() *StatResolver

type StatsResolver

type StatsResolver struct {
}

func (*StatsResolver) Accesses

func (r *StatsResolver) Accesses() []*StatAccessResolver

func (*StatsResolver) Cities

func (r *StatsResolver) Cities() int32

func (*StatsResolver) Configuration

func (r *StatsResolver) Configuration() *StatResolver

func (*StatsResolver) DockerID

func (r *StatsResolver) DockerID() string

func (*StatsResolver) Hotels

func (r *StatsResolver) Hotels() int32

func (*StatsResolver) Process

func (r *StatsResolver) Process() *StatResolver

func (*StatsResolver) Request

func (r *StatsResolver) Request() *StatResolver

deprecated

func (*StatsResolver) RequestPlugin

func (r *StatsResolver) RequestPlugin() *StatPluginResolver

func (*StatsResolver) Response

func (r *StatsResolver) Response() *StatResolver

func (*StatsResolver) ResponsePlugin

func (r *StatsResolver) ResponsePlugin() *StatPluginResolver

func (*StatsResolver) Total

func (r *StatsResolver) Total() *StatResolver

func (*StatsResolver) Validation

func (r *StatsResolver) Validation() *StatResolver

func (*StatsResolver) Zones

func (r *StatsResolver) Zones() int32

type SupplementResolver

type SupplementResolver struct {
	Supplement *domainHotelCommon.Supplement
}

func (*SupplementResolver) ChargeType

func (*SupplementResolver) Code

func (r *SupplementResolver) Code() string

func (*SupplementResolver) Description

func (r *SupplementResolver) Description() *string

func (*SupplementResolver) DurationType

func (*SupplementResolver) EffectiveDate

func (r *SupplementResolver) EffectiveDate() *Date

func (*SupplementResolver) ExpireDate

func (r *SupplementResolver) ExpireDate() *Date

func (*SupplementResolver) Mandatory

func (r *SupplementResolver) Mandatory() bool

func (*SupplementResolver) Name

func (r *SupplementResolver) Name() *string

func (*SupplementResolver) Price

func (r *SupplementResolver) Price() *PriceResolver

func (*SupplementResolver) Quantity

func (r *SupplementResolver) Quantity() *int32

func (*SupplementResolver) Resort

func (r *SupplementResolver) Resort() *ResortResolver

func (*SupplementResolver) SupplementType

func (*SupplementResolver) Unit

type SurchargeResolver

type SurchargeResolver struct {
	Surcharge *domainHotelCommon.Surcharge
}

func (*SurchargeResolver) ChargeType

func (*SurchargeResolver) Description

func (r *SurchargeResolver) Description() *string

func (*SurchargeResolver) Mandatory

func (r *SurchargeResolver) Mandatory() bool

func (*SurchargeResolver) Price

func (r *SurchargeResolver) Price() *PriceResolver

type TransactionsResolver

type TransactionsResolver struct {
	Transactions *common.Transactions
}

func (*TransactionsResolver) Request

func (r *TransactionsResolver) Request() string

func (*TransactionsResolver) Response

func (r *TransactionsResolver) Response() string

func (*TransactionsResolver) TimeStamp

func (r *TransactionsResolver) TimeStamp() DateTime

type Uri

type Uri string

URI

func (Uri) ImplementsGraphQLType

func (_ Uri) ImplementsGraphQLType(name string) bool

func (Uri) MarshalJSON

func (uri Uri) MarshalJSON() ([]byte, error)

func (*Uri) UnmarshalGraphQL

func (uri *Uri) UnmarshalGraphQL(input interface{}) error

type WarningResolver

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

func (*WarningResolver) Code

func (e *WarningResolver) Code() string

func (*WarningResolver) Description

func (e *WarningResolver) Description() string

func (*WarningResolver) Type

func (e *WarningResolver) Type() string

Jump to

Keyboard shortcuts

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