Structure
PCTransaction
public struct PCTransaction: Equatable
The struct that holds information about a transaction
Relationships
Nested Types
PCTransaction.TransactionType
The type of the transaction
Conforms To
Decodable
Equatable
Initializers
init(from:)
public init(from decoder: Decoder) throws
:nodoc:
Properties
transactionID
let transactionID: String
Transaction identifier generated by the PContol System
userID
let userID: String
User's identifier for this transaction
systemID
let systemID: String
The system's identifier
confirmationCodeLength
let confirmationCodeLength: Int
Length of the short confirmation code for offline mode
extendedCheck
let extendedCheck: Bool
Returns true
if extended authentication is required to confirm transaction
confirmationType
var confirmationType: PCConfirmationType
Transaction's confirmation type. Can be Push
of Offline
text
let text: String?
Transaction's text data
hasBinaryData
var hasBinaryData: Bool
Returns true if the transaction has binary data
downloadedBinaryData
var downloadedBinaryData: Data?
Transaction's binary data
Contains data from file at storedBinaryDataURL
. It is not recommended to use this variable for large files.
Download binary data using PCTransactionManager.getTransactionBinaryData
method.
You can check the availability of the binary data using the PCTransaction.hasBinaryData
property.
storedBinaryDataURL
var storedBinaryDataURL: URL?
The url to the downloaded transaction's binary data
Download binary data using PCTransactionManager.getTransactionBinaryData
method.
You can check the availability of binary data using the PCTransaction.hasBinaryData
property.
type
let type: TransactionType
The type of the transaction
cmsAuthenticatedAttributes
let cmsAuthenticatedAttributes: Data?
Cms authenticated attributes