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

62 lines
2.0 KiB
Swift

//
// Rollup.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Rollup: Sendable, Codable, ParameterConvertible, Hashable {
public var balance: RollupBalance?
public var consumedCents: Int64?
public var currency: String?
public var included: RollupAllotment?
public var overageCents: Int64?
public var period: String?
public var plan: String?
public var user: String?
public var windows: [Window]?
public init(balance: RollupBalance? = nil, consumedCents: Int64? = nil, currency: String? = nil, included: RollupAllotment? = nil, overageCents: Int64? = nil, period: String? = nil, plan: String? = nil, user: String? = nil, windows: [Window]? = nil) {
self.balance = balance
self.consumedCents = consumedCents
self.currency = currency
self.included = included
self.overageCents = overageCents
self.period = period
self.plan = plan
self.user = user
self.windows = windows
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case balance
case consumedCents
case currency
case included
case overageCents
case period
case plan
case user
case windows
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(balance, forKey: .balance)
try container.encodeIfPresent(consumedCents, forKey: .consumedCents)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(included, forKey: .included)
try container.encodeIfPresent(overageCents, forKey: .overageCents)
try container.encodeIfPresent(period, forKey: .period)
try container.encodeIfPresent(plan, forKey: .plan)
try container.encodeIfPresent(user, forKey: .user)
try container.encodeIfPresent(windows, forKey: .windows)
}
}