Share via


Cat.AuthorizeVoid Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Approves cancellation of a purchase.

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

Syntax

'Declaration
Public MustOverride Sub AuthorizeVoid ( _
    sequenceNumber As Integer, _
    amount As Decimal, _
    taxOthers As Decimal, _
    timeout As Integer _
)
public abstract void AuthorizeVoid (
    int sequenceNumber,
    decimal amount,
    decimal taxOthers,
    int timeout
)
public:
virtual void AuthorizeVoid (
    int sequenceNumber, 
    Decimal amount, 
    Decimal taxOthers, 
    int timeout
) abstract
public abstract void AuthorizeVoid (
    int sequenceNumber, 
    Decimal amount, 
    Decimal taxOthers, 
    int timeout
)
public abstract function AuthorizeVoid (
    sequenceNumber : int, 
    amount : decimal, 
    taxOthers : decimal, 
    timeout : int
)

Parameters

  • sequenceNumber
    Sequence number for approval.
  • amount
    Purchase amount for approval.
  • taxOthers
    Tax and other amounts for approval.
  • 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

Cancellation approval for amount and taxOthers is intended as the approval specified by sequenceNumber.

When timeout is WaitForever, time-out never occurs and the device waits until it receives response from the CAT.

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

Value

Meaning

Illegal

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

Timeout

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

Extended

The detail code is stored in ErrorCodeExtended.

Busy

The CAT device cannot accept any commands now.

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
CapAuthorizeVoid