Class CATProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.cat.CATProperties
- All Implemented Interfaces:
CATInterface
,JposBaseInterface
- Direct Known Subclasses:
CAT
Class containing the CAT specific properties, their default values and default implementations of
CATInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter CAT - Credit
Authorization Terminal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionUPOS property AccountNumber.UPOS property AdditionalSecurityInformation.UPOS property ApprovalCode.long
UPOS property Balance.boolean
UPOS property CapAdditionalSecurityInformation.boolean
UPOS property CapAuthorizeCompletion.boolean
UPOS property CapAuthorizePreSales.boolean
UPOS property CapAuthorizeRefund.boolean
UPOS property CapAuthorizeVoid.boolean
UPOS property CapAuthorizeVoidPreSales.boolean
UPOS property CapCashDeposit.boolean
UPOS property CapCenterResultCode.boolean
UPOS property CapCheckCard.int
UPOS property CapDailyLog.boolean
UPOS property CapInstallments.boolean
UPOS property CapLockTerminal.boolean
UPOS property CapLogStatus.boolean
UPOS property CapPaymentDetail.boolean
UPOS property CapTaxOthers.boolean
UPOS property CapTrainingMode.boolean
UPOS property CapTransactionNumber.boolean
UPOS property CapUnlockTerminal.UPOS property CardCompanyID.UPOS property CenterResultCode.UPOS property DailyLog.int
UPOS property LogStatus.int
UPOS property PaymentCondition.UPOS property PaymentDetail.int
UPOS property PaymentMedia.int
UPOS property SequenceNumber.long
UPOS property SettledAmount.UPOS property SlipNumber.boolean
UPOS property TrainingMode.UPOS property TransactionNumber.int
UPOS property TransactionType.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessDailyLog(int sequenceNumber, int type, int timeout)
Validation part of AccessDailyLog method.void
accessDailyLog(AccessDailyLog request)
Final part of AccessDailyLog method.void
additionalSecurityInformation(String addInfo)
Final part of setting AdditionalSecurityInformation.authorizeCompletion(int sequenceNumber, long amount, long taxOthers, int timeout)
Validation part of AuthorizeCompletion method.void
authorizeCompletion(AuthorizeCompletion request)
Final part of AuthorizeCompletion method.authorizePreSales(int sequenceNumber, long amount, long taxOthers, int timeout)
Validation part of AuthorizePreSales method.void
authorizePreSales(AuthorizePreSales request)
Final part of AuthorizePreSales method.authorizeRefund(int sequenceNumber, long amount, long taxOthers, int timeout)
Validation part of AuthorizeRefund method.void
authorizeRefund(AuthorizeRefund request)
Final part of AuthorizeRefund method.authorizeSales(int sequenceNumber, long amount, long taxOthers, int timeout)
Validation part of AuthorizeSales method.void
authorizeSales(AuthorizeSales request)
Final part of AuthorizeSales method.authorizeVoid(int sequenceNumber, long amount, long taxOthers, int timeout)
Validation part of AuthorizeVoid method.void
authorizeVoid(AuthorizeVoid request)
Final part of AuthorizeVoid method.authorizeVoidPreSales(int sequenceNumber, long amount, long taxOthers, int timeout)
Validation part of AuthorizeVoidPreSales method.void
authorizeVoidPreSales(AuthorizeVoidPreSales request)
Final part of AuthorizeVoidPreSales method.cashDeposit(int sequenceNumber, long amount, int timeout)
Validation part of CashDeposit method.void
cashDeposit(CashDeposit request)
Final part of CashDeposit method.checkCard(int sequenceNumber, int timeout)
Validation part of CheckCard method.void
Final part of CheckCard method.void
Initialization of properties that must be initialized during open.Validation part of LockTerminal method.void
lockTerminal(LockTerminal request)
Final part of LockTerminal method.void
paymentMedia(int media)
Final part of setting PaymentMedia.void
trainingMode(boolean flag)
Final part of setting TrainingMode.Validation part of UnlockTerminal method.void
unlockTerminal(UnlockTerminal request)
Final part of UnlockTerminal method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, initOnFirstEnable, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
AccountNumber
UPOS property AccountNumber. -
AdditionalSecurityInformation
UPOS property AdditionalSecurityInformation. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
ApprovalCode
UPOS property ApprovalCode. -
Balance
public long BalanceUPOS property Balance. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAdditionalSecurityInformation
public boolean CapAdditionalSecurityInformationUPOS property CapAdditionalSecurityInformation. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAuthorizeCompletion
public boolean CapAuthorizeCompletionUPOS property CapAuthorizeCompletion. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAuthorizePreSales
public boolean CapAuthorizePreSalesUPOS property CapAuthorizePreSales. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAuthorizeRefund
public boolean CapAuthorizeRefundUPOS property CapAuthorizeRefund. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAuthorizeVoid
public boolean CapAuthorizeVoidUPOS property CapAuthorizeVoid. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAuthorizeVoidPreSales
public boolean CapAuthorizeVoidPreSalesUPOS property CapAuthorizeVoidPreSales. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCashDeposit
public boolean CapCashDepositUPOS property CapCashDeposit. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCenterResultCode
public boolean CapCenterResultCodeUPOS property CapCenterResultCode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCheckCard
public boolean CapCheckCardUPOS property CapCheckCard. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDailyLog
public int CapDailyLogUPOS property CapDailyLog. Default: DL_NONE. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapInstallments
public boolean CapInstallmentsUPOS property CapInstallments. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapLockTerminal
public boolean CapLockTerminalUPOS property CapLockTerminal. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapLogStatus
public boolean CapLogStatusUPOS property CapLogStatus. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPaymentDetail
public boolean CapPaymentDetailUPOS property CapPaymentDetail. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTaxOthers
public boolean CapTaxOthersUPOS property CapTaxOthers. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTrainingMode
public boolean CapTrainingModeUPOS property CapTrainingMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTransactionNumber
public boolean CapTransactionNumberUPOS property CapTransactionNumber. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapUnlockTerminal
public boolean CapUnlockTerminalUPOS property CapUnlockTerminal. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CardCompanyID
UPOS property CardCompanyID. -
CenterResultCode
UPOS property CenterResultCode. -
DailyLog
UPOS property DailyLog. Default: "". Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
LogStatus
public int LogStatusUPOS property LogStatus. Default: LOGSTATUS_OK. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
PaymentCondition
public int PaymentConditionUPOS property PaymentCondition. Default: PAYMENT_DEBIT. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
PaymentDetail
UPOS property PaymentDetail. -
PaymentMedia
public int PaymentMediaUPOS property PaymentMedia. -
SequenceNumber
public int SequenceNumberUPOS property SequenceNumber. -
SettledAmount
public long SettledAmountUPOS property SettledAmount. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlipNumber
UPOS property SlipNumber. -
TrainingMode
public boolean TrainingModeUPOS property TrainingMode. -
TransactionNumber
UPOS property TransactionNumber. -
TransactionType
public int TransactionTypeUPOS property TransactionType.
-
-
Constructor Details
-
CATProperties
public CATProperties(int dev)Constructor.- Parameters:
dev
- Device index
-
-
Method Details
-
initOnOpen
public void initOnOpen()Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during open.- Overrides:
initOnOpen
in classJposCommonProperties
-
additionalSecurityInformation
Description copied from interface:CATInterface
Final part of setting AdditionalSecurityInformation. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapAdditionalSecurityInformation is true,
- internal property AllowAlwaysSetProperties is true or addInfo equals the previous value of AdditionalSecurityInformation.
- Specified by:
additionalSecurityInformation
in interfaceCATInterface
- Parameters:
addInfo
- AdditionalSecurityInformation for subsequent storing data into journal.- Throws:
jpos.JposException
- If an error occurs.
-
paymentMedia
public void paymentMedia(int media) throws jpos.JposExceptionDescription copied from interface:CATInterface
Final part of setting PaymentMedia. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- media is one of MEDIA_UNSPECIFIED, MEDIA_CREDIT, MEDIA_DEBIT or MEDIA_ELECTRONIC_MONEY,
- internal property AllowAlwaysSetProperties is true or media equals the previous value of PaymentMedia.
- Specified by:
paymentMedia
in interfaceCATInterface
- Parameters:
media
- PaymentMedia for subsequent storing data into journal.- Throws:
jpos.JposException
- If an error occurs.
-
trainingMode
public void trainingMode(boolean flag) throws jpos.JposExceptionDescription copied from interface:CATInterface
Final part of setting TrainingMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapTrainingMode is true or flag is false,
- internal property AllowAlwaysSetProperties is true or flag equals the previous value of TrainingMode.
- Specified by:
trainingMode
in interfaceCATInterface
- Parameters:
flag
- TrainingMode for subsequent storing data into journal.- Throws:
jpos.JposException
- If an error occurs.
-
accessDailyLog
public AccessDailyLog accessDailyLog(int sequenceNumber, int type, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AccessDailyLog method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- type is one of DL_REPORTING or DL_SETTLEMENT and is contained in CapDailyLog,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
accessDailyLog
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.type
- DL_REPORTING or DL_SETTLEMENT.timeout
- operation timeout.- Returns:
- AccessDailyLog object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
accessDailyLog
Description copied from interface:CATInterface
Final part of AccessDailyLog method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AccessDailyLog object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
accessDailyLog
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AccessDailyLog.- Throws:
jpos.JposException
- If an error occurs.
-
authorizeCompletion
public AuthorizeCompletion authorizeCompletion(int sequenceNumber, long amount, long taxOthers, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AuthorizeCompletion method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapAuthorizeCompletion is true,
- amount > 0, taxOthers $ge; 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
authorizeCompletion
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.taxOthers
- Tax and other amounts for approval.timeout
- operation timeout.- Returns:
- AuthorizeCompletion object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
authorizeCompletion
Description copied from interface:CATInterface
Final part of AuthorizeCompletion method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AuthorizeCompletion object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
authorizeCompletion
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AuthorizeCompletion.- Throws:
jpos.JposException
- If an error occurs.
-
authorizePreSales
public AuthorizePreSales authorizePreSales(int sequenceNumber, long amount, long taxOthers, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AuthorizePreSales method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapAuthorizePreSales is true,
- amount > 0, taxOthers $ge; 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
authorizePreSales
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.taxOthers
- Tax and other amounts for approval.timeout
- operation timeout.- Returns:
- AuthorizePreSales object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
authorizePreSales
Description copied from interface:CATInterface
Final part of AuthorizePreSales method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AuthorizePreSales object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
authorizePreSales
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AuthorizePreSales.- Throws:
jpos.JposException
- If an error occurs.
-
authorizeRefund
public AuthorizeRefund authorizeRefund(int sequenceNumber, long amount, long taxOthers, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AuthorizeRefund method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapAuthorizeRefund is true,
- amount > 0, taxOthers $ge; 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
authorizeRefund
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.taxOthers
- Tax and other amounts for approval.timeout
- operation timeout.- Returns:
- AuthorizeRefund object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
authorizeRefund
Description copied from interface:CATInterface
Final part of AuthorizeRefund method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AuthorizeRefund object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
authorizeRefund
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AuthorizeRefund.- Throws:
jpos.JposException
- If an error occurs.
-
authorizeSales
public AuthorizeSales authorizeSales(int sequenceNumber, long amount, long taxOthers, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AuthorizeSales method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- amount > 0, taxOthers $ge; 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
authorizeSales
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.taxOthers
- Tax and other amounts for approval.timeout
- operation timeout.- Returns:
- AuthorizeSales object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
authorizeSales
Description copied from interface:CATInterface
Final part of AuthorizeSales method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AuthorizeSales object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
authorizeSales
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AuthorizeSales.- Throws:
jpos.JposException
- If an error occurs.
-
authorizeVoid
public AuthorizeVoid authorizeVoid(int sequenceNumber, long amount, long taxOthers, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AuthorizeVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapAuthorizeVoid is true,
- amount > 0, taxOthers $ge; 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
authorizeVoid
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.taxOthers
- Tax and other amounts for approval.timeout
- operation timeout.- Returns:
- AuthorizeVoid object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
authorizeVoid
Description copied from interface:CATInterface
Final part of AuthorizeVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AuthorizeVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
authorizeVoid
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AuthorizeVoid.- Throws:
jpos.JposException
- If an error occurs.
-
authorizeVoidPreSales
public AuthorizeVoidPreSales authorizeVoidPreSales(int sequenceNumber, long amount, long taxOthers, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of AuthorizeVoidPreSales method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapAuthorizeVoidPreSales is true,
- amount > 0, taxOthers $ge; 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
authorizeVoidPreSales
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.taxOthers
- Tax and other amounts for approval.timeout
- operation timeout.- Returns:
- AuthorizeVoidPreSales object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
authorizeVoidPreSales
Description copied from interface:CATInterface
Final part of AuthorizeVoidPreSales method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a AuthorizeVoidPreSales object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
authorizeVoidPreSales
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by AuthorizeVoidPreSales.- Throws:
jpos.JposException
- If an error occurs.
-
cashDeposit
public CashDeposit cashDeposit(int sequenceNumber, long amount, int timeout) throws jpos.JposExceptionDescription copied from interface:CATInterface
Validation part of CashDeposit method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapCashDeposit is true,
- amount > 0,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
cashDeposit
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.amount
- Purchase amount for approval.timeout
- operation timeout.- Returns:
- CashDeposit object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
cashDeposit
Description copied from interface:CATInterface
Final part of CashDeposit method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a CashDeposit object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
cashDeposit
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by CashDeposit.- Throws:
jpos.JposException
- If an error occurs.
-
checkCard
Description copied from interface:CATInterface
Validation part of CheckCard method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapCheckCard is true,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
checkCard
in interfaceCATInterface
- Parameters:
sequenceNumber
- Sequence number, any value.timeout
- operation timeout.- Returns:
- CheckCard object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
checkCard
Description copied from interface:CATInterface
Final part of CheckCard method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a CheckCard object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
checkCard
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by CheckCard.- Throws:
jpos.JposException
- If an error occurs.
-
lockTerminal
Description copied from interface:CATInterface
Validation part of LockTerminal method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapLockTerminal is true,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
lockTerminal
in interfaceCATInterface
- Returns:
- LockTerminal object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
lockTerminal
Description copied from interface:CATInterface
Final part of LockTerminal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a LockTerminal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
lockTerminal
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method to be used by LockTerminal.- Throws:
jpos.JposException
- If an error occurs.
-
unlockTerminal
Description copied from interface:CATInterface
Validation part of UnlockTerminal method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is not busy,
- CapUnlockTerminal is true,
- timeout is JPOS_FOREVER or ≥ 0.
- Specified by:
unlockTerminal
in interfaceCATInterface
- Returns:
- UnlockTerminal object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
unlockTerminal
Description copied from interface:CATInterface
Final part of UnlockTerminal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a UnlockTerminal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
unlockTerminal
in interfaceCATInterface
- Parameters:
request
- Output request object returned by validation method to be used by UnlockTerminal.- Throws:
jpos.JposException
- If an error occurs.
-