Files
swift-sdk/Sources/Hanzo/Models/CaptableRoundInvestment.swift
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

64 lines
2.2 KiB
Swift

//
// CaptableRoundInvestment.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableRoundInvestment: Sendable, Codable, ParameterConvertible, Hashable {
/** Amount is the cash invested. */
public var amount: Double?
/** Comments is the note recorded with the cheque, if any. */
public var comments: String?
/** Date is the ISO date of the investment. */
public var date: String?
/** ID is the investment id. */
public var id: String?
/** Shares is how many shares the investment bought; 0 when the round issues no equity at the time of investment. */
public var shares: Int64?
/** StakeholderID is the investor. */
public var stakeholderId: String?
/** StakeholderName is that investor's name. */
public var stakeholderName: String?
public init(amount: Double? = nil, comments: String? = nil, date: String? = nil, id: String? = nil, shares: Int64? = nil, stakeholderId: String? = nil, stakeholderName: String? = nil) {
self.amount = amount
self.comments = comments
self.date = date
self.id = id
self.shares = shares
self.stakeholderId = stakeholderId
self.stakeholderName = stakeholderName
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case amount
case comments
case date
case id
case shares
case stakeholderId
case stakeholderName
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(amount, forKey: .amount)
try container.encodeIfPresent(comments, forKey: .comments)
try container.encodeIfPresent(date, forKey: .date)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(shares, forKey: .shares)
try container.encodeIfPresent(stakeholderId, forKey: .stakeholderId)
try container.encodeIfPresent(stakeholderName, forKey: .stakeholderName)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension CaptableRoundInvestment: Identifiable {}