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

56 lines
2.0 KiB
Swift

//
// Upkeep.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Upkeep: Sendable, Codable, ParameterConvertible, Hashable {
/** AtLeast reports that some obligation is a minimum, so YearlyCents is a floor rather than a final figure. */
public var atLeast: Bool?
/** Currency is the ISO code every amount here is denominated in. */
public var currency: String?
/** Jurisdiction is the state whose obligations these are. */
public var jurisdiction: String?
/** Obligations are the recurring charges, in the order a reader should see them. */
public var obligations: [Obligation]?
/** Structure is the entity this prices. */
public var structure: String?
/** YearlyCents is what the entity owes every year, all obligations summed. */
public var yearlyCents: Int64?
public init(atLeast: Bool? = nil, currency: String? = nil, jurisdiction: String? = nil, obligations: [Obligation]? = nil, structure: String? = nil, yearlyCents: Int64? = nil) {
self.atLeast = atLeast
self.currency = currency
self.jurisdiction = jurisdiction
self.obligations = obligations
self.structure = structure
self.yearlyCents = yearlyCents
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case atLeast
case currency
case jurisdiction
case obligations
case structure
case yearlyCents
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(atLeast, forKey: .atLeast)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(jurisdiction, forKey: .jurisdiction)
try container.encodeIfPresent(obligations, forKey: .obligations)
try container.encodeIfPresent(structure, forKey: .structure)
try container.encodeIfPresent(yearlyCents, forKey: .yearlyCents)
}
}