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

46 lines
1.7 KiB
Swift

//
// AffiliateLinks.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AffiliateLinks: Sendable, Codable, ParameterConvertible, Hashable {
/** IsAffiliate says whether the caller org has an affiliate record. On false only maxLinks comes back — there are no links, and there is no link to mint until the org applies and is approved. */
public var isAffiliate: Bool?
/** Links is the caller's share links, each with its URL and funnel. */
public var links: [CodeView]?
/** MaxLinks is how many share links one affiliate may hold. */
public var maxLinks: Int64?
/** Status is the caller's affiliate status: \"applied\", \"approved\" or \"suspended\"; absent for a non-affiliate. Minting a link requires \"approved\", because a link that cannot accrue quietly loses the referral. */
public var status: String?
public init(isAffiliate: Bool? = nil, links: [CodeView]? = nil, maxLinks: Int64? = nil, status: String? = nil) {
self.isAffiliate = isAffiliate
self.links = links
self.maxLinks = maxLinks
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case isAffiliate
case links
case maxLinks
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(isAffiliate, forKey: .isAffiliate)
try container.encodeIfPresent(links, forKey: .links)
try container.encodeIfPresent(maxLinks, forKey: .maxLinks)
try container.encodeIfPresent(status, forKey: .status)
}
}