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.
69 lines
2.7 KiB
Swift
69 lines
2.7 KiB
Swift
//
|
|
// CaptableCompany.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CaptableCompany: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the company row was seeded, in unix milliseconds. */
|
|
public var createdAt: Int64?
|
|
/** ID is the company id, which is the tenant's own org id. */
|
|
public var id: String?
|
|
/** IncorporationCountry is the ISO country the entity is incorporated in. */
|
|
public var incorporationCountry: String?
|
|
/** IncorporationState is the state or province of incorporation. */
|
|
public var incorporationState: String?
|
|
/** IncorporationType is the entity kind, e.g. LLC or C_CORP. */
|
|
public var incorporationType: String?
|
|
/** Name is the company's legal name. */
|
|
public var name: String?
|
|
/** PublicID is the company's shareable public identifier. */
|
|
public var publicId: String?
|
|
/** UpdatedAt is when the company row last changed, in unix milliseconds. */
|
|
public var updatedAt: Int64?
|
|
|
|
public init(createdAt: Int64? = nil, id: String? = nil, incorporationCountry: String? = nil, incorporationState: String? = nil, incorporationType: String? = nil, name: String? = nil, publicId: String? = nil, updatedAt: Int64? = nil) {
|
|
self.createdAt = createdAt
|
|
self.id = id
|
|
self.incorporationCountry = incorporationCountry
|
|
self.incorporationState = incorporationState
|
|
self.incorporationType = incorporationType
|
|
self.name = name
|
|
self.publicId = publicId
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case id
|
|
case incorporationCountry
|
|
case incorporationState
|
|
case incorporationType
|
|
case name
|
|
case publicId
|
|
case updatedAt
|
|
}
|
|
|
|
// 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(id, forKey: .id)
|
|
try container.encodeIfPresent(incorporationCountry, forKey: .incorporationCountry)
|
|
try container.encodeIfPresent(incorporationState, forKey: .incorporationState)
|
|
try container.encodeIfPresent(incorporationType, forKey: .incorporationType)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(publicId, forKey: .publicId)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CaptableCompany: Identifiable {}
|