mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
95 lines
4.4 KiB
Swift
95 lines
4.4 KiB
Swift
//
|
|
// CaptableShareIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CaptableShareIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var boardApprovalDate: JSONValue?
|
|
public var capitalContribution: JSONValue?
|
|
public var certificateId: JSONValue?
|
|
public var cliffYears: JSONValue?
|
|
/** CompanyLegends are the restrictive legends printed on the certificate. A LIST, and it must be sent as one: the bundle substitutes an EMPTY list for anything that is not an array, so a single string would be accepted and silently discarded — the certificate issued with no legends and nothing reporting it. */
|
|
public var companyLegends: [JSONValue]?
|
|
public var debtCancelled: JSONValue?
|
|
public var ipContribution: JSONValue?
|
|
public var issueDate: JSONValue?
|
|
public var otherContributions: JSONValue?
|
|
public var pricePerShare: JSONValue?
|
|
public var quantity: JSONValue?
|
|
public var rule144Date: JSONValue?
|
|
public var shareClassId: JSONValue?
|
|
public var stakeholderId: JSONValue?
|
|
public var status: JSONValue?
|
|
public var vestingStartDate: JSONValue?
|
|
public var vestingYears: JSONValue?
|
|
|
|
public init(boardApprovalDate: JSONValue? = nil, capitalContribution: JSONValue? = nil, certificateId: JSONValue? = nil, cliffYears: JSONValue? = nil, companyLegends: [JSONValue]? = nil, debtCancelled: JSONValue? = nil, ipContribution: JSONValue? = nil, issueDate: JSONValue? = nil, otherContributions: JSONValue? = nil, pricePerShare: JSONValue? = nil, quantity: JSONValue? = nil, rule144Date: JSONValue? = nil, shareClassId: JSONValue? = nil, stakeholderId: JSONValue? = nil, status: JSONValue? = nil, vestingStartDate: JSONValue? = nil, vestingYears: JSONValue? = nil) {
|
|
self.boardApprovalDate = boardApprovalDate
|
|
self.capitalContribution = capitalContribution
|
|
self.certificateId = certificateId
|
|
self.cliffYears = cliffYears
|
|
self.companyLegends = companyLegends
|
|
self.debtCancelled = debtCancelled
|
|
self.ipContribution = ipContribution
|
|
self.issueDate = issueDate
|
|
self.otherContributions = otherContributions
|
|
self.pricePerShare = pricePerShare
|
|
self.quantity = quantity
|
|
self.rule144Date = rule144Date
|
|
self.shareClassId = shareClassId
|
|
self.stakeholderId = stakeholderId
|
|
self.status = status
|
|
self.vestingStartDate = vestingStartDate
|
|
self.vestingYears = vestingYears
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case boardApprovalDate
|
|
case capitalContribution
|
|
case certificateId
|
|
case cliffYears
|
|
case companyLegends
|
|
case debtCancelled
|
|
case ipContribution
|
|
case issueDate
|
|
case otherContributions
|
|
case pricePerShare
|
|
case quantity
|
|
case rule144Date
|
|
case shareClassId
|
|
case stakeholderId
|
|
case status
|
|
case vestingStartDate
|
|
case vestingYears
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(boardApprovalDate, forKey: .boardApprovalDate)
|
|
try container.encodeIfPresent(capitalContribution, forKey: .capitalContribution)
|
|
try container.encodeIfPresent(certificateId, forKey: .certificateId)
|
|
try container.encodeIfPresent(cliffYears, forKey: .cliffYears)
|
|
try container.encodeIfPresent(companyLegends, forKey: .companyLegends)
|
|
try container.encodeIfPresent(debtCancelled, forKey: .debtCancelled)
|
|
try container.encodeIfPresent(ipContribution, forKey: .ipContribution)
|
|
try container.encodeIfPresent(issueDate, forKey: .issueDate)
|
|
try container.encodeIfPresent(otherContributions, forKey: .otherContributions)
|
|
try container.encodeIfPresent(pricePerShare, forKey: .pricePerShare)
|
|
try container.encodeIfPresent(quantity, forKey: .quantity)
|
|
try container.encodeIfPresent(rule144Date, forKey: .rule144Date)
|
|
try container.encodeIfPresent(shareClassId, forKey: .shareClassId)
|
|
try container.encodeIfPresent(stakeholderId, forKey: .stakeholderId)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(vestingStartDate, forKey: .vestingStartDate)
|
|
try container.encodeIfPresent(vestingYears, forKey: .vestingYears)
|
|
}
|
|
}
|
|
|