Links
struct Links : Codable, Equatable
HAL links to related resources in the context of a RequestOTPResponse
.
-
HAL link to the resource itself.
Declaration
Swift
public let linksSelf: ResponseLink
-
HAL link to resend the OTP request.
Declaration
Swift
public let resendOtp: ResponseLink
-
HAL link to respond to the challenge.
Declaration
Swift
public let respondToChallenge: ResponseLink
-
Creates an instance of
Links
with the specified properties.Declaration
Swift
public init(linksSelf: ResponseLink, resendOtp: ResponseLink, respondToChallenge: ResponseLink)
Parameters
linksSelf
HAL link to the resource itself.
resendOtp
HAL link to resend the OTP request.
respondToChallenge
HAL link to respond to the challenge.
-
A stub instance of
RequestOTPResponse.Links
for testing purposes.Declaration
Swift
static let stub: RequestOTPResponse.Links