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

36 lines
947 B
Swift

//
// SpendPoint.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SpendPoint: Sendable, Codable, ParameterConvertible, Hashable {
/** Cents is the consumption recorded in that bucket, in US cents. */
public var cents: Int64?
/** T is the bucket's start instant, RFC3339 UTC. Buckets are gap-filled, so a window with no spend still has its points. */
public var t: String?
public init(cents: Int64? = nil, t: String? = nil) {
self.cents = cents
self.t = t
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case cents
case t
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(cents, forKey: .cents)
try container.encodeIfPresent(t, forKey: .t)
}
}