Documentation ¶
Index ¶
- type ITerminalBuilderDevice
- type ITerminalManageBuilder
- type TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) Execute(device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
- func (tb *TerminalAuthBuilder) ExecuteWithName(configName string, device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
- func (tb *TerminalAuthBuilder) GetAddress() *entities.Address
- func (tb *TerminalAuthBuilder) GetAllowDuplicates() bool
- func (tb *TerminalAuthBuilder) GetAmount() *decimal.Decimal
- func (tb *TerminalAuthBuilder) GetCardBrandStorage() storedcredentialinitiator.StoredCredentialInitiator
- func (tb *TerminalAuthBuilder) GetCardBrandTransactionId() string
- func (tb *TerminalAuthBuilder) GetCashBackAmount() *decimal.Decimal
- func (tb *TerminalAuthBuilder) GetCommercialRequest() bool
- func (tb *TerminalAuthBuilder) GetCurrency() currencytype.CurrencyType
- func (tb *TerminalAuthBuilder) GetCustomerCode() string
- func (tb *TerminalAuthBuilder) GetGiftTransactionType() transactiontype.TransactionType
- func (tb *TerminalAuthBuilder) GetGratuity() *decimal.Decimal
- func (tb *TerminalAuthBuilder) GetInvoiceNumber() string
- func (tb *TerminalAuthBuilder) GetPoNumber() string
- func (tb *TerminalAuthBuilder) GetTaxAmount() *decimal.Decimal
- func (tb *TerminalAuthBuilder) GetTaxExempt() string
- func (tb *TerminalAuthBuilder) GetTaxExemptId() string
- func (tb *TerminalAuthBuilder) GetTokenRequest() *int
- func (tb *TerminalAuthBuilder) GetTransactionId() string
- func (tb *TerminalAuthBuilder) IsRequestMultiUseToken() bool
- func (tb *TerminalAuthBuilder) IsSignatureCapture() bool
- func (tb *TerminalAuthBuilder) SetupValidations()
- func (tb *TerminalAuthBuilder) WithAddress(address *entities.Address) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithAllowDuplicates(allowDuplicates bool) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithAmount(amount *decimal.Decimal) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithCardBrandStorage(value storedcredentialinitiator.StoredCredentialInitiator) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithCardBrandStorageAndTransactionId(initiatorValue storedcredentialinitiator.StoredCredentialInitiator, ...) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithCashBack(value *decimal.Decimal) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithCommercialRequest(value bool) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithCurrency(value currencytype.CurrencyType) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithCustomerCode(value string) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithEcrId(value string) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithGiftTransactionType(value transactiontype.TransactionType) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithGratuity(gratuity *decimal.Decimal) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithInvoiceNumber(invoiceNumber string) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithPoNumber(value string) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithRequestMultiUseToken(requestMultiUseToken bool) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithSignatureCapture(signatureCapture bool) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithTaxAmount(value *decimal.Decimal) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithTaxType(value taxtype.TaxType) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithTaxTypeAndExemptId(value taxtype.TaxType, taxExemptId string) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithTokenRequest(tokenRequest *int) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithTokenValue(tokenValue string) *TerminalAuthBuilder
- func (tb *TerminalAuthBuilder) WithTransactionId(value string) *TerminalAuthBuilder
- type TerminalBuilder
- func (tb *TerminalBuilder) GetClerkId() *int
- func (tb *TerminalBuilder) GetPaymentMethodType() paymentmethodtype.PaymentMethodType
- func (tb *TerminalBuilder) GetReferenceNumber() string
- func (tb *TerminalBuilder) GetRequestId() *int
- func (tb *TerminalBuilder) WithClerkId(value *int) *TerminalBuilder
- func (tb *TerminalBuilder) WithReferenceNumber(value string) *TerminalBuilder
- func (tb *TerminalBuilder) WithRequestId(value *int) *TerminalBuilder
- type TerminalManageBuilder
- func (builder *TerminalManageBuilder) Execute(device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
- func (builder *TerminalManageBuilder) ExecuteWithName(configName string, device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
- func (builder *TerminalManageBuilder) GetAmount() *decimal.Decimal
- func (builder *TerminalManageBuilder) GetCurrency() currencytype.CurrencyType
- func (builder *TerminalManageBuilder) GetGratuity() *decimal.Decimal
- func (builder *TerminalManageBuilder) GetTerminalRefNumber() string
- func (builder *TerminalManageBuilder) GetTransactionId() string
- func (builder *TerminalManageBuilder) SetupValidations()
- func (builder *TerminalManageBuilder) WithAmount(value *decimal.Decimal) *TerminalManageBuilder
- func (builder *TerminalManageBuilder) WithCurrency(value currencytype.CurrencyType) *TerminalManageBuilder
- func (builder *TerminalManageBuilder) WithGratuity(value *decimal.Decimal) *TerminalManageBuilder
- func (builder *TerminalManageBuilder) WithTerminalRefNumber(value string) *TerminalManageBuilder
- func (builder *TerminalManageBuilder) WithTransactionId(value string) *TerminalManageBuilder
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 (tb *TerminalAuthBuilder) Execute(device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
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 (tb *TerminalAuthBuilder) GetCardBrandStorage() storedcredentialinitiator.StoredCredentialInitiator
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 (tb *TerminalAuthBuilder) WithCardBrandStorage(value storedcredentialinitiator.StoredCredentialInitiator) *TerminalAuthBuilder
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 (tb *TerminalAuthBuilder) WithCurrency(value currencytype.CurrencyType) *TerminalAuthBuilder
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 (builder *TerminalManageBuilder) Execute(device ITerminalBuilderDevice) (terminalresponse.ITerminalResponse, error)
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 (builder *TerminalManageBuilder) WithCurrency(value currencytype.CurrencyType) *TerminalManageBuilder
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
Click to show internal directories.
Click to hide internal directories.