serviceconfigs

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	EnableLogging       bool
	RequestLogger       logging.IRequestLogger
	Environment         environment.Environment
	ServiceUrl          string
	WebProxy            abstractions.IWebProxy
	SimulatedHostErrors map[host.Host][]hosterror.HostError
	Timeout             int
	Validated           bool
	DynamicHeaders      map[string]string
}

func (*Configuration) GetRequestLogger

func (c *Configuration) GetRequestLogger() logging.IRequestLogger

func (*Configuration) GetTimeout

func (c *Configuration) GetTimeout() int

func (*Configuration) IsValidated added in v1.1.2

func (c *Configuration) IsValidated() bool

func (*Configuration) SetRequestLogger

func (c *Configuration) SetRequestLogger(r logging.IRequestLogger)

func (*Configuration) SetTimeout

func (c *Configuration) SetTimeout(timeout int)

func (*Configuration) Validate

func (c *Configuration) Validate() error

type GatewayConfig

type GatewayConfig struct {
	Configuration
	UseDataReportingService bool
	DataClientId            string
	DataClientSecret        string
	DataClientUserId        string
	DataClientServiceUrl    string
}

func NewGatewayConfig

func NewGatewayConfig() *GatewayConfig

func (*GatewayConfig) ConfigureContainer

func (gc *GatewayConfig) ConfigureContainer() error

func (*GatewayConfig) Validate

func (gc *GatewayConfig) Validate() error

type PorticoConfig added in v1.1.2

type PorticoConfig struct {
	GatewayConfig
	SiteId                      string
	LicenseId                   string
	DeviceId                    string
	Username                    string
	Password                    string
	DeveloperId                 string
	VersionNumber               string
	SecretApiKey                string
	UniqueDeviceId              string
	SdkNameVersion              string
	CertificationStr            string
	TerminalID                  string
	X509CertificatePath         string
	X509CertificateBase64String string
	ProPayUS                    bool
	SafDataSupported            bool
}

func NewPorticoConfig added in v1.1.2

func NewPorticoConfig() *PorticoConfig

func (*PorticoConfig) ConfigureContainer added in v1.1.2

func (gc *PorticoConfig) ConfigureContainer(services *configuredservices.ConfiguredServices) error

func (*PorticoConfig) Validate added in v1.1.2

func (pc *PorticoConfig) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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