responses

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 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 UpaDeviceResponse

type UpaDeviceResponse struct {
	terminalresponse.TerminalResponse
	MessageId upamessageid.UpaMessageId
}

func NewUpaDeviceResponse

func NewUpaDeviceResponse(responseObj utils.JsonDoc, messageId upamessageid.UpaMessageId) *UpaDeviceResponse

type UpaEODResponse

type UpaEODResponse struct {
	BatchId *int
	UpaDeviceResponse
}

func NewUpaEODResponse

func NewUpaEODResponse(responseObj utils.JsonDoc) *UpaEODResponse

func (*UpaEODResponse) GetBatchId

func (r *UpaEODResponse) GetBatchId() *int

type UpaReportResponse

type UpaReportResponse struct {
	BatchSummary       entities.BatchSummary
	DeviceResponseCode string
	DeviceResponseText string
	Status             string
	Transactions       []entities.TransactionSummary
	TransactionType    string
}

func NewUpaReportResponse

func NewUpaReportResponse(responseObj *utils.JsonDoc) *UpaReportResponse

func (*UpaReportResponse) GetBatchSummary

func (res *UpaReportResponse) GetBatchSummary() entities.BatchSummary

func (*UpaReportResponse) GetCommand

func (res *UpaReportResponse) GetCommand() string

func (*UpaReportResponse) GetDeviceResponseCode

func (res *UpaReportResponse) GetDeviceResponseCode() string

func (*UpaReportResponse) GetDeviceResponseText

func (res *UpaReportResponse) GetDeviceResponseText() string

func (*UpaReportResponse) GetStatus

func (res *UpaReportResponse) GetStatus() string

func (*UpaReportResponse) GetTransactionSummaries

func (res *UpaReportResponse) GetTransactionSummaries() []entities.TransactionSummary

func (*UpaReportResponse) GetTransactionType

func (res *UpaReportResponse) GetTransactionType() string

func (*UpaReportResponse) GetVersion

func (res *UpaReportResponse) GetVersion() string

func (*UpaReportResponse) SetCommand

func (res *UpaReportResponse) SetCommand(command string)

func (*UpaReportResponse) SetDeviceResponseCode

func (res *UpaReportResponse) SetDeviceResponseCode(deviceResponseCode string)

func (*UpaReportResponse) SetDeviceResponseText

func (res *UpaReportResponse) SetDeviceResponseText(deviceResponseMessage string)

func (*UpaReportResponse) SetStatus

func (res *UpaReportResponse) SetStatus(status string)

func (*UpaReportResponse) SetVersion

func (res *UpaReportResponse) SetVersion(version string)

func (*UpaReportResponse) ToString

func (res *UpaReportResponse) ToString() string

type UpaSafResponse

type UpaSafResponse struct {
	Approved           []abstractions.ISummaryResponse
	Command            string
	Declined           []abstractions.ISummaryResponse
	DeviceResponseCode string
	DeviceResponseText string
	Pending            []abstractions.ISummaryResponse
	Status             string
	SafTotalAmount     *decimal.Decimal
	SafTotalCount      *int
	Version            string
	TransactionType    string
	MultipleMessage    *int
	SafType            string
	Transactions       []entities.TransactionSummary
	TransactionTime    string
	HostTimeout        *int
}

func NewUpaSafResponse

func NewUpaSafResponse(responseObj *utils.JsonDoc) *UpaSafResponse

func (*UpaSafResponse) GetApproved

func (u *UpaSafResponse) GetApproved() []abstractions.ISummaryResponse

getters

func (*UpaSafResponse) GetCommand

func (u *UpaSafResponse) GetCommand() string

func (*UpaSafResponse) GetDeclined

func (u *UpaSafResponse) GetDeclined() []abstractions.ISummaryResponse

func (*UpaSafResponse) GetDeviceResponseCode

func (u *UpaSafResponse) GetDeviceResponseCode() string

func (*UpaSafResponse) GetDeviceResponseText

func (u *UpaSafResponse) GetDeviceResponseText() string

func (*UpaSafResponse) GetHostTimeout

func (u *UpaSafResponse) GetHostTimeout() *int

func (*UpaSafResponse) GetMultipleMessage

