Files
swift-sdk/Sources/Hanzo/Models/CaptableRoundDetail.swift

36 lines
1.1 KiB
Swift

//
// CaptableRoundDetail.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableRoundDetail: Sendable, Codable, ParameterConvertible, Hashable {
/** Investments is every investment into this round, oldest first. */
public var investments: [CaptableRoundInvestment]?
/** Round is the round's own terms — name, type, valuation, target and status — as against the investments beside it. */
public var round: CaptableRound?
public init(investments: [CaptableRoundInvestment]? = nil, round: CaptableRound? = nil) {
self.investments = investments
self.round = round
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case investments
case round
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(investments, forKey: .investments)
try container.encodeIfPresent(round, forKey: .round)
}
}