builders

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 ITerminalBuilderDevice

type ITerminalBuilderDevice interface {
	ManageTransaction(tmb *TerminalManageBuilder) (terminalresponse.ITerminalResponse, error)
	ProcessTransaction(tab *TerminalAuthBuilder) (terminalresponse.ITerminalResponse, error)
}

type ITerminalManageBuilder

type ITerminalManageBuilder interface {
	GetAmount() *decimal.Decimal
	GetCurrency() currencytype.CurrencyType
	GetGratuity() *decimal.Decimal
	GetTransactionId() string
	GetTerminalRefNumber() string
	WithAmount(value *decimal.Decimal) *TerminalManageBuilder
	WithCurrency(value currencytype.CurrencyType) *TerminalManageBuilder
	WithGratuity(value *decimal.Decimal) *TerminalManageBuilder
	WithTerminalRefNumber(value string) *TerminalManageBuilder
	Execute(device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
	ExecuteWithName(configName string, device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
	SetupValidations()
}

type TerminalAuthBuilder

type TerminalAuthBuilder struct {
	*TerminalBuilder
	Address                *entities.Address
	AllowDuplicates        bool
	Amount                 *decimal.Decimal
	AuthCode               string
	CardBrandStorage       storedcredentialinitiator.StoredCredentialInitiator
	CardBrandTransactionId string
	CashBackAmount         *decimal.Decimal
	CommercialRequest      bool
	Currency               currencytype.CurrencyType
	CustomerCode           string
	Gratuity               *decimal.Decimal
	InvoiceNumber          string
	PoNumber               string
	RequestMultiUseToken   bool
	SignatureCapture       bool
	TaxAmount              *decimal.Decimal
	TaxExempt              string
	TaxExemptId            string
	TokenRequest           *int
	TokenValue             string
	TransactionId          string
	GiftTransactionType    transactiontype.TransactionType
}

func NewTerminalAuthBuilder

func NewTerminalAuthBuilder(transactionType transactiontype.TransactionType, paymentMethod abstractions.IPaymentMethod) *TerminalAuthBuilder

func (*TerminalAuthBuilder) Execute

func (*TerminalAuthBuilder) ExecuteWithName

func (tb *TerminalAuthBuilder) ExecuteWithName(configName string, device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)

func (*TerminalAuthBuilder) GetAddress

func (tb *TerminalAuthBuilder) GetAddress() *entities.Address

func (*TerminalAuthBuilder) GetAllowDuplicates

func (tb *TerminalAuthBuilder) GetAllowDuplicates() bool

func (*TerminalAuthBuilder) GetAmount

func (tb *TerminalAuthBuilder) GetAmount() *decimal.Decimal

func (*TerminalAuthBuilder) GetCardBrandStorage

func (*TerminalAuthBuilder) GetCardBrandTransactionId

func (tb *TerminalAuthBuilder) GetCardBrandTransactionId() string

func (*TerminalAuthBuilder) GetCashBackAmount

func (tb *TerminalAuthBuilder) GetCashBackAmount() *decimal.Decimal

func (*TerminalAuthBuilder) GetCommercialRequest

func (tb *TerminalAuthBuilder) GetCommercialRequest() bool

func (*TerminalAuthBuilder) GetCurrency

func (tb *TerminalAuthBuilder) GetCurrency() currencytype.CurrencyType

func (*TerminalAuthBuilder) GetCustomerCode

func (tb *TerminalAuthBuilder) GetCustomerCode() string

func (*TerminalAuthBuilder) GetGiftTransactionType

func (tb *TerminalAuthBuilder) GetGiftTransactionType() transactiontype.TransactionType

func (*TerminalAuthBuilder) GetGratuity

func (tb *TerminalAuthBuilder) GetGratuity() *decimal.Decimal

func (*TerminalAuthBuilder) GetInvoiceNumber

func (tb *TerminalAuthBuilder) GetInvoiceNumber() string

func (*TerminalAuthBuilder) GetPoNumber

func (tb *TerminalAuthBuilder) GetPoNumber() string

func (*TerminalAuthBuilder) GetTaxAmount

func (tb *TerminalAuthBuilder) GetTaxAmount() *decimal.Decimal

func (*TerminalAuthBuilder) GetTaxExempt

func (tb *TerminalAuthBuilder) GetTaxExempt() string

func (*TerminalAuthBuilder) GetTaxExemptId

func (tb *TerminalAuthBuilder) GetTaxExemptId() string

func (*TerminalAuthBuilder) GetTokenRequest

func (tb *TerminalAuthBuilder) GetTokenRequest() *int

func (*TerminalAuthBuilder) GetTransactionId

func (tb *TerminalAuthBuilder) GetTransactionId() string

func (*TerminalAuthBuilder) IsRequestMultiUseToken

func (tb *TerminalAuthBuilder) IsRequestMultiUseToken() bool

func (*TerminalAuthBuilder) IsSignatureCapture

func (tb *TerminalAuthBuilder) IsSignatureCapture() bool

func (*TerminalAuthBuilder) SetupValidations

func (tb *TerminalAuthBuilder) SetupValidations()

func (*TerminalAuthBuilder) WithAddress

func (tb *TerminalAuthBuilder) WithAddress(address *entities.Address) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithAllowDuplicates

func (tb *TerminalAuthBuilder) WithAllowDuplicates(allowDuplicates bool) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithAmount

func (tb *TerminalAuthBuilder) WithAmount(amount *decimal.Decimal) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithCardBrandStorage

func (*TerminalAuthBuilder) WithCardBrandStorageAndTransactionId

func (tb *TerminalAuthBuilder) WithCardBrandStorageAndTransactionId(initiatorValue storedcredentialinitiator.StoredCredentialInitiator, cardBrandTransId string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithCashBack

func (tb *TerminalAuthBuilder) WithCashBack(value *decimal.Decimal) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithCommercialRequest

func (tb *TerminalAuthBuilder) WithCommercialRequest(value bool) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithCurrency

func (*TerminalAuthBuilder) WithCustomerCode

func (tb *TerminalAuthBuilder) WithCustomerCode(value string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithEcrId

func (tb *TerminalAuthBuilder) WithEcrId(value string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithGiftTransactionType

func (tb *TerminalAuthBuilder) WithGiftTransactionType(value transactiontype.TransactionType) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithGratuity

func (tb *TerminalAuthBuilder) WithGratuity(gratuity *decimal.Decimal) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithInvoiceNumber

func (tb *TerminalAuthBuilder) WithInvoiceNumber(invoiceNumber string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithPoNumber

func (tb *TerminalAuthBuilder) WithPoNumber(value string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithRequestMultiUseToken

func (tb *TerminalAuthBuilder) WithRequestMultiUseToken(requestMultiUseToken bool) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithSignatureCapture

func (tb *TerminalAuthBuilder) WithSignatureCapture(signatureCapture bool) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithTaxAmount

func (tb *TerminalAuthBuilder) WithTaxAmount(value *decimal.Decimal) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithTaxType

func (tb *TerminalAuthBuilder) WithTaxType(value taxtype.TaxType) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithTaxTypeAndExemptId

func (tb *TerminalAuthBuilder) WithTaxTypeAndExemptId(value taxtype.TaxType, taxExemptId string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithTokenRequest

func (tb *TerminalAuthBuilder) WithTokenRequest(tokenRequest *int) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithTokenValue

func (tb *TerminalAuthBuilder) WithTokenValue(tokenValue string) *TerminalAuthBuilder

func (*TerminalAuthBuilder) WithTransactionId

func (tb *TerminalAuthBuilder) WithTransactionId(value string) *TerminalAuthBuilder

type TerminalBuilder

type TerminalBuilder struct {
	*builders.TransactionBuilder

	EcrId string
	// contains filtered or unexported fields
}

func NewTerminalBuilder

func NewTerminalBuilder(transactionType transactiontype.TransactionType, paymentMethod abstractions.IPaymentMethod) *TerminalBuilder

func (*TerminalBuilder) GetClerkId

func (tb *TerminalBuilder) GetClerkId() *int

func (*TerminalBuilder) GetPaymentMethodType

func (tb *TerminalBuilder) GetPaymentMethodType() paymentmethodtype.PaymentMethodType

func (*TerminalBuilder) GetReferenceNumber

func (tb *TerminalBuilder) GetReferenceNumber() string

func (*TerminalBuilder) GetRequestId

func (tb *TerminalBuilder) GetRequestId() *int

func (*TerminalBuilder) WithClerkId

func (tb *TerminalBuilder) WithClerkId(value *int) *TerminalBuilder

func (*TerminalBuilder) WithReferenceNumber

func (tb *TerminalBuilder) WithReferenceNumber(value string) *TerminalBuilder

func (*TerminalBuilder) WithRequestId

func (tb *TerminalBuilder) WithRequestId(value *int) *TerminalBuilder

type TerminalManageBuilder

type TerminalManageBuilder struct {
	*TerminalBuilder
	// contains filtered or unexported fields
}

func NewTerminalManageBuilder

func NewTerminalManageBuilder(transactionType transactiontype.TransactionType, paymentType paymentmethodtype.PaymentMethodType) *TerminalManageBuilder

func (*TerminalManageBuilder) Execute

func (*TerminalManageBuilder) ExecuteWithName

func (builder *TerminalManageBuilder) ExecuteWithName(configName string, device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)

func (*TerminalManageBuilder) GetAmount

func (builder *TerminalManageBuilder) GetAmount() *decimal.Decimal

func (*TerminalManageBuilder) GetCurrency

func (builder *TerminalManageBuilder) GetCurrency() currencytype.CurrencyType

func (*TerminalManageBuilder) GetGratuity

func (builder *TerminalManageBuilder) GetGratuity() *decimal.Decimal

func (*TerminalManageBuilder) GetTerminalRefNumber

func (builder *TerminalManageBuilder) GetTerminalRefNumber() string

func (*TerminalManageBuilder) GetTransactionId

func (builder *TerminalManageBuilder) GetTransactionId() string

func (*TerminalManageBuilder) SetupValidations

func (builder *TerminalManageBuilder) SetupValidations()

func (*TerminalManageBuilder) WithAmount

func (builder *TerminalManageBuilder) WithAmount(value *decimal.Decimal) *TerminalManageBuilder

func (*TerminalManageBuilder) WithCurrency

func (*TerminalManageBuilder) WithGratuity

func (builder *TerminalManageBuilder) WithGratuity(value *decimal.Decimal) *TerminalManageBuilder

func (*TerminalManageBuilder) WithTerminalRefNumber

func (builder *TerminalManageBuilder) WithTerminalRefNumber(value string) *TerminalManageBuilder

func (*TerminalManageBuilder) WithTransactionId

func (builder *TerminalManageBuilder) WithTransactionId(value string) *TerminalManageBuilder

Jump to

Keyboard shortcuts

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