access

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: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfiguration

type AccessConfiguration struct {
	Code       string       `json:"code"`
	IsActive   int32        `json:"act"`
	IsTest     int32        `json:"isTest"`
	Supplier   string       `json:"hubProvider"`
	Username   *string      `json:"user,omitempty"`
	Password   *string      `json:"password,omitempty"`
	Urls       Urls         `json:"urls,omitempty"`
	Parameters *[]Parameter `json:"parameters,omitempty"`
	// Markets to which this access is valid
	Markets   *[]string        `json:"markets,omitempty"`
	RateRules *[]RateRulesType `json:"rateRules,omitempty"`
}

func (*AccessConfiguration) Clone

type BusinessRules

type BusinessRules struct {
	OptionsQuota      int32  `json:"optionsQuota"`
	BusinessRulesType string `json:"businessRulesType"`
}

type ConnectUser

type ConnectUser struct {
	Active int
}

type DefaultSettings

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

func NewDefaultSettings

func NewDefaultSettings(dsr *DefaultSettingsRedis) *DefaultSettings

func (*DefaultSettings) BookTimeout

func (ds *DefaultSettings) BookTimeout() int32

func (*DefaultSettings) BusinessRulesType

func (ds *DefaultSettings) BusinessRulesType() string

func (*DefaultSettings) ConnectUser

func (ds *DefaultSettings) ConnectUser() string

func (*DefaultSettings) Context

func (ds *DefaultSettings) Context() *string

func (*DefaultSettings) Currency

func (ds *DefaultSettings) Currency() string

func (*DefaultSettings) Language

func (ds *DefaultSettings) Language() string

func (*DefaultSettings) Market

func (ds *DefaultSettings) Market() string

func (*DefaultSettings) Nationality

func (ds *DefaultSettings) Nationality() string

func (*DefaultSettings) OptionsQuota

func (ds *DefaultSettings) OptionsQuota() int32

func (*DefaultSettings) QuoteTimeout

func (ds *DefaultSettings) QuoteTimeout() int32

func (*DefaultSettings) SearchTimeout

func (ds *DefaultSettings) SearchTimeout() int32

type DefaultSettingsRedis

type DefaultSettingsRedis struct {
	ConnectUser   string        `json:"hubUser"`
	Context       *string       `json:"context"`
	Language      string        `json:"language"`
	Currency      string        `json:"currency"`
	Nationality   string        `json:"nationality"`
	Market        string        `json:"market"`
	Timeout       Timeout       `json:"timeouts"`
	BusinessRules BusinessRules `json:"businessRules"`
}

type HubProviderAccesses

type HubProviderAccesses struct {
	Active   int      `json:"act"`
	Accesses []string `json:"a"`
}

type OrgProvider

type OrgProvider struct {
	Active int `json:"act"`
}

type Parameter

type Parameter struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Provider

type Provider struct {
	OrgProvider
	Dll     string `json:"dll"`
	Context string `json:"context"`
}

type ProviderDll

type ProviderDll struct {
	Code string
}

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 Timeout

type Timeout struct {
	Search int32 `json:"search"`
	Quote  int32 `json:"quote"`
	Book   int32 `json:"book"`
}

type Urls

type Urls struct {
	Search  *string `json:"search,omitempty"`
	Quote   *string `json:"quote,omitempty"`
	Book    *string `json:"book,omitempty"`
	Generic *string `json:"generic,omitempty"`
}

Jump to

Keyboard shortcuts

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