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

54 lines
1.8 KiB
Swift

//
// MyReferralView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct MyReferralView: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is when the referral was recorded, as a Unix timestamp. */
public var createdAt: Int64?
/** ID is the referral's handle. */
public var id: String?
/** QualifiedAt is when the referee first made metered spend, as a Unix timestamp; 0 while the referral is still pending. */
public var qualifiedAt: Int64?
/** Referee is the org that signed up with my code. */
public var referee: String?
/** Status is the referral's lifecycle state: \"signup\" until the referee makes metered spend, then \"qualified\". */
public var status: String?
public init(createdAt: Int64? = nil, id: String? = nil, qualifiedAt: Int64? = nil, referee: String? = nil, status: String? = nil) {
self.createdAt = createdAt
self.id = id
self.qualifiedAt = qualifiedAt
self.referee = referee
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case id
case qualifiedAt
case referee
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(qualifiedAt, forKey: .qualifiedAt)
try container.encodeIfPresent(referee, forKey: .referee)
try container.encodeIfPresent(status, forKey: .status)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension MyReferralView: Identifiable {}