public class PCTransaction
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PCTransaction.PCTypeConfirmation
Confirmation type
|
static class |
PCTransaction.TransactionDataType
Transaction data type
|
static class |
PCTransaction.TransactionType
Type of transaction
|
Constructor and Description |
---|
PCTransaction() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppExtra()
Get additional data
|
byte[] |
getCmsAuthenticatedAttributes()
Raw bytes which are value of authenticated attributes for transactions which are signed via CMS
For transactions of type PCTransaction.TransactionType.CMS it is normally not null, for other transactions it is always
null. |
int |
getConfirmationCodeLength()
Get short confirmation code length for offline mode
|
PCTransaction.TransactionDataType |
getDataType()
Get transaction's data type
|
byte[] |
getDownloadedBinaryData()
Deprecated.
|
java.lang.String |
getSnippet()
Returns value of transaction snippet or null if it isn't set
|
PCRenderType |
getSnippetRenderType()
Indicates how snippet can be rendered.
|
java.io.File |
getStoredBinaryData()
Returns downloaded binary data saved to temporary file.
|
java.lang.String |
getSystemId()
Get PCSDK System ID for the transaction
|
PCRenderType |
getTextRenderType()
Get transaction's render type for transactions with text data
|
java.lang.String |
getTransactionId()
Get PCSDK Transaction ID for the transaction
|
java.lang.String |
getTransactionText()
Get transaction text data
|
java.lang.String |
getTransactionVersion()
Get transaction version
|
PCTransaction.TransactionType |
getType()
Type of transaction
|
PCTransaction.PCTypeConfirmation |
getTypeConfirmation()
Get preferred confirmation type for the transaction
|
java.lang.String |
getUserId()
Get PCSDK User ID for the transaction
|
boolean |
hasBinaryData()
Returns true if transaction has binary data (an attachment) which can be requested by calling
PCTransactionsManager.getTransactionBinaryData(PCUser, PCTransaction, PCGetTransactionBinaryDataCallback) .Also returns true if binary data is already available. |
boolean |
isAutosignEnabled() |
boolean |
isExtendedCheck()
Check if Extended Authentication required to confirm transaction
|
PCDataProvider |
toDataProvider(PCUser user,
long time) |
java.lang.String |
toString() |
public boolean isExtendedCheck()
public int getConfirmationCodeLength()
public java.lang.String getSystemId()
public java.lang.String getUserId()
public java.lang.String getTransactionId()
public PCTransaction.PCTypeConfirmation getTypeConfirmation()
public PCTransaction.TransactionDataType getDataType()
public PCRenderType getTextRenderType()
public java.lang.String getTransactionText()
public java.lang.String getSnippet()
public PCRenderType getSnippetRenderType()
PCRenderType.raw
, PCRenderType.markdown
or null if
snippet is nullpublic PCTransaction.TransactionType getType()
PCTransaction.TransactionType
valuespublic byte[] getCmsAuthenticatedAttributes()
PCTransaction.TransactionType.CMS
it is normally not null, for other transactions it is always
null.@Deprecated public byte[] getDownloadedBinaryData()
getStoredBinaryData()
instead.public java.io.File getStoredBinaryData()
public boolean isAutosignEnabled()
PCAutoSigner
public boolean hasBinaryData()
PCTransactionsManager.getTransactionBinaryData(PCUser, PCTransaction, PCGetTransactionBinaryDataCallback)
.public java.lang.String getTransactionVersion()
public java.lang.String getAppExtra()
public PCDataProvider toDataProvider(PCUser user, long time)
public java.lang.String toString()
toString
in class java.lang.Object