Files
swift-sdk/Sources/Hanzo/Models/CaptableClassHolding.swift
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

51 lines
1.6 KiB
Swift

//
// CaptableClassHolding.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableClassHolding: Sendable, Codable, ParameterConvertible, Hashable {
/** Authorized is how many shares of the class are authorized. */
public var authorized: Int64?
/** ClassType is COMMON or PREFERRED. */
public var classType: String?
/** Issued is how many shares of the class have been issued. */
public var issued: Int64?
/** Name is the class name. */
public var name: String?
/** ShareClassID addresses the class this position is for. */
public var shareClassId: String?
public init(authorized: Int64? = nil, classType: String? = nil, issued: Int64? = nil, name: String? = nil, shareClassId: String? = nil) {
self.authorized = authorized
self.classType = classType
self.issued = issued
self.name = name
self.shareClassId = shareClassId
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case authorized
case classType
case issued
case name
case shareClassId
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(authorized, forKey: .authorized)
try container.encodeIfPresent(classType, forKey: .classType)
try container.encodeIfPresent(issued, forKey: .issued)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(shareClassId, forKey: .shareClassId)
}
}