STRUCT
BankIdClientOperationStep
Contents
- Properties
activationLinkactionModelactionsmetadatamessageslinkspropertiesrawJsonStringtypecontinueActionserrorActions
- Methods
urlToLaunch(redirectTo:)init(from:)encode(to:)==(_:_:)
public struct BankIdClientOperationStep: ClientOperationStep
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.
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.
metadata
public let metadata: Metadata?
messages
public let messages: [UserMessage]
links
public let links: [Link]
properties
public let properties: (any Properties)?
rawJsonString
public let rawJsonString: String?
type
public let type: RepresentationType
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
urlToLaunch(redirectTo:)
public func urlToLaunch(redirectTo: String) -> URL?
Returns the URL that should be used to open the BankID application.
- Parameters:
- redirectTo: A String that represents a redirection to your application (deeplink).
Parameters
| Name | Description |
|---|---|
| redirectTo | A String that represents a redirection to your application (deeplink). |
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. |