func (u *UpaSafResponse) GetMultipleMessage() *int

func (*UpaSafResponse) GetPending

func (u *UpaSafResponse) GetPending() []abstractions.ISummaryResponse

func (*UpaSafResponse) GetSafTotalAmount

func (u *UpaSafResponse) GetSafTotalAmount() *decimal.Decimal

func (*UpaSafResponse) GetSafTotalCount

func (u *UpaSafResponse) GetSafTotalCount() *int

func (*UpaSafResponse) GetSafType

func (u *UpaSafResponse) GetSafType() string

func (*UpaSafResponse) GetStatus

func (u *UpaSafResponse) GetStatus() string

func (*UpaSafResponse) GetTransactionTime

func (u *UpaSafResponse) GetTransactionTime() string

func (*UpaSafResponse) GetTransactionType

func (u *UpaSafResponse) GetTransactionType() string

func (*UpaSafResponse) GetTransactions

func (u *UpaSafResponse) GetTransactions() []entities.TransactionSummary

func (*UpaSafResponse) GetVersion

func (u *UpaSafResponse) GetVersion() string

func (*UpaSafResponse) SetApproved

func (u *UpaSafResponse) SetApproved(approved []abstractions.ISummaryResponse)

setters

func (*UpaSafResponse) SetCommand

func (u *UpaSafResponse) SetCommand(command string)

func (*UpaSafResponse) SetDeclined

func (u *UpaSafResponse) SetDeclined(declined []abstractions.ISummaryResponse)

func (*UpaSafResponse) SetDeviceResponseCode

func (u *UpaSafResponse) SetDeviceResponseCode(deviceResponseCode string)

func (*UpaSafResponse) SetDeviceResponseText

func (u *UpaSafResponse) SetDeviceResponseText(deviceResponseText string)

func (*UpaSafResponse) SetHostTimeout

func (u *UpaSafResponse) SetHostTimeout(hostTimeout *int)

func (*UpaSafResponse) SetMultipleMessage

func (u *UpaSafResponse) SetMultipleMessage(multipleMessage *int)

func (*UpaSafResponse) SetPending

func (u *UpaSafResponse) SetPending(pending []abstractions.ISummaryResponse)

func (*UpaSafResponse) SetSafTotalAmount

func (u *UpaSafResponse) SetSafTotalAmount(totalAmount *decimal.Decimal)

func (*UpaSafResponse) SetSafTotalCount

func (u *UpaSafResponse) SetSafTotalCount(totalCount *int)

func (*UpaSafResponse) SetSafType

func (u *UpaSafResponse) SetSafType(safType string)

func (*UpaSafResponse) SetStatus

func (u *UpaSafResponse) SetStatus(status string)

func (*UpaSafResponse) SetTransactionTime

func (u *UpaSafResponse) SetTransactionTime(transactionTime string)

func (*UpaSafResponse) SetTransactionType

func (u *UpaSafResponse) SetTransactionType(transactionType string)

func (*UpaSafResponse) SetTransactions

func (u *UpaSafResponse) SetTransactions(transactions []entities.TransactionSummary)

func (*UpaSafResponse) SetVersion

func (u *UpaSafResponse) SetVersion(version string)

func (*UpaSafResponse) ToString

func (res *UpaSafResponse) ToString() string

type UpaSummaryResponse

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

func (UpaSummaryResponse) GetAmount

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

func (UpaSummaryResponse) GetAmountDue

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

func (UpaSummaryResponse) GetAuthorizedAmount

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

func (UpaSummaryResponse) GetCount

func (s UpaSummaryResponse) GetCount() *int

func (UpaSummaryResponse) GetSummaryType

func (s UpaSummaryResponse) GetSummaryType() summarytype.SummaryType

func (UpaSummaryResponse) GetTotalAmount

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

func (UpaSummaryResponse) GetTransactions

func (s UpaSummaryResponse) GetTransactions() []entities.TransactionSummary

type UpaTransactionResponse

type UpaTransactionResponse struct {
	terminalresponse.TerminalResponse
}

func NewUpaTransactionResponse

func NewUpaTransactionResponse(responseData *utils.JsonDoc) *UpaTransactionResponse

Jump to

Keyboard shortcuts

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