terminals

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-2.0 Imports: 33 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionConfig

type ConnectionConfig struct {
	*serviceconfigs.Configuration
	ConnectionMode    connectionmodes.ConnectionModes
	BaudRate          baudrate.BaudRate
	Parity            parity.Parity
	StopBits          stopbits.StopBits
	DataBits          databits.DataBits
	IpAddress         string
	Port              int
	DeviceType        devicetype.DeviceType
	RequestIdProvider abstractions.IRequestIdProvider
}

func NewConnectionConfig

func NewConnectionConfig() *ConnectionConfig

func (*ConnectionConfig) ConfigureContainer

func (c *ConnectionConfig) ConfigureContainer(services *configuredservices.ConfiguredServices) error

func (*ConnectionConfig) GetIpAddress

func (c *ConnectionConfig) GetIpAddress() string

func (*ConnectionConfig) GetPort

func (c *ConnectionConfig) GetPort() int

func (ConnectionConfig) IsValidated

func (c ConnectionConfig) IsValidated() bool

func (*ConnectionConfig) SetBaudRate

func (c *ConnectionConfig) SetBaudRate(baudRate baudrate.BaudRate)

func (*ConnectionConfig) SetConnectionMode

func (c *ConnectionConfig) SetConnectionMode(connectionMode connectionmodes.ConnectionModes)

func (*ConnectionConfig) SetDataBits

func (c *ConnectionConfig) SetDataBits(dataBits databits.DataBits)

func (*ConnectionConfig) SetDeviceType

func (c *ConnectionConfig) SetDeviceType(deviceType devicetype.DeviceType)

func (*ConnectionConfig) SetIpAddress

func (c *ConnectionConfig) SetIpAddress(ipAddress string)

func (*ConnectionConfig) SetParity

func (c *ConnectionConfig) SetParity(parity parity.Parity)

func (*ConnectionConfig) SetPort

func (c *ConnectionConfig) SetPort(port int)

func (*ConnectionConfig) SetRequestIDProvider

func (c *ConnectionConfig) SetRequestIDProvider(requestIDProvider abstractions.IRequestIdProvider)

func (*ConnectionConfig) SetStopBits

func (c *ConnectionConfig) SetStopBits(stopBits stopbits.StopBits)

func (*ConnectionConfig) Validate

func (c *ConnectionConfig) Validate() error

type SummaryResponse

type SummaryResponse struct {
	Amount           *decimal.Decimal
	AmountDue        *decimal.Decimal
	AuthorizedAmount *decimal.Decimal
	Count            *int
	SummaryType      summarytype.SummaryType
	TotalAmount      *decimal.Decimal
	Transactions     []transactionsummary.TransactionSummary
}

func NewSummaryResponse

func NewSummaryResponse() *SummaryResponse

func (*SummaryResponse) GetAmount

func (s *SummaryResponse) GetAmount() *decimal.Decimal

func (*SummaryResponse) GetAmountDue

func (s *SummaryResponse) GetAmountDue() *decimal.Decimal

func (*SummaryResponse) GetAuthorizedAmount

func (s *SummaryResponse) GetAuthorizedAmount() *decimal.Decimal

func (*SummaryResponse) GetCount

func (s *SummaryResponse) GetCount() *int

func (*SummaryResponse) GetSummaryType

func (s *SummaryResponse) GetSummaryType() summarytype.SummaryType

func (*SummaryResponse) GetTotalAmount

func (s *SummaryResponse) GetTotalAmount() *decimal.Decimal

func (*SummaryResponse) GetTransactions

func (s *SummaryResponse) GetTransactions() []transactionsummary.TransactionSummary

type UpaController

type UpaController struct {
	devicecontroller.DeviceController
	// contains filtered or unexported fields
}

func NewUpaController

func NewUpaController(settings *ConnectionConfig) (*UpaController, error)

func (*UpaController) ConfigureInterface

func (c *UpaController) ConfigureInterface() abstractions.IDeviceInterface

func (*UpaController) DoTransaction

func (c *UpaController) DoTransaction(ctx context.Context, messageId upamessageid.UpaMessageId, requestId int, ecrId string, paramFields *subgroups.RequestParamFields, transactionFields *subgroups.RequestTransactionFields, processingIndicators *subgroups.RequestProcessingIndicatorsFields) (*responses.UpaTransactionResponse, error)

func (*UpaController) GetOnMessageSent

func (c *UpaController) GetOnMessageSent() messaging.IMessageSentInterface

func (*UpaController) ManageTransaction

func (*UpaController) ManageTransactionWithContext added in v1.1.2

func (c *UpaController) ManageTransactionWithContext(ctx context.Context, builder *builders.TerminalManageBuilder) (terminalresponse.ITerminalResponse, error)

func (*UpaController) MapTransactionType

func (c *UpaController) MapTransactionType(transactionType transactiontype.TransactionType) (upamessageid.UpaMessageId, error)

func (*UpaController) ProcessTransaction

func (*UpaController) ProcessTransactionWithContext added in v1.1.2

