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

41 lines
1.2 KiB
Swift

//
// CategorySpend.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CategorySpend: Sendable, Codable, ParameterConvertible, Hashable {
/** Category is the bucket the ledger's own tag mapped to. An untagged or unrecognised line gets its own honest bucket rather than being folded away. */
public var category: String?
/** Cents is what the org spent in that bucket over the window, in US cents. */
public var cents: Int64?
/** Count is how many ledger lines rolled up into it. */
public var count: Int64?
public init(category: String? = nil, cents: Int64? = nil, count: Int64? = nil) {
self.category = category
self.cents = cents
self.count = count
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case category
case cents
case count
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(category, forKey: .category)
try container.encodeIfPresent(cents, forKey: .cents)
try container.encodeIfPresent(count, forKey: .count)
}
}