public class FinancialTransaction
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static short | APPROVE_TRAN_TYPE
The short value represents the transaction type - approve.
|
static short | APPROVEANDDEPOSIT_TRAN_TYPE
The short value represents the transaction type - approveAndDeposit.
|
static short | CANCELED_STATE
The short value represents the state = canceled.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static short | CREDIT_TRAN_TYPE
The short value represents the transaction type - credit.
|
static short | DEPOSIT_TRAN_TYPE
The short value represents the transaction type - deposit.
|
static short | FAILED_STATE
The short value represents the state = failed.
|
static short | NEW_STATE
The short value represents the state = new.
|
static short | PENDING_STATE
The short value represents the state = pending.
|
static short | RESERVE_APPPROVE_TRAN_TYPE
The short value represents the transaction type - reverseApprove.
|
static short | RESERVE_CREDIT_TRAN_TYPE
The short value represents the transaction type - reverseCredit.
|
static short | RESERVE_DEPOSIT_TRAN_TYPE
The short value represents the transaction type - reverseDeposit.
|
static short | SUCCESS_STATE
The short value represents the state = success.
|
Constructor and Description |
---|
FinancialTransaction(java.lang.String idLocal, Credit creditLocal)
This method is the constructor of this class with id and credit.
|
FinancialTransaction(java.lang.String idLocal, Payment paymentLocal)
This method is the constructor of this class with id and payment.
|
Modifier and Type | Method and Description |
---|---|
Credit | getCredit()
This method returns the credit object associated current financial transaction.
|
java.util.HashMap | getExtendedData()
This method returns the extended data of this financial transaction.
|
java.lang.String | getId()
This method returns the identifier of current financial transaction.
|
Payment | getPayment()
This method returns the payment object associated with current financial transaction.
|
java.math.BigDecimal | getProcessedAmount()
This method returns the processed amount by the backend financial system of current financial transaction.
|
java.lang.String | getReasonCode()
This method returns the reason code for the response code received from the backend financial system.
|
java.lang.String | getReferenceNumber()
This method returns the reference number received from the backend financial system, it could be used later in the subsequent transactions.
|
java.math.BigDecimal | getRequestedAmount()
This method returns the requested amount to be processed by this financial transaction.
|
java.lang.String | getResponseCode()
This method returns the response code received from the backend financial system
|
short | getState()
This method returns the state of current financial transaction.
|
long | getTimeCreated()
This method returns the time when the financial transaction was created.
|
long | getTimeUpdated()
This method returns the time when the financial transaction was updated.
|
java.lang.String | getTrackingId()
This method returns the identifier generated by the plug-in for this financial transaction.
|
short | getTransactionType()
This method returns the transaction type of current financial transaction.
|
void | setCredit(Credit creditLocal)
This method sets the credit object associated current financial transaction.
|
void | setExtendedData(java.util.HashMap extendedDataLocal)
This method sets the extended data of this financial transaction.
|
void | setId(java.lang.String idLocal)
This method sets the identifier of current financial transaction.
|
void | setPayment(Payment paymentLocal)
This method sets the payment object associated with current financial transaction.
|
void | setProcessedAmount(java.math.BigDecimal amount)
This method sets the processed amount by the backend financial system of current financial transaction.
|
void | setReasonCode(java.lang.String code)
This method sets the reason code for the response code received from the backend financial system
|
void | setReferenceNumber(java.lang.String number)
This method sets the reference number received from the backend financial system, it could be used later in the subsequent transactions.
|
void | setRequestedAmount(java.math.BigDecimal amount)
This method sets the requested amount to be processed by this financial transaction
|
void | setResponseCode(java.lang.String code)
This method sets the response code received from the backend financial system
|
void | setState(short stateLocal)
This method sets the state of current financial transaction.
|
void | setTimeCreated(long created)
This method sets the time when the financial transaction was created.
|
void | setTimeUpdated(long updated)
This method sets the time when the financial transaction was update.
|
void | setTrackingId(java.lang.String idLocal)
This method sets the identifier generated by the plug-in for this financial transaction.
|
void | setTransactionType(short type)
This method sets the transaction type of current financial transaction.
|
public static final java.lang.String COPYRIGHT
public static final short APPROVE_TRAN_TYPE
public static final short DEPOSIT_TRAN_TYPE
public static final short APPROVEANDDEPOSIT_TRAN_TYPE
public static final short CREDIT_TRAN_TYPE
public static final short RESERVE_APPPROVE_TRAN_TYPE
public static final short RESERVE_DEPOSIT_TRAN_TYPE
public static final short RESERVE_CREDIT_TRAN_TYPE
public static final short NEW_STATE
public static final short PENDING_STATE
public static final short SUCCESS_STATE
public static final short FAILED_STATE
public static final short CANCELED_STATE
public FinancialTransaction(java.lang.String idLocal, Payment paymentLocal)
public FinancialTransaction(java.lang.String idLocal, Credit creditLocal)
public short getState()
public void setState(short stateLocal)
public short getTransactionType()
public void setTransactionType(short type)
public Credit getCredit()
public void setCredit(Credit creditLocal)
public java.lang.String getId()
public void setId(java.lang.String idLocal)
public Payment getPayment()
public void setPayment(Payment paymentLocal)
public java.math.BigDecimal getProcessedAmount()
public void setProcessedAmount(java.math.BigDecimal amount)
public java.lang.String getReasonCode()
public void setReasonCode(java.lang.String code)
public java.lang.String getReferenceNumber()
public void setReferenceNumber(java.lang.String number)
public java.math.BigDecimal getRequestedAmount()
public void setRequestedAmount(java.math.BigDecimal amount)
public java.lang.String getResponseCode()
public void setResponseCode(java.lang.String code)
public long getTimeCreated()
public void setTimeCreated(long created)
public long getTimeUpdated()
public void setTimeUpdated(long updated)
public java.lang.String getTrackingId()
public void setTrackingId(java.lang.String idLocal)
public java.util.HashMap getExtendedData()
public void setExtendedData(java.util.HashMap extendedDataLocal)