Cat.AuthorizeRefund Method
Refund purchase approval is intended.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim sequenceNumber As Integer
Dim amount As Decimal
Dim taxOthers As Decimal
Dim timeout As Integer
Dim cat1 As Cat
cat1.AuthorizeRefund(sequenceNumber, amount, taxOthers, timeout)
Syntax
'Declaration
Public MustOverride Sub AuthorizeRefund( _
ByVal sequenceNumber As Integer, _
ByVal amount As Decimal, _
ByVal taxOthers As Decimal, _
ByVal timeout As Integer _
)
public abstract void AuthorizeRefund(
int sequenceNumber,
decimal amount,
decimal taxOthers,
int timeout
);
public: abstract Void AuthorizeRefund(
Int32 sequenceNumber,
Decimal^ amount,
Decimal^ taxOthers,
Int32 timeout
);
public abstract void AuthorizeRefund(
int sequenceNumber,
System.Decimal amount,
System.Decimal taxOthers,
int timeout
);
public abstract function AuthorizeRefund(
sequenceNumber : int,
amount : Decimal,
taxOthers : Decimal,
timeout : int
) : Void;
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
Refund purchase approval for amount and taxOthers is intended as the approval specified by sequenceNumber.
When timeout is WaitForever, timeout never occurs and the device waits until it receives a response from the CAT.
AuthorizeRefund returns void if successful, and it can throw the following exceptions:
Value |
Meaning |
Illegal |
An invalid timeout parameter is specified, or CapAuthorizeRefund 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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
See Also
Reference
Cat Class
Cat Members
Microsoft.PointOfService Namespace
CapAuthorizeRefund