mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
56 lines
1.9 KiB
Swift
56 lines
1.9 KiB
Swift
//
|
|
// PlanInfo.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct PlanInfo: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Active is whether that plan's entitlement is live. */
|
|
public var active: Bool?
|
|
/** GuestLimit is the plan's team.guests cap, when the plan carries one. */
|
|
public var guestLimit: Int64?
|
|
/** Guests is how many of those seats are guests. */
|
|
public var guests: Int64?
|
|
/** Plan is the licensed plan id, empty when it cannot be resolved here — an honest dash on the page, never a fabricated tier. */
|
|
public var plan: String?
|
|
/** Seats is the org's distinct active human members. */
|
|
public var seats: Int64?
|
|
/** UpgradeURL is where the page sends a caller who wants a bigger plan. */
|
|
public var upgradeUrl: String?
|
|
|
|
public init(active: Bool? = nil, guestLimit: Int64? = nil, guests: Int64? = nil, plan: String? = nil, seats: Int64? = nil, upgradeUrl: String? = nil) {
|
|
self.active = active
|
|
self.guestLimit = guestLimit
|
|
self.guests = guests
|
|
self.plan = plan
|
|
self.seats = seats
|
|
self.upgradeUrl = upgradeUrl
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case active
|
|
case guestLimit
|
|
case guests
|
|
case plan
|
|
case seats
|
|
case upgradeUrl
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(active, forKey: .active)
|
|
try container.encodeIfPresent(guestLimit, forKey: .guestLimit)
|
|
try container.encodeIfPresent(guests, forKey: .guests)
|
|
try container.encodeIfPresent(plan, forKey: .plan)
|
|
try container.encodeIfPresent(seats, forKey: .seats)
|
|
try container.encodeIfPresent(upgradeUrl, forKey: .upgradeUrl)
|
|
}
|
|
}
|
|
|