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.


Constructor Summary
AsynchronousApproveWorkItem(FrameworkOrder order, Cassette cassette, ParameterTable frameworkKeywords, ParameterTable protocolData)
          Constructor
 
Method Summary
 void doYourWork()
          Method called when the work item is dispatched on the service thread.
 Cassette getCassette()
          Gets the the associated Cassette
 String getMerchantNumber()
          Gets the merchant number of the merchant for the associated Order
 String getOrderNumber()
          Gets the order number for the associated Order
 String toString()
          Gets this object in a string format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsynchronousApproveWorkItem

public AsynchronousApproveWorkItem(FrameworkOrder order,
                                   Cassette cassette,
                                   ParameterTable frameworkKeywords,
                                   ParameterTable protocolData)
Constructor
Parameters:
order - the associated Order
cassette - the associated Cassette
frameworkKeywords - keywords
protocolData - protocol specific data
Method Detail

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