Package com.avoka.tm.svc
Class DeliveryTxnBuilder
java.lang.Object
com.avoka.tm.svc.DeliveryTxnBuilder
Provides a delivery transaction builder class.
Delivery only transactions are intended for delivering transaction data to systems of record. These transactions are not included in analytics and do not consume transaction licensing units. They are typically used in collaboration jobs where you have many assigned tasks being completed, but the results and associated file attachments are rolled up into one delivery transaction.
Examples
Provides a job delivery transaction example, where a transaction is created specifically for delivery purposes.
import com.avoka.tm.svc.* import com.avoka.tm.vo.* String deliveryXml = ... FileAttach fileAttach = ... JobAction jobAction = ... Txn txn = new DeliveryTxnBuilder() .setFormCode("FTX-CCA") .setFormXml(deliveryXml) .setJobAction(jobAction) .addFileAttach(fileAttach) .build()
- Since:
- 5.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFileAttach
(FileAttach fileAttach) Add the file attachment to the transaction (optional).addFormDataExtract
(String name, String value) Add form data (data extract) to the transaction.build()
Build a delivery transaction with a Delivery Status of "Ready" using the specified parameters.Specify to included all the job transaction file attachments with the delivery transaction (optional).setFormCode
(String formCode) Set the transaction form code (required).setFormXml
(String formXml) Set the transaction form XML data to be delivered (optional).setJobAction
(JobAction jobAction) Set the job action and job to be associated with the transaction (optional).setLinkedTxnId
(Number linkedTxnId) Set the linked transaction id (required).setReceiptData
(byte[] receiptData) Set the PDF receipt data to be delivered (optional).
-
Constructor Details
-
DeliveryTxnBuilder
-
-
Method Details
-
setLinkedTxnId
Set the linked transaction id (required).- Parameters:
linkedTxnId
- the linkedTxnId to set- Returns:
- delivery transaction builder
- Since:
- 21.11
-
setFormCode
Set the transaction form code (required).- Parameters:
formCode
- the formCode to set- Returns:
- delivery transaction builder
-
setFormXml
Set the transaction form XML data to be delivered (optional). IF not specified a empty form XML document will be delivered.- Parameters:
formXml
- the form XML data- Returns:
- delivery transaction builder
-
setReceiptData
Set the PDF receipt data to be delivered (optional). If not specified a blank PDF receipt will be delivered.- Parameters:
receiptData
- the PDF receipt data- Returns:
- delivery transaction builder
-
setJobAction
Set the job action and job to be associated with the transaction (optional).- Parameters:
jobAction
- the job action to associate the transaction with- Returns:
- delivery transaction builder
-
addFileAttach
Add the file attachment to the transaction (optional).- Parameters:
fileAttach
- the file attachment to add (required)- Returns:
- delivery transaction builder
-
includeAllJobFileAttach
Specify to included all the job transaction file attachments with the delivery transaction (optional).- Returns:
- delivery transaction builder
-
addFormDataExtract
Add form data (data extract) to the transaction.- Parameters:
name
- form data (extract) namevalue
- form data (extract) value- Returns:
- delivery transaction builder
-
build
Build a delivery transaction with a Delivery Status of "Ready" using the specified parameters.- Returns:
- a delivery transaction with a Delivery Status of "Ready" using the specified parameters
-