Package com.avoka.tm.util
Class TxnUrlBuilder
java.lang.Object
com.avoka.tm.util.TxnUrlBuilder
Provides a transaction form and PDF receipt URL builder class.
Examples
Open Form URL
A open form URL generation example.
 import com.avoka.tm.util.*
 String formUrl = new TxnUrlBuilder()
    .setTxn(txn)
    .setSpaceName("Work Space")
    .buildFormUrl() 
 PDF Receipt URL
A PDF receipt URL generation example.
 import com.avoka.tm.util.*
 String receiptUrl = new TxnUrlBuilder()
    .setTxn(txn)
    .setSpaceName("Work Space")
    .buildReceiptUrl() - Since:
- 5.0.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the open form URL.Return the open PDF receipt URL.setSecured(Boolean secured) Set explicitly if the url should be secured (authorized or anonymous).setSpaceName(String spaceName) Set the space name property.Set the transaction property.
- 
Constructor Details- 
TxnUrlBuilderpublic TxnUrlBuilder()
 
- 
- 
Method Details- 
setTxnSet the transaction property.- Parameters:
- txn- the transaction property
- Returns:
- the transaction URL builder
 
- 
setSpaceNameSet the space name property.- Parameters:
- spaceName- the space name property
- Returns:
- the transaction URL builder
 
- 
setSecuredSet explicitly if the url should be secured (authorized or anonymous).- Parameters:
- secured- the secured
- Returns:
- the transaction URL builder
- Since:
- 21.5.0
 
- 
buildFormUrlReturn the open form URL.- Returns:
- the open form URL
 
- 
buildReceiptUrlReturn the open PDF receipt URL.- Returns:
- the open PDF receipt URL
 
 
-