STRUCT

BankIdClientOperationStep

Contents

swift
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

swift
public let activationLink: Link?

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

actionModel

swift
public let actionModel: BankIdClientOperationActionModel

The BankID action details.

metadata

swift
public let metadata: Metadata?

type

swift
public let type: RepresentationType

actions

swift
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

swift
public let links: [Link]

messages

swift
public let messages: [UserMessage]

properties

swift
public let properties: Properties?

continueActions

swift
public var continueActions: [Action]

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

errorActions

swift
public var errorActions: [Action]

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

Methods

init(from:)

swift
public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

swift
public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

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

Parameters

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

urlToLaunch(redirectTo:)

swift
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).