Package com.avoka.tm.util
Class TxnUrlBuilder
- java.lang.Object
-
- com.avoka.tm.util.TxnUrlBuilder
-
public class TxnUrlBuilder extends java.lang.Object
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 Summary
Constructors Constructor Description TxnUrlBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
buildFormUrl()
Return the open form URL.java.lang.String
buildReceiptUrl()
Return the open PDF receipt URL.TxnUrlBuilder
setSpaceName(java.lang.String spaceName)
Set the space name property.TxnUrlBuilder
setTxn(Txn txn)
Set the transaction property.
-
-
-
Method Detail
-
setTxn
public TxnUrlBuilder setTxn(Txn txn)
Set the transaction property.- Parameters:
txn
- the transaction property- Returns:
- the transaction URL builder
-
setSpaceName
public TxnUrlBuilder setSpaceName(java.lang.String spaceName)
Set the space name property.- Parameters:
spaceName
- the space name property- Returns:
- the transaction URL builder
-
buildFormUrl
public java.lang.String buildFormUrl()
Return the open form URL.- Returns:
- the open form URL
-
buildReceiptUrl
public java.lang.String buildReceiptUrl()
Return the open PDF receipt URL.- Returns:
- the open PDF receipt URL
-
-