func (c *UpaController) ProcessTransactionWithContext(ctx context.Context, builder *builders.TerminalAuthBuilder) (terminalresponse.ITerminalResponse, error)

func (*UpaController) Send

func (c *UpaController) Send(message abstractions.IDeviceMessage) ([]byte, error)

func (*UpaController) SendWithouDisconnect

func (c *UpaController) SendWithouDisconnect(message abstractions.IDeviceMessage) ([]byte, error)

func (*UpaController) SetOnMessageSent

func (c *UpaController) SetOnMessageSent(ms messaging.IMessageSentInterface)

type UpaInterface

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

func NewUpaInterface

func NewUpaInterface(controller *UpaController) *UpaInterface

func (*UpaInterface) AddLineItem

func (ui *UpaInterface) AddLineItem(leftText, rightText string) (abstractions.IDeviceResponse, error)

func (*UpaInterface) AddLineItemBulk

func (ui *UpaInterface) AddLineItemBulk(lineItems [][2]string) (abstractions.IDeviceResponse, error)

func (*UpaInterface) Cancel

func (ui *UpaInterface) Cancel() error

func (*UpaInterface) CancelWithParam

func (ui *UpaInterface) CancelWithParam(cancelParam int) error

func (*UpaInterface) CloseLane

func (ui *UpaInterface) CloseLane() (abstractions.IDeviceResponse, error)

func (*UpaInterface) CreditAuth

func (ui *UpaInterface) CreditAuth(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditAuthWithoutAmount

func (ui *UpaInterface) CreditAuthWithoutAmount() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditCapture

func (ui *UpaInterface) CreditCapture(amount *decimal.Decimal) (*builders.TerminalManageBuilder, error)

func (*UpaInterface) CreditCaptureWithoutAmount

func (ui *UpaInterface) CreditCaptureWithoutAmount() (*builders.TerminalManageBuilder, error)

func (*UpaInterface) CreditRefund

func (ui *UpaInterface) CreditRefund(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditRefundWithoutAmount

func (ui *UpaInterface) CreditRefundWithoutAmount() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditSale

func (ui *UpaInterface) CreditSale(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditSaleWithoutAmount

func (ui *UpaInterface) CreditSaleWithoutAmount() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditVerify

func (ui *UpaInterface) CreditVerify() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) CreditVoid

func (ui *UpaInterface) CreditVoid() (builders.ITerminalManageBuilder, error)

func (*UpaInterface) DebitRefund

func (ui *UpaInterface) DebitRefund(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) DebitRefundWithoutAmount

func (ui *UpaInterface) DebitRefundWithoutAmount() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) DebitSale

func (ui *UpaInterface) DebitSale(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) DebitSaleWithoutAmount

func (ui *UpaInterface) DebitSaleWithoutAmount() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) DebitVerify

func (ui *UpaInterface) DebitVerify() (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) DebitVoid

func (*UpaInterface) DisableHostResponseBeep

func (ui *UpaInterface) DisableHostResponseBeep() (abstractions.IDeviceResponse, error)

func (*UpaInterface) Dispose

func (ui *UpaInterface) Dispose()

func (*UpaInterface) EndOfDay

func (ui *UpaInterface) EndOfDay() (abstractions.IEODResponse, error)

func (*UpaInterface) GetOpenTabDetails

func (ui *UpaInterface) GetOpenTabDetails() (abstractions.IBatchReportResponse, error)

func (*UpaInterface) GiftAddValue

func (ui *UpaInterface) GiftAddValue(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)

func (*UpaInterface) Initialize

func (ui *UpaInterface) Initialize() (abstractions.IInitializeResponse, error)

func (*UpaInterface) OpenLane

func (ui *UpaInterface) OpenLane() (abstractions.IDeviceResponse, error)

func (*UpaInterface) Ping

func (*UpaInterface) PreAuthDelete added in v1.0.12

func (ui *UpaInterface) PreAuthDelete(referenceNumber string, amount *decimal.Decimal) (abstractions.IDeviceResponse, error)

func (*UpaInterface) PromptForSignature

func (ui *UpaInterface) PromptForSignature() (abstractions.ISignatureResponse, error)

func (*UpaInterface) Reboot

func (*UpaInterface) Reset

func (*UpaInterface) Reverse

func (*UpaInterface) SafDelete

func (ui *UpaInterface) SafDelete(referenceNumber string, transactionNumber string) (abstractions.ISAFResponse, error)

func (*UpaInterface) SafSummaryReport

func (ui *UpaInterface) SafSummaryReport() (abstractions.ISAFResponse, error)

func (*UpaInterface) SendStoreAndForward

func (ui *UpaInterface) SendStoreAndForward() (abstractions.ISAFResponse, error)

func (*UpaInterface) SetOnMessageSent

func (ui *UpaInterface) SetOnMessageSent(onMessageSent messaging.IMessageSentInterface)

func (*UpaInterface) StartCard

func (*UpaInterface) TipAdjust

func (ui *UpaInterface) TipAdjust(amount *decimal.Decimal) (*builders.TerminalManageBuilder, error)

Jump to

Keyboard shortcuts

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