PCSDKModule Documentation

Structure PCTransaction

public struct PCTransaction  

The struct that holds information about a transaction

PCTransaction PCTransaction Decodable Decodable PCTransaction->Decodable CustomStringConvertible CustomStringConvertible PCTransaction->CustomStringConvertible Equatable Equatable PCTransaction->Equatable

Conforms To

CustomStringConvertible
Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Properties

transaction​ID

public let transactionID: String

Transaction identifier generated by the PContol System

user​ID

public let userID: String

User's identifier for this transaction

system​ID

public let systemID: String

The system's identifier

confirmation​Code​Length

public let confirmationCodeLength: Int

Length of the short confirmation code for offline mode

extended​Check

public let extendedCheck: Bool

Returns true if extended authentication is required to confirm transaction

confirmation​Type

public private(set) var confirmationType: PCConfirmationType

Transaction's confirmation type. Can be Push of Offline

text

public let text: String? 

Transaction's text data

snippet

public let snippet: Snippet? 

Transaction's snippet

app​Extra

public let appExtra: [String: Any]? 

The app's extra information

has​Binary​Data

public var hasBinaryData: Bool  

Returns true if the transaction has binary data

downloaded​Binary​Data

public 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.

stored​Binary​Data​URL

public 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.

text​Render​Type

public let textRenderType: TextRenderType

The render type of the text

type

public let type: TransactionType

The type of the transaction

cms​Authenticated​Attributes

public let cmsAuthenticatedAttributes: Data? 

Cms authenticated attributes

description

public var description: String  

Operators

==

public static func == (lhs: PCTransaction, rhs: PCTransaction) -> Bool