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

71 lines
2.8 KiB
Swift

//
// Obligation.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Obligation: Sendable, Codable, ParameterConvertible, Hashable {
/** AmountCents is what it costs each period. */
public var amountCents: Int64?
/** AsOf is when that amount was last checked against its source, RFC 3339 date. */
public var asOf: String?
/** Code names the obligation so a caller can branch without reading prose. */
public var code: String?
/** Every is how often it falls due — \"yearly\" for every obligation known here. */
public var every: String?
/** Label is what the payer sees. */
public var label: String?
/** Minimum marks a floor rather than a fixed price — a franchise tax that scales with shares or assets is quoted at its minimum, and an entity past the threshold owes more. Saying so is the difference between a quote and a number someone later disputes. */
public var minimum: Bool?
/** PassThrough marks money we collect and remit to the state rather than keep. */
public var passThrough: Bool?
/** Source names the authority that publishes a pass-through amount, so the figure can be checked without first working out who would know. */
public var source: String?
/** Stale reports that AsOf is older than the review window. It tells; it does not block. */
public var stale: Bool?
public init(amountCents: Int64? = nil, asOf: String? = nil, code: String? = nil, every: String? = nil, label: String? = nil, minimum: Bool? = nil, passThrough: Bool? = nil, source: String? = nil, stale: Bool? = nil) {
self.amountCents = amountCents
self.asOf = asOf
self.code = code
self.every = every
self.label = label
self.minimum = minimum
self.passThrough = passThrough
self.source = source
self.stale = stale
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case amountCents
case asOf
case code
case every
case label
case minimum
case passThrough
case source
case stale
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(amountCents, forKey: .amountCents)
try container.encodeIfPresent(asOf, forKey: .asOf)
try container.encodeIfPresent(code, forKey: .code)
try container.encodeIfPresent(every, forKey: .every)
try container.encodeIfPresent(label, forKey: .label)
try container.encodeIfPresent(minimum, forKey: .minimum)
try container.encodeIfPresent(passThrough, forKey: .passThrough)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(stale, forKey: .stale)
}
}