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.
94 lines
3.9 KiB
Swift
94 lines
3.9 KiB
Swift
//
|
|
// CaptableShare.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CaptableShare: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CapitalContribution is the cash paid for the certificate, if recorded. */
|
|
public var capitalContribution: Double?
|
|
/** CertificateID is the certificate number, unique within the company. */
|
|
public var certificateId: String?
|
|
/** CompanyLegends are the restrictive legends printed on the certificate. */
|
|
public var companyLegends: [String]?
|
|
/** ID is the share id. */
|
|
public var id: String?
|
|
/** IssueDate is the ISO date the certificate was issued. */
|
|
public var issueDate: String?
|
|
/** PricePerShare is the price paid per share, if recorded. */
|
|
public var pricePerShare: Double?
|
|
/** Quantity is how many shares the certificate covers. */
|
|
public var quantity: Int64?
|
|
/** ShareClassID is the class the shares belong to. */
|
|
public var shareClassId: String?
|
|
/** ShareClassName is that class's name. */
|
|
public var shareClassName: String?
|
|
/** ShareClassType is that class's type, COMMON or PREFERRED. */
|
|
public var shareClassType: String?
|
|
/** StakeholderID is the holder of the certificate. */
|
|
public var stakeholderId: String?
|
|
/** StakeholderName is that holder's name. */
|
|
public var stakeholderName: String?
|
|
/** Status is ACTIVE or DRAFT. */
|
|
public var status: String?
|
|
|
|
public init(capitalContribution: Double? = nil, certificateId: String? = nil, companyLegends: [String]? = nil, id: String? = nil, issueDate: String? = nil, pricePerShare: Double? = nil, quantity: Int64? = nil, shareClassId: String? = nil, shareClassName: String? = nil, shareClassType: String? = nil, stakeholderId: String? = nil, stakeholderName: String? = nil, status: String? = nil) {
|
|
self.capitalContribution = capitalContribution
|
|
self.certificateId = certificateId
|
|
self.companyLegends = companyLegends
|
|
self.id = id
|
|
self.issueDate = issueDate
|
|
self.pricePerShare = pricePerShare
|
|
self.quantity = quantity
|
|
self.shareClassId = shareClassId
|
|
self.shareClassName = shareClassName
|
|
self.shareClassType = shareClassType
|
|
self.stakeholderId = stakeholderId
|
|
self.stakeholderName = stakeholderName
|
|
self.status = status
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case capitalContribution
|
|
case certificateId
|
|
case companyLegends
|
|
case id
|
|
case issueDate
|
|
case pricePerShare
|
|
case quantity
|
|
case shareClassId
|
|
case shareClassName
|
|
case shareClassType
|
|
case stakeholderId
|
|
case stakeholderName
|
|
case status
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(capitalContribution, forKey: .capitalContribution)
|
|
try container.encodeIfPresent(certificateId, forKey: .certificateId)
|
|
try container.encodeIfPresent(companyLegends, forKey: .companyLegends)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(issueDate, forKey: .issueDate)
|
|
try container.encodeIfPresent(pricePerShare, forKey: .pricePerShare)
|
|
try container.encodeIfPresent(quantity, forKey: .quantity)
|
|
try container.encodeIfPresent(shareClassId, forKey: .shareClassId)
|
|
try container.encodeIfPresent(shareClassName, forKey: .shareClassName)
|
|
try container.encodeIfPresent(shareClassType, forKey: .shareClassType)
|
|
try container.encodeIfPresent(stakeholderId, forKey: .stakeholderId)
|
|
try container.encodeIfPresent(stakeholderName, forKey: .stakeholderName)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CaptableShare: Identifiable {}
|