Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

84 lines
3.2 KiB
Swift

//
// CaptableRound.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableRound: Sendable, Codable, ParameterConvertible, Hashable {
/** CloseDate is the ISO date the round closed, once it has. */
public var closeDate: String?
/** CreatedAt is when the round was recorded, in unix milliseconds. */
public var createdAt: Int64?
/** ID is the round id. */
public var id: String?
/** Name is the round name, e.g. \"Series A\". */
public var name: String?
/** PreMoneyValuation is the pre-money valuation, for a priced round. */
public var preMoneyValuation: Double?
/** PricePerShare is the price per share, for a priced round. */
public var pricePerShare: Double?
/** RaisedAmount is how much has been invested so far. */
public var raisedAmount: Double?
/** RoundType is PRICED, SAFE or CONVERTIBLE_NOTE. */
public var roundType: String?
/** ShareClassID is the class a priced round issues into. */
public var shareClassId: String?
/** Status is OPEN or CLOSED. */
public var status: String?
/** TargetAmount is how much the round set out to raise. */
public var targetAmount: Double?
public init(closeDate: String? = nil, createdAt: Int64? = nil, id: String? = nil, name: String? = nil, preMoneyValuation: Double? = nil, pricePerShare: Double? = nil, raisedAmount: Double? = nil, roundType: String? = nil, shareClassId: String? = nil, status: String? = nil, targetAmount: Double? = nil) {
self.closeDate = closeDate
self.createdAt = createdAt
self.id = id
self.name = name
self.preMoneyValuation = preMoneyValuation
self.pricePerShare = pricePerShare
self.raisedAmount = raisedAmount
self.roundType = roundType
self.shareClassId = shareClassId
self.status = status
self.targetAmount = targetAmount
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case closeDate
case createdAt
case id
case name
case preMoneyValuation
case pricePerShare
case raisedAmount
case roundType
case shareClassId
case status
case targetAmount
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(closeDate, forKey: .closeDate)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(preMoneyValuation, forKey: .preMoneyValuation)
try container.encodeIfPresent(pricePerShare, forKey: .pricePerShare)
try container.encodeIfPresent(raisedAmount, forKey: .raisedAmount)
try container.encodeIfPresent(roundType, forKey: .roundType)
try container.encodeIfPresent(shareClassId, forKey: .shareClassId)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(targetAmount, forKey: .targetAmount)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension CaptableRound: Identifiable {}