Share via


Cat.CashDeposit Method

2/27/2008

Charges the specified amount of money to the account.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Overridable Sub CashDeposit ( _
    sequenceNumber As Integer, _
    amount As Decimal, _
    timeout As Integer _
)
public virtual void CashDeposit (
    int sequenceNumber,
    decimal amount,
    int timeout
)
public:
virtual void CashDeposit (
    int sequenceNumber, 
    Decimal amount, 
    int timeout
)
public void CashDeposit (
    int sequenceNumber, 
    Decimal amount, 
    int timeout
)
public function CashDeposit (
    sequenceNumber : int, 
    amount : decimal, 
    timeout : int
)

Parameters

  • sequenceNumber
    Sequence number for charge.
  • amount
    Amount of money for charge.
  • timeout
    The maximum wait time (in milliseconds) until the response is received from the CAT device. WaitForever, 0, and positive values can be specified.

Remarks

The amount is stored on the device. If timeout is WaitForever, a time-out does not occur and the process waits forever until the device responds.

CashDeposit may cause a PosControlException to be thrown with the following ErrorCodes.

Value

Description

Illegal

An invalid timeout parameter is specified, or CapCashDeposit is false.

Timeout

No response was received from the CAT during the specified timeout time in milliseconds.

Busy

The device cannot accept any commands now.

Extended

The detailed code is stored in an ErrorCodeExtended.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

Cat Class
Cat Members
Microsoft.PointOfService Namespace
CapCashDeposit