Documentation
¶
Index ¶
- type ConnectionConfig
- func (c *ConnectionConfig) ConfigureContainer(services *configuredservices.ConfiguredServices) error
- func (c *ConnectionConfig) GetIpAddress() string
- func (c *ConnectionConfig) GetPort() int
- func (c ConnectionConfig) IsValidated() bool
- func (c *ConnectionConfig) SetBaudRate(baudRate baudrate.BaudRate)
- func (c *ConnectionConfig) SetConnectionMode(connectionMode connectionmodes.ConnectionModes)
- func (c *ConnectionConfig) SetDataBits(dataBits databits.DataBits)
- func (c *ConnectionConfig) SetDeviceType(deviceType devicetype.DeviceType)
- func (c *ConnectionConfig) SetIpAddress(ipAddress string)
- func (c *ConnectionConfig) SetParity(parity parity.Parity)
- func (c *ConnectionConfig) SetPort(port int)
- func (c *ConnectionConfig) SetRequestIDProvider(requestIDProvider abstractions.IRequestIdProvider)
- func (c *ConnectionConfig) SetStopBits(stopBits stopbits.StopBits)
- func (c *ConnectionConfig) Validate() error
- type SummaryResponse
- func (s *SummaryResponse) GetAmount() *decimal.Decimal
- func (s *SummaryResponse) GetAmountDue() *decimal.Decimal
- func (s *SummaryResponse) GetAuthorizedAmount() *decimal.Decimal
- func (s *SummaryResponse) GetCount() *int
- func (s *SummaryResponse) GetSummaryType() summarytype.SummaryType
- func (s *SummaryResponse) GetTotalAmount() *decimal.Decimal
- func (s *SummaryResponse) GetTransactions() []transactionsummary.TransactionSummary
- type UpaController
- func (c *UpaController) ConfigureInterface() abstractions.IDeviceInterface
- func (c *UpaController) DoTransaction(ctx context.Context, messageId upamessageid.UpaMessageId, requestId int, ...) (*responses.UpaTransactionResponse, error)
- func (c *UpaController) GetOnMessageSent() messaging.IMessageSentInterface
- func (c *UpaController) ManageTransaction(builder *builders.TerminalManageBuilder) (terminalresponse.ITerminalResponse, error)
- func (c *UpaController) ManageTransactionWithContext(ctx context.Context, builder *builders.TerminalManageBuilder) (terminalresponse.ITerminalResponse, error)
- func (c *UpaController) MapTransactionType(transactionType transactiontype.TransactionType) (upamessageid.UpaMessageId, error)
- func (c *UpaController) ProcessTransaction(builder *builders.TerminalAuthBuilder) (terminalresponse.ITerminalResponse, error)
- func (c *UpaController) ProcessTransactionWithContext(ctx context.Context, builder *builders.TerminalAuthBuilder) (terminalresponse.ITerminalResponse, error)
- func (c *UpaController) Send(message abstractions.IDeviceMessage) ([]byte, error)
- func (c *UpaController) SendWithouDisconnect(message abstractions.IDeviceMessage) ([]byte, error)
- func (c *UpaController) SetOnMessageSent(ms messaging.IMessageSentInterface)
- type UpaInterface
- func (ui *UpaInterface) AddLineItem(leftText, rightText string) (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) AddLineItemBulk(lineItems [][2]string) (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) Cancel() error
- func (ui *UpaInterface) CancelWithParam(cancelParam int) error
- func (ui *UpaInterface) CloseLane() (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) CreditAuth(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditAuthWithoutAmount() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditCapture(amount *decimal.Decimal) (*builders.TerminalManageBuilder, error)
- func (ui *UpaInterface) CreditCaptureWithoutAmount() (*builders.TerminalManageBuilder, error)
- func (ui *UpaInterface) CreditRefund(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditRefundWithoutAmount() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditSale(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditSaleWithoutAmount() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditVerify() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) CreditVoid() (builders.ITerminalManageBuilder, error)
- func (ui *UpaInterface) DebitRefund(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) DebitRefundWithoutAmount() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) DebitSale(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) DebitSaleWithoutAmount() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) DebitVerify() (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) DebitVoid() (builders.ITerminalManageBuilder, error)
- func (ui *UpaInterface) DisableHostResponseBeep() (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) Dispose()
- func (ui *UpaInterface) EndOfDay() (abstractions.IEODResponse, error)
- func (ui *UpaInterface) GetOpenTabDetails() (abstractions.IBatchReportResponse, error)
- func (ui *UpaInterface) GiftAddValue(amount *decimal.Decimal) (*builders.TerminalAuthBuilder, error)
- func (ui *UpaInterface) Initialize() (abstractions.IInitializeResponse, error)
- func (ui *UpaInterface) OpenLane() (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) Ping() (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) PreAuthDelete(referenceNumber string, amount *decimal.Decimal) (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) PromptForSignature() (abstractions.ISignatureResponse, error)
- func (ui *UpaInterface) Reboot() (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) Reset() (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) Reverse() (*upabuilders.UpaTerminalManageBuilder, error)
- func (ui *UpaInterface) SafDelete(referenceNumber string, transactionNumber string) (abstractions.ISAFResponse, error)
- func (ui *UpaInterface) SafSummaryReport() (abstractions.ISAFResponse, error)
- func (ui *UpaInterface) SendStoreAndForward() (abstractions.ISAFResponse, error)
- func (ui *UpaInterface) SetOnMessageSent(onMessageSent messaging.IMessageSentInterface)
- func (ui *UpaInterface) StartCard(paymentMethodType paymentmethodtype.PaymentMethodType) (abstractions.IDeviceResponse, error)
- func (ui *UpaInterface) TipAdjust(amount *decimal.Decimal) (*builders.TerminalManageBuilder, error)
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 (c *UpaController) ManageTransaction(builder *builders.TerminalManageBuilder) (terminalresponse.ITerminalResponse, error)
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 (c *UpaController) ProcessTransaction(builder *builders.TerminalAuthBuilder) (terminalresponse.ITerminalResponse, error)
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 (ui *UpaInterface) DebitVoid() (builders.ITerminalManageBuilder, error)
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 (ui *UpaInterface) Ping() (abstractions.IDeviceResponse, error)
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 (ui *UpaInterface) Reboot() (abstractions.IDeviceResponse, error)
func (*UpaInterface) Reset ¶
func (ui *UpaInterface) Reset() (abstractions.IDeviceResponse, error)
func (*UpaInterface) Reverse ¶
func (ui *UpaInterface) Reverse() (*upabuilders.UpaTerminalManageBuilder, error)
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 (ui *UpaInterface) StartCard(paymentMethodType paymentmethodtype.PaymentMethodType) (abstractions.IDeviceResponse, error)
func (*UpaInterface) TipAdjust ¶
func (ui *UpaInterface) TipAdjust(amount *decimal.Decimal) (*builders.TerminalManageBuilder, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.