com.ibm.etill.framework.payapi
Class AsynchronousApproveWorkItem
java.lang.Object
|
+--com.ibm.etill.framework.payapi.AsynchronousApproveWorkItem
- All Implemented Interfaces:
- WorkItem
- public final class AsynchronousApproveWorkItem
- extends Object
- implements WorkItem
AsynchronousApproveWorkItem is used to perform an Approve operation on an order at some time
after the order was created. This object will have been placed on a service thread queue and
dispatched at a later time.
AsynchronousApproveWorkItem
public AsynchronousApproveWorkItem(FrameworkOrder order,
Cassette cassette,
ParameterTable frameworkKeywords,
ParameterTable protocolData)
- Constructor
- Parameters:
order
- the associated Ordercassette
- the associated CassetteframeworkKeywords
- keywordsprotocolData
- protocol specific data
getCassette
public Cassette getCassette()
- Gets the the associated Cassette
- Specified by:
getCassette
in interface WorkItem
- Returns:
- the associated Cassette object
doYourWork
public void doYourWork()
throws ETillAbortOperation
- Method called when the work item is dispatched on the service thread.
This will perform the approve operation on the order.
- Specified by:
doYourWork
in interface WorkItem
- Throws:
ETillAbortOperation
- if the approve operation abnormally terminates or does
not complete successfully.
getMerchantNumber
public String getMerchantNumber()
- Gets the merchant number of the merchant for the associated Order
- Returns:
- the associated Order's merchant number
getOrderNumber
public String getOrderNumber()
- Gets the order number for the associated Order
- Returns:
- the associated Order's number
toString
public String toString()
- Gets this object in a string format
- Overrides:
toString
in class Object
- Returns:
- MerchantNumber || OrderNumber || PaymentNumber || CassetteName