Package com.avoka.tm.vo
Class Txn
- java.lang.Object
-
- com.avoka.tm.vo.Txn
-
public class Txn extends Object
Provide a Transaction value object class.- Since:
- 5.0.0
-
-
Field Summary
Fields Modifier and Type Field Description StringattachmentsStatusThe attachment status [ Required | Optional | Completed ].List<TxnCheckpoint>checkpointsThe list of transaction delivery checkpoints.StringclientCodeThe organization code.booleandataDeletedThe transaction user PII data has been deleted.static StringDELIVERY_COMPLETEDThe delivery "Completed" status.static StringDELIVERY_ERRORThe delivery "Error" status.static StringDELIVERY_IN_PROGRESSThe delivery "In Progress" status.static StringDELIVERY_NOT_READYThe delivery "Not Ready" status.static StringDELIVERY_NOT_REQUIREDThe delivery "Not Required" status.static StringDELIVERY_PENDINGThe delivery "Pending" status.static StringDELIVERY_READYThe delivery "Ready" status.static StringDELIVERY_SENT_EMAILThe delivery "Sent Email" status.static StringDELIVERY_UNDELIVERABLEThe delivery "Undeliverable" status.StringdeliveryChannelThe organization delivery channel name.List<TxnDeliveryFunc>deliveryFuncsThe transaction delivery functions list.IntegerdeliveryMaxAttemptsThe delivery max attempts.StringdeliveryMessageThe delivery message.StringdeliveryMethodThe delivery method [ Email | Email Secure | Delivery Process | REST Service | Web Service ].IntegerdeliveryProcessAttemptsThe delivery process attempts.StringdeliveryStatusThe delivery status [ Not Ready | Ready | Sent Email | In Progress | Pending | Completed | Error | Undeliverable | Not Required ].StringemailAddressThe contact email address.StringexternalUserIdThe transaction external user id.List<FileAttach>fileAttachListThe file attachments list.static StringFORM_ABANDONEDThe form "Abandoned" status.static StringFORM_ASSIGNEDThe form "Assigned" status.static StringFORM_COMPLETEDThe form "Completed" status.static StringFORM_EXPIREDThe form "Expired" status.static StringFORM_OPENEDThe form "Opened" status.static StringFORM_SAVEDThe form "Saved" status.static StringFORM_SUBMITTEDThe form "Submitted" status.StringformAbandonmentTypeThe type of form abandonment [ Bounced | Started | Cancelled | Submitted | Saved ].StringformCodeThe form code, globally unique identifier.Map<String,String>formDataMapThe form data map (data extracts).LongformIdThe form id (PK).StringformNameThe form name.StringformStatusThe transaction form status [ Assigned | Opened | Saved | Submitted | Completed | Expired | Abandoned ].StringformUrlThe form URL if the transaction has not been completed.LongformVersionIdThe form version id (PK).StringformVersionNumberThe form version number.StringformXmlThe form XML data.Set<String>groupNamesThe transaction group names.LongidThe transaction id (PK).LongjobActionIdThe job action id.LongjobIdThe job id.StringjobRefNumberThe job reference number.List<String>milestonesThe list of transaction milestones.LongorgIdThe organization id (PK).StringorgNameThe organization name.StringpaymentGatewayReceiptNoThe payment gateway receipt number.DatepaymentGatewayTimestampThe payment gateway timestamp.LongpaymentGatewayTxnNoThe payment gateway transaction number.StringpaymentStatusThe transaction payment status [ Required | Completed | Error | Pending ].DoublepaymentTotalThe transaction payment total.StringprocessStatusThe transaction processing status.Map<String,String>propertyMapThe property map (transaction properties).StringreceiptNumberThe transaction receipt number.byte[]receiptPdfThe receipt PDF bytes.StringreceiptStatusThe transaction PDF receipt generation status [ Ready | In Progress | Completed | Error | Error No Data ].StringreceiptUrlThe receipt URL if the transaction has not been completed.StringsaveChallengeHashThe save challenge hashDatesaveChallengeTimeoutThe save challenge timeoutLongspaceIdThe form space id (PK).StringspaceNameThe form space name.StringsubmitKeyThe transaction submit key, globally unique id (GUID).DatetimeAbandonedThe time the transaction was abandoned.DatetimeCompletedThe time the transaction was completed.DatetimeCreatedThe time the transaction was created.DatetimeDeliveredThe time the transaction was delivered.DatetimeProcessUpdatedThe time the processing status was last updated.DatetimeSubmissionExpiryThe time the submission will expire.DatetimeSubmittedThe time the transaction was submitted.DatetimeTaskExpiryThe time the task will expiry.DatetimeTaskScheduledThe time the task was scheduled to be completed.DatetimeUserLastModifiedThe time the user last modified the transaction.StringtrackingCodeThe transaction tracking code.StringtransRefNumberThe transaction ref number.IntegertxnScoreThe transaction score.StringuserAgentThe HTTP user agent header.StringuserAgentDeviceTypeThe HTTP user agent device type [ Phone | Tablet | Desktop | Game Console | Unknown ].StringuserLoginNameThe transaction users login name (username).booleanuserSavedThe transaction is user saved.
-
Constructor Summary
Constructors Constructor Description Txn(com.avoka.fc.core.entity.Submission sub, Map<String,String> formDataMap, String formXml, Set<String> groupNames, Map<String,String> propertyMap, byte[] receiptPdf, List<FileAttach> fileAttachList, List<TxnDeliveryFunc> deliveryFuncs)Create a Txn value object with the given parameters.Txn(Map fields)Create a unit testing Txn value object with the given fields.
-
-
-
Field Detail
-
FORM_ASSIGNED
public static final String FORM_ASSIGNED
The form "Assigned" status.- See Also:
- Constant Field Values
-
FORM_OPENED
public static final String FORM_OPENED
The form "Opened" status.- See Also:
- Constant Field Values
-
FORM_SAVED
public static final String FORM_SAVED
The form "Saved" status.- See Also:
- Constant Field Values
-
FORM_SUBMITTED
public static final String FORM_SUBMITTED
The form "Submitted" status.- See Also:
- Constant Field Values
-
FORM_COMPLETED
public static final String FORM_COMPLETED
The form "Completed" status.- See Also:
- Constant Field Values
-
FORM_ABANDONED
public static final String FORM_ABANDONED
The form "Abandoned" status.- See Also:
- Constant Field Values
-
FORM_EXPIRED
public static final String FORM_EXPIRED
The form "Expired" status.- See Also:
- Constant Field Values
-
DELIVERY_NOT_READY
public static final String DELIVERY_NOT_READY
The delivery "Not Ready" status.- See Also:
- Constant Field Values
-
DELIVERY_READY
public static final String DELIVERY_READY
The delivery "Ready" status.- See Also:
- Constant Field Values
-
DELIVERY_SENT_EMAIL
public static final String DELIVERY_SENT_EMAIL
The delivery "Sent Email" status.- See Also:
- Constant Field Values
-
DELIVERY_IN_PROGRESS
public static final String DELIVERY_IN_PROGRESS
The delivery "In Progress" status.- See Also:
- Constant Field Values
-
DELIVERY_PENDING
public static final String DELIVERY_PENDING
The delivery "Pending" status.- See Also:
- Constant Field Values
-
DELIVERY_COMPLETED
public static final String DELIVERY_COMPLETED
The delivery "Completed" status.- See Also:
- Constant Field Values
-
DELIVERY_ERROR
public static final String DELIVERY_ERROR
The delivery "Error" status.- See Also:
- Constant Field Values
-
DELIVERY_UNDELIVERABLE
public static final String DELIVERY_UNDELIVERABLE
The delivery "Undeliverable" status.- See Also:
- Constant Field Values
-
DELIVERY_NOT_REQUIRED
public static final String DELIVERY_NOT_REQUIRED
The delivery "Not Required" status.- See Also:
- Constant Field Values
-
id
public final Long id
The transaction id (PK).
-
attachmentsStatus
public final String attachmentsStatus
The attachment status [ Required | Optional | Completed ].
-
orgId
public final Long orgId
The organization id (PK).
-
clientCode
public final String clientCode
The organization code.
-
orgName
public final String orgName
The organization name.
-
deliveryStatus
public final String deliveryStatus
The delivery status [ Not Ready | Ready | Sent Email | In Progress | Pending | Completed | Error | Undeliverable | Not Required ].
-
deliveryChannel
public final String deliveryChannel
The organization delivery channel name.
-
deliveryMaxAttempts
public final Integer deliveryMaxAttempts
The delivery max attempts.
-
deliveryMessage
public final String deliveryMessage
The delivery message.
-
deliveryMethod
public final String deliveryMethod
The delivery method [ Email | Email Secure | Delivery Process | REST Service | Web Service ].
-
deliveryProcessAttempts
public final Integer deliveryProcessAttempts
The delivery process attempts.
-
emailAddress
public final String emailAddress
The contact email address.
-
formId
public final Long formId
The form id (PK).
-
formCode
public final String formCode
The form code, globally unique identifier.
-
formName
public final String formName
The form name.
-
formStatus
public final String formStatus
The transaction form status [ Assigned | Opened | Saved | Submitted | Completed | Expired | Abandoned ].
-
paymentStatus
public final String paymentStatus
The transaction payment status [ Required | Completed | Error | Pending ].
-
paymentTotal
public final Double paymentTotal
The transaction payment total.
-
jobId
public final Long jobId
The job id.
-
jobActionId
public final Long jobActionId
The job action id.
-
jobRefNumber
public final String jobRefNumber
The job reference number.
-
spaceId
public final Long spaceId
The form space id (PK).
-
spaceName
public final String spaceName
The form space name.
-
receiptNumber
public final String receiptNumber
The transaction receipt number.
-
receiptStatus
public final String receiptStatus
The transaction PDF receipt generation status [ Ready | In Progress | Completed | Error | Error No Data ].
-
saveChallengeHash
public final String saveChallengeHash
The save challenge hash- Since:
- 5.1.0
-
saveChallengeTimeout
public final Date saveChallengeTimeout
The save challenge timeout- Since:
- 5.1.0
-
timeCreated
public final Date timeCreated
The time the transaction was created.
-
timeAbandoned
public final Date timeAbandoned
The time the transaction was abandoned.
-
timeUserLastModified
public final Date timeUserLastModified
The time the user last modified the transaction.
-
timeSubmitted
public final Date timeSubmitted
The time the transaction was submitted.
-
timeCompleted
public final Date timeCompleted
The time the transaction was completed.
-
timeDelivered
public final Date timeDelivered
The time the transaction was delivered.
-
timeProcessUpdated
public final Date timeProcessUpdated
The time the processing status was last updated.
-
timeSubmissionExpiry
public final Date timeSubmissionExpiry
The time the submission will expire.
-
timeTaskExpiry
public final Date timeTaskExpiry
The time the task will expiry.
-
timeTaskScheduled
public final Date timeTaskScheduled
The time the task was scheduled to be completed.
-
dataDeleted
public final boolean dataDeleted
The transaction user PII data has been deleted.
-
submitKey
public final String submitKey
The transaction submit key, globally unique id (GUID).
-
trackingCode
public final String trackingCode
The transaction tracking code.
-
transRefNumber
public final String transRefNumber
The transaction ref number.- Since:
- 18.11.0
-
userLoginName
public final String userLoginName
The transaction users login name (username).
-
userSaved
public final boolean userSaved
The transaction is user saved.- Since:
- 5.0.3
-
externalUserId
public final String externalUserId
The transaction external user id.
-
paymentGatewayTimestamp
public final Date paymentGatewayTimestamp
The payment gateway timestamp.
-
paymentGatewayReceiptNo
public final String paymentGatewayReceiptNo
The payment gateway receipt number.
-
paymentGatewayTxnNo
public final Long paymentGatewayTxnNo
The payment gateway transaction number.
-
processStatus
public final String processStatus
The transaction processing status.
-
formVersionId
public final Long formVersionId
The form version id (PK).
-
formVersionNumber
public final String formVersionNumber
The form version number.
-
txnScore
public final Integer txnScore
The transaction score.
-
userAgent
public final String userAgent
The HTTP user agent header.- Since:
- 18.11.0
-
userAgentDeviceType
public final String userAgentDeviceType
The HTTP user agent device type [ Phone | Tablet | Desktop | Game Console | Unknown ].- Since:
- 18.11.0
-
formAbandonmentType
public final String formAbandonmentType
The type of form abandonment [ Bounced | Started | Cancelled | Submitted | Saved ].
-
formUrl
public final String formUrl
The form URL if the transaction has not been completed.
-
receiptUrl
public final String receiptUrl
The receipt URL if the transaction has not been completed.
-
checkpoints
public final List<TxnCheckpoint> checkpoints
The list of transaction delivery checkpoints.
-
formXml
public final String formXml
The form XML data.
-
receiptPdf
public final byte[] receiptPdf
The receipt PDF bytes.
-
fileAttachList
public final List<FileAttach> fileAttachList
The file attachments list.
-
deliveryFuncs
public final List<TxnDeliveryFunc> deliveryFuncs
The transaction delivery functions list.
-
-
Constructor Detail
-
Txn
public Txn(com.avoka.fc.core.entity.Submission sub, Map<String,String> formDataMap, String formXml, Set<String> groupNames, Map<String,String> propertyMap, byte[] receiptPdf, List<FileAttach> fileAttachList, List<TxnDeliveryFunc> deliveryFuncs)Create a Txn value object with the given parameters.- Parameters:
sub- the submission entity (required)formDataMap- the form data mapformXml- the form XML datagroupNames- the submission group namespropertyMap- the submission propertyreceiptPdf- the receipt PDF bytesfileAttachList- the file attachments listdeliveryFuncs- the transaction delivery functions
-
Txn
public Txn(Map fields)
Create a unit testing Txn value object with the given fields.- Parameters:
fields- the submission entity fields (required)- Since:
- 5.1.4
-
-