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

49 lines
1.3 KiB
Swift

//
// SubscriptionPlan.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SubscriptionPlan: Sendable, Codable, ParameterConvertible, Hashable {
public var currency: String?
public var id: String?
public var interval: String?
public var name: String?
public var price: Int64?
public init(currency: String? = nil, id: String? = nil, interval: String? = nil, name: String? = nil, price: Int64? = nil) {
self.currency = currency
self.id = id
self.interval = interval
self.name = name
self.price = price
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case currency
case id
case interval
case name
case price
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(interval, forKey: .interval)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(price, forKey: .price)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension SubscriptionPlan: Identifiable {}