Share via


CashChanger.EndDeposit Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Completes a cash acceptance operation.

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

Syntax

'Declaration
Public MustOverride Sub EndDeposit ( _
    successAction As CashDepositAction _
)
public abstract void EndDeposit (
    CashDepositAction successAction
)
public:
virtual void EndDeposit (
    CashDepositAction successAction
) abstract
public abstract void EndDeposit (
    CashDepositAction successAction
)
public abstract function EndDeposit (
    successAction : CashDepositAction
)

Parameters

Remarks

Determines how to deal with the cash that was deposited, determined by the successAction parameter.

Before the code calls this method, the application must calculate the difference between the deposit and the amount required. If the deposited amount was greater than the amount required, use Change as the successAction parameter. If the deposited amount was equal to or less than the amount required, use NoChange as the successAction parameter.

If successAction is Repay, the deposit is repaid through either the cash deposit exit or the cash payment exit without storing the actual deposited cash.

The application must call FixDeposit before it calls EndDeposit

EndDeposit may throw a PosControlException with the following ErrorCodes.

Value

Meaning

Illegal

One of the following errors occurred:

  • Cash acceptance is not supported.

  • The call sequence is incorrect. BeginDeposit and FixDeposit must be called in sequence before you call this method.

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

CashChanger Class
CashChanger Members
Microsoft.PointOfService Namespace
DepositCounts
DepositAmount
CapDepositDataEvent
CashChanger.BeginDeposit Method
FixDeposit
PauseDeposit