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

46 lines
1.6 KiB
Swift

//
// CaptableTransferred.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableTransferred: Sendable, Codable, ParameterConvertible, Hashable {
/** Message is the human sentence the cap table wrote, e.g. \"Share transferred\". */
public var message: String?
/** NewShareID names the certificate a PARTIAL transfer created. It is null on a full transfer, which reassigns the existing certificate instead of splitting it — so null here means \"no new certificate\", never \"the transfer failed\". */
public var newShareId: String?
/** Success is true when the transfer was applied. */
public var success: Bool?
/** Transferred is how many shares moved. */
public var transferred: Int64?
public init(message: String? = nil, newShareId: String? = nil, success: Bool? = nil, transferred: Int64? = nil) {
self.message = message
self.newShareId = newShareId
self.success = success
self.transferred = transferred
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case message
case newShareId
case success
case transferred
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(message, forKey: .message)
try container.encodeIfPresent(newShareId, forKey: .newShareId)
try container.encodeIfPresent(success, forKey: .success)
try container.encodeIfPresent(transferred, forKey: .transferred)
}
}