mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
79 lines
3.2 KiB
Swift
79 lines
3.2 KiB
Swift
//
|
|
// CheckView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CheckView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is the unix second the verification was started. */
|
|
public var createdAt: Int64?
|
|
/** DecidedAt is the unix second a terminal status was recorded. */
|
|
public var decidedAt: Int64?
|
|
/** DecidedBy records who settled a terminal status: the provider name, or a reviewer's user id for a recorded manual decision. */
|
|
public var decidedBy: String?
|
|
/** ID is the verification's opaque id. */
|
|
public var id: String?
|
|
/** Kind is the party type: \"individual\" (KYC) or \"business\" (KYB). */
|
|
public var kind: String?
|
|
/** Provider is the verification provider this check runs through. */
|
|
public var provider: String?
|
|
/** Status is the check's state: pending, provider_verified, provider_rejected, manual_review, or expired (provider-reported), or reviewer_confirmed — the one value a privileged human reviewer records, never a provider. */
|
|
public var status: String?
|
|
/** SubjectID is the opaque id of the subject under verification. */
|
|
public var subjectId: String?
|
|
/** UpdatedAt is the unix second the verification last changed. */
|
|
public var updatedAt: Int64?
|
|
/** VerifyURL is the provider's hosted verification flow for the subject, when one exists. */
|
|
public var verifyUrl: String?
|
|
|
|
public init(createdAt: Int64? = nil, decidedAt: Int64? = nil, decidedBy: String? = nil, id: String? = nil, kind: String? = nil, provider: String? = nil, status: String? = nil, subjectId: String? = nil, updatedAt: Int64? = nil, verifyUrl: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.decidedAt = decidedAt
|
|
self.decidedBy = decidedBy
|
|
self.id = id
|
|
self.kind = kind
|
|
self.provider = provider
|
|
self.status = status
|
|
self.subjectId = subjectId
|
|
self.updatedAt = updatedAt
|
|
self.verifyUrl = verifyUrl
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case decidedAt
|
|
case decidedBy
|
|
case id
|
|
case kind
|
|
case provider
|
|
case status
|
|
case subjectId
|
|
case updatedAt
|
|
case verifyUrl
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(decidedAt, forKey: .decidedAt)
|
|
try container.encodeIfPresent(decidedBy, forKey: .decidedBy)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(kind, forKey: .kind)
|
|
try container.encodeIfPresent(provider, forKey: .provider)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(subjectId, forKey: .subjectId)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(verifyUrl, forKey: .verifyUrl)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CheckView: Identifiable {}
|