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

66 lines
2.7 KiB
Swift

//
// Charge.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Charge: Sendable, Codable, ParameterConvertible, Hashable {
/** AmountCents is what this line costs. */
public var amountCents: Int64?
/** AsOf is when a pass-through amount was last checked against its source. */
public var asOf: String?
/** Code names the line so a caller can branch on it without reading prose. */
public var code: String?
/** Label is what the payer sees on the invoice. */
public var label: String?
/** PassThrough marks money we collect and remit rather than keep — the state's fee is not our revenue, and a quote that hides that is a quote that reads as a bigger margin than it is. */
public var passThrough: Bool?
/** Recurring marks a line that repeats. An agent of record is billed every year for as long as the entity stands, and a payer agreeing to a one-time total is not agreeing to that. */
public var recurring: String?
/** Source names who publishes this amount, for a line we merely pass through. Empty for a price of ours, which needs no external authority. */
public var source: String?
/** Stale reports that AsOf is older than the review window — the figure may have moved and nobody has looked. It does not block; it tells. */
public var stale: Bool?
public init(amountCents: Int64? = nil, asOf: String? = nil, code: String? = nil, label: String? = nil, passThrough: Bool? = nil, recurring: String? = nil, source: String? = nil, stale: Bool? = nil) {
self.amountCents = amountCents
self.asOf = asOf
self.code = code
self.label = label
self.passThrough = passThrough
self.recurring = recurring
self.source = source
self.stale = stale
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case amountCents
case asOf
case code
case label
case passThrough
case recurring
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(label, forKey: .label)
try container.encodeIfPresent(passThrough, forKey: .passThrough)
try container.encodeIfPresent(recurring, forKey: .recurring)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(stale, forKey: .stale)
}
}