Package com.avoka.fc.core.entity
Class PaymentLog
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
com.avoka.fc.core.entity.auto._PaymentLog
com.avoka.fc.core.entity.PaymentLog
- All Implemented Interfaces:
IEntity
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
Provides a record for a payment made using the SmartForm Manager payment module.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Indicates that the payment was cancelled while in the payment gatewaystatic final String
Indicates that the payment has been completed successfullystatic final String
Indicates that an error has occurred during paymentstatic final String
Indicates that the payment is pending a result from the payment gatewayFields inherited from class com.avoka.fc.core.entity.auto._PaymentLog
ANTI_FRAUD_CODE, ANTI_FRAUD_CODE_PROPERTY, ANTI_FRAUD_RESPONSE, ANTI_FRAUD_RESPONSE_PROPERTY, DO_AMOUNT, DO_AMOUNT_PROPERTY, DO_MERCH_TXN_REF, DO_MERCH_TXN_REF_PROPERTY, DO_MERCHANT, DO_MERCHANT_PROPERTY, DO_TIMESTAMP, DO_TIMESTAMP_PROPERTY, DO_VERSION, DO_VERSION_PROPERTY, DR_ACQ_RESPONSE_CODE, DR_ACQ_RESPONSE_CODE_PROPERTY, DR_AMOUNT, DR_AMOUNT_PROPERTY, DR_BATCH_NO, DR_BATCH_NO_PROPERTY, DR_CUSTOM_PARAM1, DR_CUSTOM_PARAM1_PROPERTY, DR_CUSTOM_PARAM2, DR_CUSTOM_PARAM2_PROPERTY, DR_CUSTOM_PARAM3, DR_CUSTOM_PARAM3_PROPERTY, DR_CUSTOM_PARAM4, DR_CUSTOM_PARAM4_PROPERTY, DR_CUSTOM_PARAM5, DR_CUSTOM_PARAM5_PROPERTY, DR_MERCH_TXN_REF, DR_MERCH_TXN_REF_PROPERTY, DR_MESSAGE, DR_MESSAGE_PROPERTY, DR_RECEIPT_NO, DR_RECEIPT_NO_PROPERTY, DR_TAX_AMOUNT, DR_TAX_AMOUNT_PROPERTY, DR_TIMESTAMP, DR_TIMESTAMP_PROPERTY, DR_TRANSACTION_NO, DR_TRANSACTION_NO_PROPERTY, DR_TXN_RESPONSE_CODE, DR_TXN_RESPONSE_CODE_PROPERTY, DR_TXN_RESPONSE_MSG, DR_TXN_RESPONSE_MSG_PROPERTY, PAYMENT_LOG_KEY, PAYMENT_LOG_KEY_PROPERTY, PAYMENT_OID_PK_COLUMN, PAYMENT_SERVICE_CODE, PAYMENT_SERVICE_CODE_PROPERTY, PAYMENT_STATUS, PAYMENT_STATUS_PROPERTY, SUBMISSION, SUBMISSION_PROPERTY, USER_IP_ADDRESS, USER_IP_ADDRESS_PROPERTY
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
Fields inherited from class org.apache.cayenne.CayenneDataObject
values
Fields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersion
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether payment has been cancelledboolean
Return whether payment has been completedboolean
Return whether payment is in a error statusboolean
Return whether payment has been pendingMethods inherited from class com.avoka.fc.core.entity.auto._PaymentLog
getAntiFraudCode, getAntiFraudResponse, getDoAmount, getDoMerchant, getDoMerchTxnRef, getDoTimestamp, getDoVersion, getDrAcqResponseCode, getDrAmount, getDrBatchNo, getDrCustomParam1, getDrCustomParam2, getDrCustomParam3, getDrCustomParam4, getDrCustomParam5, getDrMerchTxnRef, getDrMessage, getDrReceiptNo, getDrTaxAmount, getDrTimestamp, getDrTransactionNo, getDrTxnResponseCode, getDrTxnResponseMsg, getPaymentLogKey, getPaymentServiceCode, getPaymentStatus, getSubmission, getUserIpAddress, setAntiFraudCode, setAntiFraudResponse, setDoAmount, setDoMerchant, setDoMerchTxnRef, setDoTimestamp, setDoVersion, setDrAcqResponseCode, setDrAmount, setDrBatchNo, setDrCustomParam1, setDrCustomParam2, setDrCustomParam3, setDrCustomParam4, setDrCustomParam5, setDrMerchTxnRef, setDrMessage, setDrReceiptNo, setDrTaxAmount, setDrTimestamp, setDrTransactionNo, setDrTxnResponseCode, setDrTxnResponseMsg, setPaymentLogKey, setPaymentServiceCode, setPaymentStatus, setSubmission, setUserIpAddress
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toString
Methods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeState
Methods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerialized
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Field Details
-
STATUS_Completed
Indicates that the payment has been completed successfully- See Also:
-
STATUS_Error
Indicates that an error has occurred during payment- See Also:
-
STATUS_Cancelled
Indicates that the payment was cancelled while in the payment gateway- See Also:
-
STATUS_Pending
Indicates that the payment is pending a result from the payment gateway- See Also:
-
-
Constructor Details
-
PaymentLog
public PaymentLog()
-
-
Method Details
-
isPaymentCompleted
public boolean isPaymentCompleted()Return whether payment has been completed- Returns:
- whether the payment is complete
-
isPaymentInError
public boolean isPaymentInError()Return whether payment is in a error status- Returns:
- whether the payment is in error
- Since:
- 3.7.0
-
isPaymentCancelled
public boolean isPaymentCancelled()Return whether payment has been cancelled- Returns:
- whether the payment is cancelled
- Since:
- 3.7.0
-
isPaymentPending
public boolean isPaymentPending()Return whether payment has been pending- Returns:
- whether the payment is pending
- Since:
- 3.7.0
-