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.
61 lines
2.3 KiB
Swift
61 lines
2.3 KiB
Swift
//
|
|
// AccreditationReq.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct AccreditationReq: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Basis is the qualification category: income, net_worth, professional_license, or entity. */
|
|
public var basis: String?
|
|
/** 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?
|
|
/** 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?
|
|
/** Status may only be \"asserted\" (empty reads as asserted); every confirmed, rejected or expired state is recorded via the decision endpoint. */
|
|
public var status: String?
|
|
/** SubjectID names the subject this record is about; it must exist within the org. */
|
|
public var subjectId: String?
|
|
|
|
public init(basis: String? = nil, evidenceDocId: String? = nil, expiresAt: Int64? = nil, method: String? = nil, note: String? = nil, status: String? = nil, subjectId: String? = nil) {
|
|
self.basis = basis
|
|
self.evidenceDocId = evidenceDocId
|
|
self.expiresAt = expiresAt
|
|
self.method = method
|
|
self.note = note
|
|
self.status = status
|
|
self.subjectId = subjectId
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case basis
|
|
case evidenceDocId
|
|
case expiresAt
|
|
case method
|
|
case note
|
|
case status
|
|
case subjectId
|
|
}
|
|
|
|
// 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(evidenceDocId, forKey: .evidenceDocId)
|
|
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
|
|
try container.encodeIfPresent(method, forKey: .method)
|
|
try container.encodeIfPresent(note, forKey: .note)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(subjectId, forKey: .subjectId)
|
|
}
|
|
}
|
|
|