VerifiedIdentity
public struct VerifiedIdentity
Represents verified identity details obtained via verifyIdentity
API.
-
User ID of the user who provided identity details for verification.
Declaration
Swift
public let owner: String
-
true
if the identity was verified successfully.Declaration
Swift
public let verified: Bool
-
Date and time at which the identity was verified.
Declaration
Swift
public let verifiedAt: Date?
-
Verification method used.
Declaration
Swift
public let verificationMethod: VerificationMethod
-
Indicates whether or not identity verification can be attempted again for this user. Set to false in cases where the maximum number of attempts has been reached or a finding from the identity verification attempt means that it should not proceed.
Declaration
Swift
public let canAttemptVerificationAgain: Bool
-
URL to upload the scanned documents for identity verification.
Declaration
Swift
public let idScanUrl: String?
-
If identity is not verified, indicates required method of verification that the user must go through
Declaration
Swift
public let requiredVerificationMethod: VerificationMethod?
-
Where required verification method is
GOVERNMENT_ID
, lists the set of acceptable ID document types that can be presented to verify the identityDeclaration
Swift
public let acceptableDocumentTypes: [IdDocumentType]
-
Indicates the status of verification of submitted ID documents
Declaration
Swift
public let documentVerificationStatus: DocumentVerificationStatus
-
Date and time when verification was last attempted for this identity.
Declaration
Swift
public let verificationLastAttemptedAt: Date?
-
init(owner:
verified: verifiedAt: verificationMethod: canAttemptVerificationAgain: idScanUrl: requiredVerificationMethod: acceptableDocumentTypes: documentVerificationStatus: verificationLastAttemptedAt: ) Initializes a
VerifiedIdentity
instance.Declaration
Swift
public init( owner: String, verified: Bool, verifiedAt: Date? = nil, verificationMethod: VerificationMethod, canAttemptVerificationAgain: Bool, idScanUrl: String? = nil, requiredVerificationMethod: VerificationMethod? = nil, acceptableDocumentTypes: [IdDocumentType] = [], documentVerificationStatus: DocumentVerificationStatus = .notRequired, verificationLastAttemptedAt: Date? = nil )
Parameters
owner
User ID of the user who provided identity details for verification.
verified
Indicates whether or not the identity has been verified.
verifiedAt
Date and time at which the identity was verified.
verificationMethod
Verification method used.
canAttemptVerificationAgain
Indicates whether or not the user can attempt to verify their identity again.
idScanUrl
URL to upload the scanned documents for identity verification.
requiredVerificationMethod
Required verification method to use if not verified
acceptableDocumentTypes
Array of acceptable ID document types if required verification method is GOVERNMENT_ID
documentVerificationStatus
Status of ongoing ID document verification
verificationLastAttemptedAt
Date and time when verification was last attempted for this identity.