STRUCT

BankIdClientOperationStep

Contents

public struct BankIdClientOperationStep: ClientOperationStep, Equatable

A step that instructs a client that the BankID native application should be used to continue the flow.

For more information, refer to the HAAPI Data Model documentation.

Properties

activationLink

public let activationLink: Link?

The activation link for BankId. This Link has to be transformed into a QRCode image.

actionModel

public let actionModel: BankIdClientOperationActionModel

The BankID action details.

metadata

public let metadata: Metadata?

type

public let type: RepresentationType

actions

public let actions: [Action]

An array of Action that contains possible actions a user or the client may choose to take to continue the flow.

links

public let links: [Link]

messages

public let messages: [UserMessage]

properties

public let properties: Properties?

continueActions

public var continueActions: [Action]

Returns the actions that should be displayed when the BankID application has been opened.

errorActions

public var errorActions: [Action]

Returns the actions that should to be displayed when the BankID application could not be opened.

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

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

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.

urlToLaunch(redirectTo:)

public func urlToLaunch(redirectTo: String) -> URL?

Returns the URL that should be used to open the BankID application.

Parameters

Name Description
redirectTo A String that represents a redirection to your application (deeplink).