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.
99 lines
4.0 KiB
Swift
99 lines
4.0 KiB
Swift
//
|
|
// CaptableStakeholder.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CaptableStakeholder: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** City is the stakeholder's city, if recorded. */
|
|
public var city: String?
|
|
/** CompanyName is the name of the company whose cap table this is. */
|
|
public var companyName: String?
|
|
/** Country is the stakeholder's two-letter country code. */
|
|
public var country: String?
|
|
/** CreatedAt is when the stakeholder was added, in unix milliseconds. */
|
|
public var createdAt: Int64?
|
|
/** CurrentRelationship is how the stakeholder relates to the company, e.g. FOUNDER, INVESTOR or EMPLOYEE. */
|
|
public var currentRelationship: String?
|
|
/** Email is the stakeholder's email, unique within the company. */
|
|
public var email: String?
|
|
/** ID is the stakeholder id. */
|
|
public var id: String?
|
|
/** InstitutionName names the institution, when the stakeholder is one. */
|
|
public var institutionName: String?
|
|
/** Name is the stakeholder's full name. */
|
|
public var name: String?
|
|
/** StakeholderType is INDIVIDUAL or INSTITUTION. */
|
|
public var stakeholderType: String?
|
|
/** State is the stakeholder's state or province, if recorded. */
|
|
public var state: String?
|
|
/** StreetAddress is the stakeholder's street address, if recorded. */
|
|
public var streetAddress: String?
|
|
/** TaxID is the stakeholder's tax identifier, if recorded. */
|
|
public var taxId: String?
|
|
/** Zipcode is the stakeholder's postal code, if recorded. */
|
|
public var zipcode: String?
|
|
|
|
public init(city: String? = nil, companyName: String? = nil, country: String? = nil, createdAt: Int64? = nil, currentRelationship: String? = nil, email: String? = nil, id: String? = nil, institutionName: String? = nil, name: String? = nil, stakeholderType: String? = nil, state: String? = nil, streetAddress: String? = nil, taxId: String? = nil, zipcode: String? = nil) {
|
|
self.city = city
|
|
self.companyName = companyName
|
|
self.country = country
|
|
self.createdAt = createdAt
|
|
self.currentRelationship = currentRelationship
|
|
self.email = email
|
|
self.id = id
|
|
self.institutionName = institutionName
|
|
self.name = name
|
|
self.stakeholderType = stakeholderType
|
|
self.state = state
|
|
self.streetAddress = streetAddress
|
|
self.taxId = taxId
|
|
self.zipcode = zipcode
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case city
|
|
case companyName
|
|
case country
|
|
case createdAt
|
|
case currentRelationship
|
|
case email
|
|
case id
|
|
case institutionName
|
|
case name
|
|
case stakeholderType
|
|
case state
|
|
case streetAddress
|
|
case taxId
|
|
case zipcode
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(city, forKey: .city)
|
|
try container.encodeIfPresent(companyName, forKey: .companyName)
|
|
try container.encodeIfPresent(country, forKey: .country)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(currentRelationship, forKey: .currentRelationship)
|
|
try container.encodeIfPresent(email, forKey: .email)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(institutionName, forKey: .institutionName)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(stakeholderType, forKey: .stakeholderType)
|
|
try container.encodeIfPresent(state, forKey: .state)
|
|
try container.encodeIfPresent(streetAddress, forKey: .streetAddress)
|
|
try container.encodeIfPresent(taxId, forKey: .taxId)
|
|
try container.encodeIfPresent(zipcode, forKey: .zipcode)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CaptableStakeholder: Identifiable {}
|