STRUCT

BankIdClientOperationActionModel

Contents

public struct BankIdClientOperationActionModel: ClientOperationActionModelRepresentation,
                                                InternalClientOperationActionModelRepresentation

Model for the BankID client operation, which 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

name

public let name: ClientOperationName

arguments

public let arguments: [String: (any Sendable)]

continueActions

public let continueActions: [any Action]

errorActions

public let errorActions: [any Action]

autoStartToken

public let autoStartToken: String

The token that can be used if the client itself creates the launch URL.

redirect

public let redirect: String

The redirect URI that can be used if the client itself creates the launch URL.

href

public let href: String

A ready-to-use URL to launch the BankID application.

Methods

urlToLaunch(redirectTo:)

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

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

Parameters

Name Description
redirectTo The String to which the browser should redirect after the external browser flow is complete (deep link)

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

==(::)

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

Parameters

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