com.ibm.etill.framework.cassette
Class PaymentTransactionRequest
java.lang.Object
|
+--com.ibm.etill.framework.cassette.CassetteRequest
|
+--com.ibm.etill.framework.cassette.APIRequest
|
+--com.ibm.etill.framework.cassette.OrderRequest
|
+--com.ibm.etill.framework.cassette.PaymentTransactionRequest
- All Implemented Interfaces:
- FrameworkReturnCodes, PaymentAPIConstants, Serializable
- Direct Known Subclasses:
- ApproveRequest, ApproveReversalRequest, DepositRequest, DepositReversalRequest, RefundRequest, RefundReversalRequest
- public class PaymentTransactionRequest
- extends OrderRequest
PaymentTransactionRequests are requests which operate on payment transactions
(that is, Payments and Credits).
Generic payment transaction operations are Approve, Deposit and Refund, plus
their reversals. PaymentTransactionRequest adds the common payment transaction
data to the request hierarchy and serves as the base class for each of the
specific payment transaction requests. Since all payment transactions are
associated with an Order, PaymentTransactionRequest extends OrderRequest.
- See Also:
APIResponse
, Serialized Form
Method Summary |
Amount |
getAmount()
Returns the value of the Amount object which contains the amount
data specified on the input API request. |
Transaction |
getTransaction()
Returns the generic Transaction object (for example, the Payment or
Credit object) at which this PaymentTransactionRequest is directed. |
getAmount
public final Amount getAmount()
- Returns the value of the Amount object which contains the amount
data specified on the input API request.
- Returns:
- Amount - the object which contains the amount, and amountExp10
and currency code values specified on the API request
message.
getTransaction
public final Transaction getTransaction()
- Returns the generic Transaction object (for example, the Payment or
Credit object) at which this PaymentTransactionRequest is directed.
- Returns:
- Transaction - the object at which this request is directed.