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.
84 lines
3.3 KiB
Swift
84 lines
3.3 KiB
Swift
//
|
|
// AccView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct AccView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Basis is the qualification category: income, net_worth, professional_license, or entity. */
|
|
public var basis: String?
|
|
/** CreatedAt is the unix second the record was created. */
|
|
public var createdAt: Int64?
|
|
/** EvidenceDocID references an evidence document in the org's sealed data room. */
|
|
public var evidenceDocId: String?
|
|
/** ExpiresAt is the unix second a confirmation ages out; 0 means none. */
|
|
public var expiresAt: Int64?
|
|
/** ID is the accreditation record's opaque id. */
|
|
public var id: String?
|
|
/** Method is how the state was established: self_attested, third_party_letter, or provider_verified. */
|
|
public var method: String?
|
|
/** Note is a non-PII operator note. */
|
|
public var note: String?
|
|
/** ReviewerSub is the org user who recorded a decision on this record. */
|
|
public var reviewerSub: String?
|
|
/** Status is the tracked state: asserted, provider_verified, reviewer_confirmed, rejected, or expired. */
|
|
public var status: String?
|
|
/** SubjectID is the opaque id of the subject the record is about. */
|
|
public var subjectId: String?
|
|
/** UpdatedAt is the unix second the record last changed. */
|
|
public var updatedAt: Int64?
|
|
|
|
public init(basis: String? = nil, createdAt: Int64? = nil, evidenceDocId: String? = nil, expiresAt: Int64? = nil, id: String? = nil, method: String? = nil, note: String? = nil, reviewerSub: String? = nil, status: String? = nil, subjectId: String? = nil, updatedAt: Int64? = nil) {
|
|
self.basis = basis
|
|
self.createdAt = createdAt
|
|
self.evidenceDocId = evidenceDocId
|
|
self.expiresAt = expiresAt
|
|
self.id = id
|
|
self.method = method
|
|
self.note = note
|
|
self.reviewerSub = reviewerSub
|
|
self.status = status
|
|
self.subjectId = subjectId
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case basis
|
|
case createdAt
|
|
case evidenceDocId
|
|
case expiresAt
|
|
case id
|
|
case method
|
|
case note
|
|
case reviewerSub
|
|
case status
|
|
case subjectId
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(basis, forKey: .basis)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(evidenceDocId, forKey: .evidenceDocId)
|
|
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(method, forKey: .method)
|
|
try container.encodeIfPresent(note, forKey: .note)
|
|
try container.encodeIfPresent(reviewerSub, forKey: .reviewerSub)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(subjectId, forKey: .subjectId)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension AccView: Identifiable {}
|