PCSDKModule Documentation

Structure PCOperation

public struct PCOperation: Decodable  

Struct which contains group of transactions

This class represents the operation which regularly includes several transactions in a group. You can confirm or decline the whole group of transactions with one request or process just a part of operation which can include both some transactions to be confirmed and some transactions to be declined.

You normally do not construct any operations, but receive already constructed objects like in PCOperationsManager.getOperation(...) method.

PCOperation PCOperation Decodable Decodable PCOperation->Decodable Equatable Equatable PCOperation->Equatable

Nested Types

PCOperation.Description

Conforms To

Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Properties

operation​ID

public let operationID: String

Unique operation identifier

description

public let description: Description? 

Operation description container

system​ID

public let systemID: String

The system's identifier

user​ID

public let userID: String

User's identifier, the operation is assigned to

app​Extra

public let appExtra: [String: Any]? 

The app's extra information

transactions

public let transactions: [PCTransaction] 

The list of transactions included to the operation. It always contains only the transactions which are not processed yet

Operators

==

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