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
FieldsModifier and TypeFieldDescriptionstatic final StringIndicates that the payment was cancelled while in the payment gatewaystatic final StringIndicates that the payment has been completed successfullystatic final StringIndicates that an error has occurred during paymentstatic final StringIndicates 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_PROPERTYFields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTYFields inherited from class org.apache.cayenne.CayenneDataObject
valuesFields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersionFields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceStateFields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn whether payment has been cancelledbooleanReturn whether payment has been completedbooleanReturn whether payment is in a error statusbooleanReturn 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, setUserIpAddressMethods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toStringMethods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeStateMethods 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, writeSerializedMethods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-