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

//
// ClaimView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ClaimView: Sendable, Codable, ParameterConvertible, Hashable {
/** Code is the referral code the referral was recorded against. */
public var code: String?
/** Created is true when this call recorded the referral and false when it found one already recorded for this referee — the idempotent replay. */
public var created: Bool?
/** CreatedAt is when the referral was first recorded, as a Unix timestamp. */
public var createdAt: Int64?
/** ID is the referral's handle. */
public var id: String?
/** Status is the referral's lifecycle state: \"signup\" until the referee makes metered spend, then \"qualified\", then \"credited\". */
public var status: String?
public init(code: String? = nil, created: Bool? = nil, createdAt: Int64? = nil, id: String? = nil, status: String? = nil) {
self.code = code
self.created = created
self.createdAt = createdAt
self.id = id
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case code
case created
case createdAt
case id
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(code, forKey: .code)
try container.encodeIfPresent(created, forKey: .created)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(status, forKey: .status)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ClaimView: Identifiable {}