Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

84 lines
3.2 KiB
Swift

//
// CaptableNote.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableNote: Sendable, Codable, ParameterConvertible, Hashable {
/** Capital is the principal the investor lent. */
public var capital: Double?
/** ConversionCap is the valuation cap on conversion, if any. */
public var conversionCap: Double?
/** DiscountRate is the discount to the next round's price, if any. */
public var discountRate: Double?
/** ID is the note id. */
public var id: String?
/** InterestRate is the annual interest rate, if any. */
public var interestRate: Double?
/** IssueDate is the ISO date the note was signed. */
public var issueDate: String?
/** PublicID is the note's shareable identifier, unique within the company. */
public var publicId: String?
/** StakeholderID is the investor. */
public var stakeholderId: String?
/** StakeholderName is that investor's name. */
public var stakeholderName: String?
/** Status is the note's state, e.g. DRAFT or ACTIVE. */
public var status: String?
/** Type is the instrument kind, e.g. NOTE. */
public var type: String?
public init(capital: Double? = nil, conversionCap: Double? = nil, discountRate: Double? = nil, id: String? = nil, interestRate: Double? = nil, issueDate: String? = nil, publicId: String? = nil, stakeholderId: String? = nil, stakeholderName: String? = nil, status: String? = nil, type: String? = nil) {
self.capital = capital
self.conversionCap = conversionCap
self.discountRate = discountRate
self.id = id
self.interestRate = interestRate
self.issueDate = issueDate
self.publicId = publicId
self.stakeholderId = stakeholderId
self.stakeholderName = stakeholderName
self.status = status
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case capital
case conversionCap
case discountRate
case id
case interestRate
case issueDate
case publicId
case stakeholderId
case stakeholderName
case status
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(capital, forKey: .capital)
try container.encodeIfPresent(conversionCap, forKey: .conversionCap)
try container.encodeIfPresent(discountRate, forKey: .discountRate)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(interestRate, forKey: .interestRate)
try container.encodeIfPresent(issueDate, forKey: .issueDate)
try container.encodeIfPresent(publicId, forKey: .publicId)
try container.encodeIfPresent(stakeholderId, forKey: .stakeholderId)
try container.encodeIfPresent(stakeholderName, forKey: .stakeholderName)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(type, forKey: .type)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension CaptableNote: Identifiable {}