PCSDKModule Documentation Beta

Structure PCTransaction

public struct PCTransaction: Equatable

The struct that holds information about a transaction

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

Nested Types

PCTransaction.TransactionType

The type of the transaction

Conforms To

Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws

:nodoc:

Properties

transaction​ID

let transactionID: String

Transaction identifier generated by the PContol System

user​ID

let userID: String

User's identifier for this transaction

system​ID

let systemID: String

The system's identifier

confirmation​Code​Length

let confirmationCodeLength: Int

Length of the short confirmation code for offline mode

extended​Check

let extendedCheck: Bool

Returns true if extended authentication is required to confirm transaction

confirmation​Type

var confirmationType: PCConfirmationType

Transaction's confirmation type. Can be Push of Offline

text

let text: String?

Transaction's text data

snippet

let snippet: Snippet?

Transaction's snippet

has​Binary​Data

var hasBinaryData: Bool

Returns true if the transaction has binary data

downloaded​Binary​Data

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

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

let textRenderType: TextRenderType

The render type of the text

type

let type: TransactionType

The type of the transaction

cms​Authenticated​Attributes

let cmsAuthenticatedAttributes: Data?

Cms authenticated attributes