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
//
|
|
// CaptableOption.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CaptableOption: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CliffYears is how many years before any of the grant vests. */
|
|
public var cliffYears: Int64?
|
|
/** EquityPlanID is the plan the grant draws from. */
|
|
public var equityPlanId: String?
|
|
/** EquityPlanName is that plan's name. */
|
|
public var equityPlanName: String?
|
|
/** ExercisePrice is the strike price per share. */
|
|
public var exercisePrice: Double?
|
|
/** ExpirationDate is the ISO date the grant expires. */
|
|
public var expirationDate: String?
|
|
/** GrantID is the grant number, unique within the company. */
|
|
public var grantId: String?
|
|
/** ID is the option id. */
|
|
public var id: String?
|
|
/** IssueDate is the ISO date the grant was issued. */
|
|
public var issueDate: String?
|
|
/** Quantity is how many shares the grant covers. */
|
|
public var quantity: Int64?
|
|
/** StakeholderID is the grantee. */
|
|
public var stakeholderId: String?
|
|
/** StakeholderName is that grantee's name. */
|
|
public var stakeholderName: String?
|
|
/** Status is the grant's state, e.g. DRAFT, ACTIVE, EXERCISED, EXPIRED or CANCELLED. Only non-terminal grants dilute the cap table. */
|
|
public var status: String?
|
|
/** Type is the grant kind, ISO or NSO. */
|
|
public var type: String?
|
|
/** VestingYears is the total vesting period in years. */
|
|
public var vestingYears: Int64?
|
|
|
|
public init(cliffYears: Int64? = nil, equityPlanId: String? = nil, equityPlanName: String? = nil, exercisePrice: Double? = nil, expirationDate: String? = nil, grantId: String? = nil, id: String? = nil, issueDate: String? = nil, quantity: Int64? = nil, stakeholderId: String? = nil, stakeholderName: String? = nil, status: String? = nil, type: String? = nil, vestingYears: Int64? = nil) {
|
|
self.cliffYears = cliffYears
|
|
self.equityPlanId = equityPlanId
|
|
self.equityPlanName = equityPlanName
|
|
self.exercisePrice = exercisePrice
|
|
self.expirationDate = expirationDate
|
|
self.grantId = grantId
|
|
self.id = id
|
|
self.issueDate = issueDate
|
|
self.quantity = quantity
|
|
self.stakeholderId = stakeholderId
|
|
self.stakeholderName = stakeholderName
|
|
self.status = status
|
|
self.type = type
|
|
self.vestingYears = vestingYears
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case cliffYears
|
|
case equityPlanId
|
|
case equityPlanName
|
|
case exercisePrice
|
|
case expirationDate
|
|
case grantId
|
|
case id
|
|
case issueDate
|
|
case quantity
|
|
case stakeholderId
|
|
case stakeholderName
|
|
case status
|
|
case type
|
|
case vestingYears
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(cliffYears, forKey: .cliffYears)
|
|
try container.encodeIfPresent(equityPlanId, forKey: .equityPlanId)
|
|
try container.encodeIfPresent(equityPlanName, forKey: .equityPlanName)
|
|
try container.encodeIfPresent(exercisePrice, forKey: .exercisePrice)
|
|
try container.encodeIfPresent(expirationDate, forKey: .expirationDate)
|
|
try container.encodeIfPresent(grantId, forKey: .grantId)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(issueDate, forKey: .issueDate)
|
|
try container.encodeIfPresent(quantity, forKey: .quantity)
|
|
try container.encodeIfPresent(stakeholderId, forKey: .stakeholderId)
|
|
try container.encodeIfPresent(stakeholderName, forKey: .stakeholderName)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(vestingYears, forKey: .vestingYears)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CaptableOption: Identifiable {}
|